Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28,256 | 1 | 29,124 | null | 121 | 99,227 | 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 ca... | Equation (expression) parser with precedence? | CC BY-SA 4.0 | 0 | 2008-08-26T14:52:05.060 | 2021-07-31T16:07:22.060 | 2020-12-29T08:51:02.807 | 5,923,936 | 2,915 | [
"algorithm",
"parsing",
"equation"
] |
28,275 | 2 | null | 27,568 | 3 | null | [SimpSim](http://www.anne-gert.nl/projects/simpsim/) is definitely worth a look. It's Windows only, but the feature set is pretty decent:
- - -
| null | CC BY-SA 2.5 | null | 2008-08-26T15:00:04.837 | 2008-08-26T15:00:04.837 | null | null | 734 | null |
28,279 | 2 | null | 28,268 | 1 | null | I'm developing .NET apps in a Vista VM under VMWare Fusion.
Obviously you need a lot of memory, but other than not having Aero, I haven't run into any problems yet.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:01:28.860 | 2008-08-26T15:01:28.860 | null | null | 2,597 | null |
28,268 | 1 | 28,277 | null | 5 | 2,177 | I am considering buying an Apple MacBook Pro. Are there any pitfalls developing C#/.NET code in a virtual machine running on a Mac?
Also, is it better to run Vista or XP Pro for this purpose?
| Any pitfalls developing C#/.NET code in a VM running on a Mac? | CC BY-SA 3.0 | null | 2008-08-26T14:57:47.090 | 2016-03-24T20:47:53.367 | 2014-12-13T16:29:52.970 | 1,810,429 | 2,858 | [
".net",
"macos",
"vmware"
] |
28,277 | 2 | null | 28,268 | 13 | null | I can't tell you any specific experiences since I don't have a Mac, but I did want to point out that there was an awesome episode of the DeepFriedBytes podcast that discussed this very topic. It made me want to give it a try. They discuss the pros and cons of going this route - well worth the listen IMO if this is some... | null | CC BY-SA 2.5 | null | 2008-08-26T15:00:54.947 | 2008-08-26T15:00:54.947 | null | null | 1,627 | null |
28,276 | 2 | null | 28,268 | 1 | null | XP Pro is definitely better, unless you have a really beefy Mac.
Regarding your other question, no there are no pitfalls, other than performance. I prefer to use a real PC to do actual coding, using VMs for testing. Clearly, that's not an option for you within OSX. However, you do have the option of Boot Camp if the V... | null | CC BY-SA 2.5 | null | 2008-08-26T15:00:52.217 | 2008-08-26T15:00:52.217 | null | null | 1,975,282 | null |
28,283 | 2 | null | 28,268 | 0 | null | I don't think Kibbee advice is correct. VMware Fusion (for the mac) currently supports up to DirectX9. The Vista integration is very good. If you have any trouble, you can natively boot into your Virtual Machine (If you have set it up as a BootCamp partition on the mac).
I don't see any trouble with this setup, althou... | null | CC BY-SA 2.5 | null | 2008-08-26T15:04:17.963 | 2008-08-26T15:04:17.963 | null | null | 1,870 | null |
28,282 | 2 | null | 28,256 | 4 | null | Is there a language you want to use? [ANTLR](http://antlr.org/) will let you do this from a Java perspective. Adrian Kuhn has an excellent [writeup](http://www.iam.unibe.ch/~akuhn/blog/2008/05/executable-grammar-dsl/) on how to write an executable grammar in Ruby; in fact, his example is almost exactly your arithmeti... | null | CC BY-SA 2.5 | null | 2008-08-26T15:04:04.033 | 2008-08-26T15:04:04.033 | null | null | 1,190 | null |
28,284 | 2 | null | 888 | 11 | null | I use Netbeans with XDebug.
Check it out at its website for docs on how to configure it.
[http://php.netbeans.org/](http://php.netbeans.org/)
| null | CC BY-SA 2.5 | null | 2008-08-26T15:04:57.963 | 2008-08-26T15:04:57.963 | null | null | 3,086 | null |
28,285 | 2 | null | 28,280 | 2 | null | If you have 2 users hitting it at the same time they will get the same id. Why didn't you use an id table with an identity instead, insert into that and use that as the unique (which is guaranteed) id, this will also perform much faster
> > sp_getNextID
never ever prefix procs with sp_, this has performance implicat... | null | CC BY-SA 2.5 | null | 2008-08-26T15:05:58.943 | 2008-08-26T15:05:58.943 | null | null | 740 | null |
28,290 | 2 | null | 28,235 | 2 | null | @Matthew-
ADF! The application I'm presently working on has 90% of the presentation layer generated by mod PL/SQL. I started working on a few new screens and wanted to investigate other options that might fit into our architecture, without being to much of a learning burden (increasing the complexity of the system/cras... | null | CC BY-SA 2.5 | null | 2008-08-26T15:07:40.047 | 2008-08-26T15:07:40.047 | null | null | null | null |
28,286 | 2 | null | 28,256 | 4 | null | It depends on how "general" you want it to be.
If you want it to be really really general such as be able to parse mathematical functions as well like sin(4+5)*cos(7^3) you will probably need a
In which, I do not think that a complete implementation is proper to be pasted here. I'd suggest that you check out one of ... | null | CC BY-SA 2.5 | null | 2008-08-26T15:06:22.263 | 2008-08-26T15:06:22.263 | null | null | 3,055 | null |
28,272 | 2 | null | 28,256 | 13 | null | It would help if you could describe the grammar you are currently using to parse. Sounds like the problem might lie there!
Edit:
The fact that you don't understand the grammar question and that 'you've written this by hand' very likely explains why you're having problems with expressions of the form '1+11*5' (i.e., w... | null | CC BY-SA 2.5 | null | 2008-08-26T14:59:37.337 | 2008-08-26T19:13:05.557 | 2017-05-23T11:54:48.027 | -1 | 2,638 | null |
28,298 | 2 | null | 6,208 | 1 | null | I agree.. there are subtle differences between the two operating systems. Part of this is just font sizes and how line height and letter spacing is determined. So much of page flow is based on these whitespace elements interact with other page elements.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:10:57.713 | 2008-08-26T15:10:57.713 | null | null | 3,013 | null |
28,297 | 2 | null | 28,268 | 0 | null | I do asp.net development on a MacBook Pro, running VMWare Fusion and Vista x64. It works great for me.
As someone else mentioned, the keybindings are a little weird. I usually use a full size external keyboard, which helps a lot.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:10:57.557 | 2008-08-26T15:10:57.557 | null | null | 1,338 | null |
28,252 | 2 | null | 28,092 | 10 | null | Take a look at [RoutedCommand](http://msdn.microsoft.com/en-us/library/system.windows.input.routedcommand.aspx)s.
Define your command in myclass somewhere as follows:
```
public static readonly RoutedCommand Login = new RoutedCommand();
```
Now define your button with this command:
```
<Button Command="{x:Static m... | null | CC BY-SA 2.5 | null | 2008-08-26T14:51:05.203 | 2008-08-26T14:56:27.297 | 2008-08-26T14:56:27.297 | 900 | 900 | null |
28,280 | 1 | 29,660 | null | 1 | 433 | 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... | Can I maintain state between calls to a SQL Server UDF? | CC BY-SA 2.5 | null | 2008-08-26T15:01:50.620 | 2008-11-17T21:48:44.813 | 2008-11-17T21:48:44.813 | 3,743 | 2,187 | [
"sql",
"sql-server",
"sql-server-2005"
] |
28,303 | 1 | 28,328 | null | 15 | 16,301 | What are the most user-friendly color combinations for Web 2.0 websites, such as background, button colors, etc.?
| Web 2.0 Color Combinations | CC BY-SA 2.5 | 0 | 2008-08-26T15:13:03.043 | 2012-08-14T06:37:05.787 | 2008-09-10T00:13:44.517 | -1 | 2,141 | [
"colors",
"color-scheme"
] |
28,293 | 1 | 28,562 | null | 0 | 1,437 | 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!
| Generating an object model in Ruby from an XML DTD | CC BY-SA 2.5 | null | 2008-08-26T15:08:39.420 | 2009-09-22T19:25:28.010 | null | null | 722 | [
"xml",
"ruby",
"dtd"
] |
28,289 | 2 | null | 27,998 | 17 | null | > What about late-binding? As in loading
it with LoadLibrary() and
GetProcAddress() ? I'm used being able
to load the library at run time and it
would be great if you could do that
here.
So there are two ways to load the DLL. The first is to reference one or more symbols from the DLL (your classname, for exa... | null | CC BY-SA 2.5 | null | 2008-08-26T15:07:29.330 | 2008-08-26T15:07:29.330 | null | null | null | null |
28,302 | 1 | 29,860 | null | 9 | 1,513 | 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... | Free Network Monitor | CC BY-SA 2.5 | 0 | 2008-08-26T15:12:18.833 | 2014-01-29T15:26:55.023 | null | null | 342 | [
"windows",
"sockets",
"network-monitoring"
] |
28,309 | 2 | null | 28,302 | 4 | null | [Wireshark](http://www.wireshark.org/) (previously Ethereal)
> Wireshark is an award-winning network protocol analyzer developed by an international team of networking experts.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:14:07.457 | 2008-08-26T15:14:07.457 | null | null | 52 | null |
28,304 | 2 | null | 28,202 | 0 | null | I used to do exactly the same thing.... then I switched to [maven](http://maven.apache.org/). Maven relies on a simple xml file to configure your build and a simple repository to manage your build's dependencies (rather than checking these dependencies into your source control system with your code).
One feature I ... | null | CC BY-SA 2.5 | null | 2008-08-26T15:13:31.780 | 2008-08-26T15:13:31.780 | null | null | 2,890 | null |
28,308 | 2 | null | 28,302 | 4 | null | I'm not sure if it does everything you want, but have you seen [WireShark](http://www.wireshark.org/) and the [Microsoft Network Monitor](http://www.microsoft.com/downloads/details.aspx?familyid=18b1d59d-f4d8-4213-8d17-2f6dde7d7aac&displaylang=en)?
| null | CC BY-SA 2.5 | null | 2008-08-26T15:13:50.983 | 2008-08-26T15:13:50.983 | null | null | 572 | null |
28,312 | 2 | null | 28,241 | 3 | null | From my experience, the only thing that matters is which one is easier to mock in unit tests. I always felt Singleton is easier and natural to mock out. If your organization lets you use JMockit, it doesn't matter since you can overcome these concerns.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:14:26.630 | 2008-08-26T15:14:26.630 | null | null | 3,087 | null |
28,313 | 2 | null | 28,302 | 4 | null | I use [wireshark](http://www.wireshark.org/). Very good and free.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:14:29.297 | 2008-08-26T15:14:29.297 | null | null | 2,957 | null |
28,325 | 2 | null | 28,268 | 0 | null | For virtualization, I'd try Sun's [Virtual Box](http://virtualox.org). I use it in Windows XP and Windows Vista and it works great, I expect performance would be similar running on a Mac.
As for which OS to run, I would stick with Windows XP Pro. You'll not need to dedicate as much RAM to the VM as you would if you ... | null | CC BY-SA 2.5 | null | 2008-08-26T15:16:34.143 | 2008-08-26T15:16:34.143 | null | null | 271 | null |
28,327 | 2 | null | 28,303 | 0 | null | I would say that using the right combination of colors is user-friendly. Make sure your colors coordinate with each other and you should be fine.
A tool I use a lot is kuler ([http://kuler.adobe.com](http://kuler.adobe.com)). It'll help you pick colors that work well with each other.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:16:51.443 | 2008-08-26T15:16:51.443 | null | null | 1,226 | null |
28,316 | 2 | null | 27,381 | 1 | null | I think it depends on the content of the site. Sites like SOFlow, Forums, and other sites have an emphasis on reading lots of details, so having more real estate to do so is a big benefit in my mind. The less vertical scroll, the better.
However, for sites a little less demanding on the reading level, even blogs or re... | null | CC BY-SA 2.5 | null | 2008-08-26T15:14:43.943 | 2008-08-26T15:14:43.943 | null | null | 71 | null |
28,319 | 2 | null | 28,302 | 20 | null | [Wireshark](http://www.wireshark.org/) is a really good and mature network sniffer. It's been around for years.
- - - - -
| null | CC BY-SA 2.5 | null | 2008-08-26T15:15:17.283 | 2008-08-26T15:15:17.283 | null | null | 956 | null |
28,328 | 2 | null | 28,303 | 11 | null | [ColorSchemer](http://www.colorschemer.com/online.html) will suggest good schemes for you.
If you want to try something out on your own, try [Color Combinations](http://www.colorcombos.com/).
| null | CC BY-SA 2.5 | null | 2008-08-26T15:16:53.067 | 2008-08-26T15:16:53.067 | null | null | 1,318 | null |
28,329 | 2 | null | 28,302 | 3 | null | Wireshark, aka Ethereal comes with a fair amount of TCP sniffing functionality.
[http://www.wireshark.org/](http://www.wireshark.org/)
| null | CC BY-SA 2.5 | null | 2008-08-26T15:17:04.907 | 2008-08-26T15:17:04.907 | null | null | 974 | null |
28,330 | 2 | null | 28,303 | 4 | null | I've been using this [free color schemer](http://www.colorschemer.com/online.html) to help me determine some nice layouts. You give it a base color and it will give you a lot of complements.
EDIT: Gah! Curse you jko and your god-like typing abilities! At least we have the same reference though. 8^D
| null | CC BY-SA 2.5 | null | 2008-08-26T15:17:30.210 | 2008-08-26T15:17:30.210 | null | null | 71 | null |
28,301 | 1 | 28,494 | null | 3 | 926 | 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.identity... | Impose a total ordering on all instances of *any* class in Java | CC BY-SA 2.5 | null | 2008-08-26T15:11:27.383 | 2013-05-18T01:24:35.683 | null | null | 3,071 | [
"java",
"algorithm"
] |
28,317 | 2 | null | 28,268 | 0 | null | I am developing .net applications using XP Pro in VMWare Fusion and I am not finding any issues. I am not even seeing any performance issues as the hardware in the MacBook Pro is much better than the hardware I had in my previous laptop.
I found that there were a few things that I had to fiddle with to make the experi... | null | CC BY-SA 2.5 | null | 2008-08-26T15:14:44.133 | 2008-08-26T15:23:41.897 | 2008-08-26T15:23:41.897 | 1,403 | 1,403 | null |
28,326 | 2 | null | 28,303 | 0 | null | [search for color on useit](http://useit.mondosearch.com/cgi-bin/MsmFind.exe?QUERY=color)
[search for color on boxesandarrows](http://www.boxesandarrows.com/search?q=color)
There has been loads of research on this sort of stuff and most of it is conflicting a couple of good jump off points are listed above.
General... | null | CC BY-SA 2.5 | null | 2008-08-26T15:16:50.367 | 2008-08-26T15:16:50.367 | null | null | 269 | null |
28,336 | 2 | null | 1,644 | 0 | null | My list includes:
```
.NET Rocks!
RunAs Radio
TWiT
Stack Overflow (but then again, we wouldn't be in Beta if we didn't)
Channel 9
Hanselminutes
```
Pretty much the same as everybody else. Just goes to show you why podcasts are important to developing your art.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:18:51.923 | 2009-09-14T09:22:37.737 | 2009-09-14T09:22:37.737 | 63,550 | 2,894 | null |
28,341 | 2 | null | 28,268 | 0 | null | I've been doing .NET development using Parallels for over a year now, using WinXP Pro and can't complain, it runs fast (just as it would on a regular machine) and I get the best of all worlds --> a tip, use spaces, so have Windows running in one desk and your Mac stuff on the other, and with just a keystroke you move f... | null | CC BY-SA 3.0 | null | 2008-08-26T15:20:37.300 | 2016-03-24T20:47:53.367 | 2016-03-24T20:47:53.367 | 6,083,675 | 1,549 | null |
28,335 | 2 | null | 28,303 | 1 | null | My stick figures come out wrong, but the following links have kept me artistically aligned for many years:
- [Color tools for the design impaired](http://www.figby.com/archives/2005/01/12/color-tools-for-the-design-impaired/)- [Color Scheme Generator](http://wellstyled.com/tools/colorscheme2/index-en.html)
To web 2.0... | null | CC BY-SA 2.5 | null | 2008-08-26T15:18:32.657 | 2008-08-26T15:18:32.657 | null | null | 35 | null |
28,343 | 2 | null | 28,301 | 1 | null | You answered in your comment:
> equals returned false but identity hash code was same, assume o1 == o2
Unfortunately you cannot assume that. Most of the time that is going to work, but in some exceptionnal cases, it won't. And you cannot know when. When such a case appear, it would lead to lose instances in TreeSets... | null | CC BY-SA 2.5 | null | 2008-08-26T15:20:55.053 | 2008-08-26T15:20:55.053 | null | null | 3,069 | null |
28,339 | 2 | null | 23,277 | 3 | null | @Creighton:
In Haskell there is a library function called :
```
prouduct list = foldr 1 (*) list
```
or simply:
```
product = foldr 1 (*)
```
so the "idiomatic" factorial
```
fac n = foldr 1 (*) [1..n]
```
would simply be
```
fac n = product [1..n]
```
| null | CC BY-SA 2.5 | null | 2008-08-26T15:20:21.060 | 2008-08-26T15:20:21.060 | null | null | 2,543 | null |
28,342 | 2 | null | 28,303 | 4 | null | For color schemes, I like browsing [Colour Lovers](http://www.colourlovers.com/lover/COLOURlover). There are thousands of user-submitted color schemes to pick through for ideas and you can easily create your own scheme if you'd like. A lot of times I use it just for the color palette to create just the right color (i... | null | CC BY-SA 2.5 | null | 2008-08-26T15:20:43.307 | 2008-08-26T15:20:43.307 | null | null | 271 | null |
28,344 | 2 | null | 427 | 3 | null | I think this is going to be quite difficult without code.
Two options come to mind:
- -
| null | CC BY-SA 2.5 | null | 2008-08-26T15:21:09.920 | 2008-08-26T15:21:09.920 | null | null | 636 | null |
28,346 | 2 | null | 27,889 | 0 | null | You need to specify the full path to the assembly argument I think...
```
<exec program="${output.dir}SpecUnit.Report.exe" verbose="true">
<arg value="${output.dir}${acceptance.tests.assembly}" />
</exec>
```
| null | CC BY-SA 2.5 | null | 2008-08-26T15:21:19.577 | 2008-08-26T15:28:00.480 | 2008-08-26T15:28:00.480 | 3,089 | 3,089 | null |
28,306 | 2 | null | 23,277 | 6 | null | Konrad said:
> As a consequence, a purely functional program always yields the same value for an input,
and the order of evaluation is not well-defined; which means that uncertain values like
user input or random values are hard to model in purely functional languages.
The order of evaluation in a purely ... | null | CC BY-SA 2.5 | null | 2008-08-26T15:13:35.227 | 2009-11-06T21:56:33.200 | 2009-11-06T21:56:33.200 | 2,543 | 2,543 | null |
28,347 | 2 | null | 2,873 | 0 | null | G'day,
I totally agree with the suggestions to read and digest what the compiler is telling you after setting -Wall.
A good static analysis tool for security is [FlawFinder](http://www.dwheeler.com/flawfinder/) written by David Wheeler. It does a good job looking for various security exploits,
However, it doesn't re... | null | CC BY-SA 2.5 | null | 2008-08-26T15:21:28.297 | 2008-08-26T15:21:28.297 | null | null | 2,974 | null |
28,363 | 1 | 101,026 | null | 3 | 3,018 | 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 da... | Database compare tools | CC BY-SA 2.5 | 0 | 2008-08-26T15:25:16.713 | 2016-04-04T10:55:24.373 | null | null | 1,254 | [
"database",
"diff"
] |
28,354 | 2 | null | 28,268 | 0 | null | Just to mention an alternative to VMWare Fusion, I'm using Parallels als a VM. Performance has not been an issue so far when I've given the VM 1 GiB of main memory. Before deciding on one VM, I'd suggest testing them all extensively. I am quite happy with Parallels but I'm not sure I wouldn't use VMWare Fusion the next... | null | CC BY-SA 2.5 | null | 2008-08-26T15:22:41.117 | 2008-08-26T15:22:41.117 | null | null | 1,968 | null |
28,349 | 2 | null | 28,165 | 4 | null | @[Marius](https://stackoverflow.com/questions/28165/does-php-have-an-equivalent-to-this-type-of-python-string-substitution#28199)
I don't know if it's faster, but you can do it without regexes:
```
function subst($str, $dict)
{
foreach ($dict AS $key, $value)
{
$str = str_replace($key, $value, $str);
}
r... | null | CC BY-SA 2.5 | null | 2008-08-26T15:21:51.820 | 2008-08-26T15:21:51.820 | 2017-05-23T12:32:11.643 | -1 | 2,506 | null |
28,345 | 2 | null | 28,303 | 2 | null | These aren't combinations per-say but are good colours if you're just looking to mock something up (or if you're like me and have the colour sense of a bat).
- [Google Docs & Spreadsheets: Web 2.0 Colours](http://spreadsheets.google.com/pub?key=piKzWNbPjBY5C0WGkUbsjOg&output=html)- [Modern Life is Rubbish: Web 2.0 Col... | null | CC BY-SA 2.5 | null | 2008-08-26T15:21:13.383 | 2008-08-26T15:21:13.383 | null | null | 2,025 | null |
28,357 | 2 | null | 27,711 | 0 | null | Well, I've already set AutoPage and AllowPaging to true.
I've confirmed that RetrieveTotalRowCount is set to true by checking its value in debug mode (couldn't find where to change its value).
And it still returns -1.
The only thing missing is:
> -1 if the LinqDataSourceStatusEventArgs object was created during a da... | null | CC BY-SA 2.5 | null | 2008-08-26T15:23:41.897 | 2008-08-26T15:23:41.897 | null | null | 2,841 | null |
28,376 | 2 | null | 28,363 | 0 | null | We never actually purchased it as we ended up using SQL Server 2005, but DBDiff seemed to do the trick: [http://www.dkgas.com/downdbdiff.cgi](http://www.dkgas.com/downdbdiff.cgi)
It works with any ODBC compatible DB.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:29:40.727 | 2008-08-26T15:29:40.727 | null | null | 2,494 | null |
28,374 | 2 | null | 28,303 | 0 | null | [Miles Burke](http://www.milesburke.com.au/blog/2007/06/29/the-web20-colours-of-2007/) has compiled a list of the colors used in the majority of the big names in this Web 2.0 world.
He also gives a [PNG](http://www.milesburke.com.au/blog/wp-content/files/web2coloursof2007.png) or a [JPG](http://www.milesburke.com.au/b... | null | CC BY-SA 2.5 | null | 2008-08-26T15:29:27.530 | 2008-08-26T15:29:27.530 | null | null | 1,291 | null |
28,373 | 2 | null | 28,196 | 3 | null | Try this:
```
select p.*
from wp_posts p,
wp_terms t, wp_term_taxonomy tt, wp_term_relationship tr
wp_terms t2, wp_term_taxonomy tt2, wp_term_relationship tr2
where p.id = tr.object_id
and t.term_id = tt.term_id
and tr.term_taxonomy_id = tt.term_taxonomy_id
and p.id = tr2.object_id
and t2.term_id = tt2.term_id
and ... | null | CC BY-SA 3.0 | null | 2008-08-26T15:29:20.120 | 2012-07-06T20:26:36.557 | 2012-07-06T20:26:36.557 | 190,829 | 2,610 | null |
28,353 | 1 | 37,116 | null | 2 | 4,981 | 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 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... | How can I get notification when a mirrored SQL Server database has failed over | CC BY-SA 2.5 | 0 | 2008-08-26T15:22:38.373 | 2010-08-03T05:56:09.213 | 2008-08-28T08:03:34.353 | 1,070 | 1,070 | [
"sql-server"
] |
28,377 | 1 | 28,452 | null | 101 | 64,319 | In Visual Basic, is there a performance difference when using the `IIf` function instead of the `If` statement?
| Performance difference between IIf() and If | CC BY-SA 3.0 | 0 | 2008-08-26T15:29:45.907 | 2017-04-20T09:39:27.353 | 2015-08-09T22:14:54.107 | 3,425,536 | 299 | [
"vb.net",
"if-statement",
"iif-function"
] |
28,378 | 2 | null | 28,268 | 2 | null | I'm developing in a Parallels VM running Windows Server 2008, and overall it is terrific. I'd highly recommend the server OS over Vista or XP if you are doing web development.
Other than the keyboard issue, the one pitfall with the MacBook Pro is that the fan is extremely loud and annoying, and running a VM has in my ... | null | CC BY-SA 2.5 | null | 2008-08-26T15:30:08.587 | 2008-08-26T15:30:08.587 | null | null | 2,323 | null |
28,369 | 1 | 32,028 | null | 5 | 4,059 | I'm looking for a "safe" eval function, to implement spreadsheet-like calculations (using numpy/scipy).
The functionality to do this (the [rexec module](http://docs.python.org/lib/module-rexec.html)) has been removed from Python since 2.3 due to apparently unfixable security problems. There are several third-party hac... | Is "safe_eval" really safe? | CC BY-SA 2.5 | 0 | 2008-08-26T15:27:03.587 | 2012-11-03T18:04:37.997 | 2008-09-07T01:44:49.767 | 3,002 | 3,002 | [
"python",
"security"
] |
28,380 | 1 | 3,869,611 | null | 56 | 76,234 | Has anybody managed to get the Android Emulator working behind a proxy that requires authentication?
I've tried setting the -http-proxy argument to
```
http://DOMAIN/USERNAME:PASSWORD@IP:PORT
```
but am having no success.
I've tried following the docs to no avail. I've also tried the `-verbose-proxy` setting but this ... | Proxy which requires authentication with Android Emulator | CC BY-SA 4.0 | 0 | 2008-08-26T15:30:38.367 | 2022-07-20T12:14:50.123 | 2021-05-18T12:31:08.440 | 11,598,941 | 1,281 | [
"android",
"authentication",
"proxy",
"android-emulator"
] |
28,389 | 2 | null | 28,224 | 3 | null | in ksh, in vi mode, if you hit 'v' while in command mode it will spawn a full vi session on the contents of your current command line. You can then edit using the full range of vi commands (global search and replace in your case). When :wq from vi, the edited command is executed. I'm sure something similar exists fo... | null | CC BY-SA 2.5 | null | 2008-08-26T15:33:57.987 | 2008-08-26T15:33:57.987 | null | null | 430 | null |
28,383 | 2 | null | 28,377 | 7 | null | According to [this guy](http://www.vb-helper.com/howto_compare_iif_ifthen_speeds.html), IIf can take up to 6x as long as If/Then. YMMV.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:31:08.210 | 2008-08-26T15:31:08.210 | null | null | 35 | null |
28,385 | 2 | null | 28,301 | 1 | null | I don't think it does since this clause is not met:
> Finally, the implementer must ensure that x.compareTo(y)==0 implies that sgn(x.compareTo(z)) == sgn(y.compareTo(z)), for all z.
Since equal(o1, o2) depends on o1's implementation of equals, two objects that are logically equal (as determined by equals) still have ... | null | CC BY-SA 2.5 | null | 2008-08-26T15:32:28.317 | 2008-08-26T15:32:28.317 | null | null | 2,443 | null |
28,395 | 1 | 28,411 | null | 98 | 193,314 | How do you pass `$_POST` values to a page using `cURL`?
| Passing $_POST values with cURL | CC BY-SA 3.0 | 0 | 2008-08-26T15:35:07.857 | 2023-01-13T07:47:36.233 | 2016-02-26T16:46:47.970 | 4,306,076 | 2,863 | [
"php",
"post",
"curl"
] |
28,393 | 2 | null | 28,377 | 5 | null | ...as to why it can take as long as 6x, quoth the wiki:
> Because IIf is a library function, it
will always require the overhead of a
function call, whereas a conditional
operator will more likely produce
inline code.
Essentially IIf is the equivalent of a ternary operator in C++/C#, so it gives you some nice... | null | CC BY-SA 2.5 | null | 2008-08-26T15:34:48.233 | 2008-08-26T15:34:48.233 | null | null | 71 | null |
28,392 | 2 | null | 28,261 | 7 | null | [PC-Lint](http://www.gimpel.com/) claims to do static exception analysis of C++ code.
[Coverity](http://www.coverity.com/) is another static C++ code analysis tool that apparently informs you of unhandled exceptions.
[AQtime](http://www.automatedqa.com/products/aqtime/index.asp) claims to have exception tracing as part... | null | CC BY-SA 3.0 | null | 2008-08-26T15:34:25.597 | 2015-10-29T06:22:05.907 | 2015-10-29T06:22:05.907 | 913,172 | 1,892 | null |
28,402 | 2 | null | 28,387 | 1 | null | > so id like to be able to run the vm on
768 mb or less if possible.
That will depend on your data and the size of your database. But I usually like to give SQL server at least a GB
| null | CC BY-SA 2.5 | null | 2008-08-26T15:36:46.373 | 2008-08-26T15:36:46.373 | null | null | 740 | null |
28,403 | 2 | null | 15,190 | 0 | null | You can change the location the project compliers and saves the dcu/unit/exe to in Project/Options under the Directories/Conditionals is that what you are looking for?
I bevile there is also some settings for the DBE in the Tools menu, but I dont have them install at the moment (or i cant find them)
| null | CC BY-SA 2.5 | null | 2008-08-26T15:37:05.373 | 2008-08-26T15:37:05.373 | null | null | 2,098 | null |
28,394 | 2 | null | 28,301 | 0 | null | I'm not really sure about the `System.identityHashCode(Object)`. That's pretty much what the is used for. You might rather want to use the `Object.hashCode()` - it's more in parallel with `Object.equals(Object)`.
| null | CC BY-SA 3.0 | null | 2008-08-26T15:35:07.047 | 2013-05-18T01:24:35.683 | 2013-05-18T01:24:35.683 | 1,012,641 | 3,087 | null |
28,406 | 2 | null | 28,380 | 2 | null | I've not used the Android Emulator but I have set the $http_proxy environment variable for perl and wget and a few cygwin tools on windows. That might work for you for android, but the slash in the domain name seems like a potential problem.
I know I tried having my domain "GLOBAL" in there, but ended up taking it out ... | null | CC BY-SA 2.5 | null | 2008-08-26T15:37:35.123 | 2008-08-26T15:37:35.123 | null | null | 459 | null |
28,409 | 2 | null | 28,387 | 1 | null | It really depends on what else is going on on the machine. Get things running under a typical load and have a look at Task Manager to see what you need for everything else. Try that number to start with.
For production machines, of course, it is best to give control of the machine to Sql Server (Processors -> Boost ... | null | CC BY-SA 2.5 | null | 2008-08-26T15:38:11.673 | 2008-08-26T15:38:11.673 | null | null | 1,219 | null |
28,412 | 2 | null | 28,302 | 0 | null | Strange that I did not see WireShark when I visited SourceForge. The top result of the 60 returned was a bizarre german thing.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:38:38.537 | 2008-08-26T15:38:38.537 | null | null | 342 | null |
28,405 | 2 | null | 28,377 | 6 | null | On top of that, readability should probably be more highly preferred than performance in this case. Even if IIF was more efficient, it's just plain less readable to the target audience (I assume if you're working in Visual Basic, you want other programmers to be able to read your code easily, which is VB's biggest boo... | null | CC BY-SA 2.5 | null | 2008-08-26T15:37:33.750 | 2008-08-26T15:37:33.750 | null | null | 3,068 | null |
28,426 | 2 | null | 1,854 | 45 | null | You can also use [sys.platform](https://docs.python.org/library/sys.html#sys.platform) if you already have imported `sys` and you don't want to import another module
```
>>> import sys
>>> sys.platform
'linux2'
```
| null | CC BY-SA 4.0 | null | 2008-08-26T15:41:50.557 | 2019-10-28T10:18:14.863 | 2019-10-28T10:18:14.863 | 7,851,470 | 3,051 | null |
28,387 | 1 | 28,444 | null | 3 | 683 | I have a development vm which is running sql server as well as some other apps for my stack, and I found that the other apps are performing awfully. After doing some digging, SQL Server was hogging the memory. After a quick web search I discovered that by default, it will consume as much memory as it can in order to ... | SQL Server 2k5 memory consumption? | CC BY-SA 2.5 | null | 2008-08-26T15:33:05.647 | 2008-09-16T05:14:44.367 | 2008-08-26T15:45:55.337 | 292 | 292 | [
"sql-server",
"performance"
] |
28,410 | 2 | null | 580 | 1 | null | I do all my database creation as DDL and then wrap that DDL into a schema maintainence class. I may do various things to create the DDL in the first place but fundamentally I do all the schema maint in code. This also means that if one needs to do non DDL things that don't map well to SQL you can write procedural logic... | null | CC BY-SA 2.5 | null | 2008-08-26T15:38:22.000 | 2008-08-26T15:38:22.000 | null | null | 1,070 | null |
28,421 | 2 | null | 28,377 | 69 | null | `IIf()` runs both the true and false code. For simple things like numeric assignment, this isn't a big deal. But for code that requires any sort of processing, you're wasting cycles running the condition that doesn't match, and possibly causing side effects.
Code illustration:
```
Module Module1
Sub Main()
... | null | CC BY-SA 3.0 | null | 2008-08-26T15:40:29.703 | 2017-04-20T09:39:27.353 | 2017-04-20T09:39:27.353 | 1,741,690 | 2,314 | null |
28,433 | 1 | 28,442 | null | 8 | 7,323 | Are there any tools to effectively compare two XML schema's? I have seen some generic XML diff tools, but I was wondering if there is anything that knows more about schemas.
| Comparing two XML Schemas | CC BY-SA 2.5 | 0 | 2008-08-26T15:43:54.843 | 2009-01-27T06:01:02.763 | 2009-01-27T06:01:02.777 | 57,752 | 3,095 | [
"xml",
"comparison",
"xsd"
] |
28,428 | 1 | 28,454 | null | 4 | 4,465 | I want to bring up a file dialog in Java that defaults to the application installation directory.
What's the best way to get that information programmatically?
| How do I get the path where the user installed my Java application? | CC BY-SA 3.0 | 0 | 2008-08-26T15:43:09.743 | 2014-01-30T07:15:06.890 | 2014-01-30T07:15:06.890 | 1,737,819 | 1,288 | [
"java",
"environment-variables"
] |
28,436 | 2 | null | 28,369 | 2 | null | Writing your own parser could be fun! It might be a better option because people are expecting to use the familiar spreadsheet syntax (Excel, etc) and not Python when they're entering formulas. I'm not familiar with safe_eval but I would imagine that anything like this certainly has the potential for exploitation.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:44:31.190 | 2008-08-26T15:44:31.190 | null | null | 72 | null |
28,435 | 2 | null | 28,377 | 13 | null | Also, another big issue with the IIf is that it will actually call any functions that are in the arguments [1], so if you have a situation like the following:
```
string results = IIf(Not oraData.IsDBNull(ndx), oraData.GetString(ndx), string.Empty)
```
It will actually throw an exception, which is not how most peopl... | null | CC BY-SA 2.5 | null | 2008-08-26T15:43:59.490 | 2008-08-26T15:43:59.490 | null | null | 1,185 | null |
28,442 | 2 | null | 28,433 | 6 | null | I would look into [DeltaXML](http://www.deltaxml.com/). It seems to have the features you're looking for. They even have a guide on [how to compare schemas](http://www.deltaxml.com/dxml/library/how-to-compare-schemas.html).
| null | CC BY-SA 2.5 | null | 2008-08-26T15:46:00.110 | 2008-08-26T15:46:00.110 | null | null | 72 | null |
28,438 | 2 | null | 28,395 | 31 | null | [Ross has the right idea](https://stackoverflow.com/questions/28395/passing-post-values-with-curl#28411) for POSTing the usual parameter/value format to a url.
I recently ran into a situation where I needed to POST some XML as Content-Type "text/xml" without any parameter pairs so here's how you do that:
```
$xml = '... | null | CC BY-SA 3.0 | null | 2008-08-26T15:44:43.887 | 2017-02-20T14:27:01.880 | 2017-05-23T12:25:39.707 | -1 | 305 | null |
28,441 | 1 | null | null | 3 | 608 | I am charged with designing a web application that displays very large geographical data. And one of the requirements is that it should be optimized so the PC still on dial-ups common in the suburbs of my country could use it as well.
Now I am permitted to use Flash and/or Silverlight if that will help with the limite... | Optimizing for low bandwidth | CC BY-SA 2.5 | null | 2008-08-26T15:45:43.543 | 2015-10-08T08:18:27.377 | null | null | 3,055 | [
"optimization",
"networking",
"web-applications"
] |
28,446 | 2 | null | 28,441 | 1 | null | I don't think you'll find Flash or Silverlight is going to help too much for this application. Either way you're going to be utilizing tiled images and the images are going to be the same size in both scenarios. Using Flash or Silverlight may allow you to add some neat animations to the application but anything you g... | null | CC BY-SA 2.5 | null | 2008-08-26T15:48:24.333 | 2008-08-26T15:48:24.333 | null | null | 72 | null |
28,447 | 2 | null | 28,441 | 2 | null | Is something like [Gears](http://gears.google.com/) acceptable? This will let you store data locally to limit re-requests.
I would also stay away from flash and Silverlight and go straight to javascript/AJAX. jQuery is a ton-O-fun.
| null | CC BY-SA 3.0 | null | 2008-08-26T15:48:42.927 | 2015-10-08T08:18:27.377 | 2015-10-08T08:18:27.377 | 67,579 | 1,293 | null |
28,449 | 2 | null | 28,363 | 1 | null | I use ApexSQL Diff. It is an excellent tool for doing just what you're describing...compare schema, compare data, generate change scripts. It not free, but it works well.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:49:59.087 | 2008-08-26T16:02:32.393 | 2008-08-26T16:02:32.393 | 105 | 105 | null |
28,444 | 2 | null | 28,387 | 1 | null | Since this is a development environment, I agree with Greg, just use trial and error. It's not that crucial to get it perfectly right.
But if you do a lot of work in the VM, why not give it at least half of the 2GB?
| null | CC BY-SA 2.5 | null | 2008-08-26T15:47:39.763 | 2008-08-26T15:47:39.763 | null | null | 1,453 | null |
28,451 | 2 | null | 28,301 | 0 | null | > I agree this is not ideal, hence the comment. Any suggestions?
I think there is now way you can solve that, because you cannot access the one and only one thing that can distinguish two instances: their address in memory. So I have only one suggestion: reconsider your need of having a general total ordering process ... | null | CC BY-SA 2.5 | null | 2008-08-26T15:51:19.550 | 2008-08-26T15:51:19.550 | null | null | 3,069 | null |
28,425 | 2 | null | 21,091 | 1 | null | > Please let me know, if you have any (good or bad) experience with model-driven approaches or why you think it's not interesting at all.
I think the contributors here are part of the "No Silver Bullet" camp (I am definitely). If MDA worked (equals to "huge savings"), we would know it, that is for sure. The question i... | null | CC BY-SA 2.5 | null | 2008-08-26T15:41:33.443 | 2008-08-26T15:41:33.443 | null | null | 3,069 | null |
28,439 | 2 | null | 28,301 | 1 | null | You should probably raise an exception if it gets to that last `return 0` line --when a hash collision happens. I do have a question though: you are doing a total ordering on the hash's, which I guess is fine, but shouldn't some function be passed to it to define a Lexicographical order?
```
int h1 = System.identityHa... | null | CC BY-SA 2.5 | null | 2008-08-26T15:44:56.633 | 2008-08-26T15:44:56.633 | null | null | 157 | null |
28,462 | 2 | null | 28,441 | 2 | null | I would suggest you look into Silverlight and [DeepZoom](http://www.vertigo.com/Deepzoom.aspx)
| null | CC BY-SA 2.5 | null | 2008-08-26T15:55:09.573 | 2008-08-26T15:55:09.573 | null | null | 2,278 | null |
28,443 | 2 | null | 27,095 | 1 | null | @ebel
> thinking about it, you have 64 bit representing a number greater than 2^64 (double.maxvalue), so inaccuracy is expected.
2^64 is not the maximum value of a double. 2^64 is the number of unique values that a double (or any other 64-bit type) can hold. `Double.MaxValue` is equal to 1.79769313486232e308.
Ina... | null | CC BY-SA 2.5 | null | 2008-08-26T15:46:40.840 | 2008-08-26T17:20:14.423 | 2008-08-26T17:20:14.440 | 872 | 872 | null |
28,454 | 2 | null | 28,428 | 8 | null | ```
System.getProperty("user.dir")
```
gets the directory the Java VM was started from.
| null | CC BY-SA 2.5 | null | 2008-08-26T15:52:17.927 | 2008-08-26T15:52:17.927 | null | null | 1,281 | null |
28,465 | 2 | null | 28,268 | 1 | null | I develop on my Macbook (not pro) using VMWare Fusion and WinXP. For the most part, it is a very good experience. I assign 1GB of memory, out of my 4GB, to the VM and its pretty speedy.
The one major pitfall I've encountered is disk space. If you install a full VS2008 install and other tools, you can quickly eat up... | null | CC BY-SA 2.5 | null | 2008-08-26T15:55:48.353 | 2008-08-26T15:55:48.353 | null | null | 2,834 | null |
28,466 | 2 | null | 28,363 | 0 | null | I've used [Total Access Detective](http://www.fmsinc.com/MicrosoftAccess/DatabaseCompare.html) in the past and it did the trick. It's a while ago though so you might want to investigate first...
| null | CC BY-SA 2.5 | null | 2008-08-26T15:55:48.683 | 2008-08-26T15:55:48.683 | null | null | 1,008 | null |
28,448 | 2 | null | 28,202 | 9 | null | An alternative to making a template is to evolve one by gradually generalising your current project's Ant script so that there are fewer changes to make the next time you copy it for use on a new project. There are several things you can do.
Use ${ant.project.name} in file names, so you only have to mention your appli... | null | CC BY-SA 2.5 | null | 2008-08-26T15:48:52.647 | 2008-08-26T15:48:52.647 | null | null | 2,670 | null |
28,464 | 1 | 28,479 | null | 16 | 1,490 | I've been using StructureMap recently and have enjoyed the experience thoroughly. However, I can see how one can easily get carried away with interfacing everything out and end up with classes that take in a boatload of interfaces into their constructors. Even though that really isn't a huge problem when you're using... | When do you use dependency injection? | CC BY-SA 2.5 | 0 | 2008-08-26T15:55:44.237 | 2012-10-12T05:02:44.013 | null | null | 1,574 | [
"dependency-injection"
] |
28,452 | 2 | null | 28,377 | 143 | null | VB has the following `If` statement which the question refers to, I think:
```
' Usage 1
Dim result = If(a > 5, "World", "Hello")
' Usage 2
Dim foo = If(result, "Alternative")
```
The first is basically C#'s ternary conditional operator and the second is its coalesce operator (return `result` unless it’s `Nothing`, ... | null | CC BY-SA 3.0 | null | 2008-08-26T15:51:53.013 | 2014-12-16T16:03:42.813 | 2014-12-16T16:03:42.813 | 832,136 | 1,968 | null |
28,411 | 2 | null | 28,395 | 172 | null | Should work fine.
```
$data = array('name' => 'Ross', 'php_master' => true);
// You can POST a file by prefixing with an @ (for <input type="file"> fields)
$data['file'] = '@/home/user/world.jpg';
$handle = curl_init($url);
curl_setopt($handle, CURLOPT_POST, true);
curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
cu... | null | CC BY-SA 3.0 | null | 2008-08-26T15:38:34.557 | 2017-06-15T09:01:22.930 | 2017-06-15T09:01:22.930 | 7,940,698 | 2,025 | null |
28,463 | 2 | null | 28,441 | 0 | null | I believe Microsoft's [Seadragon](http://livelabs.com/seadragon/) is your answer. However, I am not sure if that is available to developers.
It looks like some of it has found its way into Silverlight
| null | CC BY-SA 2.5 | null | 2008-08-26T15:55:31.273 | 2008-08-26T15:55:31.273 | null | null | 380 | null |