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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27,482 | 08/26/2008 06:24:16 | 2,450 | 08/22/2008 11:13:30 | 36 | 4 | Latex=>PDF Rightsmanagement | Im currently writing my bachelor thesis with latex and using TexnicCenter. I want to be able to send my generated pdf file to people and they should be able to write comments.
It seems like commenting is not allowed by default, how do I change this? | latex | pdf | rightsmanagement | texniccenter | comments | null | open | Latex=>PDF Rightsmanagement
===
Im currently writing my bachelor thesis with latex and using TexnicCenter. I want to be able to send my generated pdf file to people and they should be able to write comments.
It seems like commenting is not allowed by default, how do I change this? | 0 |
27,492 | 08/26/2008 06:50:32 | 2,450 | 08/22/2008 11:13:30 | 36 | 4 | C++ Memory management | I've learned in College that you always have to free your unused Objects but not how you actually do it. For example structuring your code right and so on.
Are there any general rules on how to handle pointers in C++?
| c++ | memory | management | pointers | null | null | open | C++ Memory management
===
I've learned in College that you always have to free your unused Objects but not how you actually do it. For example structuring your code right and so on.
Are there any general rules on how to handle pointers in C++?
| 0 |
27,499 | 08/26/2008 07:04:21 | 116 | 08/02/2008 05:51:57 | 3,887 | 205 | Database: What is Multiversion Concurrency Control (MVCC) and which databases support it? | Recently Jeff has [posted][1] regarding his trouble with database deadlocks related to reading. Multiversion Concurrency Control claims to solve this problem. What is it, and what databases support it?
[1]: http://www.codinghorror.com/blog/archives/001166 | database | deadlock | null | null | null | null | open | Database: What is Multiversion Concurrency Control (MVCC) and which databases support it?
===
Recently Jeff has [posted][1] regarding his trouble with database deadlocks related to reading. Multiversion Concurrency Control claims to solve this problem. What is it, and what databases support it?
[1]: http://www.codinghorror.com/blog/archives/001166 | 0 |
27,506 | 08/26/2008 07:17:43 | 1,695 | 08/18/2008 02:49:06 | 116 | 17 | What motivates you more - individual rewards or team rewards? | There is a school of thought which says that any sort of individual rewarding promotes competition among team members at the expense of the team losing sight of the overall team focus/goal.
Although it sounds right.. I am curious as to how traditional organizations that have this in their DNA so to speak can adapt to this.
* So answer this question personally.
* Also chime with the method used at your workplace.
*The question is not about programming per se.. so if you're offended - vote it down to depths unknown.*
I think the major problems nowadays are non-technical (I'm DUI of peopleware.) I found a few similar questions tagged management so hence the post. | management | 8 | null | null | null | 03/01/2012 06:11:54 | not constructive | What motivates you more - individual rewards or team rewards?
===
There is a school of thought which says that any sort of individual rewarding promotes competition among team members at the expense of the team losing sight of the overall team focus/goal.
Although it sounds right.. I am curious as to how traditional organizations that have this in their DNA so to speak can adapt to this.
* So answer this question personally.
* Also chime with the method used at your workplace.
*The question is not about programming per se.. so if you're offended - vote it down to depths unknown.*
I think the major problems nowadays are non-technical (I'm DUI of peopleware.) I found a few similar questions tagged management so hence the post. | 4 |
27,509 | 08/26/2008 07:25:08 | 797 | 08/09/2008 02:14:04 | 323 | 16 | Detecting undefined variable in JavaScript | What's the best way of checking if a variable or object property in JavaScript is undefined? | javascript | null | null | null | null | null | open | Detecting undefined variable in JavaScript
===
What's the best way of checking if a variable or object property in JavaScript is undefined? | 0 |
27,532 | 08/26/2008 07:57:06 | 85 | 08/01/2008 16:38:08 | 66 | 0 | Generating gradients programatically? | Given 2 rgb colors and a rectangular area, I'd like to generate a basic linear gradient between the colors. I've done a quick search and the only thing I've been able to find is [this blog entry][1], but the example code seems to be missing, or at least it was as of this posting. Anything helps, algorithms, code examples, whatever. This will be written in java, but the display layer is already taken care of, I just need to figure out how to figure out what to display.
Thanks!
[1]: http://jtauber.com/blog/2008/05/18/creating_gradients_programmatically_in_python/ | rgb | colors | gradient | null | null | null | open | Generating gradients programatically?
===
Given 2 rgb colors and a rectangular area, I'd like to generate a basic linear gradient between the colors. I've done a quick search and the only thing I've been able to find is [this blog entry][1], but the example code seems to be missing, or at least it was as of this posting. Anything helps, algorithms, code examples, whatever. This will be written in java, but the display layer is already taken care of, I just need to figure out how to figure out what to display.
Thanks!
[1]: http://jtauber.com/blog/2008/05/18/creating_gradients_programmatically_in_python/ | 0 |
27,535 | 08/26/2008 07:59:57 | 1,865 | 08/19/2008 00:17:22 | 36 | 10 | ASP.Net AJAX and PageRequestManagerParserErrorException | Has anyone run into this error message before when using a timer on an ASP.Net page to update a datagrid every x seconds? Searching google yielded this [blog entry][1]
[1]: http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx
and many more but nothing that seems to apply to me yet. The full text of the error message below:
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
| ajaxtoolkit | asp.net | null | null | null | null | open | ASP.Net AJAX and PageRequestManagerParserErrorException
===
Has anyone run into this error message before when using a timer on an ASP.Net page to update a datagrid every x seconds? Searching google yielded this [blog entry][1]
[1]: http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx
and many more but nothing that seems to apply to me yet. The full text of the error message below:
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
| 0 |
27,559 | 08/26/2008 08:31:18 | 2,936 | 08/26/2008 08:25:14 | 1 | 0 | Do you have any recommended File templates for resharper for VB.Net | The ones that stick out and make life usefull.
| vb.net | resharper | template | null | null | null | open | Do you have any recommended File templates for resharper for VB.Net
===
The ones that stick out and make life usefull.
| 0 |
27,567 | 08/26/2008 08:40:28 | 1,662 | 08/17/2008 20:30:20 | 298 | 15 | Where can I learn more about PyPy's translation function? | I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world piece of code to something such as LLVM. Does such a thing exist? The official PyPy documentation on it just skims over the functionality, rather than providing anything I can try out myself. | python | translation | pypy | null | null | null | open | Where can I learn more about PyPy's translation function?
===
I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world piece of code to something such as LLVM. Does such a thing exist? The official PyPy documentation on it just skims over the functionality, rather than providing anything I can try out myself. | 0 |
27,568 | 08/26/2008 08:40:39 | 1,912 | 08/19/2008 14:07:17 | 400 | 24 | Assembler IDE/Simulator for beginner | I'd like to learn how to program in Assembler. I've done a bit of assembly before (during my A-Level Computing course) but that was very definitely a simplified 'pseudo-assembler'. I've borrowed my Dad's old Z80 Assembler reference manual, and that seems quite interesting so if possible I'd like to have a go with Z80 assembler.
However, I don't have a Z80 processor to hand, and would like to do it on my PC (I have windows or linux so either is good). I've found various assemblers around on the internet, but I'm not particularly interested in assembling down to a hex file, I want to just be able to assemble it to something that some kind of simulator on the PC can run. Preferably this simulator would show me the contents of all the registers, memory locations etc, and let me step through instructions. I've found a few bits of software that suggest they might do this - but they either refuse to compile, or don't seem to work properly. Has anyone got any suggestions? If there are good simulator/IDE things available for another type of assembler then I could try that instead (assuming there is a good online reference manual available). | assembler | simulator | null | null | null | null | open | Assembler IDE/Simulator for beginner
===
I'd like to learn how to program in Assembler. I've done a bit of assembly before (during my A-Level Computing course) but that was very definitely a simplified 'pseudo-assembler'. I've borrowed my Dad's old Z80 Assembler reference manual, and that seems quite interesting so if possible I'd like to have a go with Z80 assembler.
However, I don't have a Z80 processor to hand, and would like to do it on my PC (I have windows or linux so either is good). I've found various assemblers around on the internet, but I'm not particularly interested in assembling down to a hex file, I want to just be able to assemble it to something that some kind of simulator on the PC can run. Preferably this simulator would show me the contents of all the registers, memory locations etc, and let me step through instructions. I've found a few bits of software that suggest they might do this - but they either refuse to compile, or don't seem to work properly. Has anyone got any suggestions? If there are good simulator/IDE things available for another type of assembler then I could try that instead (assuming there is a good online reference manual available). | 0 |
27,570 | 08/26/2008 08:42:25 | 2,257 | 08/21/2008 11:26:12 | 549 | 51 | Find number of files in all subdirectories | Is there a way to find the number of files of a specific type without having to loop through all results inn a Directory.GetFiles() or similar method? I am looking for something like this:
int ComponentCount = MagicFindFileCount(@"c:\windows\system32", "*.dll");
I know that I can make a recursive function to call Directory.GetFiles , but it would be much cleaner if I could do this without all the iterating. | c# | recursion | file | null | null | null | open | Find number of files in all subdirectories
===
Is there a way to find the number of files of a specific type without having to loop through all results inn a Directory.GetFiles() or similar method? I am looking for something like this:
int ComponentCount = MagicFindFileCount(@"c:\windows\system32", "*.dll");
I know that I can make a recursive function to call Directory.GetFiles , but it would be much cleaner if I could do this without all the iterating. | 0 |
27,572 | 08/26/2008 08:43:37 | 2,844 | 08/25/2008 14:00:09 | 51 | 2 | JavaServiceWrapper on 64bit linux, any problems? | We've been using the 32bit linux version of the [JavaServiceWrapper](http://wrapper.tanukisoftware.org/) for quite a while now and it's working perfectly. We are now considering also using it on 64bit linux systems. There are downloads for 64bit binaries on the website, but looking into Makefile for the 64bit version I found the following comment, though:
# This makefile is in progess. It builds, but the resulting libwrapper.so does not yet work.
# If you know how to fix it then please help out.
Can anyone confirm, that this comment is just outdated and the resulting wrapper will work without flaws? | java | daemon | null | null | null | null | open | JavaServiceWrapper on 64bit linux, any problems?
===
We've been using the 32bit linux version of the [JavaServiceWrapper](http://wrapper.tanukisoftware.org/) for quite a while now and it's working perfectly. We are now considering also using it on 64bit linux systems. There are downloads for 64bit binaries on the website, but looking into Makefile for the 64bit version I found the following comment, though:
# This makefile is in progess. It builds, but the resulting libwrapper.so does not yet work.
# If you know how to fix it then please help out.
Can anyone confirm, that this comment is just outdated and the resulting wrapper will work without flaws? | 0 |
27,578 | 08/26/2008 08:45:56 | 797 | 08/09/2008 02:14:04 | 340 | 17 | When to choose checked and unchecked exceptions | In Java (or any other language with checked exceptions), when creating your own exception class, how do you decide whether it should be checked or unchecked?
My instinct is to say that a checked exception would be called for in cases where the caller might be able to recover in some productive way, where as an unchecked exception would be more for unrecoverable cases, but I'd be interested in other's thoughts. | java | exception | null | null | null | null | open | When to choose checked and unchecked exceptions
===
In Java (or any other language with checked exceptions), when creating your own exception class, how do you decide whether it should be checked or unchecked?
My instinct is to say that a checked exception would be called for in cases where the caller might be able to recover in some productive way, where as an unchecked exception would be more for unrecoverable cases, but I'd be interested in other's thoughts. | 0 |
27,581 | 08/26/2008 08:50:26 | 797 | 08/09/2008 02:14:04 | 340 | 17 | Overriding equals and hashCode in Java | What issues / pitfalls do I need to consider when overriding equals and hashCode in a java class? | java | null | null | null | null | null | open | Overriding equals and hashCode in Java
===
What issues / pitfalls do I need to consider when overriding equals and hashCode in a java class? | 0 |
27,598 | 08/26/2008 09:03:21 | 2,937 | 08/26/2008 08:25:36 | 1 | 1 | How can I make "jconsole" to work on Websphere 6.1? | I've deployed some Managed Beans on WebSphere 6.1 and I've managed to invoke them through a standalone client, but when I try to use the application "jconsole" distributed with the standard JDK can can't make it works.
Has anyone achieved to connect the jconsole with WAS 6.1? | java | jmx | mbeans | websphere | null | null | open | How can I make "jconsole" to work on Websphere 6.1?
===
I've deployed some Managed Beans on WebSphere 6.1 and I've managed to invoke them through a standalone client, but when I try to use the application "jconsole" distributed with the standard JDK can can't make it works.
Has anyone achieved to connect the jconsole with WAS 6.1? | 0 |
27,599 | 08/26/2008 09:04:19 | 2,951 | 08/26/2008 08:47:13 | 1 | 0 | 'Reliable' SMS Unicode Encoding in PHP | I'm not very experienced with internationalisation using PHP, it must be said, and a deal of searching didn't really provide the answers I was looking for.
I'm in need of working out a reliable way to convert only 'relevant' text to Unicode to send in an SMS message, using PHP (just temporarily, whilst a service is rewritten using C#) - obviously, messages sent at the moment are either sent as plain text, or encoded using the GSM 03.38 charset.
I could conceivably convert everything to the Unicode charset (as opposed to using the standard GSM charset), but that would mean that *all* messages would be limited to 70 characters (instead of 160).
So, I guess my real question is: *what is the most reliable way to detect the requirement for a message to be Unicode-encoded, so I only have to do it when it's ****absolutely necessary**** (e.g. for non-Latin-language characters)?* | php | unicode | internationalization | sms | gsm | null | open | 'Reliable' SMS Unicode Encoding in PHP
===
I'm not very experienced with internationalisation using PHP, it must be said, and a deal of searching didn't really provide the answers I was looking for.
I'm in need of working out a reliable way to convert only 'relevant' text to Unicode to send in an SMS message, using PHP (just temporarily, whilst a service is rewritten using C#) - obviously, messages sent at the moment are either sent as plain text, or encoded using the GSM 03.38 charset.
I could conceivably convert everything to the Unicode charset (as opposed to using the standard GSM charset), but that would mean that *all* messages would be limited to 70 characters (instead of 160).
So, I guess my real question is: *what is the most reliable way to detect the requirement for a message to be Unicode-encoded, so I only have to do it when it's ****absolutely necessary**** (e.g. for non-Latin-language characters)?* | 0 |
27,607 | 08/26/2008 09:10:27 | 2,150 | 08/20/2008 15:43:55 | 109 | 11 | Is this code an abuse of STL's find_if? | Let's say I have a list of server names stored in a vector, and I would like to contact them one at a time until one has successfully responded. I was thinking about using STL's find_if algorithm in the following way:
find_if(serverNames.begin(), serverNames.end(), ContactServer());
Where ContactServer is a predicate function object.
On one hand, there's a problem since the predicate will not always return the same result for the same server name (because of server downtime, network problems, etc...). However, the same result will be returned regardless of which copy of the predicate is used (*i.e.* the predicate has no real state), so the original problem with state-keeping predicates is not relevant in this case.
What do you say? | c++ | stl | null | null | null | null | open | Is this code an abuse of STL's find_if?
===
Let's say I have a list of server names stored in a vector, and I would like to contact them one at a time until one has successfully responded. I was thinking about using STL's find_if algorithm in the following way:
find_if(serverNames.begin(), serverNames.end(), ContactServer());
Where ContactServer is a predicate function object.
On one hand, there's a problem since the predicate will not always return the same result for the same server name (because of server downtime, network problems, etc...). However, the same result will be returned regardless of which copy of the predicate is used (*i.e.* the predicate has no real state), so the original problem with state-keeping predicates is not relevant in this case.
What do you say? | 0 |
27,610 | 08/26/2008 09:12:56 | 2,260 | 08/21/2008 11:39:22 | 102 | 9 | What is the recomended tutorial on tracing in C#? | I want to introduce some tracing to a C# application I am writing. Sadly, I can never really remember how it works and would like a tutorial with reference qualities to check up on every now and then. It should include:
- App.config / Web.config stuff to add for registering TraceListeners
- how to set it up in the calling application
Do you know the uber tutorial that we should link to? | c# | trace | null | null | null | null | open | What is the recomended tutorial on tracing in C#?
===
I want to introduce some tracing to a C# application I am writing. Sadly, I can never really remember how it works and would like a tutorial with reference qualities to check up on every now and then. It should include:
- App.config / Web.config stuff to add for registering TraceListeners
- how to set it up in the calling application
Do you know the uber tutorial that we should link to? | 0 |
27,621 | 08/26/2008 09:22:34 | 2,954 | 08/26/2008 08:53:06 | 1 | 1 | Unix shell file copy flattening folder structure | On the UNIX bash shell (specifically Mac OS X Leopard) what would be the simplest way to copy every file having a specific extension from a folder hierarchy (including subdirectories) to the same destination folder (without subfolders)?
Obviously there is the problem of having duplicates in the source hierarchy. I wouldn't mind if they are overwritten.
Example: I need to copy every .txt file in the following hierarchy
/foo/a.txt
/foo/x.jpg
/foo/bar/a.txt
/foo/bar/c.jpg
/foo/bar/b.txt
To a folder named 'dest' and get:
/dest/a.txt
/dest/b.txt
| shell | unix | macos | null | null | null | open | Unix shell file copy flattening folder structure
===
On the UNIX bash shell (specifically Mac OS X Leopard) what would be the simplest way to copy every file having a specific extension from a folder hierarchy (including subdirectories) to the same destination folder (without subfolders)?
Obviously there is the problem of having duplicates in the source hierarchy. I wouldn't mind if they are overwritten.
Example: I need to copy every .txt file in the following hierarchy
/foo/a.txt
/foo/x.jpg
/foo/bar/a.txt
/foo/bar/c.jpg
/foo/bar/b.txt
To a folder named 'dest' and get:
/dest/a.txt
/dest/b.txt
| 0 |
27,622 | 08/26/2008 09:22:40 | 1,630 | 08/17/2008 17:03:19 | 475 | 40 | How to enable the TRACE macro in Release mode? | The **[TRACE macro][1]** can be used to output diagnostic messages to the debugger when the code is compiled in **Debug** mode. I need the same messages while in **Release** mode. Is there a way to achieve this?
(Please do **not** waste your time discussing why I should not be using TRACE in Release mode :-)
[1]: http://msdn.microsoft.com/en-us/library/4wyz8787(VS.80).aspx | mfc | macros | trace | null | null | null | open | How to enable the TRACE macro in Release mode?
===
The **[TRACE macro][1]** can be used to output diagnostic messages to the debugger when the code is compiled in **Debug** mode. I need the same messages while in **Release** mode. Is there a way to achieve this?
(Please do **not** waste your time discussing why I should not be using TRACE in Release mode :-)
[1]: http://msdn.microsoft.com/en-us/library/4wyz8787(VS.80).aspx | 0 |
27,640 | 08/26/2008 09:37:52 | 2,958 | 08/26/2008 08:58:45 | 1 | 0 | Integrating Qt into legacy MFC applications | We currently maintain a suit of MFC applications that are fairly well designed, however the user interface is beginning to look tired and a lot of the code is in need quite a bit of refactoring to tidy up some duplication and/or performance problems. We make use of quite a few custom controls that handle all their own drawing (all written using MFC).
Recently I've been doing more research into Qt and the benefits it provides (cross-platform and supports what you might call a more "professional" looking framework for UI development).
My question is - **what would be the best approach to perhaps moving to the Qt framework**? Does Qt play nice with MFC? Would it be better to start porting some of our custom controls to Qt and gradually integrate more and more into our existing MFC apps? (is this possible?).
Any advice or previous experience is appreciated.
| c++ | mfc | qt | null | null | null | open | Integrating Qt into legacy MFC applications
===
We currently maintain a suit of MFC applications that are fairly well designed, however the user interface is beginning to look tired and a lot of the code is in need quite a bit of refactoring to tidy up some duplication and/or performance problems. We make use of quite a few custom controls that handle all their own drawing (all written using MFC).
Recently I've been doing more research into Qt and the benefits it provides (cross-platform and supports what you might call a more "professional" looking framework for UI development).
My question is - **what would be the best approach to perhaps moving to the Qt framework**? Does Qt play nice with MFC? Would it be better to start porting some of our custom controls to Qt and gradually integrate more and more into our existing MFC apps? (is this possible?).
Any advice or previous experience is appreciated.
| 0 |
27,643 | 08/26/2008 09:39:34 | 2,966 | 08/26/2008 09:13:05 | 1 | 0 | Is there a library for rendering basic flow diagrams in Javascript? | On a web page I want to dynamically render very basic flow diagrams, i.e. a few boxes joined by lines. Ideally the user could then click on one of these boxes (DIVs?) and be taken to a different page. Resorting to Flash seems like an overkill and the quality of Javascript graphing libraries suggests such a feat could be possible. | javascript | null | null | null | null | null | open | Is there a library for rendering basic flow diagrams in Javascript?
===
On a web page I want to dynamically render very basic flow diagrams, i.e. a few boxes joined by lines. Ideally the user could then click on one of these boxes (DIVs?) and be taken to a different page. Resorting to Flash seems like an overkill and the quality of Javascript graphing libraries suggests such a feat could be possible. | 0 |
27,655 | 08/26/2008 09:50:51 | 2,025 | 08/19/2008 20:59:50 | 802 | 99 | Cannot delete, a file with that name may already exist. | This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causing the blockage and I've narrowed it down to a file in wp-content.
Now when I try to delete this file I can get two errors. I've tried in Windowx Explorer (FTP) and the Web Control Panel's File Manager. Here's some error shots:
![Windows FTP][3]
![File manager][1]
As you can see my File manager thinks the file is a [Symbolic Link][2]. While it scares me that
my web server is host to an obviously religoious artifact I'm also heavily confused by the situation.
* I've tried renaming the file.
* I've refreshed the FTP view.
* I've tried moving the file to another dir (which worked, no success on deletion though).
* I've tried editing the file and then deletion.
And I'm at a loss. Is there a special way to delete SymLinks? I've never heard of them, until now.
## edit ##
Oho Windows you really are a magician of sorts. I decided to take a look at my FTP via command prompt and guess what? The file doesn't exist. Whether `ftp` ignores symlinks I don't know but I'm about to give up :P
![Command Prompt View][4]
[1]: http://i33.tinypic.com/28jxp0.jpg
[2]: http://en.wikipedia.org/wiki/Symbolic_link
[3]: http://i35.tinypic.com/4u9sud.jpg
[4]: http://i37.tinypic.com/1zve9vc.jpg | ftp | symlink | file | null | null | null | open | Cannot delete, a file with that name may already exist.
===
This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causing the blockage and I've narrowed it down to a file in wp-content.
Now when I try to delete this file I can get two errors. I've tried in Windowx Explorer (FTP) and the Web Control Panel's File Manager. Here's some error shots:
![Windows FTP][3]
![File manager][1]
As you can see my File manager thinks the file is a [Symbolic Link][2]. While it scares me that
my web server is host to an obviously religoious artifact I'm also heavily confused by the situation.
* I've tried renaming the file.
* I've refreshed the FTP view.
* I've tried moving the file to another dir (which worked, no success on deletion though).
* I've tried editing the file and then deletion.
And I'm at a loss. Is there a special way to delete SymLinks? I've never heard of them, until now.
## edit ##
Oho Windows you really are a magician of sorts. I decided to take a look at my FTP via command prompt and guess what? The file doesn't exist. Whether `ftp` ignores symlinks I don't know but I'm about to give up :P
![Command Prompt View][4]
[1]: http://i33.tinypic.com/28jxp0.jpg
[2]: http://en.wikipedia.org/wiki/Symbolic_link
[3]: http://i35.tinypic.com/4u9sud.jpg
[4]: http://i37.tinypic.com/1zve9vc.jpg | 0 |
27,663 | 08/26/2008 09:55:44 | 2,976 | 08/26/2008 09:42:25 | 1 | 0 | What kind of database refactoring tools are there? | I am looking for something to integrate to my CI workflow.
I've heard of dbdeploy (<http://dbdeploy.com/>) but I'm looking for something else. The reason I don't like dbdeploy is I don't want to install java on my server.
I would prefer of course that the solution doesn't involve stringing some shell scripts together. | databaserefactoring | refactoring | null | null | null | null | open | What kind of database refactoring tools are there?
===
I am looking for something to integrate to my CI workflow.
I've heard of dbdeploy (<http://dbdeploy.com/>) but I'm looking for something else. The reason I don't like dbdeploy is I don't want to install java on my server.
I would prefer of course that the solution doesn't involve stringing some shell scripts together. | 0 |
27,670 | 08/26/2008 10:01:56 | 1,178 | 08/13/2008 11:15:35 | 120 | 13 | Microsoft .Net framework 3.5 SP1 Setup Fails | On my Vista machine I cannot install the .Net framework 3.5 SP1. Setup ends few moments after ending the download of the required files, stating in the log that:
[08/26/08,09:46:11] Microsoft .NET Framework 2.0SP1 (CBS): [2] Error: Installation failed for component Microsoft .NET Framework 2.0SP1 (CBS). MSI returned error code 1
[08/26/08,09:46:13] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0SP1 (CBS) is not installed.
First thing I did was trying to install 2.0 SP1, but this time setup states that the "product is not supported on Vista system". Uhm.
The real big problem is that this setup fails also when it is called by the Visual Studio 2008 SP1.
Now, I searched the net for this, but I'm not finding a real solution... Any idea / hint? Did anybody have problems during SP1 install?
Thanks
| .net | framework | setup | null | null | null | open | Microsoft .Net framework 3.5 SP1 Setup Fails
===
On my Vista machine I cannot install the .Net framework 3.5 SP1. Setup ends few moments after ending the download of the required files, stating in the log that:
[08/26/08,09:46:11] Microsoft .NET Framework 2.0SP1 (CBS): [2] Error: Installation failed for component Microsoft .NET Framework 2.0SP1 (CBS). MSI returned error code 1
[08/26/08,09:46:13] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0SP1 (CBS) is not installed.
First thing I did was trying to install 2.0 SP1, but this time setup states that the "product is not supported on Vista system". Uhm.
The real big problem is that this setup fails also when it is called by the Visual Studio 2008 SP1.
Now, I searched the net for this, but I'm not finding a real solution... Any idea / hint? Did anybody have problems during SP1 install?
Thanks
| 0 |
27,674 | 08/26/2008 10:03:24 | 2,457 | 08/22/2008 11:36:41 | 1 | 0 | Dynamic top down list of controls in WindowsForms and C#? | In our project, [SharpWired][1], we're trying to create a download component similar to the download windows in Firefox or Safari. That is, one single top down list of downloads which are custom controls containing progress bars, buttons and what not.
The requirements are that there should be one single list, with one element on each row. Each element must be a custom control. The whole list should be dynamically re-sizable, so that when you make it longer / shorter the list adds a scroll bar when needed and when you make it thinner / wider the custom controls should resize to the width of the list.
We've tried using a `FlowLayoutPanel` but haven't gotten resizing to work the way we want to. Preferably we should only have to set anchoring of the custom controls to Left & Right. We've also thought about using a `TableLayoutPanel` but found adding rows dynamically to be a too big overhead so far.
This must be quite a common use case, and it seems a bit weird to me that the `FlowLayoutPanel` has no intuitive way of doing this. *Has anyone done something similar or have tips or tricks to get us under way?*
Cheers!
/Adam
[1]: http://http://sharpwired.sourceforge.net/ | c# | windowsforms | gui | windows | usercontrols | null | open | Dynamic top down list of controls in WindowsForms and C#?
===
In our project, [SharpWired][1], we're trying to create a download component similar to the download windows in Firefox or Safari. That is, one single top down list of downloads which are custom controls containing progress bars, buttons and what not.
The requirements are that there should be one single list, with one element on each row. Each element must be a custom control. The whole list should be dynamically re-sizable, so that when you make it longer / shorter the list adds a scroll bar when needed and when you make it thinner / wider the custom controls should resize to the width of the list.
We've tried using a `FlowLayoutPanel` but haven't gotten resizing to work the way we want to. Preferably we should only have to set anchoring of the custom controls to Left & Right. We've also thought about using a `TableLayoutPanel` but found adding rows dynamically to be a too big overhead so far.
This must be quite a common use case, and it seems a bit weird to me that the `FlowLayoutPanel` has no intuitive way of doing this. *Has anyone done something similar or have tips or tricks to get us under way?*
Cheers!
/Adam
[1]: http://http://sharpwired.sourceforge.net/ | 0 |
27,695 | 08/26/2008 10:20:41 | 1,870 | 08/19/2008 00:42:51 | 643 | 23 | How to "unversion" a file in either svn and/or git | It happens to me all the time. I accidentally version a file, I do not want to be versioned (i.e. developer/machine specific config-files).
If I commit this file, I will mess up the paths on all the other developer machines - they will be unhappy.
If I do delete the file from versioning, it will be deleted from the other developers machines - they will be unhappy.
I there f I choose to never commit the file, I always have a "dirty" checkout - I am unhappy.
Is a clean way to "unversion" a file from revision-control, that will result in no-one being unhappy? | svn | git | version-control | versioning | null | null | open | How to "unversion" a file in either svn and/or git
===
It happens to me all the time. I accidentally version a file, I do not want to be versioned (i.e. developer/machine specific config-files).
If I commit this file, I will mess up the paths on all the other developer machines - they will be unhappy.
If I do delete the file from versioning, it will be deleted from the other developers machines - they will be unhappy.
I there f I choose to never commit the file, I always have a "dirty" checkout - I am unhappy.
Is a clean way to "unversion" a file from revision-control, that will result in no-one being unhappy? | 0 |
27,697 | 08/26/2008 10:22:40 | 2,987 | 08/26/2008 10:22:40 | 1 | 0 | Starting out with Exchange Server development | We've written several Outlook Add-ins for various projects and have now been asked to look at writing a Exchange server add-in. We will need to inspect all incoming / outgoing msgs and tag / file them into a document management system. If it's a message that we are interested in we would ideally like to change the default icon that is displayed in Outlook. We could I guess settle for Categorising / colour coding the email but we've been asked for a icon.
Any guidance on how to get started / killer reference apps much appricaiated. Oh we will be needing to target both Exchange 2003 and 2007. vb.net is our bag but were fine with c# too.
Thanks in advance - liking the site thus far btw | vb.net | exchange | null | null | null | 04/18/2012 14:26:11 | not constructive | Starting out with Exchange Server development
===
We've written several Outlook Add-ins for various projects and have now been asked to look at writing a Exchange server add-in. We will need to inspect all incoming / outgoing msgs and tag / file them into a document management system. If it's a message that we are interested in we would ideally like to change the default icon that is displayed in Outlook. We could I guess settle for Categorising / colour coding the email but we've been asked for a icon.
Any guidance on how to get started / killer reference apps much appricaiated. Oh we will be needing to target both Exchange 2003 and 2007. vb.net is our bag but were fine with c# too.
Thanks in advance - liking the site thus far btw | 4 |
27,700 | 08/26/2008 10:24:10 | 1,578 | 08/16/2008 20:25:25 | 31 | 4 | C++ : Opening a file in non exclusive mode | I have to develop an application which parse a log file and send specific data to a server. It has to run on Linux and windows.
The problem appears when I want to test the log rolling system (which rename the log file in .1 and create a new one with the same name). On windows (not yet try on Linux) I can't rename a file that I have open with std::ifstream() (exclusive access?) even if I open it in "input mode" (ios::in).
Is there a way to open file in a non-exclusive way, is it cross platform?
Thanks for your help | c++ | windows | linux | filesystems | null | null | open | C++ : Opening a file in non exclusive mode
===
I have to develop an application which parse a log file and send specific data to a server. It has to run on Linux and windows.
The problem appears when I want to test the log rolling system (which rename the log file in .1 and create a new one with the same name). On windows (not yet try on Linux) I can't rename a file that I have open with std::ifstream() (exclusive access?) even if I open it in "input mode" (ios::in).
Is there a way to open file in a non-exclusive way, is it cross platform?
Thanks for your help | 0 |
27,711 | 08/26/2008 10:31:46 | 2,841 | 08/25/2008 13:38:48 | 6 | 0 | Total row count in Gridview using LinqDataSource and paging | I'm having a problem obtaining the total row count for items displayed in a Gridview using Paging and with a LinqDataSource as the source of data.
I've tried several approaches:
`
protected void GridDataSource_Selected(object sender, LinqDataSourceStatusEventArgs e)
{
totalLabel.Text = e.TotalRowCount.ToString();
}`
returns -1 every time.
`protected void LinqDataSource1_Selected(object sender, LinqDataSourceStatusEventArgs e)
{
System.Collections.Generic.List<country> lst = e.Result as System.Collections.Generic.List<country>;
int count = lst.Count;
}`
only gives me the count for the current page, and not the total.
Any other suggestions?
Thank in advance.
| c# | asp.net | linq | gridview | null | null | open | Total row count in Gridview using LinqDataSource and paging
===
I'm having a problem obtaining the total row count for items displayed in a Gridview using Paging and with a LinqDataSource as the source of data.
I've tried several approaches:
`
protected void GridDataSource_Selected(object sender, LinqDataSourceStatusEventArgs e)
{
totalLabel.Text = e.TotalRowCount.ToString();
}`
returns -1 every time.
`protected void LinqDataSource1_Selected(object sender, LinqDataSourceStatusEventArgs e)
{
System.Collections.Generic.List<country> lst = e.Result as System.Collections.Generic.List<country>;
int count = lst.Count;
}`
only gives me the count for the current page, and not the total.
Any other suggestions?
Thank in advance.
| 0 |
27,712 | 08/26/2008 10:31:53 | 214 | 08/03/2008 15:12:30 | 247 | 24 | What to charge for a simple website | A friend of a friend has asked me to build a very simple site (a few static pages and a forum which would be setting up and theming an existing forum technology) but I'm not sure what to charge. What do people think would be appropriate? | website | charges | null | null | null | 05/06/2012 23:06:41 | not constructive | What to charge for a simple website
===
A friend of a friend has asked me to build a very simple site (a few static pages and a forum which would be setting up and theming an existing forum technology) but I'm not sure what to charge. What do people think would be appropriate? | 4 |
27,726 | 08/26/2008 10:45:59 | 2,993 | 08/26/2008 10:45:59 | 1 | 0 | What are some instances in which expression trees are useful? | I completely understand the concept of expression trees but am having a hard time trying to find situations in which they are useful. Is there a specific instance in which expression trees can be applied? Or is it only useful as a transport mechanism for code? I feel like I am missing something here. Thanks! | c# | expression | null | null | null | null | open | What are some instances in which expression trees are useful?
===
I completely understand the concept of expression trees but am having a hard time trying to find situations in which they are useful. Is there a specific instance in which expression trees can be applied? Or is it only useful as a transport mechanism for code? I feel like I am missing something here. Thanks! | 0 |
27,729 | 08/26/2008 10:48:04 | 2,937 | 08/26/2008 08:25:36 | 11 | 2 | Flex tools for Mac | I'm starting developing with Flex on my Mac but i don't find good tools to ease the development.
¿Any good recommendation for Flex Tools on a Mac? | osx | flex | null | null | null | null | open | Flex tools for Mac
===
I'm starting developing with Flex on my Mac but i don't find good tools to ease the development.
¿Any good recommendation for Flex Tools on a Mac? | 0 |
27,731 | 08/26/2008 10:50:35 | 1,693 | 08/18/2008 02:25:37 | 812 | 34 | What's wrong with C#? | <a href="http://stackoverflow.com/questions/15528/whats-wrong-with-java">Asking the same of Java</a> yielded some very interesting responses, so I thought it would be only fair to ask the same thing of C#, probably Java's closest rival.
I actually like this sort of question because it's a lot less subjective than "why should I choose this language" or "why is this language so great."
So.. what's wrong with C#? | c# | language | null | null | null | null | open | What's wrong with C#?
===
<a href="http://stackoverflow.com/questions/15528/whats-wrong-with-java">Asking the same of Java</a> yielded some very interesting responses, so I thought it would be only fair to ask the same thing of C#, probably Java's closest rival.
I actually like this sort of question because it's a lot less subjective than "why should I choose this language" or "why is this language so great."
So.. what's wrong with C#? | 0 |
27,733 | 08/26/2008 10:51:34 | 2,131 | 08/20/2008 13:45:48 | 650 | 50 | So what am I missing with this here WPF? | Background: I have a little video playing app with a UI inspired by the venerable Sasami2k, just updated to use VMR9 (i.e. Direct3D9 with DirectShow) and be less unstable. Currently, it's a C++ app using raw Win32, through necessity: none of the various toolkits are worth a damn. WPF, in particular, was not possible, due to its airspace restrictions.
OK, so, now that D3DImage exists it might be viable to mix and match D3D/VMR9/DirectShow and WPF. Given past frustrations with Win32's inextensibility, this seems like a good thing.
But y'know, I'm falling at the first hurdle here.
With Win32 I have created (very easily) a borderless window that's resizable, resizes proportionately, snaps to the screen edges, and takes up the whole screen (including taskbar area) when maximized. It's a video app, so these are all pretty desirable properties.
OK, so, how to do the same with WPF?
In Win32, I use:
WM_GETMINMAXINFO to control the maximize behaviour
WM_NCHITTEST to control the resize borders
WM_MOVING to control the snap-to-screen-edges
WM_SIZING to control the resize aspect ratio
However, looking at WPF it seems that the various events arrive too late, unless I'm misunderstanding the documentation?
For example, I don't know when I'm mid-move, as LocationChanged says it fires only once the window has moved (which is too late).
Similarly, it appears that StateChanged only fires once the window has been restored/maximized (when I need the information prior to the maximize, to tell the system the correct maximize size).
And I seem to be completely overlooking where the system tells me about resizes. Likewise the hit testing.
So, uh, am I missing something here, or do I have no choice but to drop back to hooking the wndproc of this thing anyway? Can I do what I want without hooking the WndProc?
If I have to use the WndProc I might as well stick with my existing codebase; I want to have simpler, cleaner UI code, and moving away from the WndProc is fundamental to this.
If I do have to hook the WndProc, I have to wonder--_why_? Win32 has got the sizing/sized, moving/moved, poschanging/poschanged window messages, and they're all useful. Why wouldn't WPF replicate the same set of events? It seems like an unnecessary gap in functionality.
Plus, it means that WPF is tied to a specific USER32-dependent implementation. This means that MS can't (in Windows 7 or 8, say) invert the display layer to make WPF "native" and emulate HWNDs and WndProcs for legacy apps--even though this is precisely what MS should be doing.
| wpf | winapi | null | null | null | null | open | So what am I missing with this here WPF?
===
Background: I have a little video playing app with a UI inspired by the venerable Sasami2k, just updated to use VMR9 (i.e. Direct3D9 with DirectShow) and be less unstable. Currently, it's a C++ app using raw Win32, through necessity: none of the various toolkits are worth a damn. WPF, in particular, was not possible, due to its airspace restrictions.
OK, so, now that D3DImage exists it might be viable to mix and match D3D/VMR9/DirectShow and WPF. Given past frustrations with Win32's inextensibility, this seems like a good thing.
But y'know, I'm falling at the first hurdle here.
With Win32 I have created (very easily) a borderless window that's resizable, resizes proportionately, snaps to the screen edges, and takes up the whole screen (including taskbar area) when maximized. It's a video app, so these are all pretty desirable properties.
OK, so, how to do the same with WPF?
In Win32, I use:
WM_GETMINMAXINFO to control the maximize behaviour
WM_NCHITTEST to control the resize borders
WM_MOVING to control the snap-to-screen-edges
WM_SIZING to control the resize aspect ratio
However, looking at WPF it seems that the various events arrive too late, unless I'm misunderstanding the documentation?
For example, I don't know when I'm mid-move, as LocationChanged says it fires only once the window has moved (which is too late).
Similarly, it appears that StateChanged only fires once the window has been restored/maximized (when I need the information prior to the maximize, to tell the system the correct maximize size).
And I seem to be completely overlooking where the system tells me about resizes. Likewise the hit testing.
So, uh, am I missing something here, or do I have no choice but to drop back to hooking the wndproc of this thing anyway? Can I do what I want without hooking the WndProc?
If I have to use the WndProc I might as well stick with my existing codebase; I want to have simpler, cleaner UI code, and moving away from the WndProc is fundamental to this.
If I do have to hook the WndProc, I have to wonder--_why_? Win32 has got the sizing/sized, moving/moved, poschanging/poschanged window messages, and they're all useful. Why wouldn't WPF replicate the same set of events? It seems like an unnecessary gap in functionality.
Plus, it means that WPF is tied to a specific USER32-dependent implementation. This means that MS can't (in Windows 7 or 8, say) invert the display layer to make WPF "native" and emulate HWNDs and WndProcs for legacy apps--even though this is precisely what MS should be doing.
| 0 |
27,742 | 08/26/2008 10:56:37 | 2,973 | 08/26/2008 09:28:53 | 1 | 0 | Finding the crash dump files for a C# app | An app I'm writing always crashes on a clients computer, but I don't get an exception description, or a stack trace. The only thing I get is a crash report that windows wants to send to Microsoft. I would like to get that dump file and investigate it myself, but I cannot find it.
When I "View the contents of the error report" I can see the different memory dumps, but I cannot copy it or save it.
Thanks,
Mats | c# | crash | memory-dump | null | null | null | open | Finding the crash dump files for a C# app
===
An app I'm writing always crashes on a clients computer, but I don't get an exception description, or a stack trace. The only thing I get is a crash report that windows wants to send to Microsoft. I would like to get that dump file and investigate it myself, but I cannot find it.
When I "View the contents of the error report" I can see the different memory dumps, but I cannot copy it or save it.
Thanks,
Mats | 0 |
27,743 | 08/26/2008 10:59:50 | 2,994 | 08/26/2008 10:47:23 | 1 | 0 | How do I gracefully shut down a Mongrel web server | My RubyOnRails app is set up with the usual pack of mongrels behind Apache configuration. We've noticed that our Mongrel web server memory usage can grow quite large on certain operations and we'd really like to be able to dynamically do a graceful restart of selected Mongrel processes at any time.
However, for reasons I won't go into here it can sometimes be _very_ important that we don't interrupt a Mongrel while it is servicing a request, so I assume a simple process kill isn't the answer.
Ideally, I want to send the Mongrel a signal that says "finish whatever you're doing and then quit before accepting any more connections".
Is there a standard technique or best practice for this?
| ruby | ruby-on-rails | mongrel | null | null | null | open | How do I gracefully shut down a Mongrel web server
===
My RubyOnRails app is set up with the usual pack of mongrels behind Apache configuration. We've noticed that our Mongrel web server memory usage can grow quite large on certain operations and we'd really like to be able to dynamically do a graceful restart of selected Mongrel processes at any time.
However, for reasons I won't go into here it can sometimes be _very_ important that we don't interrupt a Mongrel while it is servicing a request, so I assume a simple process kill isn't the answer.
Ideally, I want to send the Mongrel a signal that says "finish whatever you're doing and then quit before accepting any more connections".
Is there a standard technique or best practice for this?
| 0 |
27,745 | 08/26/2008 11:01:37 | 2,644 | 08/23/2008 21:56:47 | 194 | 16 | Getting parts of a URL (Regex) | Given the URL (single line):
http://test.example.com/dir/subdir/file.html
How can I extract the following parts using regular expressions:
- The Subdomain (test)
- The Domain (example.com)
- The path without the file (/dir/subdir/)
- The file (file.html)
- The path with the file (/dir/subdir/file.html)
- The URL without the path (http://test.example.com)
- (add any other that you think would be useful)
The regex should work correctly even if I enter the following URL:
http://example.example.com/example/example/example.html
Thank you. | url | regex | regular-expression | null | null | null | open | Getting parts of a URL (Regex)
===
Given the URL (single line):
http://test.example.com/dir/subdir/file.html
How can I extract the following parts using regular expressions:
- The Subdomain (test)
- The Domain (example.com)
- The path without the file (/dir/subdir/)
- The file (file.html)
- The path with the file (/dir/subdir/file.html)
- The URL without the path (http://test.example.com)
- (add any other that you think would be useful)
The regex should work correctly even if I enter the following URL:
http://example.example.com/example/example/example.html
Thank you. | 0 |
27,774 | 08/26/2008 11:21:52 | 2,492 | 08/22/2008 14:03:41 | 1 | 0 | Using VLOOKUP in an array formula on Google Spreadsheets | Effectively I want to give numeric scores to alphabetic grades and sum them. In Excel, putting the `LOOKUP` function into an array formula works:
{=SUM(LOOKUP(grades, scoringarray))}
With the `VLOOKUP` function this does not work (only gets the score for the first grade). Google Spreadsheets does not appear to have the `LOOKUP` function and `VLOOKUP` fails in the same way using:
=SUM(ARRAYFORMULA(VLOOKUP(grades, scoresarray, 2, 0)))
or
=ARRAYFORMULA(SUM(VLOOKUP(grades, scoresarray, 2, 0)))
Is it possible to do this (but I have the syntax wrong)? Can you suggest a method that allows having the calculation in one simple cell like this rather than hiding the lookups somewhere else and summing them afterwards? | google | spreadsheet | excel | formula | null | null | open | Using VLOOKUP in an array formula on Google Spreadsheets
===
Effectively I want to give numeric scores to alphabetic grades and sum them. In Excel, putting the `LOOKUP` function into an array formula works:
{=SUM(LOOKUP(grades, scoringarray))}
With the `VLOOKUP` function this does not work (only gets the score for the first grade). Google Spreadsheets does not appear to have the `LOOKUP` function and `VLOOKUP` fails in the same way using:
=SUM(ARRAYFORMULA(VLOOKUP(grades, scoresarray, 2, 0)))
or
=ARRAYFORMULA(SUM(VLOOKUP(grades, scoresarray, 2, 0)))
Is it possible to do this (but I have the syntax wrong)? Can you suggest a method that allows having the calculation in one simple cell like this rather than hiding the lookups somewhere else and summing them afterwards? | 0 |
27,779 | 08/26/2008 11:28:43 | 1,075 | 08/12/2008 10:13:30 | 815 | 59 | MFC resources / links | I am about to reenter the MFC world after years away for a new job. What resources to people recommend for refreshing the memory? I have been doing mainly C# recently.
Also any MFC centric websites or blogs that people recommend?
| c++ | c | mfc | null | null | null | open | MFC resources / links
===
I am about to reenter the MFC world after years away for a new job. What resources to people recommend for refreshing the memory? I have been doing mainly C# recently.
Also any MFC centric websites or blogs that people recommend?
| 0 |
27,784 | 08/26/2008 11:32:57 | 2,313 | 08/21/2008 15:27:23 | 13 | 2 | Web server statics repository -or- ZFS vs. NTFS | My goal is to maintain web file server separately from main ASP.NET application server for better scalability. Web file server will store a lot of files downloaded by users.
So the question is: Is it worth to adopt FreeBSD + Apache + ZFS, or good old IIS will be сonvinient enough? | windows | bsd | null | null | null | null | open | Web server statics repository -or- ZFS vs. NTFS
===
My goal is to maintain web file server separately from main ASP.NET application server for better scalability. Web file server will store a lot of files downloaded by users.
So the question is: Is it worth to adopt FreeBSD + Apache + ZFS, or good old IIS will be сonvinient enough? | 0 |
27,793 | 08/26/2008 11:39:18 | 3,006 | 08/26/2008 11:39:18 | 1 | 0 | which are well written open source softwares(for learning)? | We learn programming by writing programs and learning from other programs.
Which open source code repositories/programs you suggest for learning/improving programming? | hacking | null | null | null | null | 11/22/2011 16:40:34 | not constructive | which are well written open source softwares(for learning)?
===
We learn programming by writing programs and learning from other programs.
Which open source code repositories/programs you suggest for learning/improving programming? | 4 |
27,818 | 08/26/2008 11:54:35 | 287 | 08/04/2008 12:43:38 | 237 | 18 | How can I manage OSGi build dependencies? | We've embedded an OSGi runtime (Equinox) into out custom client-server application to facilitate plugin development and so far things are going great. We've been using Eclipse to build plugins due to the built-in manifest editor, dependency management, and export wizard. Using Eclipse to manager builds isn't very conducive to continuous integration via Hudson.
We have OSGi bundles which depend on other OSGi bundles. I'd really hate to hardcode build order in a custom ANT build. We've done this is the past and it's pretty horrible. Is there any build tool that can EASILY manage OSGi dependencies, if not automatically resolve them? Are there any DECENT examples of how to this? | osgi | dependencies | null | null | null | null | open | How can I manage OSGi build dependencies?
===
We've embedded an OSGi runtime (Equinox) into out custom client-server application to facilitate plugin development and so far things are going great. We've been using Eclipse to build plugins due to the built-in manifest editor, dependency management, and export wizard. Using Eclipse to manager builds isn't very conducive to continuous integration via Hudson.
We have OSGi bundles which depend on other OSGi bundles. I'd really hate to hardcode build order in a custom ANT build. We've done this is the past and it's pretty horrible. Is there any build tool that can EASILY manage OSGi dependencies, if not automatically resolve them? Are there any DECENT examples of how to this? | 0 |
27,827 | 08/26/2008 12:00:00 | 572 | 08/06/2008 20:56:54 | 1,511 | 142 | What are good books about security and white-hat hacking? | I'm looking at [Writing Secure Code, Second Edition][1], but I was wondering what other good books were out there on this subject. A quick search turns up plenty, but I'm not sure where to begin.
For the record, I am a software engineering undergraduate student, so I would like books that aren't all that complex, but I'm sure there are other people here with varied backgrounds and levels of experience and education that might enjoy some more comprehensive books, so feel free to post any good books on the subject. Please identify who they are appropriate for, though.
[1]: http://www.microsoft.com/mspress/books/5957.aspx | security | hacking | white-hat | null | null | 12/06/2011 02:47:33 | not constructive | What are good books about security and white-hat hacking?
===
I'm looking at [Writing Secure Code, Second Edition][1], but I was wondering what other good books were out there on this subject. A quick search turns up plenty, but I'm not sure where to begin.
For the record, I am a software engineering undergraduate student, so I would like books that aren't all that complex, but I'm sure there are other people here with varied backgrounds and levels of experience and education that might enjoy some more comprehensive books, so feel free to post any good books on the subject. Please identify who they are appropriate for, though.
[1]: http://www.microsoft.com/mspress/books/5957.aspx | 4 |
27,832 | 08/26/2008 12:02:08 | 3,011 | 08/26/2008 11:50:32 | 1 | 0 | How can I reverse engineer a DirectShow graph? | I have a DirectShow graph to render MPEG2/4 movies from a network stream. When I assemble the graph by connecting the pins manually it doesn't render. But when I call Render on the GraphBuilder it renders fine.
Obviously there is some setup step that I'm not performing on some filter in the graph that GraphBuilder is performing.
Is there any way to see debug output from GraphBuilder when it assembles a graph?
Is there a way to dump a working graph to see how it was put together?
Any other ideas for unraveling the mystery that lives in the DirectShow box?
Thanks!
-Z
| video | directx | directshow | mpeg | null | null | open | How can I reverse engineer a DirectShow graph?
===
I have a DirectShow graph to render MPEG2/4 movies from a network stream. When I assemble the graph by connecting the pins manually it doesn't render. But when I call Render on the GraphBuilder it renders fine.
Obviously there is some setup step that I'm not performing on some filter in the graph that GraphBuilder is performing.
Is there any way to see debug output from GraphBuilder when it assembles a graph?
Is there a way to dump a working graph to see how it was put together?
Any other ideas for unraveling the mystery that lives in the DirectShow box?
Thanks!
-Z
| 0 |
27,835 | 08/26/2008 12:03:44 | 2,077 | 08/20/2008 07:26:21 | 103 | 3 | Does MS-SQL know in-memory tables? | I've grown up as a programmer using MySQL all the way. Recently, I started changing some of our applications to support MS SQL Server as an alternative backend. One of the compatibility issues I ran into is the use of MySQL's CREATE TEMPORARY TABLE to create in-memory tables that hold data for very fast access during a session with no need for permanent storage.
What is the equivalent in MS SQL? A requirement is that I need to be able to use the temporary table just like any other, especially JOIN it with the permanent ones. | rdbms | portability | mysql | mssql | null | null | open | Does MS-SQL know in-memory tables?
===
I've grown up as a programmer using MySQL all the way. Recently, I started changing some of our applications to support MS SQL Server as an alternative backend. One of the compatibility issues I ran into is the use of MySQL's CREATE TEMPORARY TABLE to create in-memory tables that hold data for very fast access during a session with no need for permanent storage.
What is the equivalent in MS SQL? A requirement is that I need to be able to use the temporary table just like any other, especially JOIN it with the permanent ones. | 0 |
27,836 | 08/26/2008 12:04:15 | 1,185 | 08/13/2008 12:02:03 | 841 | 61 | Is there a Box Plot graph avalible for Reporting Services 2005? | Is there a [Box Plot][1] graph, or box and whisker graph available for Reporting Services 2005? From the looks of the documentation there doesn't seem to be one out of the box; so I am wondering if there is a third party that has the graph, or a way to build my own?
[1]: http://en.wikipedia.org/wiki/Box_plot | sql | reporting-services | graph | null | null | null | open | Is there a Box Plot graph avalible for Reporting Services 2005?
===
Is there a [Box Plot][1] graph, or box and whisker graph available for Reporting Services 2005? From the looks of the documentation there doesn't seem to be one out of the box; so I am wondering if there is a third party that has the graph, or a way to build my own?
[1]: http://en.wikipedia.org/wiki/Box_plot | 0 |
27,846 | 08/26/2008 12:10:00 | 3,014 | 08/26/2008 11:58:43 | 1 | 0 | How do you change the default homepage in a Grails application? | What is the configuration setting for modifying the default homepage in a Grails application to no longer be appName/index.gsp? Of course you can set that page to be a redirect but there must be a better way. | grails | null | null | null | null | null | open | How do you change the default homepage in a Grails application?
===
What is the configuration setting for modifying the default homepage in a Grails application to no longer be appName/index.gsp? Of course you can set that page to be a redirect but there must be a better way. | 0 |
27,850 | 08/26/2008 12:11:05 | 2,077 | 08/20/2008 07:26:21 | 118 | 3 | What are models for storing tree structures and what are their charcteristics? | So far I have encountered adjacency list, nested sets and nested intervals as models for storing tree structures in a database. I know these well enough and have migrated trees from one to another.
What are other popular models? What are their characteristics? What are good resources (books, web, etc) on this topic? I'm not only looking for db storage but would like to expand my knowledge on trees in general. For example, I understand that nested sets/intervals are especially favorable for relational database storage and have asked myself, are they actually a <i>bad</i> choice in other contexts? | data-structures | modeling | null | null | null | null | open | What are models for storing tree structures and what are their charcteristics?
===
So far I have encountered adjacency list, nested sets and nested intervals as models for storing tree structures in a database. I know these well enough and have migrated trees from one to another.
What are other popular models? What are their characteristics? What are good resources (books, web, etc) on this topic? I'm not only looking for db storage but would like to expand my knowledge on trees in general. For example, I understand that nested sets/intervals are especially favorable for relational database storage and have asked myself, are they actually a <i>bad</i> choice in other contexts? | 0 |
27,853 | 08/26/2008 12:12:23 | 3,018 | 08/26/2008 12:12:23 | 1 | 0 | ModalPopupExtender and SharePoint | Whenever I show a ModalPopupExtender on my Sharepoint site, the popup shown creates both horizontal and vertical scrollbars. If you scroll all the way to the end of the page, the scrollbar refreshes, and there is more page to scroll through. Basically, I think the popup is setting its bounds beyond the end of the page. Has anyone run into this? Searching Google, it seems this may be a known problem, but I haven't found a good solution that doesn't include recompiling AJAX, which my boss will not allow. | modalpopupextender | sharepoint | null | null | null | null | open | ModalPopupExtender and SharePoint
===
Whenever I show a ModalPopupExtender on my Sharepoint site, the popup shown creates both horizontal and vertical scrollbars. If you scroll all the way to the end of the page, the scrollbar refreshes, and there is more page to scroll through. Basically, I think the popup is setting its bounds beyond the end of the page. Has anyone run into this? Searching Google, it seems this may be a known problem, but I haven't found a good solution that doesn't include recompiling AJAX, which my boss will not allow. | 0 |
27,889 | 08/26/2008 12:26:10 | 2,993 | 08/26/2008 10:45:59 | 13 | 0 | How to get SpecUnit to run within a TeamCity CI build | I am trying to get SpecUnit to run in a continuous integration build using Nant. At the moment the files are in the correct place but no output is generated from SpecUnit.Report.exe. Here is the relevant task from the nant build script:
<echo message="**** Starting SpecUnit report generation ****" />
<copy file="${specunit.exe}" tofile="${output.dir}SpecUnit.Report.exe" />
<exec program="${output.dir}SpecUnit.Report.exe" failonerror="false">
<arg value="${acceptance.tests.assembly}" />
</exec>
Please note, ${specunit.exe} is the full path to where SpecUnit.Report.exe is located. ${output.dir} is the teamcity output directory for the current build agent. ${acceptance.tests.assembly} is "AcceptanceTests.dll"
Anyone tried this before? | c# | nant | teamcity | null | null | null | open | How to get SpecUnit to run within a TeamCity CI build
===
I am trying to get SpecUnit to run in a continuous integration build using Nant. At the moment the files are in the correct place but no output is generated from SpecUnit.Report.exe. Here is the relevant task from the nant build script:
<echo message="**** Starting SpecUnit report generation ****" />
<copy file="${specunit.exe}" tofile="${output.dir}SpecUnit.Report.exe" />
<exec program="${output.dir}SpecUnit.Report.exe" failonerror="false">
<arg value="${acceptance.tests.assembly}" />
</exec>
Please note, ${specunit.exe} is the full path to where SpecUnit.Report.exe is located. ${output.dir} is the teamcity output directory for the current build agent. ${acceptance.tests.assembly} is "AcceptanceTests.dll"
Anyone tried this before? | 0 |
27,894 | 08/26/2008 12:27:30 | 1,219 | 08/13/2008 13:44:47 | 1,114 | 84 | What's the difference between a temp table and table variable in MSSQL? | In Sql Server 2005, we can create temp tables on of two ways:
declare @tmp table (Col1 int, Col2 int);
or
create table #tmp (Col1 int, Col2 int);
What are the differences between the two? I have read conflicting opinions on whether @tmp still uses tempdb, or if everything happens in memory.
In which scenarios does one out-perform the other?
| mssql | null | null | null | null | null | open | What's the difference between a temp table and table variable in MSSQL?
===
In Sql Server 2005, we can create temp tables on of two ways:
declare @tmp table (Col1 int, Col2 int);
or
create table #tmp (Col1 int, Col2 int);
What are the differences between the two? I have read conflicting opinions on whether @tmp still uses tempdb, or if everything happens in memory.
In which scenarios does one out-perform the other?
| 0 |
27,899 | 08/26/2008 12:30:19 | 2,961 | 08/26/2008 09:02:24 | 1 | 2 | Is there a way to have index.html functionallity with content hosted on S3? | Is there a way to make S3 default to an index.html page? E.g.: My bucket object listing:
/index.html
/index.htm
/favicon.ico
/images/logo.gif
A call to **www.mysite.com/*index.html*** works great! But if one were to call **www.mysite.com/** we'd either get a 403 or a REST object listing XML document depending on how bucket-level ACL was configured.
So, the question: Is there a way to have index.html functionallity with content hosted on S3?
I'm kinda thinking there isn't :( | amazon | amazon-s3 | amazon-web-services | null | null | null | open | Is there a way to have index.html functionallity with content hosted on S3?
===
Is there a way to make S3 default to an index.html page? E.g.: My bucket object listing:
/index.html
/index.htm
/favicon.ico
/images/logo.gif
A call to **www.mysite.com/*index.html*** works great! But if one were to call **www.mysite.com/** we'd either get a 403 or a REST object listing XML document depending on how bucket-level ACL was configured.
So, the question: Is there a way to have index.html functionallity with content hosted on S3?
I'm kinda thinking there isn't :( | 0 |
27,910 | 08/26/2008 12:37:33 | 2,963 | 08/26/2008 09:03:50 | 21 | 2 | Finding a DOI in a document or page | The [DOI][1] system places basically no useful limitations on what constitutes [a reasonable identifier][2]. However, being able to pull DOIs out of PDFs, web pages, etc. is quite useful for citation information, etc.
Is there a reliable way to identify a DOI in a block of text without assuming the 'doi:' prefix? (any language acceptable, regexes preferred, and avoiding false positives a must)
[1]: http://doi.org/
[2]: http://doi.org/handbook_2000/enumeration.html#2.2 | regex | doi | null | null | null | null | open | Finding a DOI in a document or page
===
The [DOI][1] system places basically no useful limitations on what constitutes [a reasonable identifier][2]. However, being able to pull DOIs out of PDFs, web pages, etc. is quite useful for citation information, etc.
Is there a reliable way to identify a DOI in a block of text without assuming the 'doi:' prefix? (any language acceptable, regexes preferred, and avoiding false positives a must)
[1]: http://doi.org/
[2]: http://doi.org/handbook_2000/enumeration.html#2.2 | 0 |
27,916 | 08/26/2008 12:42:12 | 2,342 | 08/21/2008 18:03:04 | 1 | 1 | SQL Server - testing the database | What tools are people using for testing SQL Server databases? TSQLUnit? | sql-server | unit-testing | null | null | null | null | open | SQL Server - testing the database
===
What tools are people using for testing SQL Server databases? TSQLUnit? | 0 |
27,921 | 08/26/2008 12:47:35 | 308 | 08/04/2008 14:34:46 | 703 | 29 | What is the "best" way to create a thumbnail using ASP.NET? | Story: The user uploads an image that will be added to a photo gallery. As part of the upload process, we need to A) store the image on the web server's hard drive and B) store a thumbnail of the image on the web server's hard drive.
"Best" here is defined as
* Relatively easy to implement, understand, and maintain
* Results in a thumbnail of reasonable quality
Performance and high-quality thumbnails are secondary. | asp.net | image | thumbnail | null | null | null | open | What is the "best" way to create a thumbnail using ASP.NET?
===
Story: The user uploads an image that will be added to a photo gallery. As part of the upload process, we need to A) store the image on the web server's hard drive and B) store a thumbnail of the image on the web server's hard drive.
"Best" here is defined as
* Relatively easy to implement, understand, and maintain
* Results in a thumbnail of reasonable quality
Performance and high-quality thumbnails are secondary. | 0 |
27,928 | 08/26/2008 12:50:45 | 1,456 | 08/15/2008 17:03:51 | 3 | 0 | How do I calculate distance between two latitude longitude points? | Here's an easy one for you:
How do I calculate the distance between two points points specified by latitude and longitude? | math | map | mapping | latitude | longitude | null | open | How do I calculate distance between two latitude longitude points?
===
Here's an easy one for you:
How do I calculate the distance between two points points specified by latitude and longitude? | 0 |
27,942 | 08/26/2008 12:54:57 | 572 | 08/06/2008 20:56:54 | 1,531 | 145 | Is it worth it to learn a dialect of assembly? | My goals are focused on software application development, and maybe web application development, but most likely desktop applications. I'm embarking on a path to becoming more familiar with C/C++, but should I go much lower than that, into assembly? Or would I not have a benefit for my long-term goals? | education | null | null | null | null | null | open | Is it worth it to learn a dialect of assembly?
===
My goals are focused on software application development, and maybe web application development, but most likely desktop applications. I'm embarking on a path to becoming more familiar with C/C++, but should I go much lower than that, into assembly? Or would I not have a benefit for my long-term goals? | 0 |
27,948 | 08/26/2008 12:57:42 | 370,899 | 08/22/2008 12:32:04 | 28 | 5 | Which resolution to target for a Mobile App? | When desinging UI for mobile apps in general which resolution could be considered safe as a general rule of thumb. My interest lies specifically in web based apps. The iPhone has a pretty high resolution for a hand held, and the Nokia E Series seem to oriented differently. Is 240×320 still considered safe? | mobile | null | null | null | null | null | open | Which resolution to target for a Mobile App?
===
When desinging UI for mobile apps in general which resolution could be considered safe as a general rule of thumb. My interest lies specifically in web based apps. The iPhone has a pretty high resolution for a hand held, and the Nokia E Series seem to oriented differently. Is 240×320 still considered safe? | 0 |
27,952 | 08/26/2008 12:58:31 | 2,822 | 08/25/2008 11:42:23 | 79 | 6 | How do I change the locations of source files in a symbols file (pdb) | Basically what I want to do it this: a pdb file contains a location of source files (e.g. <code>C:\dev\proj1\helloworld.cs</code>). Is it possible to modify that pdb file so that it contains a different location (e.g. <code>\\more\differenter\location\proj1\helloworld.cs</code>)? | debugging | pdb | symbols | null | null | null | open | How do I change the locations of source files in a symbols file (pdb)
===
Basically what I want to do it this: a pdb file contains a location of source files (e.g. <code>C:\dev\proj1\helloworld.cs</code>). Is it possible to modify that pdb file so that it contains a different location (e.g. <code>\\more\differenter\location\proj1\helloworld.cs</code>)? | 0 |
27,972 | 08/26/2008 13:06:14 | 26 | 08/01/2008 12:18:14 | 1,895 | 113 | Are Http-Only cookies a viable option for an AJAX website? | Does JavaScript need access to cookies if AJAX is used? | ajax | cookies | null | null | null | null | open | Are Http-Only cookies a viable option for an AJAX website?
===
Does JavaScript need access to cookies if AJAX is used? | 0 |
27,983 | 08/26/2008 13:09:15 | 1,477 | 08/15/2008 19:28:36 | 96 | 5 | SQL Group By with an Order By | I have a table of tags and want to get the highest count tags from the list.
Sample data looks like this
id (1) tag ('night')
id (2) tag ('awesome')
id (3) tag ('night')
using
SELECT COUNT(*), `Tag` from `images-tags`
GROUP BY `Tag`
gets me back the data I'm looking for perfectly. However, I would like to organize it, so that the highest tag counts are first, and limit it to only send me the first 20 or so.
I tried this...
SELECT COUNT(id), `Tag` from `images-tags`
GROUP BY `Tag`
ORDER BY COUNT(id) DESC
LIMIT 20
and I keep getting an "Invalid use of group function - ErrNr 1111"
What am I doing wrong?
I'm using MySQL 4.1.25-Debian | sql | mysql | null | null | null | null | open | SQL Group By with an Order By
===
I have a table of tags and want to get the highest count tags from the list.
Sample data looks like this
id (1) tag ('night')
id (2) tag ('awesome')
id (3) tag ('night')
using
SELECT COUNT(*), `Tag` from `images-tags`
GROUP BY `Tag`
gets me back the data I'm looking for perfectly. However, I would like to organize it, so that the highest tag counts are first, and limit it to only send me the first 20 or so.
I tried this...
SELECT COUNT(id), `Tag` from `images-tags`
GROUP BY `Tag`
ORDER BY COUNT(id) DESC
LIMIT 20
and I keep getting an "Invalid use of group function - ErrNr 1111"
What am I doing wrong?
I'm using MySQL 4.1.25-Debian | 0 |
27,998 | 08/26/2008 13:18:30 | 194 | 08/03/2008 10:56:49 | 1,923 | 113 | Exporting a C++ DLL | Most of my C/C++ development involves monolithic module files and absolutely no classes whatsoever, so usually when I need to make a DLL with accessible functions I just export them using the standard __declspec(dllexport) directive. Then access them either dynamically via LoadLibrary() or at compile time with a header and lib file.
How do you do this when you want to export an entire class (and all it's public methods and properties)?
Is it possible to dynamically load that class at runtime and if so, how?
How would you do it with a header and lib for compile time linking? | c++ | dll | windows | null | null | null | open | Exporting a C++ DLL
===
Most of my C/C++ development involves monolithic module files and absolutely no classes whatsoever, so usually when I need to make a DLL with accessible functions I just export them using the standard __declspec(dllexport) directive. Then access them either dynamically via LoadLibrary() or at compile time with a header and lib file.
How do you do this when you want to export an entire class (and all it's public methods and properties)?
Is it possible to dynamically load that class at runtime and if so, how?
How would you do it with a header and lib for compile time linking? | 0 |
28,002 | 08/26/2008 13:20:55 | 1,821 | 08/18/2008 18:11:48 | 176 | 18 | Regular cast vs. static_cast vs. dynamic_cast | I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts (i.e.
MyClass *m = (MyClass *)ptr;
all over the place, but there seem to be two other types of casts, and I don't know the difference. What's the difference between the following lines of code?
MyClass *m = (MyClass *)ptr;
MyClass *m = static_cast<MyClass *>(ptr);
MyClass *m = dynamic_cast<MyClass *>(ptr);
| c++ | c | pointers | casting | null | null | open | Regular cast vs. static_cast vs. dynamic_cast
===
I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts (i.e.
MyClass *m = (MyClass *)ptr;
all over the place, but there seem to be two other types of casts, and I don't know the difference. What's the difference between the following lines of code?
MyClass *m = (MyClass *)ptr;
MyClass *m = static_cast<MyClass *>(ptr);
MyClass *m = dynamic_cast<MyClass *>(ptr);
| 0 |
28,003 | 08/26/2008 13:20:57 | 1,638 | 08/17/2008 17:58:57 | 199 | 21 | MSSQL: use table metadata for select stament? | I have a large database and would like to select table names that have a certain column name. I have done something like this in MySQL, but can't find any info on MSSQL.
I want to do something like:
<pre><code>
select [table] from [db] where table [has column 'classtypeid']
</code></pre>
how can I do something like this?
| mssql | query | null | null | null | null | open | MSSQL: use table metadata for select stament?
===
I have a large database and would like to select table names that have a certain column name. I have done something like this in MySQL, but can't find any info on MSSQL.
I want to do something like:
<pre><code>
select [table] from [db] where table [has column 'classtypeid']
</code></pre>
how can I do something like this?
| 0 |
28,009 | 08/26/2008 13:23:37 | 290 | 08/04/2008 12:57:50 | 536 | 54 | When do you use table clusters? | How do you determine when to use [table clusters][1]? There are two types, index and hash, to use for different cases. In your experience, have the introduction and use of table clusters paid off?
If none of your tables are set up this way, modifying them to use table clusters would add to the complexity of the set up. But would the expected performance benefits outweight the cost of increased complexity in future maintenance work?
Do you have any favorite online references or books that describe table clustering well and give good implementation examples?
//Oracle tips greatly appreciated.
[1]: http://www.iselfschooling.com/mc4articles/mc4cluster.htm | database | performance | oracle | null | null | null | open | When do you use table clusters?
===
How do you determine when to use [table clusters][1]? There are two types, index and hash, to use for different cases. In your experience, have the introduction and use of table clusters paid off?
If none of your tables are set up this way, modifying them to use table clusters would add to the complexity of the set up. But would the expected performance benefits outweight the cost of increased complexity in future maintenance work?
Do you have any favorite online references or books that describe table clustering well and give good implementation examples?
//Oracle tips greatly appreciated.
[1]: http://www.iselfschooling.com/mc4articles/mc4cluster.htm | 0 |
28,011 | 08/26/2008 13:23:50 | 3,041 | 08/26/2008 13:18:26 | 1 | 0 | Ruby / Rails pre-epoch dates on windows | Working with dates in ruby and rails on windows, having problems with pre-epoch dates (before 1970) throwing out of range exceptions. Tried using both Time and DateTime objects but continuing to have the same problems. | ruby | ruby-on-rails | date | exceptions | null | null | open | Ruby / Rails pre-epoch dates on windows
===
Working with dates in ruby and rails on windows, having problems with pre-epoch dates (before 1970) throwing out of range exceptions. Tried using both Time and DateTime objects but continuing to have the same problems. | 0 |
28,029 | 08/26/2008 13:30:27 | 2,993 | 08/26/2008 10:45:59 | 13 | 2 | How to get rid of VSMacros80 folder from project root? | How can I have it so Visual Studio doesn't keep re-creating this folder that I never use. It's annoying ot keep looking and unnecessary. | visual-studio | null | null | null | null | null | open | How to get rid of VSMacros80 folder from project root?
===
How can I have it so Visual Studio doesn't keep re-creating this folder that I never use. It's annoying ot keep looking and unnecessary. | 0 |
28,033 | 08/26/2008 13:31:55 | 1,025 | 08/11/2008 14:56:52 | 193 | 22 | MSSQL to MySQL | I have a backup of an MSSQL DB in .bak format which I've successfully managed to restore to a local instance of SQL Server Express. I now want to export both the structure and data in a format that MySQL will accept. The tools that I use for MySQL management typically allow me to import/export .sql files, but unfortunately Microsoft didn't see fit to make my life this easy!
I can't believe I'm the first to run into this, but Google hasn't been a great deal of help. Has anybody managed this before? | database | mysql | mssql | null | null | null | open | MSSQL to MySQL
===
I have a backup of an MSSQL DB in .bak format which I've successfully managed to restore to a local instance of SQL Server Express. I now want to export both the structure and data in a format that MySQL will accept. The tools that I use for MySQL management typically allow me to import/export .sql files, but unfortunately Microsoft didn't see fit to make my life this easy!
I can't believe I'm the first to run into this, but Google hasn't been a great deal of help. Has anybody managed this before? | 0 |
28,042 | 08/26/2008 13:34:19 | 3,030 | 08/26/2008 12:41:34 | 1 | 0 | Never Committed | So I've been programming for 5 years+ and I've never committed any code to an open source project. I used and looked under the hood of many (mostly in the Java community). I want to get involved in something but I can't really decide which direction to go.
For those of you who have committed to open source, what helped you decide where to go? What motivated you? Was it simply a whim? Something you found that you were very passionate about? What about starting points? Where should someone like me go to find open source projects just lined up and waiting to be joined?
thanks for your info. | opensource | null | null | null | null | 06/13/2012 17:09:23 | not constructive | Never Committed
===
So I've been programming for 5 years+ and I've never committed any code to an open source project. I used and looked under the hood of many (mostly in the Java community). I want to get involved in something but I can't really decide which direction to go.
For those of you who have committed to open source, what helped you decide where to go? What motivated you? Was it simply a whim? Something you found that you were very passionate about? What about starting points? Where should someone like me go to find open source projects just lined up and waiting to be joined?
thanks for your info. | 4 |
28,051 | 08/26/2008 13:38:04 | 2,868 | 08/25/2008 16:43:06 | 11 | 2 | Best way to share ASP.NET .ascx controls across different website applications? | Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX controls that you want to share across these 2 applications.
What's the best way to create a "user control library", so that you can use the same control implementation in the 2 applications, withuot having to duplicate code?
Controls have ASCX with HTML + code behind.
Thanks!
| asp.net | null | null | null | null | null | open | Best way to share ASP.NET .ascx controls across different website applications?
===
Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX controls that you want to share across these 2 applications.
What's the best way to create a "user control library", so that you can use the same control implementation in the 2 applications, withuot having to duplicate code?
Controls have ASCX with HTML + code behind.
Thanks!
| 0 |
28,072 | 08/26/2008 13:46:53 | 572 | 08/06/2008 20:56:54 | 1,563 | 145 | What languages have the best/worst documentation and support communities? | This is more to satisfy my curiousity than anything else, but what languages have the best (or worst) documentation and support communities (including IRC, mailing lists, USENET groups, websites, forums, etc)? | programming-languages | documentation | support | communities | null | null | open | What languages have the best/worst documentation and support communities?
===
This is more to satisfy my curiousity than anything else, but what languages have the best (or worst) documentation and support communities (including IRC, mailing lists, USENET groups, websites, forums, etc)? | 0 |
28,080 | 08/26/2008 13:49:47 | 2,638 | 08/23/2008 20:10:14 | 239 | 12 | How bad is dynamic casting? | We often hear/read that one should avoid dynamic casting. I was wondering what would be 'good use' examples of it, according to you? | c++ | casting | rtti | dynamic-cast | null | null | open | How bad is dynamic casting?
===
We often hear/read that one should avoid dynamic casting. I was wondering what would be 'good use' examples of it, according to you? | 0 |
28,092 | 08/26/2008 13:54:45 | 3,047 | 08/26/2008 13:36:37 | 1 | 0 | WPF Listbox style with a button | I have a ListBox that has a style defined for ListBoxItems. Inside this style, I have some labels and a button. One that button, I want to define a click event that can be handled on my page (or any page that uses that style). How do I create an event handler on my WPF page to handle the event from my ListBoxItems style?
Here is my style (affected code only):
<Style x:Key="UsersTimeOffList" TargetType="{x:Type ListBoxItem}">
...
<Grid>
<Button x:Name="btnRemove" Content="Remove" Margin="0,10,40,0" Click="btnRemove_Click" />
</Grid>
</Style>
Thanks! | c# | wpf | null | null | null | null | open | WPF Listbox style with a button
===
I have a ListBox that has a style defined for ListBoxItems. Inside this style, I have some labels and a button. One that button, I want to define a click event that can be handled on my page (or any page that uses that style). How do I create an event handler on my WPF page to handle the event from my ListBoxItems style?
Here is my style (affected code only):
<Style x:Key="UsersTimeOffList" TargetType="{x:Type ListBoxItem}">
...
<Grid>
<Button x:Name="btnRemove" Content="Remove" Margin="0,10,40,0" Click="btnRemove_Click" />
</Grid>
</Style>
Thanks! | 0 |
28,098 | 08/26/2008 13:56:49 | 2,680 | 08/24/2008 14:33:15 | 73 | 2 | PHP ToString() equivalent | How do I convert the value of a PHP variable to string? I was looking for something better than concatenating with an empty string works:
$myText = $myVar . '';
like the ToString() method in Java or .NET. | php | string | null | null | null | null | open | PHP ToString() equivalent
===
How do I convert the value of a PHP variable to string? I was looking for something better than concatenating with an empty string works:
$myText = $myVar . '';
like the ToString() method in Java or .NET. | 0 |
28,110 | 08/26/2008 14:01:43 | 357 | 08/05/2008 01:29:23 | 970 | 56 | MS SQL DateTime conversion failure | I have a large table with 1 million+ records. Unfortunately, the person who created the table decided to put dates in a varchar(50) field.
I need to do a simple date comparison -
datediff(dd, convert(datetime, lastUpdate), getDate()) < 31
But it fails on the convert():
Conversion failed when converting datetime from character string.
Apparently there is something in that field it doesn't like, and since there are so many records, I can't tell just by looking at it. How can I properly sanitize the entire date field so it does not fail on the convert()? Here is what I have now:
select count(*)
from MyTable
where
isdate(lastUpdate) > 0
and datediff(dd, convert(datetime, lastUpdate), getDate()) < 31 | sql | datetime | null | null | null | null | open | MS SQL DateTime conversion failure
===
I have a large table with 1 million+ records. Unfortunately, the person who created the table decided to put dates in a varchar(50) field.
I need to do a simple date comparison -
datediff(dd, convert(datetime, lastUpdate), getDate()) < 31
But it fails on the convert():
Conversion failed when converting datetime from character string.
Apparently there is something in that field it doesn't like, and since there are so many records, I can't tell just by looking at it. How can I properly sanitize the entire date field so it does not fail on the convert()? Here is what I have now:
select count(*)
from MyTable
where
isdate(lastUpdate) > 0
and datediff(dd, convert(datetime, lastUpdate), getDate()) < 31 | 0 |
28,124 | 08/26/2008 14:07:18 | 3,056 | 08/26/2008 13:54:57 | 1 | 0 | calculating user defined formulas (with c++) | We would like to have user defined formulas in our c++ program.
e.g. The value *v = x + ( y - (z - 2)) / 2*. Later in the program the user would define x,y and z -> the program should return the result of the calculation. <br />Somewhen later the formula may get changed, so the next time the program should parse the formula and add the new values. <br/><br/> Any ideas / hints how to do something like this ? <br/><br/> So far I just came to the solution to write a parser to calculate these formulas - maybe any ideas about that ? | c++ | null | null | null | null | null | open | calculating user defined formulas (with c++)
===
We would like to have user defined formulas in our c++ program.
e.g. The value *v = x + ( y - (z - 2)) / 2*. Later in the program the user would define x,y and z -> the program should return the result of the calculation. <br />Somewhen later the formula may get changed, so the next time the program should parse the formula and add the new values. <br/><br/> Any ideas / hints how to do something like this ? <br/><br/> So far I just came to the solution to write a parser to calculate these formulas - maybe any ideas about that ? | 0 |
28,147 | 08/26/2008 14:14:10 | 2,501 | 08/22/2008 15:02:11 | 1 | 0 | Feasability of GPU as a CPU? | What do you think the future of GPU as a CPU initiatives like CUDA are? Do you think they are going to become mainstream and be the next adopted fad in the industry? Apple is building a new framework for using the GPU to do CPU tasks and there has been alot of success in the Nvidias CUDA project in the sciences. Would you suggest that a student commit time into this field? | cuda | gpuascpu | null | null | null | null | open | Feasability of GPU as a CPU?
===
What do you think the future of GPU as a CPU initiatives like CUDA are? Do you think they are going to become mainstream and be the next adopted fad in the industry? Apple is building a new framework for using the GPU to do CPU tasks and there has been alot of success in the Nvidias CUDA project in the sciences. Would you suggest that a student commit time into this field? | 0 |
28,150 | 08/26/2008 14:15:08 | 832 | 08/09/2008 06:51:40 | 1,806 | 143 | Create an Attribute to Break the Build | OK, this kind of follows on from [my previous question](http://stackoverflow.com/questions/27758/notify-developer-of-a-do-not-use-method).
What I would really like to do is create some sort of attribute which allows me to decorate a method that will **break the build**. Much like the _Obsolete("reason", false)_ attribute, but without falsely identifying obsolete code.
I know I am not alone in this, since [other users want to use it for other reasons](http://stackoverflow.com/questions/27758/notify-developer-of-a-do-not-use-method#27796). I have never created custom attributes before so it is all new to me! | .net | attributes | null | null | null | null | open | Create an Attribute to Break the Build
===
OK, this kind of follows on from [my previous question](http://stackoverflow.com/questions/27758/notify-developer-of-a-do-not-use-method).
What I would really like to do is create some sort of attribute which allows me to decorate a method that will **break the build**. Much like the _Obsolete("reason", false)_ attribute, but without falsely identifying obsolete code.
I know I am not alone in this, since [other users want to use it for other reasons](http://stackoverflow.com/questions/27758/notify-developer-of-a-do-not-use-method#27796). I have never created custom attributes before so it is all new to me! | 0 |
28,160 | 08/26/2008 14:19:34 | 1,881 | 08/19/2008 03:16:05 | 36 | 4 | Multiple classes in a header file vs. a single header file per class | For whatever reason, our company has a coding guideline that states:
`Each class shall have it's own header and implementation file.`
So if we wrote a class called MyString we would need an associated MyStringh.h & MyString.cxx.
Does anyone else do this? Has anyone seen any compiling performance repercussions as a result? Does 5000 classes in 10000 files compile just as quickly as 5000 classes in 2500 files? If not, is the difference noticeable?
[We code C++ and use GCC 3.4.4 as our everyday compiler] | c++ | performance | file-organization | null | null | null | open | Multiple classes in a header file vs. a single header file per class
===
For whatever reason, our company has a coding guideline that states:
`Each class shall have it's own header and implementation file.`
So if we wrote a class called MyString we would need an associated MyStringh.h & MyString.cxx.
Does anyone else do this? Has anyone seen any compiling performance repercussions as a result? Does 5000 classes in 10000 files compile just as quickly as 5000 classes in 2500 files? If not, is the difference noticeable?
[We code C++ and use GCC 3.4.4 as our everyday compiler] | 0 |
28,165 | 08/26/2008 14:20:48 | 305 | 08/04/2008 14:04:19 | 870 | 55 | Does PHP have an equivalent to this type of Python string substitution? | Python has this wonderful way of handling string substitutions using dictionaries
>>> 'The %(site)s site %(adj)s because it %(adj)s' % {'site':'Stackoverflow', 'adj':'rocks'}
'The Stackoverflow site rocks because it rocks'
I love this because you can specify a value once in the dictionary and then replace it all over the place in the string.
I've tried to achieve something to similar to this in PHP using various string replace functions but everything I've come up with feels awkward.
Does anybody have a nice clean way to do this kind of string substitution in PHP? | php | python | string | null | null | null | open | Does PHP have an equivalent to this type of Python string substitution?
===
Python has this wonderful way of handling string substitutions using dictionaries
>>> 'The %(site)s site %(adj)s because it %(adj)s' % {'site':'Stackoverflow', 'adj':'rocks'}
'The Stackoverflow site rocks because it rocks'
I love this because you can specify a value once in the dictionary and then replace it all over the place in the string.
I've tried to achieve something to similar to this in PHP using various string replace functions but everything I've come up with feels awkward.
Does anybody have a nice clean way to do this kind of string substitution in PHP? | 0 |
28,171 | 08/26/2008 14:22:42 | 1,463 | 08/15/2008 17:26:44 | 222 | 16 | Why does Visual Studio create a new .vsmdi file? | If I open a solution in Visual Studio 2008 and run a unit test then VS creates a new .vsmdi file in the Solution Items folder and gives it the next number available e.g. My Solution2.vsmdi.
Any idea why VS is doing this and how I can get it to stop doing this? | visual-studio-2008 | null | null | null | null | null | open | Why does Visual Studio create a new .vsmdi file?
===
If I open a solution in Visual Studio 2008 and run a unit test then VS creates a new .vsmdi file in the Solution Items folder and gives it the next number available e.g. My Solution2.vsmdi.
Any idea why VS is doing this and how I can get it to stop doing this? | 0 |
28,178 | 08/26/2008 14:24:56 | 1,912 | 08/19/2008 14:07:17 | 400 | 25 | 8086 Assembler Tutorial | Following on from [http://stackoverflow.com/questions/27568/][1], I have decided to try and focus on x86 assembler rather than Z80 assembler. To that end, I'd like suggestions of good tutorials to follow. Suggestions of other useful information (such as reference works on x86 assembler) are also very welcome.
[1]: http://stackoverflow.com/questions/27568/ | assembler | x86 | null | null | null | null | open | 8086 Assembler Tutorial
===
Following on from [http://stackoverflow.com/questions/27568/][1], I have decided to try and focus on x86 assembler rather than Z80 assembler. To that end, I'd like suggestions of good tutorials to follow. Suggestions of other useful information (such as reference works on x86 assembler) are also very welcome.
[1]: http://stackoverflow.com/questions/27568/ | 0 |
28,196 | 08/26/2008 14:29:38 | 1,011 | 08/11/2008 13:05:01 | 38 | 4 | Mysql: Using "AND" Operation on tags and categories tables in Wordpress | This is a very specific question regarding **mysql** as implemented in **WordPress**.
I'm trying to develop a plugin which will show (select) posts that have specific '**tags**' and belong to specific '**categories**' (both multiple)
I was told it's impossible because the way categories and tags are stored:
1. wp_posts contains a lists of post, each posts have an "ID"
![wp_posts][1]
2. wp_terms contains a list of terms (both categories and tags). Eac term has a TERM_ID
![wp_terms][2]
3. wp_term_taxonomy has a list of terms with their TERM_IDs and has a Taxonomy definition for each one of those (either a Category or a Tag)
![wp_term_taxonomy][3]
4. wp_term_relationship has associations betweens terms and posts
![wp_term_relationship][4]
How can I join the tables to get all posts with tags "Nuclear" **and** "Deals" that also belong to the category "Category1" ?
Thanks!
[1]: http://www.onoff.co.il/soq/soqwp-posts.jpg
[2]: http://www.onoff.co.il/soq/soqwp-terms.jpg
[3]: http://www.onoff.co.il/soq/soqwp-term_taxonomy.jpg
[4]: http://www.onoff.co.il/soq/soqwp-term_relationship.jpg | mysql | wordpress | query | null | null | null | open | Mysql: Using "AND" Operation on tags and categories tables in Wordpress
===
This is a very specific question regarding **mysql** as implemented in **WordPress**.
I'm trying to develop a plugin which will show (select) posts that have specific '**tags**' and belong to specific '**categories**' (both multiple)
I was told it's impossible because the way categories and tags are stored:
1. wp_posts contains a lists of post, each posts have an "ID"
![wp_posts][1]
2. wp_terms contains a list of terms (both categories and tags). Eac term has a TERM_ID
![wp_terms][2]
3. wp_term_taxonomy has a list of terms with their TERM_IDs and has a Taxonomy definition for each one of those (either a Category or a Tag)
![wp_term_taxonomy][3]
4. wp_term_relationship has associations betweens terms and posts
![wp_term_relationship][4]
How can I join the tables to get all posts with tags "Nuclear" **and** "Deals" that also belong to the category "Category1" ?
Thanks!
[1]: http://www.onoff.co.il/soq/soqwp-posts.jpg
[2]: http://www.onoff.co.il/soq/soqwp-terms.jpg
[3]: http://www.onoff.co.il/soq/soqwp-term_taxonomy.jpg
[4]: http://www.onoff.co.il/soq/soqwp-term_relationship.jpg | 0 |
28,197 | 08/26/2008 14:29:56 | 572 | 08/06/2008 20:56:54 | 1,576 | 146 | Do you follow the Personal Software Process? Does your organization/team follow the Team Software Process? | For more information - [Personal Software Process on Wikipedia][1] and [Team Software Process on Wikipedia][2].
I have two questions:
1. What benefits have you seen from
these processes?
2. What tools and/or
methods do you use to follow these
processes?
[1]: http://en.wikipedia.org/wiki/Personal_Software_Process
[2]: http://en.wikipedia.org/wiki/Team_Software_Process | process | psp | tsp | null | null | null | open | Do you follow the Personal Software Process? Does your organization/team follow the Team Software Process?
===
For more information - [Personal Software Process on Wikipedia][1] and [Team Software Process on Wikipedia][2].
I have two questions:
1. What benefits have you seen from
these processes?
2. What tools and/or
methods do you use to follow these
processes?
[1]: http://en.wikipedia.org/wiki/Personal_Software_Process
[2]: http://en.wikipedia.org/wiki/Team_Software_Process | 0 |
28,202 | 08/26/2008 14:31:28 | 2,644 | 08/23/2008 21:56:47 | 222 | 25 | Best Apache Ant Template | Every time I create a new project I copy the last project's ant file to the new one and make the appropriate changes (trying at the same time to make it more flexible for the next project). But since I didn't really thought about it at the begging, the file started to look really ugly.
Do you have an Ant template that can be easily ported in a new project? Any tips/sites for making one?
Thank you. | java | ant | null | null | null | 12/16/2011 15:21:16 | not constructive | Best Apache Ant Template
===
Every time I create a new project I copy the last project's ant file to the new one and make the appropriate changes (trying at the same time to make it more flexible for the next project). But since I didn't really thought about it at the begging, the file started to look really ugly.
Do you have an Ant template that can be easily ported in a new project? Any tips/sites for making one?
Thank you. | 4 |
28,212 | 08/26/2008 14:33:17 | 1,421 | 08/15/2008 15:19:04 | 208 | 17 | How can I convert types in C++ ? | I'm using two different libraries in my project, and both of them supply a basic rectangle struct. The problem with this is that there seems to be no way to insert a conversion between the types, so I can't call a function in one library with the result from a function in the other. If I was the author of either of these, I could create conversions, from the outside, I can't.
library a:
typedef struct rectangle { sint16 x; sint16 y; uint16 w; uint16 h; } rectangle;
library b:
class Rect {
int x; int y; int width; int height;
/* ... */
};
Now, I can't make a converter class, because C++ will only look for a conversion in one step. This is probably a good thing, because there would be a lot of possibilities involving creating new objects of all kinds of types.
I can't make an operator that takes the struct from `a` and supplies an object of the class from `b`:
<pre>foo.cpp:123 error: ‘operator b::Rect(const rectangle&)’ must be a nonstatic member function</pre>
So, is there a sensible way around this? | c++ | types | oop | null | null | null | open | How can I convert types in C++ ?
===
I'm using two different libraries in my project, and both of them supply a basic rectangle struct. The problem with this is that there seems to be no way to insert a conversion between the types, so I can't call a function in one library with the result from a function in the other. If I was the author of either of these, I could create conversions, from the outside, I can't.
library a:
typedef struct rectangle { sint16 x; sint16 y; uint16 w; uint16 h; } rectangle;
library b:
class Rect {
int x; int y; int width; int height;
/* ... */
};
Now, I can't make a converter class, because C++ will only look for a conversion in one step. This is probably a good thing, because there would be a lot of possibilities involving creating new objects of all kinds of types.
I can't make an operator that takes the struct from `a` and supplies an object of the class from `b`:
<pre>foo.cpp:123 error: ‘operator b::Rect(const rectangle&)’ must be a nonstatic member function</pre>
So, is there a sensible way around this? | 0 |
28,219 | 08/26/2008 14:35:45 | 1,293 | 08/14/2008 12:38:08 | 257 | 33 | In ASP.NET what are the differant ways to inline code in the .aspx? | Can I get a when to use for these and others?
<% %>
<%# EVAL() %>
Thanks | asp.net | null | null | null | null | null | open | In ASP.NET what are the differant ways to inline code in the .aspx?
===
Can I get a when to use for these and others?
<% %>
<%# EVAL() %>
Thanks | 0 |
28,224 | 08/26/2008 14:37:31 | 1,870 | 08/19/2008 00:42:51 | 680 | 25 | Bash reg-exp substitution | Is there a way to run a regexp-string replace on the current line in the bash?
I find myself rather often in the situation, where I have typed a long commandline and then realize, that I would like to change a word somewhere in the line.
My current approach is to finish the line, press Ctrl-A (to get to the start of the line), insert a # (to comment out the line), press enter and then use the `^oldword^newword` syntax (`^oldword^newword` executes the previous command after substituting oldword by newword).
But there has to be a better (faster) way to achieve this. (The mouse is not possible, since I am in an ssh-sessions most of the time).
Probably there is some emacs-like key-command for this, that I don't know about.
| bash | null | null | null | null | null | open | Bash reg-exp substitution
===
Is there a way to run a regexp-string replace on the current line in the bash?
I find myself rather often in the situation, where I have typed a long commandline and then realize, that I would like to change a word somewhere in the line.
My current approach is to finish the line, press Ctrl-A (to get to the start of the line), insert a # (to comment out the line), press enter and then use the `^oldword^newword` syntax (`^oldword^newword` executes the previous command after substituting oldword by newword).
But there has to be a better (faster) way to achieve this. (The mouse is not possible, since I am in an ssh-sessions most of the time).
Probably there is some emacs-like key-command for this, that I don't know about.
| 0 |
28,235 | 08/26/2008 14:41:55 | 290 | 08/04/2008 12:57:50 | 541 | 54 | Should I be doing JSPX instead of JSP? | Using [JDeveloper][1], I started developing a set of web pages for a project at work. Since I didn't know much about JDev at the time, I ran over to Oracle to follow some tutorials. The JDev tutorials recommended doing [JSPX][2] instead of [JSP][3], but didn't really explain why. Are you developing JSPX pages? Why did you decide to do so? What are the pros/cons of going the JSPX route?
[1]: http://www.oracle.com/technology/products/jdev
[2]: http://www.fileinfo.net/extension/jspx
[3]: https://java.sun.com/products/jsp | jsp | jspx | null | null | null | null | open | Should I be doing JSPX instead of JSP?
===
Using [JDeveloper][1], I started developing a set of web pages for a project at work. Since I didn't know much about JDev at the time, I ran over to Oracle to follow some tutorials. The JDev tutorials recommended doing [JSPX][2] instead of [JSP][3], but didn't really explain why. Are you developing JSPX pages? Why did you decide to do so? What are the pros/cons of going the JSPX route?
[1]: http://www.oracle.com/technology/products/jdev
[2]: http://www.fileinfo.net/extension/jspx
[3]: https://java.sun.com/products/jsp | 0 |
28,256 | 08/26/2008 14:52:05 | 2,915 | 08/25/2008 23:15:12 | 211 | 6 | Equation (expression) parser with precedence? | I've developed an equation parser using a simple stack algorithm that will handle binary (+, -, |, &, *, /, etc) operators, unary (!) operators, and parenthesis.
Using this method, however, leaves me with everything having the same precedence - it's evaluated left to right regardless of operator, although precedence can be enforced using parenthesis.
So right now "1+11*5" returns 60, not 56 as one might expect.
While this is suitable for the current project, I want to have a general purpose routine I can use for later projects. I want to write it myself so I can add it to my code library and use it with customer projects without worrying about licensing issues, and in general I work on embedded systems so large libraries or libraries with any restrictions are not ideal.
Plus it's tremendous fun to learn new algorithms. Ask about filled polygons sometime, that was neat!
-Adam | algorithm | parsing | equation | precedence | calculation | null | open | Equation (expression) parser with precedence?
===
I've developed an equation parser using a simple stack algorithm that will handle binary (+, -, |, &, *, /, etc) operators, unary (!) operators, and parenthesis.
Using this method, however, leaves me with everything having the same precedence - it's evaluated left to right regardless of operator, although precedence can be enforced using parenthesis.
So right now "1+11*5" returns 60, not 56 as one might expect.
While this is suitable for the current project, I want to have a general purpose routine I can use for later projects. I want to write it myself so I can add it to my code library and use it with customer projects without worrying about licensing issues, and in general I work on embedded systems so large libraries or libraries with any restrictions are not ideal.
Plus it's tremendous fun to learn new algorithms. Ask about filled polygons sometime, that was neat!
-Adam | 0 |
28,268 | 08/26/2008 14:57:47 | 2,858 | 08/25/2008 15:42:32 | 1 | 0 | Any pitfalls developing C#/.NET code in a Virtual Machine running on a MAC? | I am considering buying an Apple MAC book Pro, are than any pitfalls developing C#/.NET code in a Virtual Machine running on a MAC?
For this purpose, is it better to run Vista or XPPro? | osx | .net | vmware | vista | null | null | open | Any pitfalls developing C#/.NET code in a Virtual Machine running on a MAC?
===
I am considering buying an Apple MAC book Pro, are than any pitfalls developing C#/.NET code in a Virtual Machine running on a MAC?
For this purpose, is it better to run Vista or XPPro? | 0 |
28,280 | 08/26/2008 15:01:50 | 2,187 | 08/20/2008 20:30:43 | 1 | 0 | Can I maintain state between calls to a SQL Server UDF? | I have a SQL script that inserts data (via INSERT statements currently numbering in the thousands) One of the columns contains a unique identifier (though not an IDENTITY type, just a plain ol' int) that's actually unique across a few different tables.
I'd like to add a scalar function to my script that gets the next available ID (i.e. last used ID + 1) but I'm not sure this is possible because there doesn't seem to be a way to use a global or static variable from within a UDF, I can't use a temp table, and I can't update a permanent table from within a function.
Currently my script looks like this:
<pre>
declare @v_baseID int
exec sp_getNextID @v_baseID out --sproc to get the next available id
--Lots of these - where n is a hardcoded value
insert into tableOfStuff (someStuff, uniqueID) values ('stuff', @v_baseID + n )
exec sp_UpdateNextID @v_baseID + lastUsedn --sproc to update the last used id
</pre>
But I would like it to look like this:
<pre>
--Lots of these
insert into tableOfStuff (someStuff, uniqueID) values ('stuff', getNextID() )
</pre>
Hardcoding the offset is a pain in the arse, and is error prone. Packaging it up into a simple scalar function is very appealing, but I'm starting to think it can't be done that way since there doesn't seem to be a way to maintain the offset counter between calls. Is that right, or is there something I'm missing.
We're using SQL Server 2005 at the moment. | sql | sql-server | sql-server-2005 | null | null | null | open | Can I maintain state between calls to a SQL Server UDF?
===
I have a SQL script that inserts data (via INSERT statements currently numbering in the thousands) One of the columns contains a unique identifier (though not an IDENTITY type, just a plain ol' int) that's actually unique across a few different tables.
I'd like to add a scalar function to my script that gets the next available ID (i.e. last used ID + 1) but I'm not sure this is possible because there doesn't seem to be a way to use a global or static variable from within a UDF, I can't use a temp table, and I can't update a permanent table from within a function.
Currently my script looks like this:
<pre>
declare @v_baseID int
exec sp_getNextID @v_baseID out --sproc to get the next available id
--Lots of these - where n is a hardcoded value
insert into tableOfStuff (someStuff, uniqueID) values ('stuff', @v_baseID + n )
exec sp_UpdateNextID @v_baseID + lastUsedn --sproc to update the last used id
</pre>
But I would like it to look like this:
<pre>
--Lots of these
insert into tableOfStuff (someStuff, uniqueID) values ('stuff', getNextID() )
</pre>
Hardcoding the offset is a pain in the arse, and is error prone. Packaging it up into a simple scalar function is very appealing, but I'm starting to think it can't be done that way since there doesn't seem to be a way to maintain the offset counter between calls. Is that right, or is there something I'm missing.
We're using SQL Server 2005 at the moment. | 0 |
28,293 | 08/26/2008 15:08:39 | 722 | 08/08/2008 11:37:05 | 624 | 34 | Generating an object model in Ruby from an XML DTD | I have an XML document with a DTD, and would love to be able to access the XML model, something like this:
title = Thing.Items[0].Title
Is there a way, in Ruby, to generate this kind of object model based on a DTD? Or am I stuck using REXML?
Thanks! | ruby | xml | dtd | null | null | null | open | Generating an object model in Ruby from an XML DTD
===
I have an XML document with a DTD, and would love to be able to access the XML model, something like this:
title = Thing.Items[0].Title
Is there a way, in Ruby, to generate this kind of object model based on a DTD? Or am I stuck using REXML?
Thanks! | 0 |
28,301 | 08/26/2008 15:11:27 | 3,071 | 08/26/2008 14:30:11 | 1 | 0 | Impose a total ordering on all instances of *any* class in Java | I'm unsure whether the following code would ensure all conditions given in Comparator's Javadoc.
class TotalOrder<T> implements Comparator<T> {
public boolean compare(T o1, T o2) {
if (o1 == o2 || equal(o1, o2)) return 0;
int h1 = System.identityHashCode(o1);
int h2 = System.identityHashCode(o2);
if (h1 != h2) {
return h1 < h2 ? -1 : 1;
}
// equals returned false but identity hash code was same, assume o1 == o2
return 0;
}
boolean equal(Object o1, Object o2) {
return o1 == null ? o2 == null : o1.equals(o2);
}
}
Will the code above impose a total ordering on all instances of any class, even if that class does not implement Comparable? | java | algorithm | null | null | null | null | open | Impose a total ordering on all instances of *any* class in Java
===
I'm unsure whether the following code would ensure all conditions given in Comparator's Javadoc.
class TotalOrder<T> implements Comparator<T> {
public boolean compare(T o1, T o2) {
if (o1 == o2 || equal(o1, o2)) return 0;
int h1 = System.identityHashCode(o1);
int h2 = System.identityHashCode(o2);
if (h1 != h2) {
return h1 < h2 ? -1 : 1;
}
// equals returned false but identity hash code was same, assume o1 == o2
return 0;
}
boolean equal(Object o1, Object o2) {
return o1 == null ? o2 == null : o1.equals(o2);
}
}
Will the code above impose a total ordering on all instances of any class, even if that class does not implement Comparable? | 0 |
28,302 | 08/26/2008 15:12:18 | 342 | 08/04/2008 19:59:52 | 441 | 60 | Free Network Monitor | I am having trouble integrating two products, one of which is mine and they appear not to be talking. So I want to make sure they are communicating correctly. I had a look around for network monitor and found TCP Spy. This works but only shows 1 side of the conversation at a time (it has to run locally) I would ideally like to see both sides at the same time - but you can't run two copies of TCP Spy.
I've hit Sourceforge, but nothing seems to jump out - I'm a Windows developer, I don't have perl installed.
I've found a couple of others which are cripple-ware and totally useless, so I was wondering what do the SO guys use for watching the TCP conversation?
BTW - the 'not-written-here' product is not a browser. | windows | sockets | network-monitoring | null | null | null | open | Free Network Monitor
===
I am having trouble integrating two products, one of which is mine and they appear not to be talking. So I want to make sure they are communicating correctly. I had a look around for network monitor and found TCP Spy. This works but only shows 1 side of the conversation at a time (it has to run locally) I would ideally like to see both sides at the same time - but you can't run two copies of TCP Spy.
I've hit Sourceforge, but nothing seems to jump out - I'm a Windows developer, I don't have perl installed.
I've found a couple of others which are cripple-ware and totally useless, so I was wondering what do the SO guys use for watching the TCP conversation?
BTW - the 'not-written-here' product is not a browser. | 0 |
28,303 | 08/26/2008 15:13:03 | 2,141 | 08/20/2008 14:38:34 | 210 | 4 | Web 2.0 CSS Color Combinations | What are the most user-friendly color combinations for Web 2.0 websites, such as background, button colors, etc.? | web-2.0 | null | null | null | null | null | open | Web 2.0 CSS Color Combinations
===
What are the most user-friendly color combinations for Web 2.0 websites, such as background, button colors, etc.? | 0 |
28,353 | 08/26/2008 15:22:38 | 1,070 | 08/12/2008 09:39:23 | 1 | 0 | How can I get notification when a mirrored SQL Server database has failed over | We have a couple of mirrored SQL Server databases.
My first problem - the key problem - is to get a notification when the db fails over. I don't *need* to know because, erm, its mirrored and so it (almost) all carries on working automagically but it would useful to be advised and I'm currently getting failovers when I don't think I should be so it want to know when they occur (without too much digging) to see if I can determine why.
I have services running that I could fairly easily use to monitor this - so the alternative question would be "How do I programmatically determine which is the principal and which is the mirror" - preferably in a more intelligent fashion than just attempting to connect each in turn (which would mostly work but...).
Thanks, Murph | sql-server | null | null | null | null | null | open | How can I get notification when a mirrored SQL Server database has failed over
===
We have a couple of mirrored SQL Server databases.
My first problem - the key problem - is to get a notification when the db fails over. I don't *need* to know because, erm, its mirrored and so it (almost) all carries on working automagically but it would useful to be advised and I'm currently getting failovers when I don't think I should be so it want to know when they occur (without too much digging) to see if I can determine why.
I have services running that I could fairly easily use to monitor this - so the alternative question would be "How do I programmatically determine which is the principal and which is the mirror" - preferably in a more intelligent fashion than just attempting to connect each in turn (which would mostly work but...).
Thanks, Murph | 0 |
28,360 | 08/26/2008 15:24:42 | 2,894 | 08/25/2008 20:06:55 | 23 | 6 | Moving SQL based reports to Data cubes | I am about to migrate a bunch of seriously over-complex Reports (MS SQL report server over some horrible stored procedures) to something more BI based. I was wondering if anybody had any pointers, gotchas, or general advice on the best way to do this. Thanks. | sql-server | report | bi | null | null | 09/11/2008 16:13:15 | off topic | Moving SQL based reports to Data cubes
===
I am about to migrate a bunch of seriously over-complex Reports (MS SQL report server over some horrible stored procedures) to something more BI based. I was wondering if anybody had any pointers, gotchas, or general advice on the best way to do this. Thanks. | 2 |
28,363 | 08/26/2008 15:25:16 | 1,254 | 08/13/2008 22:34:57 | 298 | 24 | Database compare tools | My company has a number of relatively small Access databases (2-5MB) that control our user assisted design tools. Naturally these databases evolve over time as data bugs are found and fixed and as the schema changes to support new features in the tools. Can anyone recommend a database diff tool to compare both the data and schema from one version of the database to the next? Any suggestions will be appreciated: free, open source, or commercial. | database | diff | null | null | null | null | open | Database compare tools
===
My company has a number of relatively small Access databases (2-5MB) that control our user assisted design tools. Naturally these databases evolve over time as data bugs are found and fixed and as the schema changes to support new features in the tools. Can anyone recommend a database diff tool to compare both the data and schema from one version of the database to the next? Any suggestions will be appreciated: free, open source, or commercial. | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.