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
69,159
09/16/2008 03:25:38
9,803
09/15/2008 20:01:37
1
3
Terminate MySQL connections on shared host?
I'm using MediaTemple's Grid Server (shared/grid hosting) to run some MySQL/PHP sites I'm writing and noticed that I wasn't closing one of my MySQL connections, which caused my site to error out, "Too Many Connections". I can't log in anywhere to close the connections manually. **Is that any way to close open connections using a script or other type of command?** Should I just wait?
sql
database
mysql
connections
null
null
open
Terminate MySQL connections on shared host? === I'm using MediaTemple's Grid Server (shared/grid hosting) to run some MySQL/PHP sites I'm writing and noticed that I wasn't closing one of my MySQL connections, which caused my site to error out, "Too Many Connections". I can't log in anywhere to close the connections manually. **Is that any way to close open connections using a script or other type of command?** Should I just wait?
0
69,164
09/16/2008 03:27:06
1,685
08/18/2008 00:34:30
134
8
Errors creating WebPart subclass in another assembly
I am trying to create a subclass of WebPart that will act as a parent to any WebParts we create. If I create an empty class in the same project, I am able to inherit from it as one would expect. However, if I try to place it in another assembly -- one that I've been able to reference and use classes from -- I get the following error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Other information that may be pertinent (I am not normally a SharePoint developer): I compile the dlls, reference them from the dev project, and copy them into the /bin directory of the SharePoint instance. The assemblies are all signed. I'm am attempting to deploy using VS2008's 'deploy' feature. Unfortunately, this does not appear to be a SharePoint specific error, and I'm not sure how to solve the problem. Has anyone experienced this and do you have any suggestions?
sharepoint
webparts
null
null
null
null
open
Errors creating WebPart subclass in another assembly === I am trying to create a subclass of WebPart that will act as a parent to any WebParts we create. If I create an empty class in the same project, I am able to inherit from it as one would expect. However, if I try to place it in another assembly -- one that I've been able to reference and use classes from -- I get the following error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Other information that may be pertinent (I am not normally a SharePoint developer): I compile the dlls, reference them from the dev project, and copy them into the /bin directory of the SharePoint instance. The assemblies are all signed. I'm am attempting to deploy using VS2008's 'deploy' feature. Unfortunately, this does not appear to be a SharePoint specific error, and I'm not sure how to solve the problem. Has anyone experienced this and do you have any suggestions?
0
69,188
09/16/2008 03:36:20
438
08/05/2008 18:28:20
46
7
How do you test cookies in MVC .net?
http://weblogs.asp.net/stephenwalther/archive/2008/06/30/asp-net-mvc-tip-12-faking-the-controller-context.aspx This post shows how to test setting a cookie and then seeing it in ViewData. What I what to do is see if the correct cookies were written (values and name). Any reply, blog post or article will be greatly appreciated.
.net
testing
mvc
null
null
null
open
How do you test cookies in MVC .net? === http://weblogs.asp.net/stephenwalther/archive/2008/06/30/asp-net-mvc-tip-12-faking-the-controller-context.aspx This post shows how to test setting a cookie and then seeing it in ViewData. What I what to do is see if the correct cookies were written (values and name). Any reply, blog post or article will be greatly appreciated.
0
69,192
09/16/2008 03:37:34
7,086
09/15/2008 13:09:14
48
0
Using Stack as Queue
Suppose we have two stacks and no other temporary variable . Is to possible to use it as a queue provided we have associated API i.e push,pop for stack and insert and remove for queue operations.
c++
c
data-structures
null
null
null
open
Using Stack as Queue === Suppose we have two stacks and no other temporary variable . Is to possible to use it as a queue provided we have associated API i.e push,pop for stack and insert and remove for queue operations.
0
69,209
09/16/2008 03:41:09
7,086
09/15/2008 13:09:14
48
0
Deleting a middle node from a single linked list when pointer to the previous node is not available
Is it possible to delete a middle node in the single linked list when the only information available we have is the pointer to the node to be deleted and not the pointer to the previous node?
c
data-structures
null
null
null
null
open
Deleting a middle node from a single linked list when pointer to the previous node is not available === Is it possible to delete a middle node in the single linked list when the only information available we have is the pointer to the node to be deleted and not the pointer to the previous node?
0
69,230
09/16/2008 03:46:35
6,992
09/15/2008 12:58:25
22
0
A snippet to monitor the last INSERT/UPDATE in an Oracle DB from C#?
I'm looking for a simple, sample snippet of C# code to monitor an Oracle database and basically check for its last update. It could be either command line (great for future integration with Nagios) or GUI. I've did some prototypes but the code tend to get lengthy as I'm still kind of learning the language. Any suggestion/comment would be much appreciated.
c#
.net
oracle
dotnet
csharp
null
open
A snippet to monitor the last INSERT/UPDATE in an Oracle DB from C#? === I'm looking for a simple, sample snippet of C# code to monitor an Oracle database and basically check for its last update. It could be either command line (great for future integration with Nagios) or GUI. I've did some prototypes but the code tend to get lengthy as I'm still kind of learning the language. Any suggestion/comment would be much appreciated.
0
69,250
09/16/2008 03:51:07
10,703
09/16/2008 01:08:24
41
3
Why does a C/C++ program often have optimization turned off in debug mode?
In most C or C++ environments, there is a "debug" mode and a "release" mode compilation. Looking at the difference between the two, you find that the debug mode adds the debug symbols (often the -g option on lots of compilers) but it also disables most optimizations. In "release" mode, you usually have all sorts of optimizations turned on. Why the difference?
c++
c
compiler
null
null
null
open
Why does a C/C++ program often have optimization turned off in debug mode? === In most C or C++ environments, there is a "debug" mode and a "release" mode compilation. Looking at the difference between the two, you find that the debug mode adds the debug symbols (often the -g option on lots of compilers) but it also disables most optimizations. In "release" mode, you usually have all sorts of optimizations turned on. Why the difference?
0
69,262
09/16/2008 03:53:16
364
08/05/2008 05:33:41
743
44
Is there an easy way in .NET to get "st", "nd", "rd" and "th" endings for numbers?
I am wondering if there is a method or format string I'm missing in .NET to convert the following: 1 to 1st 2 to 2nd 3 to 3rd 4 to 4th 11 to 11th 101 to 101st 111 to 111th [This link][1] has a bad example of the basic principle involved in writing your own function, but I am more curious if there is an inbuilt capacity I'm missing. [1]: http://www.dotnet-friends.com/fastcode/csharp/fastcodeincsc3bd4149-03d0-40fe-90fd-63bcee77b43e.aspx
.net
date
formatting
null
null
null
open
Is there an easy way in .NET to get "st", "nd", "rd" and "th" endings for numbers? === I am wondering if there is a method or format string I'm missing in .NET to convert the following: 1 to 1st 2 to 2nd 3 to 3rd 4 to 4th 11 to 11th 101 to 101st 111 to 111th [This link][1] has a bad example of the basic principle involved in writing your own function, but I am more curious if there is an inbuilt capacity I'm missing. [1]: http://www.dotnet-friends.com/fastcode/csharp/fastcodeincsc3bd4149-03d0-40fe-90fd-63bcee77b43e.aspx
0
69,275
09/16/2008 03:55:45
165,305
09/16/2008 03:48:55
1
0
Drawing a Web Graph
I'm trying to draw a graph on an ASP webpage. I'm hoping an API can be helpful, but so far I have not been able to find one. The graph contains labeled nodes and unlabeled directional edges. The ideal output would be something like [this][1]. Anybody know of anything pre-built than can help? [1]: http://en.wikipedia.org/wiki/Image:6n-graf.svg
asp.net
api
visualization
graph
null
null
open
Drawing a Web Graph === I'm trying to draw a graph on an ASP webpage. I'm hoping an API can be helpful, but so far I have not been able to find one. The graph contains labeled nodes and unlabeled directional edges. The ideal output would be something like [this][1]. Anybody know of anything pre-built than can help? [1]: http://en.wikipedia.org/wiki/Image:6n-graf.svg
0
69,277
09/16/2008 03:55:58
5,056
09/07/2008 15:43:17
974
70
Rhino Mocks: How do I return numbers from a sequence
I have an Enumerable array int meas[] = new double[] {3, 6, 9, 12, 15, 18}; On each successive call to the mock's method that I'm testing I want to return a value from that array. using(_mocks.Record()) { Expect.Call(mocked_class.GetValue()).Return(meas); } using(_mocks.Playback()) { foreach(var i in meas) Assert.AreEqual(i, mocked_class.GetValue(); } Does anyone have an idea how I can do this?
c#
.net
rhino-mocks
null
null
null
open
Rhino Mocks: How do I return numbers from a sequence === I have an Enumerable array int meas[] = new double[] {3, 6, 9, 12, 15, 18}; On each successive call to the mock's method that I'm testing I want to return a value from that array. using(_mocks.Record()) { Expect.Call(mocked_class.GetValue()).Return(meas); } using(_mocks.Playback()) { foreach(var i in meas) Assert.AreEqual(i, mocked_class.GetValue(); } Does anyone have an idea how I can do this?
0
69,281
09/16/2008 03:56:14
6,992
09/15/2008 12:58:25
22
0
Eclipse Ganymede hacks, hints, tips, tricks, and best practices
I've recently started using Eclipse Ganymede CDT for C development and I couldn't like it more. I'm aware the learning curve could be sort of pronounced, therefore and with your help, my goal is to flatten it as much as possible. I'm looking for the best hacks, hints, tips, tricks, and best practices to really unleash the full power of the IDE.
c
eclipse
ganymede
cdt
null
null
open
Eclipse Ganymede hacks, hints, tips, tricks, and best practices === I've recently started using Eclipse Ganymede CDT for C development and I couldn't like it more. I'm aware the learning curve could be sort of pronounced, therefore and with your help, my goal is to flatten it as much as possible. I'm looking for the best hacks, hints, tips, tricks, and best practices to really unleash the full power of the IDE.
0
69,296
09/16/2008 03:59:47
2,281
08/21/2008 13:07:52
95
6
XML Serialization and empty collections.
I have a a property defined as: [XmlArray("delete", IsNullable = true)] [XmlArrayItem("contact", typeof(ContactEvent)), XmlArrayItem("sms", typeof(SmsEvent))] public List<Event> Delete { get; set; } If the List<> Delete has no items <delete /> is emitted. If the List<> Delete is set to null <delete xsi:nil="true" /> is emitted. Is there away using attributes to get the delete element not to be emitted if the collection has no items?
c#
xmlserialization
null
null
null
null
open
XML Serialization and empty collections. === I have a a property defined as: [XmlArray("delete", IsNullable = true)] [XmlArrayItem("contact", typeof(ContactEvent)), XmlArrayItem("sms", typeof(SmsEvent))] public List<Event> Delete { get; set; } If the List<> Delete has no items <delete /> is emitted. If the List<> Delete is set to null <delete xsi:nil="true" /> is emitted. Is there away using attributes to get the delete element not to be emitted if the collection has no items?
0
69,309
09/16/2008 04:06:46
11,019
09/16/2008 04:02:32
1
0
How do I query the CrystalReports CMS database?
Is it possible to query the Crystal CMS database and get meaningful data back? The data appears to be encrypted. I am running Business Objects Crystal Report Server version 11.5
encryption
crystal-reports
business-objects
null
null
null
open
How do I query the CrystalReports CMS database? === Is it possible to query the Crystal CMS database and get meaningful data back? The data appears to be encrypted. I am running Business Objects Crystal Report Server version 11.5
0
69,330
09/16/2008 04:13:14
5,056
09/07/2008 15:43:17
974
70
Zend PHP debugger: How can I start debugging a page using a get argument?
I am trying out the debugger built into Zend studio. It seems great! One thing though, when I start a page using the debugger does anyone know how I can set a request get argument within the page? For example, I don't want to debug runtests.php I want to debug runtests.php?test=10 I assume its a simple configuration and I just can't find it.
php
debugging
zend
null
null
null
open
Zend PHP debugger: How can I start debugging a page using a get argument? === I am trying out the debugger built into Zend studio. It seems great! One thing though, when I start a page using the debugger does anyone know how I can set a request get argument within the page? For example, I don't want to debug runtests.php I want to debug runtests.php?test=10 I assume its a simple configuration and I just can't find it.
0
69,332
09/16/2008 04:13:53
8,206
09/15/2008 15:24:06
6
3
Tracking CPU and Memory usage per process
I suspect that one of my applications eats more CPU cycles than I want it to. The problem is - it happens in bursts, and just looking at the task manager doesn't help me as it shows immediate usage only. Is there a way (on Windows) to track the history of CPU & Memory usage for some process. E.g. I will start tracking "firefox", and after an hour or so will see a graph of its CPU & memory usage during that hour. I'm looking for either a ready-made tool or a programmatic way to achieve this. Thanks
windows
sysadmin
process-management
null
null
null
open
Tracking CPU and Memory usage per process === I suspect that one of my applications eats more CPU cycles than I want it to. The problem is - it happens in bursts, and just looking at the task manager doesn't help me as it shows immediate usage only. Is there a way (on Windows) to track the history of CPU & Memory usage for some process. E.g. I will start tracking "firefox", and after an hour or so will see a graph of its CPU & memory usage during that hour. I'm looking for either a ready-made tool or a programmatic way to achieve this. Thanks
0
69,375
09/16/2008 04:26:02
5,836
09/11/2008 13:41:27
16
5
Looking for ways to automate web site testing
We develop custom survey web sites and I am looking for a way to automate the pattern testing of these sites. Surveys often contain many complex rules and branches which are triggered on how items are responded too. All surveys are rigorously tested before being released to clients. This testing results in a lot of manual work. I would like to learn of some options I could use to automate these tests by responding to questions and verifying the results in the database. The survey sites are produced by an engine which creates and writes asp pages and receives the responses to process into a database. So the only way I can determine to test the site is to interact with the web pages themselves. I guess in a way I need to build some type of bot; I really don't know much about the design behind them. Could someone please provide some suggestions on how to achieve this? Thank you for your time, Brett
testing
website
asp
dynamicdata
null
null
open
Looking for ways to automate web site testing === We develop custom survey web sites and I am looking for a way to automate the pattern testing of these sites. Surveys often contain many complex rules and branches which are triggered on how items are responded too. All surveys are rigorously tested before being released to clients. This testing results in a lot of manual work. I would like to learn of some options I could use to automate these tests by responding to questions and verifying the results in the database. The survey sites are produced by an engine which creates and writes asp pages and receives the responses to process into a database. So the only way I can determine to test the site is to interact with the web pages themselves. I guess in a way I need to build some type of bot; I really don't know much about the design behind them. Could someone please provide some suggestions on how to achieve this? Thank you for your time, Brett
0
69,384
09/16/2008 04:28:32
10,333
09/15/2008 22:28:36
41
1
Opinion of Hosted SVN providers?
What is your opinion of the various online Hosted SVN providers? How do they all compare? I'm looking for thoughts on Assembla, Unfuddle, BeanStalk, CVSDude, ProjectLocker, and any others that I forgot to mention. Thanks for your insight and input.
svn
null
null
null
null
10/05/2011 06:10:02
off topic
Opinion of Hosted SVN providers? === What is your opinion of the various online Hosted SVN providers? How do they all compare? I'm looking for thoughts on Assembla, Unfuddle, BeanStalk, CVSDude, ProjectLocker, and any others that I forgot to mention. Thanks for your insight and input.
2
69,391
09/16/2008 04:29:55
10,906
09/16/2008 02:53:33
1
0
In Applescript, how can I get to the Help menu Search field, like Spotlight?
In OS X, in order to quickly get at menu items from the keyboard, I want to be able to type a key combination, have it run a script, and have the script focus the Search field in the Help menu. It should work just like the key combination for Spotlight, so if I run it again, it should dismiss the menu. I can run the script with Quicksilver, but how can I write the script?
osx
search
menu
applescript
spotlight
null
open
In Applescript, how can I get to the Help menu Search field, like Spotlight? === In OS X, in order to quickly get at menu items from the keyboard, I want to be able to type a key combination, have it run a script, and have the script focus the Search field in the Help menu. It should work just like the key combination for Spotlight, so if I run it again, it should dismiss the menu. I can run the script with Quicksilver, but how can I write the script?
0
69,398
09/16/2008 04:32:20
11,013
09/16/2008 03:58:56
1
3
Is it possible to reference control templates defined in microsoft's assemblies?
i have scenario where i have to provide my own control template for a few WPF controls - i.e. GridViewHeader. when you take a look at control template for GridViewHEader in blend, it is agregated from several other controls, which in some cases are styled for that control only - i.e. this splitter between columns. those templates, obviously are resources hidden somewhere in system...dll (or somewhwere in themes dll's). so, my question is - is there a way to reference those predefined templates? so far, i've ended up having my own copies of them in my resources, but i don't like that approach :/
wpf
null
null
null
null
null
open
Is it possible to reference control templates defined in microsoft's assemblies? === i have scenario where i have to provide my own control template for a few WPF controls - i.e. GridViewHeader. when you take a look at control template for GridViewHEader in blend, it is agregated from several other controls, which in some cases are styled for that control only - i.e. this splitter between columns. those templates, obviously are resources hidden somewhere in system...dll (or somewhwere in themes dll's). so, my question is - is there a way to reference those predefined templates? so far, i've ended up having my own copies of them in my resources, but i don't like that approach :/
0
69,403
09/16/2008 04:33:12
6,828
09/15/2008 12:41:32
1
2
Advice on buidling an Interactive Voice Response (IVR) system using Asterisk
What are some good resources that i can start with? I don't have any hardware yet, What advice can you give me if i want to start development/testing without hardware?
linux
open-source
asterisk
null
null
null
open
Advice on buidling an Interactive Voice Response (IVR) system using Asterisk === What are some good resources that i can start with? I don't have any hardware yet, What advice can you give me if i want to start development/testing without hardware?
0
69,430
09/16/2008 04:39:50
3,561
08/29/2008 05:25:35
741
53
Is there a way to make text unselectable on an html page?
I'm building an html UI with some text elements, such as tab names, which look bad when selected. Unfortunately, it's very easy for a user to double-click a tab name, which selects it by default in many browsers. I might be able to solve this with a javascript trick (I'd like to see those answers, too) -- but I'm really hoping there's something in css/html directly that works across all browsers.
javascript
html
css
null
null
null
open
Is there a way to make text unselectable on an html page? === I'm building an html UI with some text elements, such as tab names, which look bad when selected. Unfortunately, it's very easy for a user to double-click a tab name, which selects it by default in many browsers. I might be able to solve this with a javascript trick (I'd like to see those answers, too) -- but I'm really hoping there's something in css/html directly that works across all browsers.
0
69,440
09/16/2008 04:43:04
8,970
09/15/2008 17:22:29
1
0
What Safari-specific pure CSS hacks are out there?
I'm wondering if there's any way to write CSS specifically for Safari using only CSS. I know there has to be something out there, but I haven't found it yet.
css
safari
null
null
null
null
open
What Safari-specific pure CSS hacks are out there? === I'm wondering if there's any way to write CSS specifically for Safari using only CSS. I know there has to be something out there, but I haven't found it yet.
0
69,443
09/16/2008 04:43:52
6,413
09/15/2008 09:37:12
3
1
Going Ruby: Straight to IronRuby?
I just started to learn Ruby and as a .Net developer, I'm wondering if I should just go straight ahead and use IronRuby, without trying some pure Ruby first. What do you think? Will I be missing anything? -- rauchy
ruby
ironruby
null
null
null
null
open
Going Ruby: Straight to IronRuby? === I just started to learn Ruby and as a .Net developer, I'm wondering if I should just go straight ahead and use IronRuby, without trying some pure Ruby first. What do you think? Will I be missing anything? -- rauchy
0
69,445
09/16/2008 04:44:16
147
08/02/2008 14:57:08
337
11
Programatically change the text of a TextLayer in After Effects
I'm using the After Effects CS3 Javascript API to dynamically create and change text layers in a composition. Or at least I'm trying to because I can't seem to find the right property to change to alter the actual text of the TextLayer object.
javascript
after-effects
null
null
null
null
open
Programatically change the text of a TextLayer in After Effects === I'm using the After Effects CS3 Javascript API to dynamically create and change text layers in a composition. Or at least I'm trying to because I can't seem to find the right property to change to alter the actual text of the TextLayer object.
0
69,448
09/16/2008 04:46:29
1,865
08/19/2008 00:17:22
260
35
How do I keep Resharper Files out of SVN?
I am using VS2008 and Resharper. Resharper creates a directory _Resharper.ProjectName. These files provide no value for source control that I am aware of and cause issues when committing changes. How can I get SVN to ignore them? I am using TortoiseSVN as my interface for SVN.
visual-studio
svn
tortoisesvn
resharper
null
null
open
How do I keep Resharper Files out of SVN? === I am using VS2008 and Resharper. Resharper creates a directory _Resharper.ProjectName. These files provide no value for source control that I am aware of and cause issues when committing changes. How can I get SVN to ignore them? I am using TortoiseSVN as my interface for SVN.
0
69,470
09/16/2008 04:50:27
1,666
08/17/2008 21:07:18
935
63
Getting The XML Data Inside Custom XPath function
Is there a way to get the current xml data when we make our own custom XPath function (see here). I know you have access to an `XPathContext` but is this enough?
saxon
xpath
java
null
null
null
open
Getting The XML Data Inside Custom XPath function === Is there a way to get the current xml data when we make our own custom XPath function (see here). I know you have access to an `XPathContext` but is this enough?
0
69,480
09/16/2008 04:52:43
7,598
09/15/2008 14:02:17
1
0
How do I change the background color in gnuplot?
I have a script that renders graphs in gnuplot. The graphs all end up with an ugly white background. How do I change this? (Ideally, with a command that goes into a gnuplot script, as opposed to a command-line option or something in a settings file)
gnuplot
null
null
null
null
null
open
How do I change the background color in gnuplot? === I have a script that renders graphs in gnuplot. The graphs all end up with an ugly white background. How do I change this? (Ideally, with a command that goes into a gnuplot script, as opposed to a command-line option or something in a settings file)
0
69,492
09/16/2008 04:55:25
10,703
09/16/2008 01:08:24
101
4
What simple method can I use to debug an embedded processor without serial port or video?
We have a small embedded system without any video or serial ports (i.e. we can't output text via printf). We would like to track the progress of our code through the initialization sequence. Is there some simple things we can do to help with this. It is not running any OS, and the hardware platform is somewhat customizable.
debugging
hardware
embedded
null
null
null
open
What simple method can I use to debug an embedded processor without serial port or video? === We have a small embedded system without any video or serial ports (i.e. we can't output text via printf). We would like to track the progress of our code through the initialization sequence. Is there some simple things we can do to help with this. It is not running any OS, and the hardware platform is somewhat customizable.
0
69,497
09/16/2008 04:56:28
10,945
09/16/2008 03:15:14
1
0
What is a good alternative to subversion that has excellent branching and merging support?
I'm sick and tired of manually tracking my branches and merges across my repository! It's too error prone. In a world where everyone seems to get the idea of reducing duplication and automating everything, subversion branching/merging feels like it's left over from the 80's. What is a good alternative to subversion that has excellent branching and merging support? Ideally it would be free, but if I have to shell out some cash I might be inclined if it's good enough.
branch
merge
version-control
svn
null
null
open
What is a good alternative to subversion that has excellent branching and merging support? === I'm sick and tired of manually tracking my branches and merges across my repository! It's too error prone. In a world where everyone seems to get the idea of reducing duplication and automating everything, subversion branching/merging feels like it's left over from the 80's. What is a good alternative to subversion that has excellent branching and merging support? Ideally it would be free, but if I have to shell out some cash I might be inclined if it's good enough.
0
69,538
09/16/2008 05:10:46
67,775
09/16/2008 04:14:44
96
4
What is the best tool to find which DLL another VB6 DLL is referenced to?
This is an antique problem with VB6 DLL and COM objects but I still face it day to day. What is the best tool to see which DLL file or version another DLL is referencing to? Of course, this is from the OS point of view - compiled DLLs not from within VB6 IDE. It's DLL hell.
vb6
dll
reference
null
null
null
open
What is the best tool to find which DLL another VB6 DLL is referenced to? === This is an antique problem with VB6 DLL and COM objects but I still face it day to day. What is the best tool to see which DLL file or version another DLL is referencing to? Of course, this is from the OS point of view - compiled DLLs not from within VB6 IDE. It's DLL hell.
0
69,539
09/16/2008 05:11:01
9,706
09/15/2008 19:43:33
139
42
Have you used any of the C++ interpreters (not compilers)?
I am curious if anyone have used UnderC, Cint, and Ch (or any other C++ interpreter) and could share their experience. /Allan
c++
experience
interpreter
null
null
null
open
Have you used any of the C++ interpreters (not compilers)? === I am curious if anyone have used UnderC, Cint, and Ch (or any other C++ interpreter) and could share their experience. /Allan
0
69,561
09/16/2008 05:16:28
7,598
09/15/2008 14:02:17
1
1
What is kpsexpand?
gnuplot is giving the error: "sh: kpsexpand: not found." I feel like the guy in Office Space when he saw "PC LOAD LETTER". What the heck is kpsexpand, and why are all the Google results so terrible?
gnuplot
null
null
null
null
null
open
What is kpsexpand? === gnuplot is giving the error: "sh: kpsexpand: not found." I feel like the guy in Office Space when he saw "PC LOAD LETTER". What the heck is kpsexpand, and why are all the Google results so terrible?
0
69,564
09/16/2008 05:18:06
11,110
09/16/2008 05:08:25
1
0
PHP property's scope overridden by passing as reference?
In PHP, if you return a reference to a protected/private property to a class outside the scope of the property does the reference override the scope? **e.g.** class foo { protected bar = array(); getBar() { return &bar; } } class foo2 { blip = new foo().getBar(); // i know you can't do this } ---------- Is this correct and is the array bar being passed by reference?
php
reference
null
null
null
null
open
PHP property's scope overridden by passing as reference? === In PHP, if you return a reference to a protected/private property to a class outside the scope of the property does the reference override the scope? **e.g.** class foo { protected bar = array(); getBar() { return &bar; } } class foo2 { blip = new foo().getBar(); // i know you can't do this } ---------- Is this correct and is the array bar being passed by reference?
0
69,565
09/16/2008 05:18:36
2,915
08/25/2008 23:15:12
3,792
162
Can an fdopen() cause a memory leak?
I use fdopen to associate a stream with an open file. When I close() the file, is the stream automatically disassociated as well, and all stream memory returned to the OS, or do I need to be aware of the fdopen'd file and close it in a specific manner? -Adam
file-io
memory-leaks
stream
null
null
null
open
Can an fdopen() cause a memory leak? === I use fdopen to associate a stream with an open file. When I close() the file, is the stream automatically disassociated as well, and all stream memory returned to the OS, or do I need to be aware of the fdopen'd file and close it in a specific manner? -Adam
0
69,568
09/16/2008 05:19:47
8,369
09/15/2008 15:49:32
11
1
What's a virtual IP (address)?
This is actually a multi-part question: - What is it? - How does it work? - Why is it useful? Why should I use one? Where would it fit in my architecture (typical LAMP stack)? - How can I set one up (say on CentOS)?
networking
ip
virtual
null
null
null
open
What's a virtual IP (address)? === This is actually a multi-part question: - What is it? - How does it work? - Why is it useful? Why should I use one? Where would it fit in my architecture (typical LAMP stack)? - How can I set one up (say on CentOS)?
0
69,591
09/16/2008 05:26:06
6,180
09/12/2008 19:35:26
48
4
How do I create a regex in emacs for exactly 3 digits?
I want to create a regexp in emacs that matches exactly 3 digits. For example, I want to match the following: 123 345 789 But not 1234 12 12 23 If I use `[0-9]+` I match any single string of digits. I thought `[0-9]{3}` would work, but when tested in re-builder it doesn't match anything.
regex
emacs
null
null
null
null
open
How do I create a regex in emacs for exactly 3 digits? === I want to create a regexp in emacs that matches exactly 3 digits. For example, I want to match the following: 123 345 789 But not 1234 12 12 23 If I use `[0-9]+` I match any single string of digits. I thought `[0-9]{3}` would work, but when tested in re-builder it doesn't match anything.
0
69,602
09/16/2008 05:30:35
426
08/05/2008 15:31:51
1
1
Proxy settings in Firefox don't "stick"
At home we have a proxy server. At work we don't. Firefox irritates in this regard: whenever I launch it, it defaults to the proxy server. If I do Tools>Options>Settings and select "No proxy", no problem. However, if I shutdown Firefox and restart it, I have to do the Tools>Options>Settings thing all over again because the "No proxy" setting doesn't "stick". How do I make it stick? Alternatively, can someone suggest a bit of javascript that I can assign to a button on my toolbar which will toggle between the two states?
javascript
firefox
proxy
null
null
null
open
Proxy settings in Firefox don't "stick" === At home we have a proxy server. At work we don't. Firefox irritates in this regard: whenever I launch it, it defaults to the proxy server. If I do Tools>Options>Settings and select "No proxy", no problem. However, if I shutdown Firefox and restart it, I have to do the Tools>Options>Settings thing all over again because the "No proxy" setting doesn't "stick". How do I make it stick? Alternatively, can someone suggest a bit of javascript that I can assign to a button on my toolbar which will toggle between the two states?
0
69,627
09/16/2008 05:37:29
3,740
08/30/2008 13:51:36
11
0
unpatented one-way encryption algorithm
I am looking for a simple unpatented one-way encryption algorithm, preferably in c. I would like to use it to validate passwords.
encryption
hashing
null
null
null
null
open
unpatented one-way encryption algorithm === I am looking for a simple unpatented one-way encryption algorithm, preferably in c. I would like to use it to validate passwords.
0
69,645
09/16/2008 05:44:54
44,240
09/15/2008 14:47:42
1
0
Take a screenshot via a python script. [Linux]
I want to take a screenshot via a python script and unobtrusively save it. I'm only interested in the Linux solution, and should support any X based environment.
python
linux
screenshot
null
null
null
open
Take a screenshot via a python script. [Linux] === I want to take a screenshot via a python script and unobtrusively save it. I'm only interested in the Linux solution, and should support any X based environment.
0
69,646
09/16/2008 05:45:31
1,463
08/15/2008 17:26:44
535
39
SVN and renaming the server it's running on
I'm running VisualSVN as my SVN server and using TortoiseSVN as the client. I've just renamed the server from mach1 to mach2 and now can't use SVN because it's looking for the repositories at http://mach1:81/ instead of the new name http://mach2:81/ Any idea how to fix this?
svn
tortoisesvn
visualsvn
null
null
null
open
SVN and renaming the server it's running on === I'm running VisualSVN as my SVN server and using TortoiseSVN as the client. I've just renamed the server from mach1 to mach2 and now can't use SVN because it's looking for the repositories at http://mach1:81/ instead of the new name http://mach2:81/ Any idea how to fix this?
0
69,664
09/16/2008 05:49:16
11,124
09/16/2008 05:19:24
1
1
does a good swf to exe wraper open source exists ?
i think the best part of flash is the possibility to create not squared user interfaces, so i like the idea to create desktop apps using flash. I know AIR is for that but it doesnt allow real access to OperatingSystem apis and dlls and the commercial options are kind of dificult to customize.
actionscript
null
null
null
null
05/10/2012 00:56:15
not constructive
does a good swf to exe wraper open source exists ? === i think the best part of flash is the possibility to create not squared user interfaces, so i like the idea to create desktop apps using flash. I know AIR is for that but it doesnt allow real access to OperatingSystem apis and dlls and the commercial options are kind of dificult to customize.
4
69,676
09/16/2008 05:53:02
11,176
09/16/2008 05:53:02
1
0
MySQL, Asterisk Dialplans and call forwarding
How do I get Asterisk to forward incoming calls based on matching the incoming call number with a number to forward to? Both numbers are stored in a MySQL database.
mysql
asterisk
null
null
null
null
open
MySQL, Asterisk Dialplans and call forwarding === How do I get Asterisk to forward incoming calls based on matching the incoming call number with a number to forward to? Both numbers are stored in a MySQL database.
0
69,692
09/16/2008 05:59:15
11,105
09/16/2008 05:05:11
1
0
Get two linux boxes talking over a serial port
What is the best way to setup one linux box to listen on its serial port for incoming connections? I've done a lot of googling but I can't find the right combination of commands to actually get them to talk! My main objective is to provide a serial interface to running instances of kvm/qemu VMs which currently only have a VNC interface (they are on headless servers, no X). I can get the VM to create a serial device by starting it with the -serial file: flag, but how to talk to it, is a whole other problem. Both boxes are running Ubuntu 8.04.
linux
virtualization
serial-port
kvm
qemu
null
open
Get two linux boxes talking over a serial port === What is the best way to setup one linux box to listen on its serial port for incoming connections? I've done a lot of googling but I can't find the right combination of commands to actually get them to talk! My main objective is to provide a serial interface to running instances of kvm/qemu VMs which currently only have a VNC interface (they are on headless servers, no X). I can get the VM to create a serial device by starting it with the -serial file: flag, but how to talk to it, is a whole other problem. Both boxes are running Ubuntu 8.04.
0
69,695
09/16/2008 05:59:39
1,682
08/18/2008 00:10:52
11
4
stringstream manipulators & vstudio 2003
I am trying to use a stringstream object in VC++ (VStudio 2003) butI am getting an error when I use the overloaded << operator to try and set some manipulators. I am trying the following: int SomeInt = 1; stringstream StrStream; StrStream << std::setw(2) << SomeInt; This will not compile (error C2593: 'operator <<' is ambiguous). Does VStudio 2003 support using manipulators in this way? I know that I can just set the width directly on the stringstream object e.g. StrStream.width(2); I was wondering why the more usual method doesn't work?
visual-studio
stl
null
null
null
null
open
stringstream manipulators & vstudio 2003 === I am trying to use a stringstream object in VC++ (VStudio 2003) butI am getting an error when I use the overloaded << operator to try and set some manipulators. I am trying the following: int SomeInt = 1; stringstream StrStream; StrStream << std::setw(2) << SomeInt; This will not compile (error C2593: 'operator <<' is ambiguous). Does VStudio 2003 support using manipulators in this way? I know that I can just set the width directly on the stringstream object e.g. StrStream.width(2); I was wondering why the more usual method doesn't work?
0
69,700
09/16/2008 06:02:08
10,739
09/16/2008 01:26:43
1
2
What is a good regression testing framwork for software applications?
Am looking for a regression test framework where I can add tests to.. Tests could be any sort of binaries that poke an application..
testing
null
null
null
null
null
open
What is a good regression testing framwork for software applications? === Am looking for a regression test framework where I can add tests to.. Tests could be any sort of binaries that poke an application..
0
69,702
09/16/2008 06:02:43
11,193
09/16/2008 06:02:43
1
0
Java Collections using wildcard
public class Generics { public static void main(String[] args) { List<? extends Object> mylist = new ArrayList<String>(); mylist.add("java"); // compile error } } The above code (obviously) does not allow you to add elements to the list and wild cards can only be used as a signature in methods, again not for adding but only for accessing. In this case what purpose does the above fulfill??
java
null
null
null
null
null
open
Java Collections using wildcard === public class Generics { public static void main(String[] args) { List<? extends Object> mylist = new ArrayList<String>(); mylist.add("java"); // compile error } } The above code (obviously) does not allow you to add elements to the list and wild cards can only be used as a signature in methods, again not for adding but only for accessing. In this case what purpose does the above fulfill??
0
69,711
09/16/2008 06:04:56
11,173
09/16/2008 05:51:30
1
1
How to infer coercions?
I would like to know how to infer coercions (a.k.a. implicit conversions) during type inference. I am using the type inference scheme described in [Top Quality Type Error Messages](http://people.cs.uu.nl/bastiaan/phdthesis/index.html) by Bastiaan Heeren, but I'd assume that the general idea is probably the same in all Hindley-Milner-esque approaches. It seems like coercion could be treated as a form of overloading, but the overloading approach described in this paper doesn't consider (at least not in a way I could follow) overloading based on requirements that the context places on return type, which is a must for coercions. I'm also concerned that such an approach might make it difficult to give priority to the identity coercion, and also to respect the transitive closure of coercibility. I can see sugaring each coercible expression, say *e*, to coerce(*e*), but sugaring it to coerce(coerce(coerce(... coerce(*e*) ...))) for some depth equal to the maximum nesting of coercions seems silly, and also limits the coercibility relation to something with a finite transitive closure whose depth is independent of the context, which seems (needlessly?) restrictive.
programming-languages
compiler
types
type-inference
type-theory
null
open
How to infer coercions? === I would like to know how to infer coercions (a.k.a. implicit conversions) during type inference. I am using the type inference scheme described in [Top Quality Type Error Messages](http://people.cs.uu.nl/bastiaan/phdthesis/index.html) by Bastiaan Heeren, but I'd assume that the general idea is probably the same in all Hindley-Milner-esque approaches. It seems like coercion could be treated as a form of overloading, but the overloading approach described in this paper doesn't consider (at least not in a way I could follow) overloading based on requirements that the context places on return type, which is a must for coercions. I'm also concerned that such an approach might make it difficult to give priority to the identity coercion, and also to respect the transitive closure of coercibility. I can see sugaring each coercible expression, say *e*, to coerce(*e*), but sugaring it to coerce(coerce(coerce(... coerce(*e*) ...))) for some depth equal to the maximum nesting of coercions seems silly, and also limits the coercibility relation to something with a finite transitive closure whose depth is independent of the context, which seems (needlessly?) restrictive.
0
69,715
09/16/2008 06:07:16
8,161
09/15/2008 15:17:47
1
1
Which PHP open source shopping cart solutions have features that benefit me as the web developer?
There are hundreds of shopping cart solutions available for every platform, and all hosting plans come with several already installed. As a developer I understand that most of these are fairly similar from a user perspective. But which ones are built with the developer in mind? For example, which ones have a decent API so that my custom code doesn't get mingled with the core code or which ones have a well thought through template system so that I can easily customize it for each new client?
php
e-commerce
shopping-cart
null
null
null
open
Which PHP open source shopping cart solutions have features that benefit me as the web developer? === There are hundreds of shopping cart solutions available for every platform, and all hosting plans come with several already installed. As a developer I understand that most of these are fairly similar from a user perspective. But which ones are built with the developer in mind? For example, which ones have a decent API so that my custom code doesn't get mingled with the core code or which ones have a well thought through template system so that I can easily customize it for each new client?
0
69,722
09/16/2008 06:09:03
6,997
09/15/2008 12:58:54
1
0
How do I get the most recently updated form item to "stick" in Firefox when I copy its container?
I have a dl containing some input boxes that I "clone" with a bit of JavaScript like: var newBox = document.createElement('dl'); var sourceBox = document.getElementById(oldkey); newBox.innerHTML = sourceBox.innerHTML; newBox.id = newkey; document.getElementById('boxes').appendChild(columnBox); In IE, the form in sourceBox is duplicated in newBox, complete with user-supplied values. In Firefox, last value entered in the orginal sourceBox is not present in newBox. How do I make this "stick?"
javascript
firefox
dom
null
null
null
open
How do I get the most recently updated form item to "stick" in Firefox when I copy its container? === I have a dl containing some input boxes that I "clone" with a bit of JavaScript like: var newBox = document.createElement('dl'); var sourceBox = document.getElementById(oldkey); newBox.innerHTML = sourceBox.innerHTML; newBox.id = newkey; document.getElementById('boxes').appendChild(columnBox); In IE, the form in sourceBox is duplicated in newBox, complete with user-supplied values. In Firefox, last value entered in the orginal sourceBox is not present in newBox. How do I make this "stick?"
0
69,725
09/16/2008 06:09:55
10,778
09/16/2008 01:48:10
54
10
Astoria vs. SQL Server Data Services
What are in your opinion big differences between areas of usage for "Astoria" (ADO.NET data services) and SQL Server Data Services?
ado.net
data
service
astoria
ssds
null
open
Astoria vs. SQL Server Data Services === What are in your opinion big differences between areas of usage for "Astoria" (ADO.NET data services) and SQL Server Data Services?
0
69,729
09/16/2008 06:11:14
5,919
09/11/2008 16:44:11
1
2
Visual Studio 2005 - 'Updating IntelliSense' hang-up
I am having trouble with my Visual Studio 2005 IntelliSense for some time now.<br><br> It used to work fine, but for some reason the 'Updating IntelliSense...' does no longer seem to be able to complete for the solution I'm working on currenly- it simply gets stuck somewhere at about 3-bars of progress and blocks one of my precious CPUs for eternity.<br><br> Deleting the .ncb file of my solution and performing a full 'Clean' afterwards was no help. The 'Update' simply gets stuck again.<br><br> The project I'm working on is a fairly large C++ solution with 50+ projects, quite a few template classes (even more lately) and in general quite complex. I have no idea which impact this might have on the IntelliSense.<br><br> Visual Studio 2005 Service Pack 1 and all hotfixes which rely on it are *not* installed (we hade huge problems with this one, so we haven't migrated yet).<br><br> Any answer is very much appreciated on this one. Gives me the creeps.. <br><br> Cheers,<br> \Bjoern
visual-studio
vs2005
intellisense
null
null
null
open
Visual Studio 2005 - 'Updating IntelliSense' hang-up === I am having trouble with my Visual Studio 2005 IntelliSense for some time now.<br><br> It used to work fine, but for some reason the 'Updating IntelliSense...' does no longer seem to be able to complete for the solution I'm working on currenly- it simply gets stuck somewhere at about 3-bars of progress and blocks one of my precious CPUs for eternity.<br><br> Deleting the .ncb file of my solution and performing a full 'Clean' afterwards was no help. The 'Update' simply gets stuck again.<br><br> The project I'm working on is a fairly large C++ solution with 50+ projects, quite a few template classes (even more lately) and in general quite complex. I have no idea which impact this might have on the IntelliSense.<br><br> Visual Studio 2005 Service Pack 1 and all hotfixes which rely on it are *not* installed (we hade huge problems with this one, so we haven't migrated yet).<br><br> Any answer is very much appreciated on this one. Gives me the creeps.. <br><br> Cheers,<br> \Bjoern
0
69,738
09/16/2008 06:12:48
8,146
09/15/2008 15:15:59
1
0
C++: how to get fprintf results as a std::string w/o sprintf
I am working with an open-source UNIX tool that is implemented in C++, and I need to change some code to get it to do what I want. I would like to make the smallest possible change in hopes of getting my patch accepted upstream. Solutions that are implementable in standard C++ and do not create more external dependencies are preferred. Here is my problem. I have a C++ class -- let's call it "A" -- that currently uses fprintf() to print its heavily formatted data structures to a file pointer. In its print function, it also recursively calls the identically defined print functions of several member classes ("B" is an example). There is another class C that has a member std::string "foo" that needs to be set to the print() results of an instance of A. Think of it as a to_str() member function for A. In pseudocode: class A { public: ... void print(FILE* f); B b; ... }; ... void A::print(FILE *f) { std::string s = "stuff"; fprintf(f, "some %s", s); b.print(f); } class C { ... std::string foo; bool set_foo(std::str); ... } ... A a = new A(); C c = new C(); ... // wish i knew how to write A's to_str() c.set_foo(a.to_str()); I should mention that C is fairly stable, but A and B (and the rest of A's dependents) are in a state of flux, so the less code changes necessary the better. The current print(FILE* F) interface also needs to be preserved. I have considered several approaches to implementing A::to_str(), each with advantages and disadvantages: 1. Change the calls to fprintf() to sprintf() * I wouldn't have to rewrite any format strings * print() could be reimplemented as: fprint(f, this.to_str()); * But I would need to manually allocate char[]s, merge a lot of c strings , and finally convert the character array to a std::string 2. Try to catch the results of a.print() in a string stream * I would have to convert all of the format strings to << output format. There are hundreds of fprintf()s to convert :-{ * print() would have to be rewritten because there is no standard way that I know of to create an output stream from a UNIX file handle (though [this guy says it may be possible](http://synflood.at/blog/index.php?/archives/456-One-word-of-warning-about-stdio_filebuf.html)). 3. Use Boost's [string format library](http://www.boost.org/doc/libs/1_36_0/libs/format/doc/format.html) * More external dependencies. Yuck. * Format is not (fully) compatible with format strings, so I would still have to rewrite all or most of the format strings. 4. Use Qt's QString::printf() * A different external dependency. * Looks like QString::printf() is [on its way out](http://www.potu.com/man/doc.trolltech.com/4.0/qstring.html) So, have I exhausted all possible options? If so, which do you think is my best bet? If not, what have I overlooked? Thanks.
c++
string
format
printf
null
null
open
C++: how to get fprintf results as a std::string w/o sprintf === I am working with an open-source UNIX tool that is implemented in C++, and I need to change some code to get it to do what I want. I would like to make the smallest possible change in hopes of getting my patch accepted upstream. Solutions that are implementable in standard C++ and do not create more external dependencies are preferred. Here is my problem. I have a C++ class -- let's call it "A" -- that currently uses fprintf() to print its heavily formatted data structures to a file pointer. In its print function, it also recursively calls the identically defined print functions of several member classes ("B" is an example). There is another class C that has a member std::string "foo" that needs to be set to the print() results of an instance of A. Think of it as a to_str() member function for A. In pseudocode: class A { public: ... void print(FILE* f); B b; ... }; ... void A::print(FILE *f) { std::string s = "stuff"; fprintf(f, "some %s", s); b.print(f); } class C { ... std::string foo; bool set_foo(std::str); ... } ... A a = new A(); C c = new C(); ... // wish i knew how to write A's to_str() c.set_foo(a.to_str()); I should mention that C is fairly stable, but A and B (and the rest of A's dependents) are in a state of flux, so the less code changes necessary the better. The current print(FILE* F) interface also needs to be preserved. I have considered several approaches to implementing A::to_str(), each with advantages and disadvantages: 1. Change the calls to fprintf() to sprintf() * I wouldn't have to rewrite any format strings * print() could be reimplemented as: fprint(f, this.to_str()); * But I would need to manually allocate char[]s, merge a lot of c strings , and finally convert the character array to a std::string 2. Try to catch the results of a.print() in a string stream * I would have to convert all of the format strings to << output format. There are hundreds of fprintf()s to convert :-{ * print() would have to be rewritten because there is no standard way that I know of to create an output stream from a UNIX file handle (though [this guy says it may be possible](http://synflood.at/blog/index.php?/archives/456-One-word-of-warning-about-stdio_filebuf.html)). 3. Use Boost's [string format library](http://www.boost.org/doc/libs/1_36_0/libs/format/doc/format.html) * More external dependencies. Yuck. * Format is not (fully) compatible with format strings, so I would still have to rewrite all or most of the format strings. 4. Use Qt's QString::printf() * A different external dependency. * Looks like QString::printf() is [on its way out](http://www.potu.com/man/doc.trolltech.com/4.0/qstring.html) So, have I exhausted all possible options? If so, which do you think is my best bet? If not, what have I overlooked? Thanks.
0
69,743
09/16/2008 06:14:43
11,212
09/16/2008 06:14:43
1
0
how to use "%f" to populate a double value into a string with the right precision
I am trying to populate a string with the double value using a sprintf like this sprintf(S, "%f", val); But the precision is being cut of to 6 decimal places. I need about 10 decimal places for the precision. Kindly tell me how that can be achieved.
c
floating-point
precision
sprintf
f
null
open
how to use "%f" to populate a double value into a string with the right precision === I am trying to populate a string with the double value using a sprintf like this sprintf(S, "%f", val); But the precision is being cut of to 6 decimal places. I need about 10 decimal places for the precision. Kindly tell me how that can be achieved.
0
69,744
09/16/2008 06:15:11
8,453
09/15/2008 16:04:01
18
1
When do hal properties get updated
I'm calling GetProperty on a org.freedesktop.Hal.Device from my handler during a PropertyNotified signal. I'm only calling GetProperty on properties that have been added or changed. When I call GetProperty during property adds, I'm getting a org.freedesktop.Hal.NoSuchProperty exception. I'm also worried that during changes, I'm getting the old values. When should I be calling GetProperty? What race conditions are involved?
dbus
hal
null
null
null
null
open
When do hal properties get updated === I'm calling GetProperty on a org.freedesktop.Hal.Device from my handler during a PropertyNotified signal. I'm only calling GetProperty on properties that have been added or changed. When I call GetProperty during property adds, I'm getting a org.freedesktop.Hal.NoSuchProperty exception. I'm also worried that during changes, I'm getting the old values. When should I be calling GetProperty? What race conditions are involved?
0
69,748
09/16/2008 06:15:50
364
08/05/2008 05:33:41
775
45
Split a list feature in C# (Possibly LINQ)
Another easy one hopefully. Let's say I have a collection like this: List<DateTime> allDates; I want to turn that into List<List<DateTime>> dividedDates; where each List in 'dividedDates' contains all of the dates in 'allDates' that belong to a distinct year. Is there a bit of LINQ trickery that my tired mind can't pick out right now?
c#
linq
null
null
null
null
open
Split a list feature in C# (Possibly LINQ) === Another easy one hopefully. Let's say I have a collection like this: List<DateTime> allDates; I want to turn that into List<List<DateTime>> dividedDates; where each List in 'dividedDates' contains all of the dates in 'allDates' that belong to a distinct year. Is there a bit of LINQ trickery that my tired mind can't pick out right now?
0
69,753
09/16/2008 06:16:42
7,104
09/15/2008 13:10:33
1
1
Any way to programatically wrap a .NET WebService with a SoapExtension?
Basically, I'm trying to tap into the Soap pipeline in .NET 2.0 - I want to do what a SoapExtension can do if you provide a custom SoapExtensionAttribute... but to do it for every SOAP call without having to add the extension attribute to dozens of WebMethods. What I'm looking for is any extension point that lets me hook in as: void ProcessMessage(SoapMessage message) without needing to individually decorate each WebMethod. It's even fine if I have to only annotate the WebServices - I only have a few of those. Any ideas? Thanks much! Steve
c#
.net
web-services
null
null
null
open
Any way to programatically wrap a .NET WebService with a SoapExtension? === Basically, I'm trying to tap into the Soap pipeline in .NET 2.0 - I want to do what a SoapExtension can do if you provide a custom SoapExtensionAttribute... but to do it for every SOAP call without having to add the extension attribute to dozens of WebMethods. What I'm looking for is any extension point that lets me hook in as: void ProcessMessage(SoapMessage message) without needing to individually decorate each WebMethod. It's even fine if I have to only annotate the WebServices - I only have a few of those. Any ideas? Thanks much! Steve
0
69,764
09/16/2008 06:18:23
4,491
09/04/2008 06:44:23
371
8
What do you use to write and edit stored procedures in Oracle?
There are many options for editing and writing Stored Procedures in Oracle; what is the best tool for you and why? (one tool per answer.)
sql
oracle
stored-procedures
toad
jdeveloper
null
open
What do you use to write and edit stored procedures in Oracle? === There are many options for editing and writing Stored Procedures in Oracle; what is the best tool for you and why? (one tool per answer.)
0
69,766
09/16/2008 06:18:53
7,850
09/15/2008 14:32:35
6
1
Visual Studio 2005 ERROR: An error occurred generating a bootstrapper: Invalid syntax.
I'm working on VS 2005 and something has gone wrong on my machine. Suddenly, out of the blue, I can no longer build deployment files. The build message is: ERROR: An error occurred generating a bootstrapper: Invalid syntax. ERROR: General failure building bootstrapper ERROR: Unrecoverable build error A quick Google search brings up the last 2 lines, but nobody in cyberspace has ever reported the first message before. (Hooray! I'm first at SOMETHING on the 'net!) Other machines in my office are able to do the build. My machine has been able to do the build before. I have no idea what changed that upset the delicate balance of things on my box. I have also tried all the traditional rituals i.e. closing Visual Studio, blowing away all the bin and obj folders, rebooting, etc. to no avail. For simplicity's sake, I created a little "Hello World" app with a deployment file. Herewith the build output: ------ Build started: Project: HelloWorld, Configuration: Debug Any CPU ------ HelloWorld -> C:\Vault\Multi Client\Tests\HelloWorld\HelloWorld\bin\Debug\HelloWorld.exe ------ Starting pre-build validation for project 'HelloWorldSetup' ------ ------ Pre-build validation for project 'HelloWorldSetup' completed ------ ------ Build started: Project: HelloWorldSetup, Configuration: Debug ------ Building file 'C:\Vault\Multi Client\Tests\HelloWorld\HelloWorldSetup\Debug\HelloWorldSetup.msi'... ERROR: An error occurred generating a bootstrapper: Invalid syntax. ERROR: General failure building bootstrapper ERROR: Unrecoverable build error ========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ========== I am using: - MS Visual Studio 2005 Version 8.0.50727.762 (SP .050727-7600) - .NET Framework Version 2.0.50727 - OS: Windows XP Pro Again, I have no idea what changed. All I know is that one day everything was working fine; the next day I suddenly can't do any deployment builds at all (though all other projects still compile fine). I posted this on MSDN about a month ago, and they don't seem to know what's going on, either. See [http://tinyurl.com/6mo6cb][1] Anyone have any idea what this is about? Thanks! Shaul [1]: Link to MSDN thread
visual-studio
deployment
microsoft
build
bootstrapping
null
open
Visual Studio 2005 ERROR: An error occurred generating a bootstrapper: Invalid syntax. === I'm working on VS 2005 and something has gone wrong on my machine. Suddenly, out of the blue, I can no longer build deployment files. The build message is: ERROR: An error occurred generating a bootstrapper: Invalid syntax. ERROR: General failure building bootstrapper ERROR: Unrecoverable build error A quick Google search brings up the last 2 lines, but nobody in cyberspace has ever reported the first message before. (Hooray! I'm first at SOMETHING on the 'net!) Other machines in my office are able to do the build. My machine has been able to do the build before. I have no idea what changed that upset the delicate balance of things on my box. I have also tried all the traditional rituals i.e. closing Visual Studio, blowing away all the bin and obj folders, rebooting, etc. to no avail. For simplicity's sake, I created a little "Hello World" app with a deployment file. Herewith the build output: ------ Build started: Project: HelloWorld, Configuration: Debug Any CPU ------ HelloWorld -> C:\Vault\Multi Client\Tests\HelloWorld\HelloWorld\bin\Debug\HelloWorld.exe ------ Starting pre-build validation for project 'HelloWorldSetup' ------ ------ Pre-build validation for project 'HelloWorldSetup' completed ------ ------ Build started: Project: HelloWorldSetup, Configuration: Debug ------ Building file 'C:\Vault\Multi Client\Tests\HelloWorld\HelloWorldSetup\Debug\HelloWorldSetup.msi'... ERROR: An error occurred generating a bootstrapper: Invalid syntax. ERROR: General failure building bootstrapper ERROR: Unrecoverable build error ========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ========== I am using: - MS Visual Studio 2005 Version 8.0.50727.762 (SP .050727-7600) - .NET Framework Version 2.0.50727 - OS: Windows XP Pro Again, I have no idea what changed. All I know is that one day everything was working fine; the next day I suddenly can't do any deployment builds at all (though all other projects still compile fine). I posted this on MSDN about a month ago, and they don't seem to know what's going on, either. See [http://tinyurl.com/6mo6cb][1] Anyone have any idea what this is about? Thanks! Shaul [1]: Link to MSDN thread
0
69,768
09/16/2008 06:19:45
3,575
08/29/2008 06:54:39
31
4
How do you configure the Apache server which ships Mac OS X?
Mac OS X ships with apache pre-installed, but the files are in non-standard locations. This question is a place to collect information about where configuration files live, and how to tweak the apache installation to do things like serve php pages.
osx
apache
null
null
null
null
open
How do you configure the Apache server which ships Mac OS X? === Mac OS X ships with apache pre-installed, but the files are in non-standard locations. This question is a place to collect information about where configuration files live, and how to tweak the apache installation to do things like serve php pages.
0
69,783
09/16/2008 06:23:44
10,945
09/16/2008 03:15:14
26
0
What collaborative, electronic system do you use for managing releases, features, and tasks for developers and managers?
My biggest concern is ease of use, and nothing beats a google spreadsheet or document (Except maybe Office). At some point, the free-form nature of the formats starts to cause a problem. Specifically, I have the same conceptual data split up between two documents. This is done because both provide useful views of the data. - Document - Contains high level descriptions of releases and features - This is user/designer facing - Useful for a quick glance or detailed read through of the features in a release. - Spreadsheet - Contains line item descriptions of feature tasks, estimates, and resource assignments - This is developer facing - Updated collaboratively by developers as they work - Useful for a detailed view of the effort required (and spent) for features in a release. Sometimes we want to reprioritize features, or add/remove ones, and that happens in the document. That restructuring then needs to be duplicated in the spreadsheet. This is a pain in the ass. So how do you to track this stuff?
software-engineering
scheduling
project-management
project-planning
null
null
open
What collaborative, electronic system do you use for managing releases, features, and tasks for developers and managers? === My biggest concern is ease of use, and nothing beats a google spreadsheet or document (Except maybe Office). At some point, the free-form nature of the formats starts to cause a problem. Specifically, I have the same conceptual data split up between two documents. This is done because both provide useful views of the data. - Document - Contains high level descriptions of releases and features - This is user/designer facing - Useful for a quick glance or detailed read through of the features in a release. - Spreadsheet - Contains line item descriptions of feature tasks, estimates, and resource assignments - This is developer facing - Updated collaboratively by developers as they work - Useful for a detailed view of the effort required (and spent) for features in a release. Sometimes we want to reprioritize features, or add/remove ones, and that happens in the document. That restructuring then needs to be duplicated in the spreadsheet. This is a pain in the ass. So how do you to track this stuff?
0
69,788
09/16/2008 06:25:02
11,227
09/16/2008 06:24:28
1
0
How to configure IIS7 to allow zip file uploads using classic asp?
I recently installed Windows 2008 Server to replace a crashed hard drive on a web server with a variety of web pages including several classic ASP applications. One of these makes extensive use of file uploads using a com tool that has worked for several years. Under IIS7 doc files and jpeg files upload as before, but zip files give a 500 error. This works the same with the firewall on and off.
classicasp
null
null
null
null
null
open
How to configure IIS7 to allow zip file uploads using classic asp? === I recently installed Windows 2008 Server to replace a crashed hard drive on a web server with a variety of web pages including several classic ASP applications. One of these makes extensive use of file uploads using a com tool that has worked for several years. Under IIS7 doc files and jpeg files upload as before, but zip files give a 500 error. This works the same with the firewall on and off.
0
69,814
09/16/2008 06:30:28
7,598
09/15/2008 14:02:17
1
1
How do you use gnuplot's built-in fonts?
The gnuplot docs have this to say about fonts: <pre> Five basic fonts are supported directly by the gd library. These are `tiny` (5x8 pixels), `small` (6x12 pixels), `medium`, (7x13 Bold), `large` (8x16) or `giant` (9x15 pixels).</pre> But when i try to use one: <pre> gnuplot> set terminal png font tiny</pre> I get: <pre> Could not find/open font when opening font tiny, using default</pre> How do I use these seemingly built-in fonts?
gnuplot
null
null
null
null
null
open
How do you use gnuplot's built-in fonts? === The gnuplot docs have this to say about fonts: <pre> Five basic fonts are supported directly by the gd library. These are `tiny` (5x8 pixels), `small` (6x12 pixels), `medium`, (7x13 Bold), `large` (8x16) or `giant` (9x15 pixels).</pre> But when i try to use one: <pre> gnuplot> set terminal png font tiny</pre> I get: <pre> Could not find/open font when opening font tiny, using default</pre> How do I use these seemingly built-in fonts?
0
69,828
09/16/2008 06:34:23
11,249
09/16/2008 06:34:23
1
0
Must DOCTYPE be the very first tag in an HTML document
Our security manager (Tivoli Access Manager, TAM) dynamically inserts a bit of javascript at the top of every html page when requested. It is inserted above the DOCTYPE statement. I think this might be the cause of the layout problems I am having. Ideas anyone?
html
doctype
null
null
null
null
open
Must DOCTYPE be the very first tag in an HTML document === Our security manager (Tivoli Access Manager, TAM) dynamically inserts a bit of javascript at the top of every html page when requested. It is inserted above the DOCTYPE statement. I think this might be the cause of the layout problems I am having. Ideas anyone?
0
69,830
09/16/2008 06:35:00
10,778
09/16/2008 01:48:10
54
10
Which browsers your latest "officially" supports?
Which browsers your latest "officially" supports? What was the key reasons not to support any of them?
web
applications
browser
null
null
12/30/2011 23:13:33
not constructive
Which browsers your latest "officially" supports? === Which browsers your latest "officially" supports? What was the key reasons not to support any of them?
4
69,832
09/16/2008 06:35:14
4,038
09/01/2008 13:59:34
1
0
Which Open Source CMS do you find most reliable and performance-oriented?
We need a good CMS that supports data clustering (managing and storing data on different servers). By "good" , I mean : reliable , minimum bugs , the faster the better. (Oh , and it should make coffee :) )
content-management-system
dataclustering
null
null
null
null
open
Which Open Source CMS do you find most reliable and performance-oriented? === We need a good CMS that supports data clustering (managing and storing data on different servers). By "good" , I mean : reliable , minimum bugs , the faster the better. (Oh , and it should make coffee :) )
0
69,835
09/16/2008 06:35:37
4,884
09/06/2008 10:28:40
43
4
How do I use Nant/Ant naming patterns?
I have to admit that I always forgot the syntactical intracacies of the naming patterns for Nant (eg. those used in filesets). The double asterisk/single asterisk stuff seems to be very forgettable in my mind. Can someone provide a definitive guide to the naming patterns?
continuous-integration
ant
nant
null
null
null
open
How do I use Nant/Ant naming patterns? === I have to admit that I always forgot the syntactical intracacies of the naming patterns for Nant (eg. those used in filesets). The double asterisk/single asterisk stuff seems to be very forgettable in my mind. Can someone provide a definitive guide to the naming patterns?
0
69,837
09/16/2008 06:35:54
8,161
09/15/2008 15:17:47
1
1
What about a web site or a web page's structure would cause a visitor to return to the top of the previous page, instead of to the point in the page where the link resides?
I've seen this weird behavior on several sites recently: I scroll down a page and follow a link to another page. When I click the Back button and return, I am left back at the top of the previous page, not at the link. This is very annoying if I'm clicking on links in a search results page or a list of "10 Best Foo Bars...". See this page as an [example][1]. Strangely, the page works as expected in IE6, but not FF2 or FF3. Any idea what is causing this? [1]: http://www.typophile.com/forum/5
html
browser
weird
null
null
null
open
What about a web site or a web page's structure would cause a visitor to return to the top of the previous page, instead of to the point in the page where the link resides? === I've seen this weird behavior on several sites recently: I scroll down a page and follow a link to another page. When I click the Back button and return, I am left back at the top of the previous page, not at the link. This is very annoying if I'm clicking on links in a search results page or a list of "10 Best Foo Bars...". See this page as an [example][1]. Strangely, the page works as expected in IE6, but not FF2 or FF3. Any idea what is causing this? [1]: http://www.typophile.com/forum/5
0
69,843
09/16/2008 06:37:37
11,256
09/16/2008 06:37:37
1
0
"This" assignment in C#
Does anybody have useful example of "this" assignment inside a C# method? I have been asked for it once during job interview, and I am still interested in answer myself. Thank you!
c#
this
assignment
null
null
null
open
"This" assignment in C# === Does anybody have useful example of "this" assignment inside a C# method? I have been asked for it once during job interview, and I am still interested in answer myself. Thank you!
0
69,859
09/16/2008 06:40:20
11,234
09/16/2008 06:27:05
1
0
how could I intercept linux sys calls?
Besides the LD_PRELOAD trick , and Linux Kernel Modules that replace a certain syscall with one provided by you , is there any possibility to intercept a syscall ( open for example ) , so that it first goes through your function , before it reaches the actual open ?
c
linux
null
null
null
null
open
how could I intercept linux sys calls? === Besides the LD_PRELOAD trick , and Linux Kernel Modules that replace a certain syscall with one provided by you , is there any possibility to intercept a syscall ( open for example ) , so that it first goes through your function , before it reaches the actual open ?
0
69,871
09/16/2008 06:42:55
3,575
08/29/2008 06:54:39
41
4
Vim / vi Survival Guide
What are the essential vim commands? What does a new-user need to know to keep themselves from getting into trouble? Hopefully more than just how to exit.
vim
vi
null
null
null
null
open
Vim / vi Survival Guide === What are the essential vim commands? What does a new-user need to know to keep themselves from getting into trouble? Hopefully more than just how to exit.
0
69,890
09/16/2008 06:47:16
11,254
09/16/2008 06:36:58
1
0
Are there any noted differences in appearance rendering of html and xhtml in Google Chrome from other browsers?
Are there any noted differences in appearance rendering of html and xhtml in Google Chrome from Firefox? From IE? From other browsers/what browser does it render the code the most similar to?
html
browser
xhtml
google-chrome
null
null
open
Are there any noted differences in appearance rendering of html and xhtml in Google Chrome from other browsers? === Are there any noted differences in appearance rendering of html and xhtml in Google Chrome from Firefox? From IE? From other browsers/what browser does it render the code the most similar to?
0
69,907
09/16/2008 06:51:10
5,662
09/10/2008 17:55:42
108
5
What is your favourite 3rd party WinForms.Net graphing tool, and why?
I've used a couple over the years, but what is your favourite and why? One tool per answer please (to make the voting easier :o)
.net
winforms
graph
null
null
null
open
What is your favourite 3rd party WinForms.Net graphing tool, and why? === I've used a couple over the years, but what is your favourite and why? One tool per answer please (to make the voting easier :o)
0
69,913
09/16/2008 06:52:38
10,778
09/16/2008 01:48:10
54
11
<script> block
Do you know any reason, why browsers are not correctly recognize <script ... /> tag, but <script ...></script> only? Is it breaking concept of XHTML support. Note: This statement is correct at least for all IE(6-8 beta 2).
script
block
internet-explorer
xhtml
null
null
open
<script> block === Do you know any reason, why browsers are not correctly recognize <script ... /> tag, but <script ...></script> only? Is it breaking concept of XHTML support. Note: This statement is correct at least for all IE(6-8 beta 2).
0
69,917
09/16/2008 06:53:59
5,885
09/11/2008 15:03:17
101
4
How do you do paged lists in Java Server Faces?
I have a JSF application that I am converting over to use webservices instead of straight up database queries. There are some extremely long lists that *before* could be returned easily with a simple sql query. I'd like to figured out how implement the paging using JSF/web services. Is there a good design pattern for doing paged web services? If it matters, I'm currently using the Apache MyFaces reference implementation of JSF with the Tomahawk extensions.
java
web-services
jsf
paging
null
null
open
How do you do paged lists in Java Server Faces? === I have a JSF application that I am converting over to use webservices instead of straight up database queries. There are some extremely long lists that *before* could be returned easily with a simple sql query. I'd like to figured out how implement the paging using JSF/web services. Is there a good design pattern for doing paged web services? If it matters, I'm currently using the Apache MyFaces reference implementation of JSF with the Tomahawk extensions.
0
69,918
09/16/2008 06:54:00
11,170
09/16/2008 05:49:25
1
0
MS Access - what are the lowest required permissions for the backend file and for the folder containing it
I maintain an ms-access application splitted to frontend and backend files. The frontend file is in the users conputers. The backend file is in a shared folder in the server. What is the lowest permissions required? can I give some of the users only read-only permissions in that folder? (or hide it from them in some other way) but still enable them to view the data?
ms-access
null
null
null
null
null
open
MS Access - what are the lowest required permissions for the backend file and for the folder containing it === I maintain an ms-access application splitted to frontend and backend files. The frontend file is in the users conputers. The backend file is in a shared folder in the server. What is the lowest permissions required? can I give some of the users only read-only permissions in that folder? (or hide it from them in some other way) but still enable them to view the data?
0
69,923
09/16/2008 06:54:50
4,213
09/02/2008 11:02:12
1,198
67
Stored procedures reverse engineering
We're having problem with a huge number of legacy stored procedures at work. Do you guys recommend any tool the can help better understand those procedures? Some kind of reverse engineering that indentifies inter-procedure dependencies and/or procedure vs. tables dependencies. Can be a free or commercial tool. Thanks!
database
stored-procedures
legacy
reverse-engineering
null
null
open
Stored procedures reverse engineering === We're having problem with a huge number of legacy stored procedures at work. Do you guys recommend any tool the can help better understand those procedures? Some kind of reverse engineering that indentifies inter-procedure dependencies and/or procedure vs. tables dependencies. Can be a free or commercial tool. Thanks!
0
69,927
09/16/2008 06:55:28
10,433
09/15/2008 23:06:36
43
5
Best way for a Swing GUI to communicate with domain logic?
I have some domain logic implemented in a number of POJOs. I want to write a Swing user interface to allow the user to initiate and see the results of various domain actions. What's the best pattern/framework/library for communications between the UI and the domain? This boils down into: - the UI being able to convert a user gesture into a domain action - the domain being able to send state/result information back to the UI for display purposes I'm aware of MVC as a broad concept and have fiddled with the Observer pattern (whose Java implementation has some drawbacks if I understand correctly), but I'm wondering if there's an accepted best practise for this problem?
java
gui
swing
null
null
null
open
Best way for a Swing GUI to communicate with domain logic? === I have some domain logic implemented in a number of POJOs. I want to write a Swing user interface to allow the user to initiate and see the results of various domain actions. What's the best pattern/framework/library for communications between the UI and the domain? This boils down into: - the UI being able to convert a user gesture into a domain action - the domain being able to send state/result information back to the UI for display purposes I'm aware of MVC as a broad concept and have fiddled with the Observer pattern (whose Java implementation has some drawbacks if I understand correctly), but I'm wondering if there's an accepted best practise for this problem?
0
69,928
09/16/2008 06:55:35
952
08/11/2008 00:37:15
537
29
WPF: Org Chart TreeView Conditional Formatting
The company has the traditional complex organizational structure, defining the amount of levels using the letter 'n' rather than an actual number. I will try and express the structure I'm trying to achieve in mono-spaced font: Alice ,--------|-------,------,------, Bob Fred Jack Kim Lucy | | Charlie Greg Darren Henry Eric As you can see it's not symmetrical, as Jack, Kim and Lucy report to Alice but have no reports of their own. Using a `TreeView` with an `ItemsPanel` containing a `StackPanel` and `Orientation="Horizontal"` is [easy enough][1], but this can result in a very large `TreeView` once some people have 20 others reporting to them! You can [also use][2] `Triggers` to peek into whether a `TreeViewItem` has children with `Property="TreeViewItem.HasItems"`, but this is not in the same context as the before-mentioned `ItemsPanel`. *Eg: I can tell that Fred has reports, but not whether they have reports of their own.* So, can you conditionally format `TreeViewItems` to be Vertical if they have no children of their own? [1]: http://www.codeproject.com/KB/WPF/CustomTreeViewLayout.aspx [2]: http://www.codeproject.com/KB/WPF/AdvancedCustomTreeViewLyt.aspx
wpf
xaml
null
null
null
null
open
WPF: Org Chart TreeView Conditional Formatting === The company has the traditional complex organizational structure, defining the amount of levels using the letter 'n' rather than an actual number. I will try and express the structure I'm trying to achieve in mono-spaced font: Alice ,--------|-------,------,------, Bob Fred Jack Kim Lucy | | Charlie Greg Darren Henry Eric As you can see it's not symmetrical, as Jack, Kim and Lucy report to Alice but have no reports of their own. Using a `TreeView` with an `ItemsPanel` containing a `StackPanel` and `Orientation="Horizontal"` is [easy enough][1], but this can result in a very large `TreeView` once some people have 20 others reporting to them! You can [also use][2] `Triggers` to peek into whether a `TreeViewItem` has children with `Property="TreeViewItem.HasItems"`, but this is not in the same context as the before-mentioned `ItemsPanel`. *Eg: I can tell that Fred has reports, but not whether they have reports of their own.* So, can you conditionally format `TreeViewItems` to be Vertical if they have no children of their own? [1]: http://www.codeproject.com/KB/WPF/CustomTreeViewLayout.aspx [2]: http://www.codeproject.com/KB/WPF/AdvancedCustomTreeViewLyt.aspx
0
69,930
09/16/2008 06:56:13
8,056
09/15/2008 15:03:37
1
0
Hidden Markhov Models
I want to get started on HMM's, but don't know how to go about it. Can people here, give me some basic pointers, where to look? More than just the theory, I like to do a lot of hands-on. So, would prefer resources, where I can write small code snippets to check my learning, rather than just dry text. Will be hoping to see some replies. cheers, R
hiddenmarkhovmodels
statemachines
null
null
null
null
open
Hidden Markhov Models === I want to get started on HMM's, but don't know how to go about it. Can people here, give me some basic pointers, where to look? More than just the theory, I like to do a lot of hands-on. So, would prefer resources, where I can write small code snippets to check my learning, rather than just dry text. Will be hoping to see some replies. cheers, R
0
69,934
09/16/2008 06:57:34
680
08/07/2008 17:29:04
799
19
Set 4 Space Indent in Emacs in Text Mode
I've been unsuccessful in getting Emacs to switch from 8 space tabs to 4 space tabs when I'm using Text mode. I've tried to edit my .emacs file to: (setq-default indent-tabs-mode nil) (setq-default tab-width 4) No matter how I change my .emacs file (or my buffer's local variables) the tab button always does the same thing. 1. If there is no text above, indent **8** spaces 2. If there is text on the previous line, indent to the beginning of the second word As much as I love Emacs this is getting annoying. Is there a way to make Emacs to at least indent 4 space when there's not text in the previous line?
emacs
indent
null
null
null
null
open
Set 4 Space Indent in Emacs in Text Mode === I've been unsuccessful in getting Emacs to switch from 8 space tabs to 4 space tabs when I'm using Text mode. I've tried to edit my .emacs file to: (setq-default indent-tabs-mode nil) (setq-default tab-width 4) No matter how I change my .emacs file (or my buffer's local variables) the tab button always does the same thing. 1. If there is no text above, indent **8** spaces 2. If there is text on the previous line, indent to the beginning of the second word As much as I love Emacs this is getting annoying. Is there a way to make Emacs to at least indent 4 space when there's not text in the previous line?
0
69,959
09/16/2008 07:02:50
5,385
09/09/2008 12:00:26
11
2
PostgreSQL DbLink Compilation on Solaris 10
After successfully building dblink on solaris 10 using Sun C 5.9 SunOS_sparc 2007/05/03 and gmake. I ran gmake installcheck and got the following output: ========== running regression test queries ========== test dblink ... FAILED ====================== 1 of 1 tests failed. The differences that caused some tests to fail can be viewed in the file "./regression.diffs". A copy of the test summary that you see above is saved in the file "./regression.out". First error in regression.diffs file: > psql:dblink.sql:11: ERROR: could not load library "/apps/postgresql/ lib/dblink.so": ld.so.1: postgre s: fatal: relocation error: file /apps/postgresql/lib/dblink.so: symbol PG_GETARG_TEXT_PP: referenced symbol not found I am running postgreSQL version 8.2.4 with the latest dblink source. Has anyone got any idea what I need to do to solve this problem. Thanks.
postgresql
dblink
null
null
null
null
open
PostgreSQL DbLink Compilation on Solaris 10 === After successfully building dblink on solaris 10 using Sun C 5.9 SunOS_sparc 2007/05/03 and gmake. I ran gmake installcheck and got the following output: ========== running regression test queries ========== test dblink ... FAILED ====================== 1 of 1 tests failed. The differences that caused some tests to fail can be viewed in the file "./regression.diffs". A copy of the test summary that you see above is saved in the file "./regression.out". First error in regression.diffs file: > psql:dblink.sql:11: ERROR: could not load library "/apps/postgresql/ lib/dblink.so": ld.so.1: postgre s: fatal: relocation error: file /apps/postgresql/lib/dblink.so: symbol PG_GETARG_TEXT_PP: referenced symbol not found I am running postgreSQL version 8.2.4 with the latest dblink source. Has anyone got any idea what I need to do to solve this problem. Thanks.
0
69,979
09/16/2008 07:07:42
11,324
09/16/2008 07:07:42
1
0
Can I implement a web user authentication system in python without POST?
My university doesn't support the POST cgi method (I know, it's crazy), and I was hoping to be able to have a system where a user can have a username and password and log in securely. Is this even possible? If it's not, how would you do it with POST? Just out of curiosity. Cheers!
python
authentication
cgi
null
null
null
open
Can I implement a web user authentication system in python without POST? === My university doesn't support the POST cgi method (I know, it's crazy), and I was hoping to be able to have a system where a user can have a username and password and log in securely. Is this even possible? If it's not, how would you do it with POST? Just out of curiosity. Cheers!
0
69,982
09/16/2008 07:08:05
10,078
09/15/2008 21:06:11
11
12
Writing a Firefox plugin for parsing a custom client-side language
I had an idea for a client-side language other than JavaScript, and I'd like to look into developing a Firefox plugin that would treat includes of this new language in a page, like &lt;script type="newscript" src="path/script.ns" />, just as if it were a natively supported language. The plugin would do all of the language parsing and ideally be able to perform every operation on the browser and the html and css within the web page just as JavaScript can. I've done a bunch of Googling and have found some articles on writing basic Firefox plugins, but nothing as complicated as this. Is this even possible?
firefox
custom-language
firefox-plugin
language-parsing
null
null
open
Writing a Firefox plugin for parsing a custom client-side language === I had an idea for a client-side language other than JavaScript, and I'd like to look into developing a Firefox plugin that would treat includes of this new language in a page, like &lt;script type="newscript" src="path/script.ns" />, just as if it were a natively supported language. The plugin would do all of the language parsing and ideally be able to perform every operation on the browser and the html and css within the web page just as JavaScript can. I've done a bunch of Googling and have found some articles on writing basic Firefox plugins, but nothing as complicated as this. Is this even possible?
0
70,004
09/16/2008 07:13:03
11,333
09/16/2008 07:13:03
1
0
Using Lisp in C#
As a lot of ppl pointed out in [this question][1], Lisp is mostly used as a learning expirience. Nevertheless, it would be great if I could somehow use my Lisp algorithms and combine them with my C# programs. In college my profs never could tell me how to use my Lisp routines in a program (no, not writing a GUI in Lisp, thank you). So how can I? [1]: http://stackoverflow.com/questions/4724/learning-lisp-why
lisp
c#
null
null
null
null
open
Using Lisp in C# === As a lot of ppl pointed out in [this question][1], Lisp is mostly used as a learning expirience. Nevertheless, it would be great if I could somehow use my Lisp algorithms and combine them with my C# programs. In college my profs never could tell me how to use my Lisp routines in a program (no, not writing a GUI in Lisp, thank you). So how can I? [1]: http://stackoverflow.com/questions/4724/learning-lisp-why
0
70,013
09/16/2008 07:15:43
11,234
09/16/2008 06:27:05
3
2
how to detect if I'm compiling code under visual studio 8?
Is there any way to know if I'm compiling under Microsoft Visual Studio 2008 ?
c++
visual-studio
null
null
null
null
open
how to detect if I'm compiling code under visual studio 8? === Is there any way to know if I'm compiling under Microsoft Visual Studio 2008 ?
0
70,047
09/16/2008 07:23:08
10,934
09/16/2008 03:06:41
1
1
How to programmatically normalize music tags?
Suppose I have a large and legal collection of music that has been inconsistently tagged. I want to normalise a single field, eg Artist, so that, for example, the following artists all become the one artists: - the Grateful Dead - the gratefull dead - grateful dead - grateful dead, The So... should I be looking at trying to match against a large database like freedb, or is there some lower-level string-manipulation approach, etc? I have tried hand-rolling code to do string-similarity checks, and then try and match these to high-frequency data in freedb, with limited success. Any more ideas?
music
null
null
null
null
null
open
How to programmatically normalize music tags? === Suppose I have a large and legal collection of music that has been inconsistently tagged. I want to normalise a single field, eg Artist, so that, for example, the following artists all become the one artists: - the Grateful Dead - the gratefull dead - grateful dead - grateful dead, The So... should I be looking at trying to match against a large database like freedb, or is there some lower-level string-manipulation approach, etc? I have tried hand-rolling code to do string-similarity checks, and then try and match these to high-frequency data in freedb, with limited success. Any more ideas?
0
70,053
09/16/2008 07:24:25
7,122
09/15/2008 13:12:51
1
1
Is there a cross-language TDD solution?
I want to write a simple colour management framework in C#, Java and AS3. I only want to write the unit tests once though, rather than recreating the unit tests in JUnit, FlexUnit and say NUnit. I have in mind the idea of say an xml file that defines manipulations of "instance" and assertions based on the state of "instance" via setup, teardown and a set tests. Then to have a utility that can convert that XML into xUnit code, for an arbitrary number of xUnits. Before I start wasting time developing such a solution though, I want to make sure no similar solution already exists.
tdd
cross-language
null
null
null
null
open
Is there a cross-language TDD solution? === I want to write a simple colour management framework in C#, Java and AS3. I only want to write the unit tests once though, rather than recreating the unit tests in JUnit, FlexUnit and say NUnit. I have in mind the idea of say an xml file that defines manipulations of "instance" and assertions based on the state of "instance" via setup, teardown and a set tests. Then to have a utility that can convert that XML into xUnit code, for an arbitrary number of xUnits. Before I start wasting time developing such a solution though, I want to make sure no similar solution already exists.
0
70,072
09/16/2008 07:29:04
4,491
09/04/2008 06:44:23
381
10
When should you use java stored procedures with an Oracle database ... what are the drawbacks?
PL/SQL is not my native tongue. Oracle supports writing stored procedures in Java. What are the advantages of doing this over writing the stored procedures in PL/SQL
java
oracle
stored-procedures
plsql
null
06/04/2012 13:34:16
not constructive
When should you use java stored procedures with an Oracle database ... what are the drawbacks? === PL/SQL is not my native tongue. Oracle supports writing stored procedures in Java. What are the advantages of doing this over writing the stored procedures in PL/SQL
4
70,074
09/16/2008 07:29:10
11,284
09/16/2008 06:50:26
1
0
Ruby exception inheritance with dynamically generated classes
I'm new to Ruby, so I'm having some trouble understanding this weird exception problem I'm having. I'm using the ruby-aaws gem to access Amazon ECS: <http://www.caliban.org/ruby/ruby-aws/>. This defines an class Amazon::AWS:Error: module Amazon # All dynamically generated exceptions occur within this namespace. # module Error # An exception generator class. # class AWSError attr_reader :exception def initialize(xml) err_class = xml.elements['Code'].text.sub( /^AWS.*\./, '' ) err_msg = xml.elements['Message'].text unless Amazon::AWS::Error.const_defined?( err_class ) Amazon::AWS::Error.const_set( err_class, Class.new( StandardError ) ) end ex_class = Amazon::AWS::Error.const_get( err_class ) @exception = ex_class.new( err_msg ) end end end end This means that if you get an errorcode like `AWS.InvalidParameterValue`, this will produce (in its exception variable) a new class `Amazon::AWS::Error::InvalidParameterValue` which is a subclass of `StandardError`. Now here's where it gets weird. I have some code that looks like this: begin do_aws_stuff rescue Amazon::AWS::Error => error puts "Got an AWS error" end Now, if `do_aws_stuff` throws a `NameError`, my rescue block gets triggered. It seems that Amazon::AWS::Error isn't the superclass of the generated error - I guess since it's a module everything is a subclass of it? Certainly if I do: irb(main):007:0> NameError.new.kind_of?(Amazon::AWS::Error) => true It says `true`, which I find confusing, especially given this: irb(main):009:0> NameError.new.kind_of?(Amazon::AWS) => false What's going on, and how am I supposed to separate out AWS errors from other type of errors? Should I do something like: begin do_aws_stuff rescue => error if error.class.to_s =~ /^Amazon::AWS::Error/ puts "Got an AWS error" else raise error end end That seems exceptionally janky.
ruby
exception
metaprogramming
null
null
null
open
Ruby exception inheritance with dynamically generated classes === I'm new to Ruby, so I'm having some trouble understanding this weird exception problem I'm having. I'm using the ruby-aaws gem to access Amazon ECS: <http://www.caliban.org/ruby/ruby-aws/>. This defines an class Amazon::AWS:Error: module Amazon # All dynamically generated exceptions occur within this namespace. # module Error # An exception generator class. # class AWSError attr_reader :exception def initialize(xml) err_class = xml.elements['Code'].text.sub( /^AWS.*\./, '' ) err_msg = xml.elements['Message'].text unless Amazon::AWS::Error.const_defined?( err_class ) Amazon::AWS::Error.const_set( err_class, Class.new( StandardError ) ) end ex_class = Amazon::AWS::Error.const_get( err_class ) @exception = ex_class.new( err_msg ) end end end end This means that if you get an errorcode like `AWS.InvalidParameterValue`, this will produce (in its exception variable) a new class `Amazon::AWS::Error::InvalidParameterValue` which is a subclass of `StandardError`. Now here's where it gets weird. I have some code that looks like this: begin do_aws_stuff rescue Amazon::AWS::Error => error puts "Got an AWS error" end Now, if `do_aws_stuff` throws a `NameError`, my rescue block gets triggered. It seems that Amazon::AWS::Error isn't the superclass of the generated error - I guess since it's a module everything is a subclass of it? Certainly if I do: irb(main):007:0> NameError.new.kind_of?(Amazon::AWS::Error) => true It says `true`, which I find confusing, especially given this: irb(main):009:0> NameError.new.kind_of?(Amazon::AWS) => false What's going on, and how am I supposed to separate out AWS errors from other type of errors? Should I do something like: begin do_aws_stuff rescue => error if error.class.to_s =~ /^Amazon::AWS::Error/ puts "Got an AWS error" else raise error end end That seems exceptionally janky.
0
70,090
09/16/2008 07:34:01
11,384
09/16/2008 07:31:44
1
0
visually customize autocomplete in Wicket
How can I visually customize autocomplete fields in Wicket (change colors, fonts, etc.)?
autocomplete
wicket
null
null
null
null
open
visually customize autocomplete in Wicket === How can I visually customize autocomplete fields in Wicket (change colors, fonts, etc.)?
0
70,098
09/16/2008 07:35:55
4,422
09/03/2008 16:18:24
1
0
Is it bad to load many managed DLL's without using any types in them?
Background: At my company we are developing a bunch applications that are using the same core dll's. These dll's are using Spring.net's IoC-container to wire things up (auto-wiring). All applications are using the same spring configuration file, and this configuration file points to many classes in many different dll's. But not all application needs functionality from every dll. But because of the way IoC-containers works, all dll's is loaded for Spring.net to examine the types and check what interfaces they implement and so on. Core question: I understand that it's better to just load the dll's you really use. But is it really bad for memory usage just to load a managed dll? Or is it first then you are using classes in the dll and they are getting JIT'ed that the most memory are used?
c#
.net
dll
inversion-of-control
spring.net
null
open
Is it bad to load many managed DLL's without using any types in them? === Background: At my company we are developing a bunch applications that are using the same core dll's. These dll's are using Spring.net's IoC-container to wire things up (auto-wiring). All applications are using the same spring configuration file, and this configuration file points to many classes in many different dll's. But not all application needs functionality from every dll. But because of the way IoC-containers works, all dll's is loaded for Spring.net to examine the types and check what interfaces they implement and so on. Core question: I understand that it's better to just load the dll's you really use. But is it really bad for memory usage just to load a managed dll? Or is it first then you are using classes in the dll and they are getting JIT'ed that the most memory are used?
0
70,109
09/16/2008 07:38:48
9,024
09/15/2008 17:31:41
1
0
DropDownList doesn't postback on SelectedIndexChanged
I'm writing an ASP.Net webform with some DropDownList controls on it. Then user changes selected item in one of dropdowns, ASP.Net doesn't seem to handle SelectedIndexChanged event until form is submitted with a 'Submit' button click. How do I make my dropdowns handle SelectedIndexChanged instantly? P.S. It's a classic question I have answered too many times, but it seems no one asked it before on stackoverflow.
asp.net
drop-down-menu
null
null
null
null
open
DropDownList doesn't postback on SelectedIndexChanged === I'm writing an ASP.Net webform with some DropDownList controls on it. Then user changes selected item in one of dropdowns, ASP.Net doesn't seem to handle SelectedIndexChanged event until form is submitted with a 'Submit' button click. How do I make my dropdowns handle SelectedIndexChanged instantly? P.S. It's a classic question I have answered too many times, but it seems no one asked it before on stackoverflow.
0
70,120
09/16/2008 07:40:03
11,403
09/16/2008 07:40:03
1
0
Which text/code editor on Linux is most similar to TextMate?
I'm using TextMate on Mac OS X, which I am very happy with, but I would also like a nice editor on my Ubuntu box. So I have been looking for something like TextMate, which is very simplistic in its interface but very powerful beneath that surface, with a plugin system and all. Is there any similar editor for Linux?
linux
editor
textmate
null
null
null
open
Which text/code editor on Linux is most similar to TextMate? === I'm using TextMate on Mac OS X, which I am very happy with, but I would also like a nice editor on my Ubuntu box. So I have been looking for something like TextMate, which is very simplistic in its interface but very powerful beneath that surface, with a plugin system and all. Is there any similar editor for Linux?
0
70,123
09/16/2008 07:40:18
11,355
09/16/2008 07:22:17
1
0
Re-using soft deleted records
If I have a table structure that is: code+description+isdeleted where code is the primary key. The user creates a record, then later on deletes it. Because I am using soft deletes the isdeleted will be set to true. Then in my queries I would be doing a select with the where clause: and not isdeleted Now if a user goes to create a new record they may see that code 'ABC' doesn't exist so they tried to recreate it. The select statement won't find it because of the where clause. But there will be a primary key index error. Should the user be allowed to re-use the record? I would think not since the idea of the soft delete is to keep the record for queries on older data s that joins to the 'deleted' record still work. If the user was allowed to re-use the code then they could change the description which might change the view of the historical data. But is it too harsh to stop them from using that code at all? Or should I be using a completely hidden primary key and then the 'code' field can be re-used?
deletion
soft
null
null
null
null
open
Re-using soft deleted records === If I have a table structure that is: code+description+isdeleted where code is the primary key. The user creates a record, then later on deletes it. Because I am using soft deletes the isdeleted will be set to true. Then in my queries I would be doing a select with the where clause: and not isdeleted Now if a user goes to create a new record they may see that code 'ABC' doesn't exist so they tried to recreate it. The select statement won't find it because of the where clause. But there will be a primary key index error. Should the user be allowed to re-use the record? I would think not since the idea of the soft delete is to keep the record for queries on older data s that joins to the 'deleted' record still work. If the user was allowed to re-use the code then they could change the description which might change the view of the historical data. But is it too harsh to stop them from using that code at all? Or should I be using a completely hidden primary key and then the 'code' field can be re-used?
0
70,124
09/16/2008 07:40:19
4,491
09/04/2008 06:44:23
381
10
How do you find your way around a new codebase
You don't always get to talk to the original author or authors of the code you maintain. Sometimes when I work on an existing project I feel like a special forces operative behind enemy lines trying to figure out the lay of the land without the use of a map. When you are in this situation how do you get the code under control? How do you: 1. find out how things work 1. understand the mindset of the previous authors So many times I hear other developers say well this just needs to be rewritten that can't always be the answer. What is yours?
refactoring
null
null
null
null
null
open
How do you find your way around a new codebase === You don't always get to talk to the original author or authors of the code you maintain. Sometimes when I work on an existing project I feel like a special forces operative behind enemy lines trying to figure out the lay of the land without the use of a map. When you are in this situation how do you get the code under control? How do you: 1. find out how things work 1. understand the mindset of the previous authors So many times I hear other developers say well this just needs to be rewritten that can't always be the answer. What is yours?
0
70,140
09/16/2008 07:43:07
10,841
09/16/2008 02:16:24
1
0
What does an 'M' in an IMAP message filename mean?
I'm cleaning up some old IMAP folders, and finding messages with names like: 1095812260.M625118P61205V0300FF04I002DC537_0.redoak.cise.ufl.edu,S=2576:2,ST Since they don't show up in my mail client, I presume it's some semaphore indicating the message already got moved somewhere else. Is that the case, and can the files be deleted without remorse?
imap
null
null
null
null
null
open
What does an 'M' in an IMAP message filename mean? === I'm cleaning up some old IMAP folders, and finding messages with names like: 1095812260.M625118P61205V0300FF04I002DC537_0.redoak.cise.ufl.edu,S=2576:2,ST Since they don't show up in my mail client, I presume it's some semaphore indicating the message already got moved somewhere else. Is that the case, and can the files be deleted without remorse?
0
70,143
09/16/2008 07:43:49
716
08/08/2008 06:57:38
366
31
Merge multiple xslt stylesheets
I have a xslt stylesheet with multiple `xml:import`'s and I want to merge them all into the one xslt file. Are there any tools out there which can do this?
xslt
null
null
null
null
null
open
Merge multiple xslt stylesheets === I have a xslt stylesheet with multiple `xml:import`'s and I want to merge them all into the one xslt file. Are there any tools out there which can do this?
0
70,150
09/16/2008 07:44:52
1,242
08/13/2008 17:33:46
797
53
What attributes help runtime .Net performance?
I am looking for attributes I can use to ensure the best runtime performance for my .Net application by giving hints to the loader, JIT compiler or ngen. For example we have [DebuggableAttribute][1] which should be set to not debug and not disable optimization for optimal performance. [Debuggable(false, false)] Are there any others I should know about? [1]: http://msdn.microsoft.com/en-us/library/k2wxda47.aspx [2]: http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.methodimplattribute.aspx
.net
performance
runtime
null
null
null
open
What attributes help runtime .Net performance? === I am looking for attributes I can use to ensure the best runtime performance for my .Net application by giving hints to the loader, JIT compiler or ngen. For example we have [DebuggableAttribute][1] which should be set to not debug and not disable optimization for optimal performance. [Debuggable(false, false)] Are there any others I should know about? [1]: http://msdn.microsoft.com/en-us/library/k2wxda47.aspx [2]: http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.methodimplattribute.aspx
0
70,159
09/16/2008 07:47:21
11,372
09/16/2008 07:29:09
1
0
What is the best source to learn C++?
What is the best source to learn C++ for a C programmer.
c++
null
null
null
null
09/07/2011 22:36:05
not constructive
What is the best source to learn C++? === What is the best source to learn C++ for a C programmer.
4
70,161
09/16/2008 07:47:36
11,414
09/16/2008 07:47:36
1
0
How to read values from numbers written as words?
As wel all know numbers can be written either in numerics, or called by their names. While there are a lot of examples to be found that convert 123 into one hundred twenty three, I could not find good examples of how to convert it the other way around. Some of the caveats: There are also at least two kinds of number-words, cardinal and orginal, seven and seventh. Sometimes 1100 is written as eleven hundred, and not one thousand and one hundred. Suppose the algorithm needs to be very robust, and understand even spelling mistakes. What fields/papers/studies/algorithms should I read to learn how to write all this? Where is the information?
parsing
numbers
algorithms
nlp
str2int
null
open
How to read values from numbers written as words? === As wel all know numbers can be written either in numerics, or called by their names. While there are a lot of examples to be found that convert 123 into one hundred twenty three, I could not find good examples of how to convert it the other way around. Some of the caveats: There are also at least two kinds of number-words, cardinal and orginal, seven and seventh. Sometimes 1100 is written as eleven hundred, and not one thousand and one hundred. Suppose the algorithm needs to be very robust, and understand even spelling mistakes. What fields/papers/studies/algorithms should I read to learn how to write all this? Where is the information?
0