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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9,011 | 2 | null | 9,009 | 79 | null | This is explained in the Perl [documentation](http://perldoc.perl.org/perlop.html#Conditional-Operator).
Because of Perl operator precedence the statement is being parsed as
```
($condition ? $a= 2 : $a ) = 3 ;
```
Because the ?: operator produces an assignable result, 3 is assigned to the result of the condition.... | null | CC BY-SA 2.5 | null | 2008-08-12T16:05:34.390 | 2008-10-13T13:03:39.180 | 2008-10-13T13:03:39.180 | 238 | 238 | null |
9,009 | 1 | 9,011 | null | 41 | 7,216 | This snippet of Perl code in my program is giving the wrong result.
```
$condition ? $a = 2 : $a = 3 ;
print $a;
```
No matter what the value of `$condition` is, the output is always 3, how come?
| Assignment inside Perl ternary conditional operator problems | CC BY-SA 3.0 | 0 | 2008-08-12T16:03:54.893 | 2014-07-17T10:57:57.843 | 2014-07-17T10:57:57.843 | 1,820,501 | 238 | [
"perl",
"conditional-operator",
"operator-precedence"
] |
9,012 | 2 | null | 8,448 | 15 | null | While the previous examples answered the question, here are two simpler examples of how Currying can be beneficial for F# programming.
```
open System.IO
let appendFile (fileName : string) (text : string) =
let file = new StreamWriter(fileName, true)
file.WriteLine(text)
file.Close()
// Call it normally ... | null | CC BY-SA 2.5 | null | 2008-08-12T16:07:24.170 | 2008-08-12T16:07:24.170 | null | null | 322 | null |
9,025 | 2 | null | 9,022 | 3 | null | The second example will ensure compatibility with ASCII standards of HTML transmition. So my vote is for the second example, so you don't have to ensure the HTML is output and encoded as UTF-8 all the way through all the proxy servers and any other kind of caching and translation that might occur.
| null | CC BY-SA 2.5 | null | 2008-08-12T16:28:05.563 | 2008-08-12T16:28:05.563 | null | null | 17 | null |
9,019 | 1 | 941,940 | null | 2 | 9,930 | I have a stored procedure which takes as its parameter a which needs to be cast as a for later use:
```
SET @the_date = CAST(@date_string AS DATETIME)
```
I'm expecting the date string to be supplied in the format "DD-MON-YYYY", but in an effort to code defensively, if for some reason it can't be cast successfully... | Best method for varchar date validation in Sybase (T-SQL)? | CC BY-SA 2.5 | null | 2008-08-12T16:22:14.793 | 2013-03-15T08:50:23.000 | 2013-03-15T08:50:23.000 | 1,563,422 | 1,030 | [
"tsql",
"validation",
"datetime",
"varchar",
"sap-ase"
] |
9,028 | 2 | null | 9,022 | 3 | null | You're correct; As long as there's unicode at both ends of the pipe, it really doesn't matter. Personally, I would use the first simply because it's more readable.
And, honestly, unicode has been widespread for some time. I personally believe that it's time to leave anyone who can't handle UTF-8 behind.
| null | CC BY-SA 2.5 | null | 2008-08-12T16:28:59.460 | 2008-08-12T16:28:59.460 | null | null | 1,975,282 | null |
9,026 | 2 | null | 8,966 | 0 | null | It doesn't to be WIA. I was mostly looking at the WIA setup because it offers the same basic interface for different scanners. I've got 3 scanners on this machine and the TWAIN drivers/software for all of them suck (like blocking the screen during scanning).
For document management, I'm really looking for simple 200d... | null | CC BY-SA 2.5 | null | 2008-08-12T16:28:10.740 | 2008-08-12T16:28:10.740 | null | null | 1,124 | null |
9,023 | 2 | null | 9,019 | 0 | null | Found [this in the second result](http://blog.sqlauthority.com/2007/07/12/sql-server-validate-field-for-date-datatype-using-function-isdate/) in Google when searching for "validate date string sql".
```
----Invalid date
SELECT ISDATE('30/2/2007')
RETURNS : 0 (Zero)
----Valid date
SELECT ISDATE('12/12/20007')
RETURNS :... | null | CC BY-SA 2.5 | null | 2008-08-12T16:25:50.903 | 2008-08-12T16:25:50.903 | null | null | 17 | null |
9,018 | 1 | 9,403 | null | 1 | 2,329 | I am working at a client site where there is a proxy server (`HTTP`) in place. If I do a hard reset of the emulator it forgets network connection settings for the emulator and settings in the hosted Windows Mobile OS. If I 'save state and exit' it will lose all of these settings. I need to do hard resets regularly whic... | Windows Mobile Device Emulator - how to save config permanently? | CC BY-SA 3.0 | null | 2008-08-12T16:20:58.040 | 2020-06-26T15:02:01.040 | 2013-07-04T12:06:39.760 | 1,584,286 | 636 | [
"visual-studio",
"windows-mobile",
"emulation",
"device"
] |
9,024 | 1 | 9,031 | null | 7 | 3,247 | I'm using `IIS 5.1` in Windows XP on my development computer. I'm going to set up HTTPS on my company's web server, but I want to try doing it locally before doing it on a production system.
But when I go into the Directory Security tab of my web site's configuration section, the "Secure communication" groupbox is dis... | HTTPS in IIS 5.1 | CC BY-SA 3.0 | 0 | 2008-08-12T16:27:39.510 | 2014-09-15T11:23:50.257 | 2014-09-15T11:23:50.257 | 100,297 | 614 | [
"iis",
"ssl"
] |
9,029 | 2 | null | 9,019 | 0 | null | Make sure SQL Server knows the order of Days, Months and Years in your string by executing
```
SET DATEFORMAT mdy;
```
| null | CC BY-SA 2.5 | null | 2008-08-12T16:29:56.947 | 2008-08-12T16:29:56.947 | null | null | 1,008 | null |
9,030 | 2 | null | 9,024 | 3 | null | You may need to manually create a certificate first (on WinXP there does not seem to be a built-in mechanism, so you need to use OpenSSL). Check out these two links:
[Enabling SSL in IIS on Windows XP Professional](http://www.somacon.com/p41.php)
[Enabling SSL (HTTPS) for IIS in Windows XP](http://dotnetyuppie.com/20... | null | CC BY-SA 3.0 | null | 2008-08-12T16:30:53.310 | 2013-01-27T14:03:24.957 | 2013-01-27T14:03:24.957 | null | 91 | null |
9,031 | 2 | null | 9,024 | 3 | null | That is because IIS 5.1 under the limited Windows XP version is limited to only HTTP. You need to have a full version of IIS 6.0 on Windows 2003 to do this. Luckily you can download a VHD image of Windows 2003 from Microsoft and run it under a Virtual PC instance. Plus I would recommend this since you are trying to ... | null | CC BY-SA 2.5 | null | 2008-08-12T16:31:02.403 | 2008-08-12T16:31:02.403 | null | null | 17 | null |
9,022 | 1 | 9,356 | null | 7 | 2,548 | Inside an asp.net page, should I use
```
<html><title>My page's title from México</title></html>
```
Or
```
<html><title>My page’s title from México</title></html>
```
Both examples have the same output. Since asp.net encodes all my pages to utf-8, there is no need to use html entities, is that righ... | How have Html entities inside asp.net page? | CC BY-SA 4.0 | null | 2008-08-12T16:25:18.720 | 2020-02-12T18:17:49.650 | 2020-02-12T18:17:49.650 | 296 | 296 | [
"asp.net",
"html",
"encoding"
] |
9,037 | 2 | null | 9,033 | 28 | null | Two of my personal favourites, which I see rarely used:
1. Snippets (particularly for properties, which was made even better for Visual Studio 2008)
2. The ObsoleteAttribute
| null | CC BY-SA 3.0 | null | 2008-08-12T16:37:19.037 | 2011-05-23T11:19:28.077 | 2011-05-23T11:19:28.077 | 63,550 | 1,975,282 | null |
9,038 | 2 | null | 9,033 | 75 | null | Honestly the experts by the very definition should know this stuff. But to answer your question: [Built-In Types Table (C# Reference)](http://msdn.microsoft.com/en-us/library/ya5y69ds.aspx)
The compiler flagging for numbers are widely known for these:
```
Decimal = M
Float = F
Double = D
// for example
double d = 3... | null | CC BY-SA 3.0 | null | 2008-08-12T16:38:50.703 | 2011-05-23T11:26:38.497 | 2011-05-23T11:26:38.497 | 63,550 | 17 | null |
9,040 | 2 | null | 8,688 | 0 | null | I vaguely recall having this happen to me when I had Office 2007 installed first before VS 2008. I don't remember what options that I had installed for Office 2007.
Update: I remember now it had to do with the fact that I had Visual Studio Tools for Office already installed. When I upgraded my computer I did a clea... | null | CC BY-SA 2.5 | null | 2008-08-12T16:41:51.540 | 2008-08-16T18:37:58.077 | 2008-08-16T18:37:58.077 | 791 | 791 | null |
9,036 | 2 | null | 9,033 | 104 | null |
1. ?? - coalescing operator
2. using (statement / directive) - great keyword that can be used for more than just calling Dispose
3. readonly - should be used more
4. netmodules - too bad there's no support in Visual Studio
| null | CC BY-SA 2.5 | null | 2008-08-12T16:35:55.703 | 2010-04-30T10:31:14.100 | 2010-04-30T10:31:14.100 | 163,393 | 1,065 | null |
9,039 | 2 | null | 9,019 | 1 | null | My goodness, if the question was about Microsoft SQL Server then we'd have been in business!
Sybase, sadly, is a whole 'nother database these days, since about 1997, in fact, give or take a year.
If the input format simply has to be 'DD-MON-YYYY' and no exceptions, then I think a fair amount of validation was be achi... | null | CC BY-SA 2.5 | null | 2008-08-12T16:40:18.533 | 2008-08-12T16:40:18.533 | null | null | 1,060 | null |
9,035 | 2 | null | 9,033 | 208 | null | "[yield](http://msdn.microsoft.com/en-us/library/9k7k7cf0(VS.80).aspx)" would come to my mind. Some of the attributes like [[DefaultValue()]](http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultvalueattribute.aspx) are also among my favorites.
The "[var](http://msdn.microsoft.com/en-us/library/bb38397... | null | CC BY-SA 3.0 | null | 2008-08-12T16:34:44.970 | 2011-05-23T11:18:11.713 | 2011-05-23T11:18:11.713 | 63,550 | 91 | null |
9,041 | 2 | null | 9,033 | 285 | null | I didn't know the "as" keyword for quite a while.
```
MyClass myObject = (MyClass) obj;
```
vs
```
MyClass myObject = obj as MyClass;
```
The second will return null if obj isn't a MyClass, rather than throw a class cast exception.
| null | CC BY-SA 2.5 | null | 2008-08-12T16:42:04.113 | 2008-08-12T16:42:04.113 | null | null | 122 | null |
9,042 | 2 | null | 9,033 | 68 | null | - [DependentTransaction](http://msdn.microsoft.com/en-us/library/system.transactions.dependenttransaction.aspx)[Database transactions either](http://msdn.microsoft.com/en-us/library/ms229973.aspx)- -
There are more, but that is the three obvious ones of the top of my head...
| null | CC BY-SA 2.5 | null | 2008-08-12T16:45:22.813 | 2009-09-27T19:31:34.210 | 2009-09-27T19:31:34.210 | 63,550 | 1,075 | null |
9,048 | 2 | null | 9,033 | 225 | null | Attributes in general, but most of all [DebuggerDisplay](http://msdn.microsoft.com/en-us/library/x810d419.aspx). Saves you years.
| null | CC BY-SA 2.5 | null | 2008-08-12T16:59:40.460 | 2009-04-26T16:34:20.733 | 2009-04-26T16:34:20.733 | 72,563 | 414 | null |
9,044 | 1 | 275,353 | null | 16 | 12,081 | I have a base class that represents a database test in TestNG, and I want to specify that all classes extending from this class are of a group "db-test", however I have found that this doesn't seem possible. I have tried the @Test annotation:
```
@Test(groups = { "db-test" })
public class DBTestBase {
}
```
However... | Can I specify a class wide group on a TestNG test case? | CC BY-SA 2.5 | 0 | 2008-08-12T16:52:08.697 | 2020-06-25T18:55:27.810 | 2008-11-08T22:51:50.377 | 6,309 | 122 | [
"java",
"testng"
] |
9,050 | 2 | null | 5,598 | 1 | null | BiranLy's answer is excellent. I would just like to add that document-vs-RPC can come down to implementation issues as well. We have found Microsoft to be Document-preferring, while our Java-based libraries were RPC-based. Whatever you choose, make sure you know what other potential clients will assume as well.
| null | CC BY-SA 2.5 | null | 2008-08-12T17:01:44.543 | 2008-08-12T17:01:44.543 | null | null | 170 | null |
9,049 | 2 | null | 5,916 | 2 | null | Regions must never be used inside methods. They may be used to group methods but this must be handled with extreme caution so that the reader of the code does not go insane. There is no point in folding methods by their modifiers. But sometimes folding may increase readability. For e.g. grouping some methods that you u... | null | CC BY-SA 2.5 | null | 2008-08-12T17:00:35.060 | 2008-08-12T17:00:35.060 | null | null | 31,505 | null |
9,047 | 2 | null | 6,613 | 1 | null | We've used both [http://jatha.sourceforge.net](http://jatha.sourceforge.net) and [http://www.jboss.com/products/rules](http://www.jboss.com/products/rules). They're both pretty good, but for the most part, JBoss rules seems to me to be overkill for a lot of what people do. They're both Java based.
It's worth rememberi... | null | CC BY-SA 2.5 | null | 2008-08-12T16:59:31.647 | 2008-08-12T16:59:31.647 | null | null | 170 | null |
9,045 | 2 | null | 8,604 | 3 | null | I've been using [this one](http://www.itwriting.com/htmleditor/), which goes a little lower than the WebBrowser, but still uses MSHTML, which does spit out some ugly HTML. For my purposes, I am doing a multi-tabbed editor with WYSIWYG and HTML edit mode (using [ICSharp.TextEditor](http://sharpdevelop.net/OpenSource/SD/... | null | CC BY-SA 2.5 | null | 2008-08-12T16:53:31.643 | 2008-08-12T16:53:31.643 | null | null | 1,124 | null |
9,053 | 2 | null | 5,916 | 1 | null | I think that it's a useful tool, when used properly. In many cases, I feel that methods and enumerations and other things that are often folded should be little black boxes. Unless you must look at them for some reason, their contents don't matter and should be as hidden as possible. However, I never fold private metho... | null | CC BY-SA 2.5 | null | 2008-08-12T17:06:10.913 | 2008-08-12T17:06:10.913 | null | null | 572 | null |
9,062 | 2 | null | 6,613 | 1 | null | I've [checked out](http://dlinsin.blogspot.com/2006/11/jboss-rules-example.html) JBoss Rules aka Drools and it looks pretty good. I'd love to hear from people using it in production, because I'm probably gonna need a rule engine in my current project as well.
| null | CC BY-SA 2.5 | null | 2008-08-12T17:20:41.993 | 2008-08-12T17:20:41.993 | null | null | 198 | null |
9,052 | 1 | 9,054 | null | 11 | 27,272 | I'm working on a spec for a piece of software for my company and as part of the auditing system I think it would be neat if there was a way to grab the current Active Directory user.
Hopefully something like:
```
Dim strUser as String
strUser = ActiveDirectory.User()
MsgBox "Welcome back, " & strUser
```
| Is there a way for MS Access to grab the current Active Directory user? | CC BY-SA 2.5 | 0 | 2008-08-12T17:03:28.220 | 2020-01-13T14:50:32.073 | 2009-03-09T23:02:29.063 | 5,640 | 428,190 | [
"ms-access",
"active-directory"
] |
9,063 | 2 | null | 5,916 | 1 | null | My approach is similar to a few others here, using regions to organize code blocks into constructors, properties, events, etc.
There's an excellent set of VS.NET macros by Roland Weigelt available from his blog entry, [Better Keyboard Support for #region ... #endregion](http://weblogs.asp.net/rweigelt/archive/2003/07/... | null | CC BY-SA 2.5 | null | 2008-08-12T17:22:38.337 | 2008-08-12T17:22:38.337 | null | null | 775 | null |
9,054 | 2 | null | 9,052 | 6 | null | [Try this article](http://bytes.com/forum/thread717576.html) - I have some code at work that will erm, work if this doesn't...
Relevant quote:
> ```
Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _
(ByVal IpBuffer As String, nSize As Long) As Long
Private Declare Fu... | null | CC BY-SA 3.0 | null | 2008-08-12T17:07:52.563 | 2017-04-07T06:09:33.317 | 2017-04-07T06:09:33.317 | 321,973 | 1,075 | null |
9,081 | 1 | 9,083 | null | 4,043 | 1,394,306 | How do I `grep` and show the preceding and following 5 lines surrounding each matched line?
| grep: show lines surrounding each match | CC BY-SA 4.0 | 0 | 2008-08-12T17:55:32.813 | 2023-02-24T13:12:51.627 | 2022-07-17T00:09:46.743 | 365,102 | 116 | [
"search",
"logging",
"grep",
"command-line-interface"
] |
9,072 | 1 | 204,732 | null | 6 | 1,055 | Question for YUI experts...
I have a table and I've made each cell of the first row draggable by [proxy](http://web.archive.org/web/20160728103125/https://developer.yahoo.com/yui/examples/dragdrop/dd-proxy.html). In IE, when the drag proxy is released, the original table cell actually jumps to wherever the release poin... | YUI drag&drop proxy drag | CC BY-SA 4.0 | null | 2008-08-12T17:47:26.213 | 2020-06-25T12:48:23.693 | 2020-06-25T12:48:23.693 | 9,780,149 | 67 | [
"javascript",
"drag-and-drop",
"yui"
] |
9,055 | 2 | null | 9,033 | 197 | null | I tend to find that most C# developers don't know about 'nullable' types. Basically, primitives that can have a null value.
```
double? num1 = null;
double num2 = num1 ?? -100;
```
Set a nullable double, , to null, then set a regular double, , to or if was null.
[http://msdn.microsoft.com/en-us/library/1t3y8s4s... | null | CC BY-SA 2.5 | null | 2008-08-12T17:07:59.350 | 2010-12-29T10:31:11.900 | 2017-05-23T10:31:39.507 | -1 | 12,081 | null |
9,067 | 2 | null | 9,033 | 15 | null | I have often come across the need to have a generic parameter-object persisted into the viewstate in a base class.
```
public abstract class BaseListControl<ListType,KeyType,ParameterType>
: UserControl
where ListType : BaseListType
&& ParameterType : BaseParameterTy... | null | CC BY-SA 3.0 | null | 2008-08-12T17:29:29.307 | 2011-05-23T11:28:48.650 | 2011-05-23T11:28:48.650 | 63,550 | 960 | null |
9,080 | 2 | null | 5,966 | 0 | null | Bartosz/To clarify "This worked okay, but there was no easy way of checking if x[3][24] was supposed to exist or not"
`x['some show'][3][24]` would return season 3, episode 24 of "some show". If there was no season 3, I want the pseudo-dict to raise tvdb_seasonnotfound, if "some show" doesn't exist, then raise tvdb_sh... | null | CC BY-SA 2.5 | null | 2008-08-12T17:55:22.233 | 2008-08-13T13:43:48.373 | 2008-08-13T13:43:48.373 | 745 | 745 | null |
9,086 | 2 | null | 2,092 | 4 | null | You can also get the source from a Open Source code coverage tool and learn from it.
| null | CC BY-SA 2.5 | null | 2008-08-12T17:58:25.630 | 2008-08-12T17:58:25.630 | null | null | null | null |
9,084 | 2 | null | 9,081 | 42 | null | ```
grep astring myfile -A 5 -B 5
```
That will grep "myfile" for "astring", and show 5 lines before and after each match
| null | CC BY-SA 2.5 | null | 2008-08-12T17:58:00.153 | 2008-08-12T17:58:00.153 | null | null | 745 | null |
9,083 | 2 | null | 9,081 | 5,310 | null | For or `grep` you can use `-B num` to set how many lines before the match and `-A num` for the number of lines after the match.
```
grep -B 3 -A 2 foo README.txt
```
If you want the same number of lines before and after you can use `-C num`.
```
grep -C 3 foo README.txt
```
This will show 3 lines before and 3 l... | null | CC BY-SA 3.0 | null | 2008-08-12T17:57:43.307 | 2017-09-21T08:33:54.237 | 2017-09-21T08:33:54.237 | 8,040,117 | 825 | null |
9,087 | 2 | null | 8,952 | 22 | null | I'd say, it depends on your situation. For example, I work in local government, and we have lots of images like mugshots, etc. We don't have a high number of users, but we need to have good security and auditing around the data. The database is a better solution for us since it makes this easier and we aren't going ... | null | CC BY-SA 2.5 | null | 2008-08-12T17:59:31.463 | 2008-08-12T17:59:31.463 | null | null | 571 | null |
9,082 | 2 | null | 8,726 | 0 | null | If you want to read specific responses you will have to open a socket and read/write data manually.
```
<?php
$sock = fsockopen($hostname, $port);
?>
```
Then you'll have to fput/fread data back and forth.
This will require you to read up on the FTP protocol.
| null | CC BY-SA 2.5 | null | 2008-08-12T17:56:54.370 | 2008-08-12T17:56:54.370 | null | null | 115 | null |
9,085 | 2 | null | 8,532 | 5 | null | I've hit this before. It has to do with the fact that lucene, under the covers, turns many (all?) things into boolean queries when you call Query.rewrite()
From: [http://web.archive.org/web/20110915061619/http://lucene.apache.org:80/java/2_2_0/api/org/apache/lucene/search/Query.html](http://web.archive.org/web/2011091... | null | CC BY-SA 4.0 | null | 2008-08-12T17:58:08.627 | 2020-06-29T18:09:27.367 | 2020-06-29T18:09:27.367 | 9,780,149 | 75 | null |
9,088 | 2 | null | 9,081 | 652 | null | `-A` and `-B` will work, as will `-C n` (for `n` lines of context), or just `-n` (for `n` lines of context... as long as n is 1 to 9).
| null | CC BY-SA 4.0 | null | 2008-08-12T17:59:56.080 | 2019-04-03T18:46:27.283 | 2019-04-03T18:46:27.283 | 52,074 | 414 | null |
9,091 | 1 | null | null | 10 | 22,725 | What is the best way to get and set the meta data for mp3, mp4, avi files etc. with .NET?
| Accessing audio/video metadata with .NET | CC BY-SA 2.5 | 0 | 2008-08-12T18:01:27.480 | 2020-06-29T08:49:26.733 | null | null | 571 | [
".net",
"video",
"audio",
"mp3"
] |
9,098 | 2 | null | 5,949 | 4 | null | You could use an integer which is related to the row number but is not sequential. For example, you could take the 32 bits of the sequential ID and rearrange them with a fixed scheme (for example, bit 1 becomes bit 6, bit 2 becomes bit 15, etc..).
This will be a bidirectional encryption, and you will be sure that two d... | null | CC BY-SA 2.5 | null | 2008-08-12T18:20:16.023 | 2008-08-12T18:20:16.023 | null | null | 1,005 | null |
9,092 | 2 | null | 9,033 | 103 | null | @Ed, I'm a bit reticent about posting this as it's little more than nitpicking. However, I would point out that in your code sample:
```
MyClass c;
if (obj is MyClass)
c = obj as MyClass
```
If you're going to use 'is', why follow it up with a safe cast using 'as'? If you've ascertained that obj is indeed MyCl... | null | CC BY-SA 2.5 | null | 2008-08-12T18:03:12.203 | 2008-08-12T18:03:12.203 | null | null | 1,135 | null |
9,096 | 2 | null | 9,091 | 3 | null | You can use free [UltraID3Lib](http://home.fuse.net/honnert/UltraID3Lib/) .NET library to read/write MP3 metadata.
| null | CC BY-SA 3.0 | null | 2008-08-12T18:15:52.053 | 2011-10-30T20:10:12.800 | 2011-10-30T20:10:12.800 | 355,583 | 1,137 | null |
9,094 | 2 | null | 8,952 | 0 | null | Not to be vague or anything but I think the type of 'file' you will be storing is one of the biggest determining factors. If you essentially talking about a large text field which could be stored as file my preference would be for db storage.
| null | CC BY-SA 2.5 | null | 2008-08-12T18:05:11.980 | 2008-08-12T18:05:11.980 | null | null | 1,104 | null |
9,104 | 1 | 9,105 | null | 59 | 72,207 | I'm thinking that the reason I can't do this is because it might be a huge security hole, but here goes...
I want to have a bookmark on my browser (FF3, preferably) that is only a snippet of javascript code. It would merely construct a URL based on the current date and then do a window.location = on that URL.
I know... | Add a bookmark that is only javascript, not a URL | CC BY-SA 2.5 | 0 | 2008-08-12T18:27:35.883 | 2020-08-25T16:36:24.427 | 2008-10-04T20:35:54.743 | 1,026 | 232 | [
"javascript",
"bookmarklet",
"bookmarks"
] |
9,102 | 2 | null | 8,715 | 0 | null | I definitely see the value in using SQL Profiler while you're app is running, and EXPLAIN or SET STATISTICS will give you information about individual queries, but does anyone routinely put measurement points into their code to gather information about database queries ongoing - that would pick up on for example, a que... | null | CC BY-SA 2.5 | null | 2008-08-12T18:26:13.297 | 2008-08-12T18:26:13.297 | null | null | 908 | null |
9,114 | 2 | null | 9,033 | 146 | null | Here's a useful one for regular expressions and file paths:
```
"c:\\program files\\oldway"
@"c:\program file\newway"
```
The @ tells the compiler to ignore any escape characters in a string.
| null | CC BY-SA 2.5 | null | 2008-08-12T18:38:16.157 | 2008-08-12T19:01:09.107 | 2008-08-12T19:01:09.107 | 429 | 429 | null |
9,105 | 2 | null | 9,104 | 72 | null | What you want is a [bookmarklet](http://en.wikipedia.org/wiki/Bookmarklet) they are easy to create and should work in most major browsers.
Edit: Stack overflow seems not to allow creating bookmarklets in the context of the site, basically you can create a new bookmark and type the following in the location field
to... | null | CC BY-SA 2.5 | null | 2008-08-12T18:29:24.037 | 2008-09-05T19:40:45.953 | 2008-09-05T19:40:45.953 | 238 | 238 | null |
9,109 | 2 | null | 9,104 | 8 | null | Well, I just created a bookmark in FF3, went back and updated it and added the following test:
```
javascript:alert('Wacky%20test%20yo');
```
Low and behold, after I saved and loaded, I was able to get my alert.
I'm sure you can work up something similar for your needs.
| null | CC BY-SA 2.5 | null | 2008-08-12T18:31:11.320 | 2008-08-12T18:31:11.320 | null | null | 71 | null |
9,095 | 2 | null | 7,260 | 105 | null | If you have SSH installed, you should be able to run..
```
ssh-keygen
```
Then go through the steps, you'll have two files, `id_rsa` and `id_rsa.pub` (the first is your private key, the second is your public key - the one you copy to remote machines)
Then, connect to the remote machine you want to login to, to the ... | null | CC BY-SA 3.0 | null | 2008-08-12T18:13:37.127 | 2012-10-28T15:07:26.937 | 2012-10-28T15:07:26.937 | 745 | 745 | null |
9,113 | 2 | null | 1,005 | 3 | null | When you go into insert mode on a file you need sudo access to edit, you get a status message saying
```
-- INSERT -- W10: Warning: Changing a readonly file
```
If I miss that, generally I do
```
:w ~/edited_blah.tmp
:q
```
..then..
```
sudo "cat edited_blah.tmp > /etc/blah"
```
..or..
```
sudo mv edited_blah... | null | CC BY-SA 2.5 | null | 2008-08-12T18:37:53.133 | 2008-11-15T06:49:03.023 | 2008-11-15T06:49:03.023 | 745 | 745 | null |
9,099 | 2 | null | 9,033 | 304 | null | Everything else, plus
1) implicit generics (why only on methods and not on classes?)
```
void GenericMethod<T>( T input ) { ... }
//Infer type, so
GenericMethod<int>(23); //You don't need the <>.
GenericMethod(23); //Is enough.
```
2) simple lambdas with one parameter:
```
x => x.ToString() //simplify so ma... | null | CC BY-SA 3.0 | null | 2008-08-12T18:23:40.587 | 2012-02-13T21:56:02.897 | 2012-02-13T21:56:02.897 | 63,550 | 905 | null |
9,117 | 2 | null | 8,447 | 44 | null | I [asked recently](https://stackoverflow.com/questions/7244/anyone-know-a-good-workaround-for-the-lack-of-an-enum-generic-constraint) about something similar.
If you use flags you can add an extension method to enums to make checking the contained flags easier (see post for detail)
This allows you to do:
```
[Flags]... | null | CC BY-SA 2.5 | null | 2008-08-12T18:40:30.507 | 2008-08-12T18:40:30.507 | 2017-05-23T12:34:54.200 | -1 | 905 | null |
9,118 | 2 | null | 9,033 | 6 | null | @Brad Barker
I think if you have to use nullable types, it's better to use Nullable<.T> rather than the question mark notation. It makes it eye-achingly obvious that magic is occurring.
Not sure why anyone would ever want to use Nullable<.bool> though. :-)
Krzysztof Cwalina (one of the authors of Framwork Design Gui... | null | CC BY-SA 2.5 | null | 2008-08-12T18:40:45.340 | 2008-08-12T18:44:54.007 | 2008-08-12T18:44:54.007 | 1,122 | 1,122 | null |
9,124 | 2 | null | 9,122 | 35 | null | You can do:
```
SELECT column1, column2, column4 FROM table WHERE whatever
```
without getting column3, though perhaps you were looking for a more general solution?
| null | CC BY-SA 2.5 | null | 2008-08-12T18:48:04.983 | 2008-08-12T18:48:04.983 | null | null | 122 | null |
9,122 | 1 | 1,495,476 | null | 450 | 454,542 | I'm trying to use a select statement to get all of the columns from a certain MySQL table except one. Is there a simple way to do this?
EDIT: There are 53 columns in this table (NOT MY DESIGN)
| Select all columns except one in MySQL? | CC BY-SA 3.0 | 0 | 2008-08-12T18:45:55.207 | 2022-02-07T17:55:09.090 | 2019-06-04T23:26:20.047 | 42,223 | 44 | [
"mysql",
"select",
"wildcard"
] |
9,128 | 2 | null | 8,970 | 0 | null | Aside from ObjC, you can use the PyObjC or RubyCocoa bindings to access it also. If you're not picky about which language, I'd say use Ruby, as PyObjC is horribly badly documented (even the official Apple page on it refers to the old version, not the one that came with OS X Leopard)
Quartz Composer is probably the eas... | null | CC BY-SA 2.5 | null | 2008-08-12T18:53:01.120 | 2008-08-12T18:53:01.120 | null | null | 745 | null |
9,123 | 2 | null | 9,122 | 27 | null | To the best of my knowledge, there isn't. You can do something like:
```
SELECT col1, col2, col3, col4 FROM tbl
```
and manually choose the columns you want. However, if you want a lot of columns, then you might just want to do a:
```
SELECT * FROM tbl
```
and just ignore what you don't want.
In your particular ... | null | CC BY-SA 3.0 | null | 2008-08-12T18:47:38.667 | 2012-03-30T14:08:14.640 | 2012-03-30T14:08:14.640 | 1,100,080 | 572 | null |
9,130 | 2 | null | 4,785 | 3 | null | @ggasp Here is what I got off IBM's Information Center
> A node is a logical grouping of managed servers.A node usually corresponds to a logical or physical computer system with a distinct IP host address. Nodes cannot span multiple computers.
[http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/co... | null | CC BY-SA 2.5 | null | 2008-08-12T18:54:00.260 | 2008-08-12T18:54:00.260 | null | null | 782 | null |
9,129 | 2 | null | 9,033 | 130 | null | > Not sure why anyone would ever want to use Nullable<bool> though. :-)
True, False, [FileNotFound](http://thedailywtf.com/Articles/What_Is_Truth_0x3f_.aspx)?
| null | CC BY-SA 2.5 | null | 2008-08-12T18:53:44.333 | 2008-11-22T07:39:07.460 | 2008-11-22T07:39:07.460 | 3,712 | 91 | null |
9,131 | 2 | null | 9,122 | 11 | null | If the column that you didn't want to select had a massive amount of data in it, and you didn't want to include it due to speed issues and you select the other columns often, I would suggest that you create a new table with the one field that you don't usually select with a key to the original table and remove the fiel... | null | CC BY-SA 2.5 | null | 2008-08-12T18:56:35.340 | 2008-08-12T18:56:35.340 | null | null | 1,142 | null |
9,135 | 2 | null | 9,122 | 9 | null | You could use [DESCRIBE my_table](http://dev.mysql.com/doc/refman/5.0/en/describe.html) and use the results of that to generate the SELECT statement dynamically.
| null | CC BY-SA 2.5 | null | 2008-08-12T19:01:14.380 | 2008-08-12T19:01:14.380 | null | null | 886 | null |
9,132 | 2 | null | 3,868 | 1 | null | > Is there any option besides using the hidden iframe trick?
Unfortunately, no, not now. Otherwise the microsummary code you point to would use it instead.
> And if not, what is the best way to do the iframe trick so that your code works outside the context of any currently open tabs (so that closing tabs won't screw... | null | CC BY-SA 2.5 | null | 2008-08-12T18:56:54.637 | 2008-08-12T18:56:54.637 | null | null | 1,026 | null |
9,120 | 2 | null | 9,081 | 22 | null | I normally use
```
grep searchstring file -C n # n for number of lines of context up and down
```
Many of the tools like grep also have really great man files too. I find myself referring to [grep's man page](http://unixhelp.ed.ac.uk/CGI/man-cgi?grep) a lot because there is so much you can do with it.
```
man grep
```... | null | CC BY-SA 4.0 | null | 2008-08-12T18:42:49.080 | 2020-07-05T09:32:13.310 | 2020-07-05T09:32:13.310 | 9,780,149 | 782 | null |
9,125 | 2 | null | 9,033 | 192 | null | Here are some interesting hidden C# features, in the form of undocumented C# keywords:
```
__makeref
__reftype
__refvalue
__arglist
```
These are undocumented C# keywords (even Visual Studio recognizes them!) that were added to for a more efficient boxing/unboxing prior to generics. They work in coordination with... | null | CC BY-SA 3.0 | null | 2008-08-12T18:50:29.720 | 2011-11-10T17:14:12.910 | 2011-11-10T17:14:12.910 | 536 | 536 | null |
9,137 | 2 | null | 9,044 | 1 | null | I'm not sure how the annotation inheritance works for TestNG but this [article](http://web.archive.org/web/20100104232432/http://beust.com/weblog/archives/000170.html) may be of some use.
Actually, this may [help better](http://testng.org/doc/documentation-main.html#annotations), look at inheritGroups.
| null | CC BY-SA 4.0 | null | 2008-08-12T19:03:22.737 | 2020-06-25T18:55:27.810 | 2020-06-25T18:55:27.810 | 9,780,149 | 782 | null |
9,136 | 1 | 9,706 | null | 6 | 8,979 | I'm trying to convert an application using the 1.1 version of the Enterprise Library Caching block over to the 2.0 version. I think where I'm really having a problem is that the configuration for the different EntLib pieces was split out over several files. Apparently, this used to be handled by the , but is now obso... | Enterprise Library CacheFactory.GetCacheManager Throws Null Ref | CC BY-SA 2.5 | null | 2008-08-12T19:01:17.140 | 2016-02-07T18:24:02.290 | 2008-08-31T00:28:32.507 | 305 | 767 | [
"c#",
"configuration",
"enterprise-library"
] |
9,139 | 2 | null | 4,670 | 1 | null | I agree with basszero. I'm using mercurial under windows and it's as easy and reliable as it can get. My development team is spread over Europe (well Dublin and Vienna :-).
We use VPN to commit or sometime the built in webserver (hgserve). Both work fine with no problems out of the box.
Also diff3 open source tool wor... | null | CC BY-SA 2.5 | null | 2008-08-12T19:05:03.343 | 2008-08-12T19:05:03.343 | null | null | 925 | null |
9,142 | 2 | null | 9,091 | 3 | null | I've been looking at the [NTag](http://web.archive.org/web/20140212092246/http://orthogonal.com.au/computers/ntag/index.htm) project as well, which handles MP3/WMA/OGG. I don't know of a single library that handles audio and video files, so you might have to use a few.
| null | CC BY-SA 4.0 | null | 2008-08-12T19:09:30.743 | 2020-06-29T08:49:26.733 | 2020-06-29T08:49:26.733 | 9,780,149 | 5 | null |
9,143 | 1 | null | null | 10 | 3,762 | Has anyone used both FogBugz and Axosoft's OnTime and care to offer an opinion? AxoSoft has a big [feature comparison chart](http://web.archive.org/web/20090522134148/http://www.axosoft.com:80/products/ontime_competition.aspx) but I'm also interested in more subjective thoughts on things like ease of use and stability... | FogBugz compared to OnTime | CC BY-SA 4.0 | 0 | 2008-08-12T19:10:25.203 | 2020-06-29T22:56:47.633 | 2020-06-29T22:56:47.633 | 9,780,149 | 205 | [
"bug-tracking",
"fogbugz",
"ontime"
] |
9,153 | 2 | null | 9,122 | 1 | null | If it's always the same one column, then you can create a view that doesn't have it in it.
Otherwise, no I don't think so.
| null | CC BY-SA 2.5 | null | 2008-08-12T19:18:13.237 | 2008-08-12T19:18:13.237 | null | null | 147 | null |
9,146 | 2 | null | 9,122 | 51 | null | Would a View work better in this case?
```
CREATE VIEW vwTable
as
SELECT
col1
, col2
, col3
, col..
, col53
FROM table
```
| null | CC BY-SA 2.5 | null | 2008-08-12T19:11:17.573 | 2008-08-12T19:45:01.920 | 2008-08-12T19:45:01.920 | 721 | 721 | null |
9,164 | 2 | null | 5,949 | 1 | null | I think that this is one of these issues that cause quasi-religious debates, and its almost futile to talk about. I would just say use what you prefer. In 99% of systems it will no matter which type of key you use, so the benefits (stated in the other posts) of using one sort over the other will never be an issue.
| null | CC BY-SA 2.5 | null | 2008-08-12T19:30:13.137 | 2008-08-12T19:30:13.137 | null | null | 230 | null |
9,161 | 1 | 9,176 | null | 5 | 1,312 | I've created my own application in VB.NET that saves its documents into a file with it's own custom extension (.eds).
Assuming that I've properly associated the file extension with my application, how do I actually handle the processing of the selected file within my application when I double click on the file in File... | Opening a file in my application from File Explorer | CC BY-SA 2.5 | null | 2008-08-12T19:27:35.153 | 2016-06-29T10:00:16.383 | null | null | 71 | [
"vb.net",
"file-extension"
] |
9,170 | 2 | null | 9,091 | 6 | null | I use [MediaInfo](http://mediainfo.sourceforge.net/en) with my C# apps, gives you a lot of information about media files.
| null | CC BY-SA 2.5 | null | 2008-08-12T19:34:28.760 | 2008-08-12T19:34:28.760 | null | null | 1,147 | null |
9,160 | 2 | null | 9,143 | 6 | null | I actually encouraged the company I work for to begin tracking bugs with software (specifically FogBugz) and have been very pleased with FogBugz.
We blindly let our customers send bug requests into FogBugz through email, which has it's advantages and disadvantages. But we really haven't had any problems integrating ... | null | CC BY-SA 2.5 | null | 2008-08-12T19:27:19.367 | 2008-08-12T19:27:19.367 | null | null | 565 | null |
9,152 | 2 | null | 9,143 | 3 | null | OnTime is more an ALM tool - it's trying to do everything.
FogBugz just deals with bugs (and feature requests) and at that it's excellent. I'm not sure about some of the newer extensions (like discussions), but for bugs it's really good.
There's lots of stuff that I'd add to it in terms of better reports, searching ... | null | CC BY-SA 2.5 | null | 2008-08-12T19:17:34.253 | 2008-08-12T19:17:34.253 | null | null | 905 | null |
9,156 | 2 | null | 9,122 | 4 | null | It is good practice to specify the columns that you are querying even if you query all the columns.
So I would suggest you write the name of each column in the statement (excluding the one you don't want).
```
SELECT
col1
, col2
, col3
, col..
, col53
FROM table
```
| null | CC BY-SA 2.5 | null | 2008-08-12T19:20:19.753 | 2008-08-12T19:24:01.010 | 2008-08-12T19:24:01.010 | 810 | 810 | null |
9,175 | 2 | null | 9,143 | 2 | null | I have not tested the OnTime thing, but keep in mind that both FogBugz and OnTime have free versions as well, Axosoft for 1 user and FogBugz for 2 Users, although it's the hosted version. (Check [my answer here](https://stackoverflow.com/questions/3180/anyone-soloing-using-fogbugz#3581) to see how to sign up for the fr... | null | CC BY-SA 2.5 | null | 2008-08-12T19:36:30.503 | 2008-08-12T19:36:30.503 | 2017-05-23T12:01:23.407 | -1 | 91 | null |
9,147 | 2 | null | 9,122 | 3 | null | I agree that it isn't sufficient to `Select *`, if that one you don't need, as mentioned elsewhere, is a BLOB, you don't want to have that overhead creep in.
I would create a with the required data, then you can `Select *` in comfort --if the database software supports them. Else, put the huge data in another table.... | null | CC BY-SA 2.5 | null | 2008-08-12T19:12:23.123 | 2008-08-12T19:12:23.123 | null | null | 157 | null |
9,171 | 2 | null | 8,692 | 2 | null | [PyXML](http://pyxml.sourceforge.net) works well.
You didn't say what platform you're using, however if you're on Ubuntu you can get it with `sudo apt-get install python-xml`. I'm sure other Linux distros have it as well.
If you're on a Mac, xpath is already installed but not immediately accessible. You can set... | null | CC BY-SA 2.5 | null | 2008-08-12T19:34:44.127 | 2008-08-12T20:50:44.893 | 2008-08-12T20:50:44.893 | 1,146 | 1,146 | null |
9,176 | 2 | null | 9,161 | 2 | null | Try [this article](http://www.codeproject.com/KB/vb/VBFileAssociation.aspx) but short answer is `My.Application.CommandLineArgs`
| null | CC BY-SA 3.0 | null | 2008-08-12T19:37:01.907 | 2012-06-09T16:49:20.913 | 2012-06-09T16:49:20.913 | 1,140,579 | 1,075 | null |
9,181 | 2 | null | 9,033 | 6 | null | In no particular order:
```
Lists<>
Mutex
```
The new property definitions shortcut in Framework 3.5.
| null | CC BY-SA 2.5 | null | 2008-08-12T19:40:28.030 | 2009-12-19T10:49:32.260 | 2009-12-19T10:49:32.260 | 211,378 | 146,270 | null |
9,189 | 2 | null | 9,173 | 1 | null | Since it's a compiler error, there must be a reference or use of SuperException somewhere in the project.
1. Do a find/replace in the entire project or solution for that type and remove every reference (it's possible you already did this).
2. If you reference any types that inherits from SuperException (even if the t... | null | CC BY-SA 2.5 | null | 2008-08-12T19:48:52.287 | 2008-08-12T19:48:52.287 | null | null | 507 | null |
9,190 | 2 | null | 8,950 | 1 | null | Office 2008 allows limited connectivity to MOSS. However there is no Mac OS browser yet that is completely compatible to MOSS.
I do have it on good authority the Microsoft Mac BU team is working with the MOSS team to see this changing in future versions of the platform, specifically around the Safari support.
| null | CC BY-SA 2.5 | null | 2008-08-12T19:49:14.393 | 2008-08-12T19:49:14.393 | null | null | 146,270 | null |
9,186 | 2 | null | 9,173 | 0 | null | This sounds pretty strange. Here's what I would check next:
1. Check that there's nothing lingering in your Properties/AssemblyInfo.cs file.
2. Check that there's nothing lingering in your SuperUI.csproj file.
3. Delete all references and re-add them.
| null | CC BY-SA 2.5 | null | 2008-08-12T19:46:51.403 | 2008-08-12T19:46:51.403 | null | null | 1,122 | null |
9,194 | 2 | null | 9,173 | 0 | null | Try creating a new project, and adding all your classes to it.
| null | CC BY-SA 2.5 | null | 2008-08-12T19:51:10.737 | 2008-08-12T19:51:10.737 | null | null | 571 | null |
9,173 | 1 | 559,613 | null | 8 | 5,267 | My C# project - we'll call it the SuperUI - used to make use of a class from an external assembly. Now it doesn't, but the compiler won't let me build the project without the assembly reference in place. Let me elaborate.
This project used to throw and catch a custom exception class - the `SuperException` - which was ... | Lingering assembly dependency in C# .NET | CC BY-SA 2.5 | null | 2008-08-12T19:35:44.590 | 2012-12-04T08:21:12.663 | 2008-08-12T23:30:19.203 | 1 | 1,135 | [
"c#",
".net",
"dependencies"
] |
9,195 | 2 | null | 5,078 | 2 | null | One thing you should be sure to consider is what ports are open to the world. I personally just open port 22 for SSH and port 123 for ntpd. But if you open port 80 (http) or ftp make sure you learn to know at least what you are serving to the world and who can do what with that. I don't know a lot about ftp, but there ... | null | CC BY-SA 2.5 | null | 2008-08-12T19:52:09.723 | 2008-08-12T19:52:09.723 | null | null | 1,063 | null |
9,201 | 2 | null | 9,191 | 0 | null | I would create some kind of in memory thread safe lock. Each thread could wait on the lock until it was free. When the lock becomes free, take the lock and read the file for a defined length of time or a defined amount of data, then release the lock for any other waiting threads.
| null | CC BY-SA 2.5 | null | 2008-08-12T20:04:13.550 | 2008-08-12T20:04:13.550 | null | null | 1,142 | null |
9,198 | 2 | null | 9,091 | 1 | null | Looks like MediaInfo is read-only at this point, by the way: [http://sourceforge.net/forum/message.php?msg_id=4241318&abmode=1](http://sourceforge.net/forum/message.php?msg_id=4241318&abmode=1)
Very cool project, though. It's fun finding out about all this cool stuff here on SO.
| null | CC BY-SA 2.5 | null | 2008-08-12T19:59:17.743 | 2008-08-12T19:59:17.743 | null | null | 5 | null |
9,196 | 2 | null | 9,173 | 2 | null |
1. Exit Visual Studio
2. Delete the bin and obj Folders in your solution directory
3. Restart and see what happens
| null | CC BY-SA 2.5 | null | 2008-08-12T19:56:41.227 | 2008-08-12T20:01:59.513 | 2008-08-12T20:01:59.513 | 91 | 91 | null |
9,199 | 2 | null | 7,089 | 8 | null | jQuery is the way i'd deal with this personally. css support is minimal, images are too fiddly, to be able to select the elements you want to have round corners in jQuery makes perfect sense to me even though some will no doubt argue otherwise. Theres a plugin I recently used for a project at work here: [http://web.arc... | null | CC BY-SA 4.0 | null | 2008-08-12T20:01:45.490 | 2020-06-26T07:53:00.127 | 2020-06-26T07:53:00.127 | 9,780,149 | 1,148 | null |
9,193 | 2 | null | 9,191 | 6 | null | I'd like to add some further notes in my response. All other non-Microsoft operating systems we have tested do not suffer from this problem. Linux, FreeBSD, and Mac OS X (this final one on different hardware) all degrade much more gracefully in terms of aggregate bandwidth when moving from one thread to two. Linux f... | null | CC BY-SA 3.0 | null | 2008-08-12T19:51:06.323 | 2015-04-20T08:26:01.877 | 2015-04-20T08:26:01.877 | 341,065 | 755 | null |