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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35,308 | 2 | null | 35,301 | -3 | null | The singe pipe "|" is the "bitwise" or and should only be used when you know what you're doing. The double pipe "||" is a logical or, and can be used in logical statements, like "x == 0 || x == 1".
Here's an example of what the bitwise or does: if a=0101 and b=0011, then a|b=0111. If you're dealing with a logic system... | null | CC BY-SA 2.5 | null | 2008-08-29T21:15:51.950 | 2008-08-29T21:15:51.950 | null | null | 658 | null |
35,294 | 2 | null | 8,004 | 1 | null | I've built my own simple object for this, I get a lot of reuse out of it, I can wrap it with a `cmdline`, `web page`, `webservice`, write output to a file, etc---
The commented items contain some `rsync` examples--
what I'd like to do sometime is embed `rsync` (and `cygwin`) into a resource & make a single .net execu... | null | CC BY-SA 3.0 | null | 2008-08-29T21:04:37.623 | 2018-02-24T07:08:07.713 | 2018-02-24T07:08:07.713 | 1,761,307 | 3,522 | null |
35,306 | 2 | null | 35,301 | -3 | null | The | operator performs a bitwise OR of its two operands (meaning both sides must evaluate to false for it to return false) while the || operator will only evaluate the second operator if it needs to.
[http://msdn.microsoft.com/en-us/library/kxszd0kx(VS.71).aspx](http://msdn.microsoft.com/en-us/library/kxszd0kx(VS.71)... | null | CC BY-SA 2.5 | null | 2008-08-29T21:15:23.183 | 2008-08-29T21:15:23.183 | null | null | 3,400 | null |
35,311 | 2 | null | 35,301 | -3 | null | A single pipe (|) is the [bitwise OR operator](http://en.wikipedia.org/wiki/Bitwise_operation).
Two pipes (||) is the logical OR operator.
They are not interchangeable.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:16:42.663 | 2008-08-29T21:16:42.663 | null | null | 2,929 | null |
35,318 | 2 | null | 30,319 | 0 | null | There isn't a tag for that. You would need to use javascript to show the text.
Some people already suggested using JS to dynamically set CSS visible. You could also dynamically generate the text with `document.getElementById(id).innerHTML = "My Content"` or dynamically creating the nodes, but the CSS hack is probably... | null | CC BY-SA 2.5 | null | 2008-08-29T21:18:59.523 | 2008-08-29T21:18:59.523 | null | null | 3,674 | null |
35,313 | 2 | null | 35,301 | 88 | null | || is the logical OR operator. It sounds like you basically know what that is. It's used in conditional statements such as if, while, etc.
```
condition1 || condition2
```
Evaluates to true if either condition1 OR condition2 is true.
| is the bitwise OR operator. It's used to operate on two numbers. You look at eac... | null | CC BY-SA 3.0 | null | 2008-08-29T21:17:09.870 | 2011-04-29T03:42:22.433 | 2011-04-29T03:42:22.433 | 510 | 510 | null |
35,315 | 1 | 83,262 | null | 9 | 27,349 | What's the best way to combine results sets from disparate data sources in SSRS?
In my particular example, I need to write a report that pulls data from SQL Server and combines it with another set of data that comes from a DB2 database. In the end, I need to join these separate data sets together so I have one combin... | How do you combine multiple result sets in SSRS? | CC BY-SA 2.5 | 0 | 2008-08-29T21:17:26.033 | 2022-06-03T07:25:12.147 | 2011-03-09T12:10:53.107 | 1,288 | 3,452 | [
"reporting-services"
] |
35,304 | 1 | 35,791 | null | 1 | 1,574 | We've been using Flex for about 6 months here at work, and I found that my first batches of FlexUnit tests involving custom components would tend to follow this sort of pattern:
```
import mx.core.Application;
import mx.events.FlexEvent;
import flexunit.framework.TestCase;
public class CustomComponentTest extends Tes... | FlexUnit component testing patterns: use addAsync or manually initialize? | CC BY-SA 3.0 | 0 | 2008-08-29T21:13:57.290 | 2017-09-20T21:18:45.887 | 2017-09-20T21:18:45.887 | 6,053,654 | 1,798 | [
"apache-flex",
"unit-testing"
] |
35,324 | 2 | null | 35,317 | 1 | null | The problem is, the process didn't just die, it died unexpectedly. Sounds like there's a bug in your SSH client that Vista is pointing out.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:21:09.610 | 2008-08-29T21:21:09.610 | null | null | 1,554 | null |
35,323 | 2 | null | 34,987 | 37 | null | You can concisely initialize a `vector<string>` from a statically-created `char*` array:
```
char* strarray[] = {"hey", "sup", "dogg"};
vector<string> strvector(strarray, strarray + 3);
```
This copies all the strings, by the way, so you use twice the memory. You can use Will Dean's suggestion to replace the magic ... | null | CC BY-SA 2.5 | null | 2008-08-29T21:21:08.677 | 2008-08-29T21:21:08.677 | null | null | 3,561 | null |
35,322 | 1 | 35,516 | null | 6 | 9,436 | I'm writing an app using asp.net-mvc deploying to iis6. I'm using forms authentication. Usually when a user tries to access a resource without proper authorization I want them to be redirected to a login page. FormsAuth does this for me easy enough.
Problem: Now I have an action being accessed by a console app. Whats ... | Bypass Forms Authentication auto redirect to login, How to? | CC BY-SA 3.0 | 0 | 2008-08-29T21:20:38.723 | 2013-06-09T14:16:42.303 | 2013-06-09T14:16:42.303 | 59,303 | 1,946 | [
"asp.net",
"asp.net-mvc",
"forms-authentication"
] |
35,328 | 2 | null | 34,732 | 12 | null | Try adding -l to the nm flags in order to get the source of each symbol. If the library is compiled with debugging info (gcc -g) this should be the source file and line number. As Konrad said, the object file / static library is probably unknown at this point.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:22:13.727 | 2008-08-29T21:22:13.727 | null | null | 2,574 | null |
35,327 | 2 | null | 15,171 | 8 | null | For whom it interests, the [Filesystem Hierarchy Standard (FHS)](http://www.pathname.com/fhs/) is a standards document and still a very good read. I describes the foundation for almost any Linux distribution and is officially endorsed e.g. by [Debian](http://www.debian.org/doc/packaging-manuals/fhs/fhs-2.3.html) and th... | null | CC BY-SA 2.5 | null | 2008-08-29T21:21:54.353 | 2008-08-29T21:21:54.353 | null | null | 3,377 | null |
35,317 | 1 | 35,387 | null | 0 | 1,138 | When I log into a remote machine using ssh X11 forwarding, Vista pops up a box complaining about a process that died unexpectedly. Once I dismiss the box, everything is fine. So I really don't care if some process died. How do I get Vista to shut up about it?
---
Specifically, the message reads:
```
sh.exe has... | Why does Vista complain about a dead process when I use Cygwin X11 ssh and how do I get it to shut up? | CC BY-SA 2.5 | null | 2008-08-29T21:18:41.443 | 2011-01-20T17:58:48.400 | 2008-08-30T14:25:01.210 | 1,438 | 1,438 | [
"windows-vista",
"ssh",
"cygwin",
"x11",
"openssh"
] |
35,314 | 2 | null | 35,301 | 570 | null | Just like the `&` and `&&` operator, the double Operator is a "short-circuit" operator.
For example:
```
if(condition1 || condition2 || condition3)
```
If condition1 is true, condition 2 and 3 will NOT be checked.
```
if(condition1 | condition2 | condition3)
```
This will check conditions 2 and 3, even if 1 is a... | null | CC BY-SA 3.0 | null | 2008-08-29T21:17:18.340 | 2018-01-03T03:35:10.657 | 2018-01-03T03:35:10.657 | 3,509,591 | 91 | null |
35,320 | 1 | 35,557 | null | 4 | 7,054 | In the code below I am using a recursive CTE(Common Table Expression) in SQL Server 2005 to try and find the top level parent of a basic hierarchical structure. The rule of this hierarchy is that every CustID has a ParentID and if the CustID has no parent then the ParentID = CustID and it is the highest level.
```
DEC... | How do you get the last record generated in a recursive CTE? | CC BY-SA 2.5 | 0 | 2008-08-29T21:19:24.093 | 2014-07-11T07:06:02.143 | 2008-08-30T05:31:58.357 | 3,677 | 3,677 | [
"sql",
"sql-server",
"recursion",
"common-table-expression"
] |
35,333 | 1 | 35,477 | null | 3 | 4,544 | I'm compiling a simple .c in visual c++ with Compile as C Code (/TC)
and i get this compiler error
> error C2143: syntax error : missing ';' before 'type'
on a line that calls for a simple struct
```
struct foo test;
```
same goes for using the typedef of the struct.
> error C2275: 'FOO' : illegal use of this t... | Compiler Error C2143 when using a struct | CC BY-SA 3.0 | null | 2008-08-29T21:24:52.130 | 2017-10-11T11:42:46.293 | 2017-10-11T11:42:46.293 | 1,000,551 | 2,566 | [
"c",
"visual-c++"
] |
35,339 | 1 | 35,409 | null | -8 | 1,440 | Let X be the set of all sets that do not contain themselves. Is X a member of X?
| Russell's Paradox | CC BY-SA 2.5 | 0 | 2008-08-29T21:27:23.713 | 2008-12-01T22:53:10.093 | 2008-12-01T22:53:10.110 | 25,188 | 658 | [
"math",
"paradox",
"set-theory"
] |
35,338 | 2 | null | 4,219 | 4 | null | TFS isn't just about Source Control. If you use the whole package that TFS offers, bug tracking, builds, reports, etc then TFS is a pretty solid choice (certainly better than Rational). TFS also integrates well with Active Directory.
Though if you are just talking about SCM, then I prefer SubVersion. I don't really li... | null | CC BY-SA 2.5 | null | 2008-08-29T21:27:14.323 | 2008-08-29T21:27:14.323 | null | null | 736 | null |
35,337 | 2 | null | 35,301 | -1 | null | The single pipe, |, is one of the [bitwise](http://en.wikipedia.org/wiki/Bitwise_operation#OR) operators.
From Wikipedia:
> In the C programming language family, the bitwise OR operator is "|" (pipe). Again, this operator must not be confused with its Boolean "logical or" counterpart, which treats its operands as Bo... | null | CC BY-SA 2.5 | null | 2008-08-29T21:26:59.737 | 2008-08-29T21:26:59.737 | null | null | 3,030 | null |
35,340 | 2 | null | 15,142 | 9 | null | I like stored procs, dont know how many times I was able to make a change to an application using a stored procedure which didn't produce any downtime to the application.
Big fan of Transact SQL, tuning large queries have proven to be very useful for me. Haven't wrote any inline SQL in about 6 years!
| null | CC BY-SA 2.5 | null | 2008-08-29T21:27:58.223 | 2008-08-29T21:27:58.223 | null | null | 3,682 | null |
35,335 | 2 | null | 215,718 | 42 | null | Amusingly, `git checkout foo` will not work if the working copy is in a directory named `foo`; however, both `git checkout HEAD foo` and `git checkout ./foo` will:
```
$ pwd
/Users/aaron/Documents/work/foo
$ git checkout foo
D foo
Already on "foo"
$ git checkout ./foo
$ git checkout HEAD foo
```
| null | CC BY-SA 4.0 | null | 2008-08-29T21:26:35.510 | 2019-07-02T13:56:43.700 | 2019-07-02T13:56:43.700 | 9,254,404 | 2,603 | null |
35,331 | 2 | null | 35,301 | 19 | null | Good question. These two operators work the same in PHP and C#.
`|` is a bitwise OR. It will compare two values by their bits. E.g. 1101 | 0010 = 1111. This is extremely useful when using bit options. E.g. Read = 01 (0X01) Write = 10 (0X02) Read-Write = 11 (0X03). One useful example would be opening files. A s... | null | CC BY-SA 4.0 | null | 2008-08-29T21:23:35.160 | 2019-06-12T21:02:42.773 | 2019-06-12T21:02:42.773 | 8,803,825 | 2,916 | null |
35,341 | 2 | null | 35,322 | -2 | null | I did some googling and this is what I came up with:
```
HttpContext.Current.Response.StatusCode = 401;
```
Not sure if it works or not, I haven't tested it. Either way, it's worth a try, right? :)
| null | CC BY-SA 2.5 | null | 2008-08-29T21:28:12.950 | 2008-08-29T21:28:12.950 | null | null | 1,993 | null |
35,344 | 2 | null | 5,071 | 2 | null | `cvs import` is not just for 3rd-party sources. In fact, directories are not versioned by CVS, so they are not a subject to branch policies. As long as you import empty directories, it is fine.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:28:58.483 | 2008-08-29T21:28:58.483 | null | null | 3,514 | null |
35,336 | 2 | null | 35,333 | 1 | null | Did you accidentally omit a semicolon on a previous line? If the previous line is an `#include`, you might have to look elsewhere for the missing semicolon.
Edit: If the rest of your code is valid C++, then there probably isn't enough information to determine what the problem is. Perhaps you could post your code to a ... | null | CC BY-SA 2.5 | null | 2008-08-29T21:26:36.667 | 2008-08-29T21:33:39.270 | 2008-08-29T21:33:39.270 | 893 | 893 | null |
35,342 | 2 | null | 9,033 | 14 | null | [ConditionalAttribute](http://msdn.microsoft.com/en-us/library/aa664622(VS.71).aspx)
Allows you to tell the compiler to omit the call to the method marked with the attribute under certain conditions (#define).
The fact that the method call is omitted also means that its parameters are not evaluated. This is very hand... | null | CC BY-SA 2.5 | null | 2008-08-29T21:28:19.343 | 2009-09-03T04:45:24.650 | 2009-09-03T04:45:24.650 | 24,226 | 3,683 | null |
35,348 | 2 | null | 35,185 | 20 | null | By the way, you can expand on this idea to very quickly find unique numbers among a list of duplicates.
Let's call the unique numbers a and b. First take the XOR of everything, as Kyle suggested. What we get is a^b. We know a^b != 0, since a != b. Choose any 1 bit of a^b, and use that as a mask -- in more detail:... | null | CC BY-SA 2.5 | null | 2008-08-29T21:31:05.640 | 2008-08-29T21:31:05.640 | null | null | 3,561 | null |
35,350 | 2 | null | 35,186 | 5 | null | This can also be the result of using reflection. If you have code that reflects on a class and extracts a method by name (eg: with `Class.getDeclaredMethod("someMethodName", .....)`) then any time that method name changes, such as during a refactor, you will need to remember to update the parameters to the reflection ... | null | CC BY-SA 2.5 | null | 2008-08-29T21:31:14.797 | 2008-08-29T21:31:14.797 | null | null | 3,446 | null |
35,352 | 2 | null | 35,322 | 0 | null | Did you write your own FormsAuth attribute for the action? If so, in the OnActionExecuting method, you get passed the FilterExecutingContext. You can use this to pass back the 401 code.
```
public class FormsAuth : ActionFilterAttribute
{
public override void OnActionExecuting(FilterExecutingContext filterContex... | null | CC BY-SA 2.5 | null | 2008-08-29T21:33:07.010 | 2008-08-29T21:33:07.010 | null | null | 1,117 | null |
35,355 | 1 | null | null | 0 | 732 | I am learning to write a debug visualizer in vs2008 C#. But keep getting the error saying that MyDebugVisualizer dll can't be loaded when I am in debug mode and click the magnifying glass icon.
My app project is referencing the visualizer project. Before the type definition I have:
[DebuggerVisualizer(typeof(MyVisual... | Debug visualizer - the visualizer dll can't be loaded | CC BY-SA 2.5 | null | 2008-08-29T21:34:33.823 | 2011-09-27T12:59:39.307 | 2010-09-10T15:33:32.577 | 8,435 | null | [
"visual-studio-2008",
"debuggervisualizer"
] |
35,357 | 1 | 35,408 | null | 3 | 287 | I am a developer. An architect on good days. Somehow I find myself also being the DBA for my small company. My background is fair in the DB arts but I have never been a full fledged DBA. My question is what do I have to do to ensure a realiable and reasonably functional database environment with as little actual ef... | Minimalistic Database Administration | CC BY-SA 2.5 | 0 | 2008-08-29T21:36:27.093 | 2012-07-04T19:53:39.447 | 2010-02-15T18:32:20.467 | 8,479 | 2,894 | [
"database",
"administration",
"task"
] |
35,362 | 2 | null | 35,333 | 0 | null | How is your structure type defined? There are two ways to do it:
```
// This will define a typedef for S1, in both C and in C++
typedef struct {
int data;
int text;
} S1;
// This will define a typedef for S2 ONLY in C++, will create error in C.
struct S2 {
int data;
int text;
};
```
| null | CC BY-SA 2.5 | null | 2008-08-29T21:39:37.960 | 2008-08-29T21:39:37.960 | null | null | 2,284 | null |
35,363 | 2 | null | 34,925 | 0 | null | I rather like this new (?) behavior because the XML document doesn't have any mention of Bar in it, so the deserializer should not even be attempting to set it.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:41:26.503 | 2008-08-29T21:41:26.503 | null | null | 3,312 | null |
35,358 | 2 | null | 35,178 | 2 | null | Watch out with that quote-matching lookahead assertion. That'll only match if is the last part of a string, but not in the middle of the string. You'll need to match an even number of quote marks preceding the match if you want to be sure you're not in a string (assuming no multi-line strings and no escaped embedded q... | null | CC BY-SA 2.5 | null | 2008-08-29T21:36:34.457 | 2008-08-29T21:36:34.457 | null | null | 3,101 | null |
35,356 | 2 | null | 34,987 | 3 | null | > You can use Will Dean's suggestion [`#define arraysize(ar) (sizeof(ar) / sizeof(ar[0]))`] to replace the magic number 3 here with arraysize(str_array) -- although I remember there being some special case in which that particular version of arraysize might do Something Bad (sorry I can't remember the details immediate... | null | CC BY-SA 2.5 | null | 2008-08-29T21:34:43.197 | 2008-08-29T21:34:43.197 | null | null | 2,214 | null |
35,364 | 2 | null | 13,540 | 3 | null | Big fan of the UPSERT, really cuts down on the code to manage. Here is another way I do it: One of the input parameters is ID, if the ID is NULL or 0, you know it's an INSERT, otherwise it's an update. Assumes the application knows if there is an ID, so wont work in all situations, but will cut the executes in half ... | null | CC BY-SA 2.5 | null | 2008-08-29T21:41:33.417 | 2008-08-29T21:41:33.417 | null | null | 3,682 | null |
35,368 | 2 | null | 35,317 | 0 | null | I know this is going to be heresy for a cygwin user, but you could just use [PuTTY](http://www.chiark.greenend.org.uk/~sgtatham/putty/) instead.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:44:36.513 | 2008-08-29T21:44:36.513 | null | null | 3,657 | null |
35,367 | 2 | null | 35,357 | 3 | null | I would suggest:
- - -
However, the number one suggestion is to limit as much as possible the power other users have, this will greatly reduce the chance of stuff getting badly messed up. Servers that have everyone as an sa tend to get screwed up quicker than servers that are locked down.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:44:16.653 | 2008-08-29T21:44:16.653 | null | null | 637 | null |
35,365 | 2 | null | 35,256 | 1 | null | I've used Red Gate's SQL Packager for this in the past. The beauty of this tool is that it creates a C# project for you that actually does the work so if you need to you can extend the functionality of the default package to do other things like insert default values into new columns that have been added to the db etc... | null | CC BY-SA 2.5 | null | 2008-08-29T21:41:39.360 | 2008-08-29T21:41:39.360 | null | null | 3,452 | null |
35,369 | 2 | null | 35,366 | 136 | null | Always use nvarchar.
You may never need the double-byte characters for most applications. However, if you need to support double-byte languages and you only have single-byte support in your database schema it's really expensive to go back and modify throughout your application.
The cost of migrating one applicati... | null | CC BY-SA 2.5 | null | 2008-08-29T21:44:41.600 | 2008-08-29T21:44:41.600 | null | null | 3,452 | null |
35,374 | 2 | null | 35,366 | 11 | null | Since your application is small, there is essentially no appreciable cost increase to using nvarchar over varchar, and you save yourself potential headaches down the road if you have a need to store unicode data.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:48:47.983 | 2008-08-29T21:48:47.983 | null | null | 637 | null |
35,371 | 2 | null | 35,339 | 2 | null | The question is ill-posed in the standard [ZFC](http://en.wikipedia.org/wiki/Zermelo-Fraenkel_set_theory) (Zermelo-Fraenkel + axiom of Choice) set theory because the object thus defined is not a set.
Since (again, assuming standard ZFC) your {x : x\not\in x} is not a set, the answer becomes no, it's not an element of... | null | CC BY-SA 2.5 | null | 2008-08-29T21:46:13.467 | 2008-08-29T21:46:13.467 | null | null | 3,561 | null |
35,366 | 1 | 35,369 | null | 247 | 182,512 | I'm working on a database for a small web app at my school using `SQL Server 2005`.
I see a couple of schools of thought on the issue of `varchar` vs `nvarchar`:
1. Use varchar unless you deal with a lot of internationalized data, then use nvarchar.
2. Just use nvarchar for everything.
I'm beginning to see the mer... | What are the main performance differences between varchar and nvarchar SQL Server data types? | CC BY-SA 3.0 | 0 | 2008-08-29T21:41:57.267 | 2022-06-30T18:05:38.587 | 2018-06-27T22:34:15.577 | 577,765 | 2,147 | [
"sql-server",
"sql-server-2005",
"storage",
"varchar",
"nvarchar"
] |
35,370 | 2 | null | 34,924 | 0 | null | As far as I know this is not possible.
You be able to do it if you use uncompressed wave files already encoded in DTS or something and put a surround receiver in between. This will however stop you from doing anything with the sound before outputting it, not even changing the volume. And I guess that's not an option... | null | CC BY-SA 2.5 | null | 2008-08-29T21:45:20.927 | 2008-08-29T21:45:20.927 | null | null | 914 | null |
35,375 | 1 | null | null | 63 | 225,738 | I recently installed Ubuntu on a VirtualBox VM it installed just fine (much easier than on VirtualPC). However I'm unable to get internet access from the guest OS (ie. Ubuntu). Can anyone give me any pointers on how I might enable this?
The Host OS is Windows Vista and the hardware is an IBM Lenovo.
| Internet Access in Ubuntu on VirtualBox | CC BY-SA 3.0 | 0 | 2008-08-29T21:49:07.673 | 2016-11-21T12:20:48.140 | 2016-11-21T12:20:48.140 | 4,823,977 | 3,433 | [
"ubuntu",
"virtualbox"
] |
35,373 | 1 | 35,384 | null | 46 | 14,128 | I have a solution consisting of five projects, each of which compile to separate assemblies. Right now I'm code-signing them, but I'm pretty sure I'm doing it wrong. What's the best practice here?
- - - -
Basically I'm not quite sure what "signing" does to them, or what the best practices are here, so a more general... | Best practices for signing .NET assemblies? | CC BY-SA 3.0 | 0 | 2008-08-29T21:48:32.603 | 2014-06-21T20:22:36.517 | 2013-08-29T07:46:30.690 | 63,550 | 3,191 | [
".net",
"assemblies",
"signing"
] |
35,372 | 1 | 67,345 | null | 5 | 9,452 | I am trying to build an website for my college's magazine. I used the "views" module to show a block of static content I created on the front page.
My question is: how can I edit the theme's css so it changes the way that block of static content is displayed?
For reference, [here's the link](http://www.historia.uff.b... | How can I change the way my Drupal theme displays the front page | CC BY-SA 2.5 | 0 | 2008-08-29T21:48:22.633 | 2018-03-16T17:05:31.930 | 2018-03-16T17:05:31.930 | 225,647 | 802 | [
"drupal",
"drupal-theming"
] |
35,381 | 2 | null | 7,440 | 3 | null | Check out [Canoo Web Test](http://webtest.canoo.com/webtest/manual/WebTestHome.html). It is open source and built on the ANT framework.
I spent some time working with it for a graduate course on Software QA and it seems to be a pretty powerful testing tool.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:54:08.347 | 2008-08-29T21:54:08.347 | null | null | 1,449 | null |
35,378 | 2 | null | 35,375 | 35 | null | How did you configure networking when you created the guest? The easiest way is to set the network adapter to NAT, if you don't need to access the vm from another pc.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:51:31.800 | 2008-08-29T21:57:58.743 | 2008-08-29T21:57:58.743 | 1,249 | 1,249 | null |
35,379 | 2 | null | 35,315 | 2 | null | SSRS 2005 allows you to have multiple datasets for a report. Each dataset can refer to a different datasource, one can come from a SQL DB another can be a ODBC source etc.
In the report designer view in Visual Studio go to the "Data" tab and add new data sources pointing to your different databases. Once you are done,... | null | CC BY-SA 2.5 | null | 2008-08-29T21:51:31.927 | 2008-08-29T21:51:31.927 | null | null | 3,465 | null |
35,380 | 1 | null | null | 2 | 2,454 | I need to to print natural nos. 1,2,...n such that the parent process prints all odd numbers and the child process prints all even numbers, and all of this needs to be done using POSIX signals. How would I go about accomplishing this?
The output should be:
Parent : 1
Child : 2
Parent : 3
...
| Print Odd-Even numbers using signals | CC BY-SA 3.0 | 0 | 2008-08-29T21:52:57.880 | 2012-09-14T18:13:05.760 | 2012-09-14T18:13:05.760 | 2,486 | 2,727 | [
"c",
"signals"
] |
35,387 | 2 | null | 35,317 | 0 | null | Well, I don't know what the original problem was, but when I update Cygwin recently the error message stopped popping up.
My guess it that [rebasing](http://sourceware.org/ml/cygwin/2006-11/msg00059.html) was necessary.
| null | CC BY-SA 2.5 | null | 2008-08-29T21:59:20.270 | 2010-03-04T00:46:58.903 | 2010-03-04T00:46:58.903 | 1,438 | 1,438 | null |
35,388 | 2 | null | 35,373 | 2 | null | Signing is used to uniquely identify an assembly. More details are in [How to: Sign an Assembly (Visual Studio)](http://msdn.microsoft.com/en-us/library/ms247123%28VS.80%29.aspx).
In terms of best practice, it's fine to use the same key as long as the assemblies have different names.
| null | CC BY-SA 3.0 | null | 2008-08-29T22:00:01.373 | 2013-08-29T07:24:27.607 | 2013-08-29T07:24:27.607 | 63,550 | 2,422 | null |
35,382 | 2 | null | 34,509 | -1 | null | I still don't understand (probably because of my poor English).
You could try:
```
ROW_NUMBER() OVER (ORDER BY dbo.human_sort(field_name) ASC)
```
But it won't work for millions of records.
That why I suggested to use trigger which column with .
Moreover:
- -
| null | CC BY-SA 2.5 | null | 2008-08-29T21:54:43.477 | 2008-08-29T21:54:43.477 | null | null | 1,483 | null |
35,391 | 2 | null | 34,938 | 1 | null | While using short-circuiting for the purposes of optimization is often overkill, there are certainly other compelling reasons to use it. One such example (in C++) is the following:
```
if( pObj != NULL && *pObj == "username" ) {
// Do something...
}
```
Here, short-circuiting is being relied upon to ensure that... | null | CC BY-SA 2.5 | null | 2008-08-29T22:00:55.757 | 2008-08-29T22:00:55.757 | null | null | 863 | null |
35,389 | 2 | null | 35,286 | 2 | null | You could try as alternative (from the command prompt) ...
```
> cygpath -m c:\some\path
c:/some/path
```
As you can guess, it converts backslashes to slashes.
| null | CC BY-SA 2.5 | null | 2008-08-29T22:00:20.000 | 2008-08-29T22:00:20.000 | null | null | 3,280 | null |
35,384 | 2 | null | 35,373 | 44 | null | If your only objective is to stop FxCop from yelling at you, then you have found the best practice.
The best practice for signing your assemblies is something that is completely dependent on your objectives and needs. We would need more information like your intended deployment:
- - - - - - - -
Generally you use c... | null | CC BY-SA 2.5 | null | 2008-08-29T21:56:56.983 | 2011-01-18T22:33:52.200 | 2011-01-18T22:33:52.200 | 255 | 255 | null |
35,399 | 2 | null | 34,938 | 0 | null | VB.net has two wonderful expression called "OrElse" and "AndAlso"
OrElse will short circuit itself the first time it reaches a True evaluation and execute the code you desire.
```
If FirstName = "Luke" OrElse FirstName = "Darth" Then
Console.Writeline "Greetings Exalted One!"
End If
```
AndAlso will short circui... | null | CC BY-SA 2.5 | null | 2008-08-29T22:06:06.337 | 2008-08-29T22:06:06.337 | null | null | 71 | null |
35,403 | 2 | null | 35,373 | 3 | null | It helps because the executable is expecting a strongly named assembly. It stops anyone maliciously substituting in another assembly for one of yours. Also the user might grant an assembly CAS permissions based on the strong name.
I don't think you should be distributing the .pfx file, you keep that safe for resignin... | null | CC BY-SA 2.5 | null | 2008-08-29T22:11:08.650 | 2008-08-29T22:11:08.650 | null | null | 2,422 | null |
35,402 | 1 | 35,421 | null | 5 | 984 | When using Resharper to encapsulate a class's properties, is there a way to get it to do more than one property at a time?
| Encapsulate multiple properties at once using Resharper 4.0 | CC BY-SA 3.0 | 0 | 2008-08-29T22:10:02.333 | 2012-07-04T20:01:23.750 | 2012-07-04T20:01:23.750 | 168,868 | 3,576 | [
"visual-studio",
"resharper"
] |
35,400 | 2 | null | 34,294 | 6 | null | Delphi pointers are 32-bit. Period. Your Delphi developer may be able to 'store' the 64-bit values you want to return to him, but he can't access the memory that they point to, so it's pretty futile.
Previously, I'd written:-
> A 64-bit version of Delphi is on
[Codegear/Embarcadero's road map](http://dn.codegear.co... | null | CC BY-SA 3.0 | null | 2008-08-29T22:07:31.497 | 2011-05-27T09:17:01.957 | 2011-05-27T09:17:01.957 | 1,737 | 1,737 | null |
35,401 | 2 | null | 35,317 | 0 | null | > What does unexpectedly mean in this context? Does it mean it core dumped or just exited non-zero?
It means it died with an unhandled exception, i.e. it crashed.
| null | CC BY-SA 2.5 | null | 2008-08-29T22:09:19.713 | 2008-08-29T22:09:19.713 | null | null | 2,131 | null |
35,406 | 2 | null | 35,402 | -1 | null | I don't think there such a feature out of the box.
However, you could write a RS plugin that does this. But this would be another question...
| null | CC BY-SA 2.5 | null | 2008-08-29T22:17:48.243 | 2008-08-29T22:17:48.243 | null | null | 2,374 | null |
35,405 | 2 | null | 34,428 | 1 | null | My personal opinion is that a datagridcolumnstyle is the way to go. Without seeing the code that you have, I can't say for certain why your formatting isn't taking hold when no style is defined - but mixing in formatting with data calculations and other parts of the code can get very messy very quickly.
Creating a ne... | null | CC BY-SA 2.5 | null | 2008-08-29T22:15:07.360 | 2008-08-29T22:15:07.360 | null | null | 3,259 | null |
35,386 | 2 | null | 35,286 | 2 | null | This will work. It's messy because in BAT files you can't use set var=`cmd` like you can in unix.
The fact that echo doesn't understand quotes is also messy, and could lead to trouble if `Some Pattern` contains shell meta characters.
```
set FILENAME=%~f1
echo s/Some Pattern/%FILENAME%/ | sed -e "s/\\/\\\\/g" >sedcmd... | null | CC BY-SA 2.5 | null | 2008-08-29T21:58:36.340 | 2008-08-30T01:48:10.670 | 2008-08-30T01:48:10.670 | 3,657 | 3,657 | null |
35,415 | 2 | null | 35,322 | 0 | null | I haven't used the AuthorizeAttribute that comes in Preview 4 yet. I rolled my own, because I have been using the MVC framework since the first CTP. I took a quick look at the attribute in reflector and it is doing what I mentioned above internally, except they use the hex equivalent of 401. I will need to look furt... | null | CC BY-SA 2.5 | null | 2008-08-29T22:23:37.403 | 2008-08-29T22:23:37.403 | null | null | 1,117 | null |
35,407 | 1 | null | null | 0 | 294 | I'm working on a system with four logical CPS (two dual-core CPUs if it matters). I'm using make to parallelize twelve trivially parallelizable tasks and doing it from cron.
The invocation looks like:
```
make -k -j 4 -l 3.99 -C [dir] [12 targets]
```
The trouble I'm running into is that sometimes one job will fin... | Trouble with parallel make not always starting another job when one finishes | CC BY-SA 2.5 | null | 2008-08-29T22:19:16.337 | 2008-09-30T16:00:20.700 | 2008-08-29T23:10:06.823 | 1,447 | 1,447 | [
"makefile"
] |
35,408 | 2 | null | 35,357 | 5 | null | Who else is involved in the database? Are you the only person making schema changes (creating new objects, releasing new stored procedures, permissioning new users)?
- - - - -
| null | CC BY-SA 2.5 | null | 2008-08-29T22:19:20.017 | 2008-08-29T22:19:20.017 | null | null | 2,902 | null |
35,404 | 2 | null | 33,703 | 9 | null | One other thing to also check is that your controls have the property set to instead of Standard.
What this will do is make sure that the app uses the system defaults for radio buttons, standard buttons and the like. This takes all your apps from the flat Win 2000 look and gives them the XP or Vista bling depending ... | null | CC BY-SA 2.5 | null | 2008-08-29T22:13:12.433 | 2008-08-29T22:13:12.433 | null | null | 71 | null |
35,417 | 2 | null | 35,333 | 1 | null | Because you've already made a typedef for the struct (because you used the 's1' version), you should write:
```
foo test;
```
rather than
```
struct foo test;
```
That will work in both C and C++
| null | CC BY-SA 2.5 | null | 2008-08-29T22:27:19.203 | 2008-08-29T22:27:19.203 | null | null | 987 | null |
35,419 | 2 | null | 35,286 | 0 | null | @Alexandru & Jeremy, Thanks for your help. You both get upvotes
@Jeremy
Using your method I got the following error:
> sed: -e expression #1, char 8:
unterminated `s' command
If you can edit your answer to make it work I'd accept it. (pasting my solution doesn't count)
Ok, I tried it with UnixUtils and it worke... | null | CC BY-SA 2.5 | null | 2008-08-29T22:29:58.790 | 2008-08-30T14:28:36.990 | 2008-08-30T14:28:36.990 | 2,541 | 2,541 | null |
35,421 | 2 | null | 35,402 | 9 | null | You might or might not already know this (R# does suffer from a lack of discoverability, unless you get the one-page key-shortcut page printed out), but ALT-INS opens a box which can at least mass-generate properties for fields.
Not sure if that's any use - it's not the same as a retrospective encapsulation.
| null | CC BY-SA 2.5 | null | 2008-08-29T22:33:42.790 | 2008-08-29T22:33:42.790 | null | null | 987 | null |
35,424 | 2 | null | 34,987 | 108 | null | C++ 11 added initialization lists to allow the following syntax:
```
std::vector<std::string> v = {"Hello", "World"};
```
Support for this C++ 11 feature was added in at least [GCC 4.4](http://gcc.gnu.org/projects/cxx0x.html) and only in [Visual Studio 2013](https://msdn.microsoft.com/en-us/library/hh567368.aspx#cor... | null | CC BY-SA 3.0 | null | 2008-08-29T22:39:43.120 | 2015-06-25T09:52:38.423 | 2015-06-25T09:52:38.423 | 488 | 488 | null |
35,428 | 2 | null | 27,292 | 1 | null | rsync will only upload the differences. I haven't personally used it, but [Mark Pilgrim](http://diveintomark.org) wrote a long time ago about how it even [handles binary diffs brilliantly](http://diveintomark.org/archives/2004/05/01/essentials).
svn+rsync sounds like a fantastic solution. I'll have to try that in the ... | null | CC BY-SA 2.5 | null | 2008-08-29T22:40:49.420 | 2008-08-29T22:40:49.420 | null | null | 3,674 | null |
35,420 | 1 | 35,438 | null | 2 | 424 | I've had a tough time setting up my replication server. Is there any program (OS X, Windows, Linux, or PHP no problem) that lets me monitor and resolve replication issues? (btw, for those following, I've been on this issue [here](https://stackoverflow.com/questions/8166/mysql-replication-if-i-dont-specify-any-databases... | How do I oversee my MySQL replication server? | CC BY-SA 4.0 | null | 2008-08-29T22:30:03.033 | 2021-07-31T12:46:47.793 | 2021-07-31T12:46:47.793 | 6,296,561 | 547 | [
"mysql",
"mysql-management"
] |
35,429 | 1 | 35,433 | null | 1 | 4,063 | I was given a C++ project that was compiled using MS Visual Studio .net 2003 C++ compiler, and a .mak file that was used to compile it. I am able to build it from the command line using nmake project.mak, but the compiler complains that afxres.h was not found. I did a little searching around and the afxres.h is in th... | nmake, visualstudio, and .mak files | CC BY-SA 2.5 | null | 2008-08-29T22:42:01.290 | 2021-04-15T17:49:43.960 | 2009-04-18T14:18:06.287 | 2,284 | 3,690 | [
"visual-studio",
"nmake"
] |
35,433 | 2 | null | 35,429 | 4 | null | There should be an icon in your Start menu under Programs that opens a cmd.exe instance with all the correct MSVS environment variables set up for command line building.
| null | CC BY-SA 2.5 | null | 2008-08-29T22:48:10.213 | 2008-08-29T22:48:10.213 | null | null | 893 | null |
35,432 | 1 | 35,441 | null | 1 | 237 | I didn't see the option to point the workspace (or it's VS equivalent, I'm still learning the terminology for Visual Studio, but it is called a workspace in Eclipse) to My Documents/Programming instead of -- well -- wherever it is now.
| How can I point Visual Studio 2008 to a new path for projects? | CC BY-SA 3.0 | null | 2008-08-29T22:47:47.953 | 2014-03-09T00:11:45.717 | 2014-03-09T00:11:45.717 | 1,644,214 | 572 | [
"visual-studio"
] |
35,435 | 2 | null | 35,432 | 0 | null | When you create the project you can specify whatever directory you want, you are not limited to the default.
| null | CC BY-SA 2.5 | null | 2008-08-29T22:49:27.620 | 2008-08-29T22:49:27.620 | null | null | 2,894 | null |
35,430 | 2 | null | 35,233 | 1 | null | Depending on your situation, you have another option: in-license third-party code.
I've consulted at a couple of companies where that would be the sensible choice, although seemingly "throwing away IP" can be a big barrier for management. At my current company, we seriously considered the viable option of using third... | null | CC BY-SA 2.5 | null | 2008-08-29T22:47:07.050 | 2008-08-29T22:47:07.050 | null | null | 3,260 | null |
35,394 | 2 | null | 35,357 | 5 | null | I've been there. I used to have a job where I wrote code, did all the infrastructure stuff, wore the DBA hat, did user support, fixed the electric stapler when it jammed, and whatever else came up that might be remotely associated with IT. It was great! I learned a little about everything.
As far as the care and fe... | null | CC BY-SA 3.0 | null | 2008-08-29T22:01:58.670 | 2012-07-04T19:53:39.447 | 2012-07-04T19:53:39.447 | 1,001,985 | 3,452 | null |
35,425 | 2 | null | 35,320 | 1 | null | I'm not certain I fully understand the problem, but just to hack & slash at it you could try:
```
SELECT TOP 1 FROM cteLevelOne ORDER BY CustID DESC
```
That assumes that the CustID is also in order as in the example, and not something like a GUID.
| null | CC BY-SA 2.5 | null | 2008-08-29T22:40:16.427 | 2008-08-29T22:40:16.427 | null | null | 2,916 | null |
35,442 | 2 | null | 35,432 | 1 | null | Tools -> Options -> Projects & Solutions.
There is a Visual Studio Projects box.
| null | CC BY-SA 2.5 | null | 2008-08-29T22:52:35.540 | 2008-08-29T22:52:35.540 | null | null | 2,894 | null |
35,441 | 2 | null | 35,432 | 1 | null | What Craig said, plus if you do want to change the default it's in Tools -> Options -> Projects And Solutions.
I've never changed the default and never created a solution/project in the default location, which might tell you something about how relevant it is...
| null | CC BY-SA 2.5 | null | 2008-08-29T22:52:16.507 | 2008-08-29T22:52:16.507 | null | null | 987 | null |
35,438 | 2 | null | 35,420 | 3 | null | To monitor the servers we use the free [tools from Maatkit](http://www.maatkit.org/tools.html) ... simple, yet efficient.
The binary replication is available in 5.1, so I guess you've got some balls. We still use 5.0 and it works OK, but of course we had our share of issues with it.
We use a Master-Master replication... | null | CC BY-SA 2.5 | null | 2008-08-29T22:49:44.140 | 2008-08-29T22:49:44.140 | null | null | 3,280 | null |
35,447 | 2 | null | 35,407 | 0 | null | Does make think one of the targets is failing? If so, it will stop the make after the running jobs finish. You can use -k to tell it to continue even if an error occurs.
| null | CC BY-SA 2.5 | null | 2008-08-29T23:01:29.510 | 2008-08-29T23:01:29.510 | null | null | 2,897 | null |
35,409 | 2 | null | 35,339 | 10 | null | In , either the axiom of foundation [as mentioned] or the axiom (scheme) of comprehension will prohibit this. The first, for obvious reasons; the second, since it basically says that for given and first-order property , you can construct { ∈ : () }, but to generate the Russell set, you would need = (the class of a... | null | CC BY-SA 2.5 | null | 2008-08-29T22:19:20.877 | 2008-08-29T22:19:20.877 | null | null | 3,191 | null |
35,444 | 2 | null | 35,047 | 6 | null | I don't trust programmatic migrations. If it's a simple change, such as adding a NULLable column, I'll just add it directly to the live server. If it's more complex or requires data changes, I'll write a pair of SQL migration files and test them against a replica database.
When using migrations, test the rollback mig... | null | CC BY-SA 2.5 | null | 2008-08-29T22:54:21.197 | 2008-08-29T22:54:21.197 | null | null | 3,560 | null |
35,450 | 2 | null | 34,914 | 2 | null | When ever I need to do something similar, usually I end up using [XML::Parser::EasyTree](http://search.cpan.org/~ebohlman/XML-Parser-EasyTree-0.01/EasyTree.pm) it has better documentation and is simpler to use.
I highly recommend it.
| null | CC BY-SA 2.5 | null | 2008-08-29T23:02:58.570 | 2008-08-29T23:02:58.570 | null | null | 238 | null |
35,440 | 2 | null | 35,047 | 5 | null | I've never come across a tool that would do the job. Instead I've used individual files, numbered so that I know which order to run them: essentially, a manual version of Rails migrations, but without the rollback.
Here's the sort of thing I'm talking about:
```
000-clean.sql # wipe out everything in the DB
0... | null | CC BY-SA 2.5 | null | 2008-08-29T22:52:00.640 | 2008-08-29T22:52:00.640 | null | null | 726 | null |
35,454 | 2 | null | 34,635 | 2 | null | Or if using the Visual Studio command line,
cl.exe /Fa[assembler code filename]
If you just want to view the assembler code in the IDE you can start the debugger and then select the Go To Dissassembly choice on the right click menu.
| null | CC BY-SA 2.5 | null | 2008-08-29T23:07:07.437 | 2008-08-29T23:07:07.437 | null | null | 3,692 | null |
35,449 | 2 | null | 26,771 | 1 | null | I do think that games and puzzles are a good place to start as they can give great scope for developing more complex versions. For example a program can be built as a simple command line program initially that lets two players play the game.
This step can be used to show how a simple data structure or array can repre... | null | CC BY-SA 2.5 | null | 2008-08-29T23:01:53.347 | 2008-08-29T23:01:53.347 | null | null | 3,685 | null |
35,451 | 2 | null | 3,748 | 0 | null | One thing you need to keep in mind is the size of your data set. I believe that Dillie-O was the only one who even remotely hit the point.
If you have a small, single user, consumer app then I would say DB. I have a DVD management app that uses the file system (in Program Files at that) and it is a PIA to backup. I... | null | CC BY-SA 2.5 | null | 2008-08-29T23:04:07.010 | 2008-08-29T23:04:07.010 | null | null | 3,683 | null |
35,456 | 2 | null | 34,294 | 2 | null | You might also want to add a way to pin and unpin that 64-bit pointer to a 32-bit memory address. Since this is Delphi, I'm pretty sure it's Windows specific, so you might as well use [Address Windowing Extensions](http://msdn.microsoft.com/en-us/library/aa366527(VS.85).aspx). That way, you can support allocating, free... | null | CC BY-SA 3.0 | null | 2008-08-29T23:08:35.280 | 2012-07-03T14:55:45.323 | 2012-07-03T14:55:45.323 | 142,162 | 1,799 | null |
35,459 | 2 | null | 35,372 | 0 | null | It looks like most of your CSS info is in some *.css files. There is also some inline Style info on the page. Your style for the static info comes from the in-line stuff. I am not sure how Drupal generates the page but the place to start looking is for any properties for "ultima-edicao". That is what the surroundin... | null | CC BY-SA 2.5 | null | 2008-08-29T23:12:48.313 | 2008-08-29T23:12:48.313 | null | null | 2,894 | null |
35,443 | 2 | null | 34,079 | 10 | null | The best way of going through a proxy that requires authentication is using [urllib2](http://docs.python.org/lib/module-urllib2.html) to build a custom url opener, then using that to make all the requests you want to go through the proxy. Note in particular, you probably don't want to embed the proxy password in the ur... | null | CC BY-SA 2.5 | null | 2008-08-29T22:52:47.723 | 2008-08-29T22:52:47.723 | null | null | 3,665 | null |
35,468 | 2 | null | 35,463 | 0 | null | `ldiv` ?
Edit: reread title, so you might want to ignore this. Or not, depending on if it has an appropriate non-library version.
| null | CC BY-SA 3.0 | null | 2008-08-29T23:31:28.533 | 2012-07-03T14:46:53.903 | 2012-07-03T14:46:53.903 | 142,162 | 1,799 | null |
35,460 | 2 | null | 34,151 | 5 | null | If you really want to get into the details of communication between threads via shared memory, even declaring a variable volatile won't be enough, even if the compiler does use appropriate access semantics to ensure that it won't get a stale version of data after checking the flag. The CPU can issue reads and writes ou... | null | CC BY-SA 3.0 | null | 2008-08-29T23:16:26.683 | 2012-07-03T14:52:21.750 | 2012-07-03T14:52:21.750 | 142,162 | 1,799 | null |
35,464 | 2 | null | 35,333 | 0 | null | C2143 basically says that the compiler got a token that it thinks is illegal in the current context. One of the implications of this error is that the actual problem may exist before the line that triggers the compiler error. As Greg said I think we need to see more of your code to diagnose this problem.
I'm also not ... | null | CC BY-SA 2.5 | null | 2008-08-29T23:23:50.673 | 2008-08-29T23:23:50.673 | null | null | 3,692 | null |