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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7,943 | 2 | null | 7,913 | 20 | null | Have a look at the standalone [Subversion Notify](http://sourceforge.net/projects/svn-notify/) tool
It can do emailing on commit and also much more!
| null | CC BY-SA 3.0 | null | 2008-08-11T16:48:56.877 | 2012-08-17T15:36:55.363 | 2012-08-17T15:36:55.363 | 761,095 | 1,008 | null |
7,945 | 2 | null | 7,940 | 12 | null | a) Must look the same
b) As standards-compliant as possible, but not so anal that it blocks finishing work
In a situation where you have perpetual access to the code, I don't think standards-compliance is all that important, since you can always make changes to the code if something breaks. If you don't have perpetua... | null | CC BY-SA 2.5 | null | 2008-08-11T16:50:32.867 | 2008-08-11T16:50:32.867 | null | null | 1,975,282 | null |
7,948 | 2 | null | 7,940 | 4 | null | I think this is an area in which you should strive to use the [Robustness principle](http://en.wikipedia.org/wiki/Postel%27s_law) as far as is practical (which is good advice for any area of coding). Just because something works today doesn't mean it will work tomorrow: if you're relying on a particular HTML/CSS hack o... | null | CC BY-SA 2.5 | null | 2008-08-11T16:52:57.743 | 2008-08-11T16:52:57.743 | null | null | 1,035 | null |
7,944 | 2 | null | 7,917 | 0 | null | Here's the PHP way:
```
$stripped = str_replace(array(',', '"'), '', $value);
```
[Link to W3Schools page](http://w3schools.com/php/func_string_str_replace.asp)
| null | CC BY-SA 2.5 | null | 2008-08-11T16:50:12.773 | 2008-08-11T16:50:12.773 | null | null | null | null |
7,950 | 2 | null | 7,737 | 0 | null | You could also group the characters by language. Load each language table as needed, and when you need to switch languages, unload the previous language table and load the new one.
| null | CC BY-SA 2.5 | null | 2008-08-11T16:54:04.997 | 2008-08-11T16:54:04.997 | null | null | null | null |
7,940 | 1 | 7,945 | null | 15 | 3,394 | Even though I always strive for complete validation these days, I often wonder if it's a waste of time. If the code runs and it looks the same in all browsers (I use browsershots.org to verify) then do I need to take it any further or am I just being overly anal?
What level do you hold your code to when you create it... | How important is W3C XHTML/CSS validation when finalizing work? | CC BY-SA 2.5 | null | 2008-08-11T16:46:28.567 | 2013-02-05T11:28:13.633 | 2008-09-26T19:58:18.603 | 2,134 | 428,190 | [
"css",
"validation",
"xhtml",
"cross-browser",
"w3c"
] |
7,952 | 2 | null | 7,940 | 1 | null | I know this isn't answering your whole question, but it is worth considering that by using completely valid html you can be sure that your website should work properly in web browsers that haven't been released yet.
| null | CC BY-SA 2.5 | null | 2008-08-11T16:55:52.793 | 2008-08-11T16:55:52.793 | null | null | 840 | null |
7,953 | 2 | null | 3,404 | 5 | null | I would recommend [Companion JS](http://www.my-debugbar.com/wiki/CompanionJS/HomePage).
This is the free version of [Debug Bar](http://www.my-debugbar.com/wiki/Doc/HomePage) but I find it easier to use and have the features I need. Great to test little JavaScript snippets in IE the same way I do with Firebug in Firefo... | null | CC BY-SA 3.0 | null | 2008-08-11T16:56:24.960 | 2013-01-09T10:37:32.740 | 2013-01-09T10:37:32.740 | 268 | 268 | null |
7,951 | 2 | null | 7,940 | 3 | null | I think it's only "tech" guys that really care for "100% standard compliance". My usual page consumers (= users) don't care if there's no alt-attribute for a "menu border picture element".
I usually just make sure that I don't see any obvious errors (all tags closed, all lower case, attributes in quotes, ...), but if ... | null | CC BY-SA 2.5 | null | 2008-08-11T16:55:02.483 | 2008-08-11T17:01:39.753 | 2008-08-11T17:01:39.753 | 999 | 999 | null |
7,955 | 2 | null | 7,937 | 2 | null | As far as I know there are only two options, the better of which is the mentioned usage of an iframe. The other one is hiding all selects when the overlay is shown, leading to an even weirder user experience.
| null | CC BY-SA 2.5 | null | 2008-08-11T17:00:44.437 | 2008-08-11T17:00:44.437 | null | null | 999 | null |
7,958 | 2 | null | 7,937 | 0 | null | I do the same thing with select boxes and Flash.
When using an overlay, hide the underlying objects that would push through. It's not great, but it works. You can use JavaScript to hide the elements just before displaying an overlay, then show them again once you're done.
I try not to mess with iframes unless it's a... | null | CC BY-SA 2.5 | null | 2008-08-11T17:07:30.647 | 2008-08-11T17:07:30.647 | null | null | 106 | null |
7,954 | 1 | 8,034 | null | 7 | 12,864 | When restoring a SQL Server Database, I notice that there are 3 different Recovery States to choose from:
- - -
I've always left it at it's default value, but what do they all mean?
(Preferably in layman's terms)
| SQL Server Recovery States | CC BY-SA 2.5 | 0 | 2008-08-11T16:59:35.047 | 2018-11-15T12:09:19.173 | 2012-08-03T21:33:46.697 | 8,454 | 383 | [
"sql-server",
"backup"
] |
7,960 | 2 | null | 7,885 | 3 | null | The official tutorial on the [CPAN site](http://search.cpan.org/dist/perl/pod/perltoot.pod) is good.
There's also a good article called [Camel POOP](http://www.codeproject.com/KB/perl/camel_poop.aspx) at CodeProject.
| null | CC BY-SA 2.5 | null | 2008-08-11T17:12:07.800 | 2008-08-11T17:12:07.800 | null | null | 311 | null |
7,949 | 2 | null | 2,898 | 0 | null | I love TextMate on OSX.
There is a kind of TextMate clone for Windows called simply "E" ([e-texteditor.com](http://www.e-texteditor.com)). Its author promised that there will be a Linux version soon. Even if you already picked your favourite, TextMate (or E) is worth a look, simply because it is different.
I would s... | null | CC BY-SA 3.0 | null | 2008-08-11T16:53:06.417 | 2015-08-20T22:11:19.077 | 2015-08-20T22:11:19.077 | 7,226 | 1,034 | null |
7,986 | 2 | null | 7,913 | 1 | null | There's a related question [here](https://stackoverflow.com/questions/6155/common-types-of-subversion-hooks#6359) on post-commit hooks. Personally, I prefer to send a message to something I can get an RSS feed from, as an email-per-commit would overload my inbox pretty quickly.
| null | CC BY-SA 2.5 | null | 2008-08-11T17:32:03.763 | 2008-08-11T17:32:03.763 | 2017-05-23T12:02:48.590 | -1 | 763 | null |
7,962 | 2 | null | 7,917 | -1 | null | Daniel's and Eldila's answer have one problem: They remove all quotes and commas in the whole file.
What I usually do when I have to do something like this is to first replace all separating quotes and (usually) semicolons by tabs.
- -
Since I know in which column my affected values will be I then do another searc... | null | CC BY-SA 2.5 | null | 2008-08-11T17:14:04.097 | 2008-08-11T17:14:04.097 | null | null | 999 | null |
8,004 | 1 | 8,090 | null | 5 | 5,901 | I use [rsync](http://rsync.samba.org/) to synchronize files to Windows clients in a server agnostic way. What methods are available to send the progress of rsync to the parent process for display in a gui progress bar?
I imagine two or three choices exist. (1) Watch STDOUT (2) Watch rsync.exe log file, similar to unix... | Best way to wrap rsync progress in a gui? | CC BY-SA 2.5 | null | 2008-08-11T17:43:50.277 | 2018-02-24T07:08:07.713 | 2012-03-22T00:22:08.787 | 3 | 1,027 | [
"windows",
"user-interface",
"rsync"
] |
7,991 | 1 | 8,097 | null | 71 | 139,600 | I'm using the .NETCF (Windows Mobile) `Graphics` class and the `DrawString()` method to render a single character to the screen.
The problem is that I can't seem to get it centred properly. No matter what I set for the Y coordinate of the location of the string render, it always comes out lower than that and the large... | Center text output from Graphics.DrawString() | CC BY-SA 4.0 | 0 | 2008-08-11T17:37:57.107 | 2019-01-20T13:53:54.437 | 2019-01-20T13:53:54.437 | 567,854 | 194 | [
"c#",
"graphics",
"compact-framework"
] |
7,971 | 2 | null | 7,089 | 6 | null | There's always the JavaScript way (see other answers) but since it's is purely styling, I'm kind of against use client scripts to achieve this.
The way I prefer (though it has its limits), is to use 4 rounded corner images that you will position in the 4 corners of your box using CSS:
```
<div class="Rounded">
<!--... | null | CC BY-SA 3.0 | null | 2008-08-11T17:23:09.197 | 2016-12-03T18:25:13.767 | 2016-12-03T18:25:13.767 | 2,571,493 | 810 | null |
8,007 | 2 | null | 8,004 | 1 | null | .NET has a pretty straight forward way to read and watch STDOUT.
I guess this would be the cleanest way, since it is not dependent on any external files, just the path to rsync. I would not be too surprised if there is a wrapper library out there either. If not, write and open source it :)
| null | CC BY-SA 2.5 | null | 2008-08-11T17:47:35.950 | 2008-08-11T17:47:35.950 | null | null | 960 | null |
7,990 | 1 | 8,112 | null | 23 | 18,809 | I am working on a project right now that involves receiving a message from another application, formatting the contents of that message, and sending it to a printer. The technology of choice is C# windows service. The output could be called a report, I suppose, but a reporting engine is not necessary. A simple templ... | Printing from a .NET Service | CC BY-SA 4.0 | 0 | 2008-08-11T17:37:27.310 | 2019-01-20T13:54:09.023 | 2019-01-20T13:54:09.023 | 567,854 | 96 | [
"c#",
".net",
"windows-services",
"printing"
] |
7,957 | 2 | null | 7,954 | 1 | null | From Books On line, i think it is pretty clear after you read it
Instructs the restore operation to not roll back any uncommitted transactions. Either the NORECOVERY or STANDBY option must be specified if another transaction log has to be applied. If neither NORECOVERY, RECOVERY, or STANDBY is specified, RECOVERY is... | null | CC BY-SA 2.5 | null | 2008-08-11T17:03:21.343 | 2008-08-11T17:03:21.343 | null | null | 740 | null |
8,006 | 2 | null | 7,990 | 1 | null | This may not be what you're looking for, but if I needed to do this quick&dirty, I would:
1. Create a separate WPF application (so I could use the built-in document handling)
2. Give the service the ability to interact with the desktop (note that you don't actually have to show anything on the desktop, or be logged i... | null | CC BY-SA 2.5 | null | 2008-08-11T17:46:52.220 | 2008-08-11T17:46:52.220 | null | null | 1,975,282 | null |
7,988 | 2 | null | 7,981 | 0 | null | a. decimal, four significant digits
b. Not sure
c. hex, minimum 4 characters
d. Also hex, minimum 2 characters
e. 1 character
f. String of characters, minimum 4
| null | CC BY-SA 2.5 | null | 2008-08-11T17:33:50.843 | 2008-08-11T17:33:50.843 | null | null | 1,975,282 | null |
7,981 | 1 | 8,035 | null | 4 | 4,340 | I'm working on bringing some old code from 1998 up to the 21st century. One of the first steps in the process is converting the printf statements to [QString](http://qt-project.org/doc/qt-4.8/qstring.html) variables. No matter how many times I look back at printf though, I always end up forgetting one thing or the ot... | Decoding printf statements in C (Printf Primer) | CC BY-SA 3.0 | 0 | 2008-08-11T17:28:56.610 | 2013-02-17T00:13:52.937 | 2013-02-17T00:13:52.937 | 560,441 | 25 | [
"c",
"qt",
"printf",
"qstring"
] |
8,011 | 2 | null | 8,004 | 0 | null | Check out [DeltaCopy](http://www.download.com/DeltaCopy/3000-2242_4-10471616.html). It is a Windows GUI for rsync.
| null | CC BY-SA 3.0 | null | 2008-08-11T17:50:10.403 | 2013-01-28T18:32:18.463 | 2013-01-28T18:32:18.463 | 442,945 | 673 | null |
8,001 | 2 | null | 7,917 | 0 | null | My command does remove all ',' and '"'.
In order to convert the sting "1,000" more strictly, you will need the following command.
```
Perl -lne 's/"(\d+),(\d+)"/$1$2/; print' file.txt > newfile.txt
```
| null | CC BY-SA 3.0 | null | 2008-08-11T17:42:48.377 | 2013-01-09T05:50:55.420 | 2013-01-09T05:50:55.420 | 1,471,203 | 889 | null |
8,021 | 1 | 10,266,397 | null | 101 | 72,291 | I'd like to allow a user to set up an SSH tunnel to a particular machine on a particular port (say, 5000), but I want to restrict this user as much as possible. (Authentication will be with public/private keypair).
I know I need to edit the relevant ~/.ssh/authorized_keys file, but I'm not sure exactly what content to... | Allow user to set up an SSH tunnel, but nothing else | CC BY-SA 2.5 | 0 | 2008-08-11T17:59:01.697 | 2017-03-29T04:21:15.100 | 2011-01-02T22:56:32.917 | 742 | 742 | [
"unix",
"ssh"
] |
8,029 | 2 | null | 6,681 | 3 | null | You don't actually have to use the generated class that the WSDL gives you. If you take a look at the code that it generates, it's just making calls into some .NET framework classes to submit SOAP requests. In the past I have copied that code into a normal .cs file and edited it. Although I haven't tried this specifica... | null | CC BY-SA 2.5 | null | 2008-08-11T18:07:11.820 | 2008-08-11T18:07:11.820 | null | null | 1,039 | null |
8,013 | 2 | null | 7,991 | 5 | null | Here's some code. This assumes you are doing this on a form, or a UserControl.
```
Graphics g = this.CreateGraphics();
SizeF size = g.MeasureString("string to measure");
int nLeft = Convert.ToInt32((this.ClientRectangle.Width / 2) - (size.Width / 2));
int nTop = Convert.ToInt32((this.ClientRectangle.Height / 2) - (si... | null | CC BY-SA 2.5 | null | 2008-08-11T17:50:41.217 | 2008-08-11T17:50:41.217 | null | null | 1,975,282 | null |
8,010 | 2 | null | 7,991 | 3 | null | You can use an instance of the `StringFormat` object passed into the `DrawString` method to center the text.
See [Graphics.DrawString Method](http://msdn.microsoft.com/en-us/library/21kdfbzs.aspx) and [StringFormat Class](http://msdn.microsoft.com/en-us/library/system.drawing.stringformat.aspx).
| null | CC BY-SA 3.0 | null | 2008-08-11T17:49:31.623 | 2015-04-21T13:03:21.647 | 2015-04-21T13:03:21.647 | 3,478,087 | 33 | null |
8,025 | 2 | null | 8,021 | -3 | null | You will generate a key on the users machine via whatever ssh client they are using. pUTTY for example has a utility to do this exact thing. It will generate both a private and public key.
The contents of the public key file generated will be placed in the authorized_keys file.
Next you need to make sure that the s... | null | CC BY-SA 2.5 | null | 2008-08-11T18:04:01.640 | 2008-08-11T18:04:01.640 | null | null | 312 | null |
8,035 | 2 | null | 7,981 | 5 | null | Danny is mostly right.
a. unsigned decimal, minimum 4 characters, space padded
b. floating point, minimum 16 digits before the decimal (0 padded), 1 digit after the decimal
c. hex, minimum 4 characters, 0 padded, letters are printed in upper case
d. same as above, but minimum 2 characters
e. e is assumed to be an int,... | null | CC BY-SA 2.5 | null | 2008-08-11T18:11:45.697 | 2008-08-11T23:56:26.127 | 2017-05-23T12:13:34.533 | -1 | 737 | null |
8,037 | 2 | null | 7,652 | 3 | null | You might want to check out [Subsonic](http://subsonicproject.com/). It is an ORM that uses an ActiveRecord pattern. I'm pretty sure most of its features work with the .NET Framework 2.0.
| null | CC BY-SA 2.5 | null | 2008-08-11T18:12:28.800 | 2008-08-11T18:12:28.800 | null | null | 571 | null |
8,045 | 2 | null | 3,713 | 1 | null | You might want to create a web service for your common methods.
Just add a WebMethodAttribute over the functions you want to call, and that's about it.
Having a web service with all your common stuff also makes the system easier to maintain.
| null | CC BY-SA 2.5 | null | 2008-08-11T18:15:19.793 | 2008-08-11T18:15:19.793 | null | null | 960 | null |
8,034 | 2 | null | 7,954 | 9 | null | GateKiller,
In simple terms (and not a copy-paste out of the SQLBOL) so you can understand the concepts:
RESTORE WITH RECOVERY uses the backup media file (eg. fulldata.bak) to restore the database to back to the time that backup file was created. This is great if you want to go back in time to restore the database t... | null | CC BY-SA 2.5 | null | 2008-08-11T18:10:27.133 | 2018-11-15T12:09:19.173 | 2018-11-15T12:09:19.173 | 100,297 | 993 | null |
8,023 | 2 | null | 8,021 | -1 | null | See [this post on authenticating public keys](http://www.networknewz.com/networknewz-10-20030707AuthenticatingbyPublicKeyOpenSSH.html).
The two main things you need to remember are:
1. Make sure you chmod 700 ~/.ssh
2. Append the public key block to authorized-keys
| null | CC BY-SA 3.0 | null | 2008-08-11T18:01:48.493 | 2013-01-28T18:50:38.317 | 2013-01-28T18:50:38.317 | 442,945 | 245 | null |
8,054 | 2 | null | 8,042 | 0 | null | One problem I can see is that, in a large company, this pattern could allow the code to become difficult (if not impossible) for anyone to understand and use. If multiple developers are constantly adding their own methods to existing classes, separate from those classes (and, God help us all, to BCL classes even), I co... | null | CC BY-SA 2.5 | null | 2008-08-11T18:21:37.283 | 2008-08-11T18:21:37.283 | null | null | 1,975,282 | null |
8,020 | 2 | null | 5,419 | 1 | null | The cause of your problem is the Win console not willing to accept Unicode (as it does this since I guess Win2k by default). It is the default system encoding. Try this code and see what it gives you:
```
import sys
sys.getdefaultencoding()
```
if it says ascii, there's your cause ;-)
You have to create a file called... | null | CC BY-SA 4.0 | null | 2008-08-11T17:58:28.733 | 2020-06-21T17:35:04.277 | 2020-06-21T17:35:04.277 | 9,780,149 | 985 | null |
8,059 | 2 | null | 7,917 | 0 | null | Actually nlucaroni, your case isn't quite right. Your example doesn't include double-quotes, so
```
id,age,name,...
1,23,phil,
```
won't match my regex. It requires the format "XXX,XXX". I can't think of an example of when it will match incorrectly.
All the following example won't include the deliminator in the reg... | null | CC BY-SA 2.5 | null | 2008-08-11T18:24:42.050 | 2008-08-11T18:24:42.050 | null | null | 889 | null |
8,075 | 2 | null | 7,981 | 3 | null | @jj33, you're absolutely right, on both counts.
```
#include <stdio.h>
int main(int argc, char *argv[]) {
char *s = "Hello, World";
char *s2 = "he";
printf("4s: '%4s'\n", s);
printf(".4s: '%.4s'\n", s);
printf("4s2: '%4s'\n", s2);
printf(".4s2: '%.4s'\n", s2);
return 0;
}
$ gcc -o foo f... | null | CC BY-SA 2.5 | null | 2008-08-11T18:38:58.233 | 2008-08-11T18:38:58.233 | null | null | 737 | null |
8,056 | 2 | null | 7,991 | 13 | null | To draw a centered text:
```
TextRenderer.DrawText(g, "my text", Font, Bounds, ForeColor, BackColor,
TextFormatFlags.HorizontalCenter |
TextFormatFlags.VerticalCenter |
TextFormatFlags.GlyphOverhangPadding);
```
Determining optimal font size to fill an area is a bit more difficult. One working soultion I fou... | null | CC BY-SA 2.5 | null | 2008-08-11T18:22:16.223 | 2008-08-11T18:30:09.153 | 2008-08-11T18:30:09.153 | 838 | 838 | null |
8,085 | 2 | null | 7,652 | 1 | null | To echo what Lance said - the SubSonic query language has a fluent interface which isn't as pretty as LINQ, but gives you some of the benefits (compile time checking, intellisense, etc.).
| null | CC BY-SA 2.5 | null | 2008-08-11T18:48:02.643 | 2008-08-11T18:48:02.643 | null | null | 5 | null |
8,051 | 2 | null | 7,981 | 5 | null | @[Jason Day](https://stackoverflow.com/questions/7981/decoding-printf-statements-in-c-printf-primer#8035), I think the 4 in the last %4s is significant if there are fewer than 4 characters. If there are more than 4 you are right, %4s and %s would be the same, but with fewer than 4 chars in g %s would be left justified... | null | CC BY-SA 2.5 | null | 2008-08-11T18:19:57.943 | 2008-08-11T18:19:57.943 | 2017-05-23T12:01:23.407 | -1 | 430 | null |
8,066 | 1 | 8,086 | null | 0 | 812 | Over the past few years I've changed from having a long flowing page of controls that I hid/showed to using a lot of user controls. I've always had a bit of a discussion between co-workers on best practices.
Should you have properties that you populate, or use paramterized sub's to load the information in your contro... | .NET Interfaces | CC BY-SA 3.0 | null | 2008-08-11T18:30:44.893 | 2013-04-04T15:51:01.583 | 2013-04-04T15:51:01.583 | 1,612,146 | 721 | [
".net",
"user-controls",
"interface"
] |
8,078 | 2 | null | 6,578 | 10 | null | If you understand the process of retain/release then there are two golden rules that are "duh" obvious to established Cocoa programmers, but unfortunately are rarely spelled out this clearly for newcomers.
1. If a function which returns an object has alloc, create or copy in its name then the object is yours. You mus... | null | CC BY-SA 3.0 | null | 2008-08-11T18:42:33.793 | 2016-12-19T03:41:31.810 | 2016-12-19T03:41:31.810 | 2,227,834 | 1,043 | null |
8,091 | 2 | null | 8,042 | 6 | null | I think the best thing that extension methods replace are all those utility classes that you find in every project.
At least for now, I feel that any other use of Extension methods would cause confusion in the workplace.
My two bits.
| null | CC BY-SA 2.5 | null | 2008-08-11T18:56:39.117 | 2008-08-11T18:56:39.117 | null | null | 380 | null |
8,086 | 2 | null | 8,066 | 1 | null | I'm not sure if interfaces are going to help you a lot here. My understanding is that you are breaking a page down into set of "composite" user controls that contain other controls, and you want to decide whether to use properties for setting values.
I guess this really depends on how the user controls are designed a... | null | CC BY-SA 2.5 | null | 2008-08-11T18:50:28.770 | 2008-08-11T18:50:28.770 | null | null | 636 | null |
8,092 | 2 | null | 7,642 | 0 | null | I prefer to use the underscore prefix for private fields. I use lowercase first letter for the method parameters. I follow the guideline of having lowercase camelcase parameters for methods, which I regard as more important than the naming of private fields since it is part of the API for the class. . e.g.
```
Publ... | null | CC BY-SA 2.5 | null | 2008-08-11T19:00:39.140 | 2008-08-11T19:00:39.140 | null | null | 571 | null |
8,042 | 1 | 38,494 | null | 25 | 15,736 | The new extensions in .Net 3.5 allow functionality to be split out from interfaces.
For instance in .Net 2.0
```
public interface IHaveChildren {
string ParentType { get; }
int ParentId { get; }
List<IChild> GetChildren()
}
```
Can (in 3.5) become:
```
public interface IHaveChildren {
string Paren... | Extension interface patterns | CC BY-SA 4.0 | 0 | 2008-08-11T18:13:44.197 | 2019-01-20T13:53:40.600 | 2019-01-20T13:53:40.600 | 567,854 | 905 | [
"c#",
".net-3.5",
"extension-methods"
] |
8,090 | 2 | null | 8,004 | 2 | null | For this type of tasks, I use my own [AutoIt](http://www.autoitscript.com/autoit3/) script (freeware, Windows only). The script redirects the standard output into a graphical window, displaying it with the ability to scroll back, etc (very useful in long processes like XCOPYs / PKZIPs to check if any error did happen).... | null | CC BY-SA 2.5 | null | 2008-08-11T18:55:33.753 | 2008-08-11T18:55:33.753 | null | null | 394 | null |
8,112 | 2 | null | 7,990 | 16 | null | Trust me, you will spend more money trying to search/develop a solution for this as compared to buying a third party component. Do not reinvent the wheel and go for the paid solution.
Printing is a complex problem and I would love to see the day when better framework support is added for this.
| null | CC BY-SA 2.5 | null | 2008-08-11T19:20:29.707 | 2008-08-11T19:20:29.707 | null | null | 380 | null |
8,107 | 1 | 8,115 | null | 10 | 3,103 | When I have two mysql servers that have different jobs (holding different databases) but want to be able to use one of them to slip in when the other one fails, what would you suggest how I keep the data on both of them equal "close to realtime"?
Obviously it's not possible to make a full database dump every x minute... | MySQL replication for fallback scenario | CC BY-SA 2.5 | 0 | 2008-08-11T19:12:33.920 | 2017-07-04T10:20:35.383 | null | null | 999 | [
"mysql",
"replication",
"fallback",
"binary-log"
] |
8,097 | 2 | null | 7,991 | 23 | null | Through a combination of the suggestions I got, I came up with this:
```
private void DrawLetter()
{
Graphics g = this.CreateGraphics();
float width = ((float)this.ClientRectangle.Width);
float height = ((float)this.ClientRectangle.Width);
float emSize = height;
Font font... | null | CC BY-SA 2.5 | null | 2008-08-11T19:03:59.803 | 2008-08-11T19:03:59.803 | null | null | 194 | null |
8,110 | 2 | null | 1,276 | 26 | null | > I would focus first on your indexes, than have a server admin look at your OS, and if all that doesn't help it might be time for a master/slave configuration.
That's true. Another thing that usually works is to just reduce the quantity of data that's repeatedly worked with. If you have "old data" and "new data" and ... | null | CC BY-SA 3.0 | null | 2008-08-11T19:19:05.547 | 2017-02-15T14:34:05.053 | 2017-02-15T14:34:05.053 | 999 | 999 | null |
8,094 | 2 | null | 7,990 | 10 | null | Printing from a Windows service is really painful. It seems to work... sometimes... but finally it craches or throws an exception from time to time, without any clear reason. It's really hopeless. Officially, it's even [not supported](http://msdn.microsoft.com/en-us/library/system.drawing.printing(VS.80).aspx), without... | null | CC BY-SA 2.5 | null | 2008-08-11T19:01:49.170 | 2009-10-30T06:16:59.843 | 2009-10-30T06:16:59.843 | 563 | 563 | null |
8,115 | 2 | null | 8,107 | 2 | null | Binary log is definitely the way to go. However, you should be aware that with you can't just flip back and forth between servers like that.
One server will be the and the other will be the slave. You write/read to the master, but can only read from the slave server. If you ever write to the slave, they'll be out of... | null | CC BY-SA 3.0 | null | 2008-08-11T19:22:13.060 | 2017-07-04T10:20:06.327 | 2017-07-04T10:20:06.327 | 5,423,108 | 79 | null |
8,096 | 2 | null | 3,713 | 62 | null | The `__doPostBack()` method works well.
Another solution (very hackish) is to simply add an invisible ASP button in your markup and click it with a JavaScript method.
```
<div style="display: none;">
<asp:Button runat="server" ... OnClick="ButtonClickHandlerMethod" />
</div>
```
From your JavaScript, retrieve th... | null | CC BY-SA 3.0 | null | 2008-08-11T19:03:48.667 | 2016-12-09T17:27:44.763 | 2016-12-09T17:27:44.763 | 63,550 | 810 | null |
8,128 | 1 | 8,130 | null | 49 | 106,626 | How do I calculate the CRC32 (Cyclic Redundancy Checksum) of a string in .NET?
| How do I calculate CRC32 of a string | CC BY-SA 2.5 | 0 | 2008-08-11T19:41:20.320 | 2022-06-30T13:30:52.493 | null | null | 17 | [
".net",
"crc32"
] |
8,127 | 1 | 8,189 | null | 8 | 6,063 | I'm currently in the process of setting up a continuous integration environment at work. We are using VisualSVN Server and CrusieControl.NET. Occasionally a build will fail and a symptom is that there are conflicts in the CruiseControl.NET working copy. I believe this is due to the way I've setup the Visual Studio solu... | Pre-build task - deleting the working copy in CruiseControl.NET | CC BY-SA 2.5 | 0 | 2008-08-11T19:36:47.630 | 2008-10-23T20:39:03.373 | 2008-08-23T21:28:21.763 | 2,134 | 982 | [
"visual-studio",
"continuous-integration",
"cruisecontrol.net",
"visualsvn-server"
] |
8,113 | 2 | null | 7,917 | 2 | null | Here is a good case for regular expressions. You can run a find and replace on the data either before you import (easier) or later on if the SQL import accepted those characters (not nearly as easy). But in either case, you have any number of methods to do a find and replace, be it editors, scripting languages, GUI p... | null | CC BY-SA 2.5 | null | 2008-08-11T19:21:10.113 | 2008-08-11T19:21:10.113 | null | null | 792 | null |
8,132 | 2 | null | 3,881 | 6 | null | The accepted practice if to use the to declare a parameter to be invalid and give as much detail as possible... So to say that a parameters was found to be null while exception non-null, you would do something like this:
```
if( variable == null )
throw new IllegalArgumentException("The object 'variable' cannot b... | null | CC BY-SA 2.5 | null | 2008-08-11T19:43:49.210 | 2008-08-11T19:43:49.210 | null | null | 244 | null |
8,140 | 1 | 8,157 | null | 16 | 3,184 | Is there a general procedure for programming extensibility capability into your code?
I am wondering what the general procedure is for adding extension-type capability to a system you are writing so that functionality can be extended through some kind of plugin API rather than having to modify the core code of a syste... | Suggestions for Adding Plugin Capability? | CC BY-SA 2.5 | 0 | 2008-08-11T19:48:52.053 | 2009-05-05T23:42:47.553 | 2009-05-05T23:42:47.553 | 277 | 277 | [
"plugins",
"extensibility"
] |
8,135 | 2 | null | 7,917 | 0 | null | The solution to the changed question is basically the same.
You will have to run select query with the regex where clause.
Somthing like
```
Select *
FROM SOMETABLE
WHERE SOMEFIELD REGEXP '"(\d+),(\d+)"'
```
Foreach of these rows, you want to do the following regex substitution s/"(\d+),(\d+)"/$1$2/ and then u... | null | CC BY-SA 2.5 | null | 2008-08-11T19:45:44.667 | 2008-08-11T19:45:44.667 | null | null | 889 | null |
8,142 | 1 | 8,152 | null | 5 | 1,642 | I just read up on a performance of LINQ, and there is a HUGE amount to be gained by using Compiled LINQ.
Now, why won't I always use compiled LINQ?
| When should I use Compiled LINQ vs Normal LINQ | CC BY-SA 2.5 | 0 | 2008-08-11T19:50:31.393 | 2016-04-02T14:01:03.470 | 2009-08-18T12:53:12.893 | 1,204 | 380 | [
".net",
"linq-to-sql"
] |
8,145 | 1 | 8,161 | null | 7 | 11,174 | How can I find the high water mark (the historical maximum number of concurrent users) in an .
| How do I find the high water mark (for sessions) on Oracle 9i | CC BY-SA 3.0 | null | 2008-08-11T19:53:16.443 | 2018-06-06T07:53:55.537 | 2018-06-06T07:53:55.537 | 1,864,029 | 685 | [
"sql",
"oracle",
"session",
"oracle9i"
] |
8,141 | 2 | null | 7,864 | 1 | null | I love the way SubSonic does the one column only thing.
Either
```
DataBaseTable.GetList(DataBaseTable.Columns.ColumnYouWant)
```
, or:
```
Query q = DataBaseTable.CreateQuery()
.WHERE(DataBaseTable.Columns.ColumnToFilterOn,value);
q.SelectList = DataBaseTable.Columns.ColumnYouWant;
q.Load();
```
... | null | CC BY-SA 2.5 | null | 2008-08-11T19:50:26.293 | 2008-08-11T19:50:26.293 | null | null | 960 | null |
8,130 | 2 | null | 8,128 | 43 | null | This guy seems to have your answer.
> [https://damieng.com/blog/2006/08/08/calculating_crc32_in_c_and_net](https://damieng.com/blog/2006/08/08/calculating_crc32_in_c_and_net)
And in case the blog ever goes away or breaks the url, here's the github link:
> [https://github.com/damieng/DamienGKit/blob/master/CSharp/Dam... | null | CC BY-SA 4.0 | null | 2008-08-11T19:43:31.003 | 2018-07-06T17:42:02.980 | 2018-07-06T17:42:02.980 | 5,720 | 76 | null |
8,152 | 2 | null | 8,142 | 4 | null | Short answer: when it's only going to happen once in a long time.
[Long Answer](http://blogs.msdn.com/ricom/archive/2008/01/14/performance-quiz-13-linq-to-sql-compiled-query-cost-solution.aspx).
| null | CC BY-SA 2.5 | null | 2008-08-11T19:57:30.990 | 2008-08-11T19:57:30.990 | null | null | 429 | null |
8,159 | 2 | null | 2,308 | 0 | null | in our continuous integration setup we use `SVNRevisionLabeller` and pass the variables from this to MSBuild to use when creating the compiled website dll. It's then available to .NET using `GetCurrentAssembly()` in the final build.
| null | CC BY-SA 4.0 | null | 2008-08-11T20:02:09.530 | 2019-06-05T05:55:39.207 | 2019-06-05T05:55:39.207 | 10,221,765 | 982 | null |
8,155 | 2 | null | 8,140 | 1 | null |
1. Find out what minimum requrements you want to put on a plugin writer. Then make one or more Interfaces that the writer must implement for your code to know when and where to execute the code.
2. Make an API the writer can use to access some of the functionality in your code.
You could also make a base class the ... | null | CC BY-SA 2.5 | null | 2008-08-11T19:59:34.730 | 2008-08-11T19:59:34.730 | null | null | 960 | null |
8,160 | 2 | null | 3,881 | 169 | null | The standard is to throw the `NullPointerException`. The generally infallible "Effective Java" discusses this briefly in Item 42 (first edition), Item 60 (second edition), or Item 72 (third edition) "Favor the use of standard exceptions":
> "Arguably, all erroneous method
invocations boil down to an illegal
argume... | null | CC BY-SA 4.0 | null | 2008-08-11T20:05:18.527 | 2018-10-09T09:48:06.483 | 2018-10-09T09:48:06.483 | null | 1,035 | null |
8,157 | 2 | null | 8,140 | 3 | null | This is generally something that you'll have to expose yourself, so yes, it will be dependent on the language your system is written in (though often it's possible to write wrappers for other languages as well).
If, for example, you had a program written in C, for Windows, plugins would be written for your program as ... | null | CC BY-SA 2.5 | null | 2008-08-11T20:00:09.627 | 2008-08-11T20:08:36.943 | 2008-08-11T20:08:36.943 | 872 | 872 | null |
8,161 | 2 | null | 8,145 | 5 | null | This should do the trick:
```
SELECT sessions_highwater FROM v$license;
```
| null | CC BY-SA 2.5 | null | 2008-08-11T20:05:44.377 | 2008-08-11T20:05:44.377 | null | null | 1,030 | null |
8,164 | 2 | null | 8,140 | 4 | null | I've used event-based APIs for plugins in the past. You can insert hooks for plugins by dispatching events and providing access to the application state.
For example, if you were writing a blogging application, you might want to raise an event just before a new post is saved to the database, and provide the post HTML ... | null | CC BY-SA 2.5 | null | 2008-08-11T20:06:53.857 | 2008-08-11T20:06:53.857 | null | null | 521 | null |
8,165 | 2 | null | 5,966 | 0 | null | I don't get this part here:
> This worked okay, but there was no easy way of checking if x[3][24] was supposed to exist or not (so I couldn't raise the season_not_found exception)
There is a way to do it - called :
```
>>>x={}
>>>x[1]={}
>>>x[1][2]={}
>>>x
{1: {2: {}}}
>>> 2 in x[1]
True
>>> 3 in x[1]
False
```
wh... | null | CC BY-SA 2.5 | null | 2008-08-11T20:07:59.520 | 2008-08-11T20:07:59.520 | null | null | 985 | null |
8,154 | 1 | 46,442 | null | 16 | 3,726 | I'm using Pylons (a python framework) to serve a simple web application, but it seems to die from time to time, with this in the error log: `(2006, 'MySQL server has gone away')`
I did a bit of checking, and saw that this was because the connections to MySQL were not being renewed. This shouldn't be a problem though, ... | Pylons error - 'MySQL server has gone away' | CC BY-SA 4.0 | 0 | 2008-08-11T19:59:32.670 | 2019-04-15T13:10:37.253 | 2019-04-15T13:10:37.253 | 10,221,765 | 736 | [
"python",
"mysql",
"pylons"
] |
8,171 | 2 | null | 8,147 | 0 | null | Apparently this is a bug. Because they are adding it to potential rendering values, they just forgot to include it. I would recommend creating a bug on codeplex, and download the source and modify it for your needs.
| null | CC BY-SA 2.5 | null | 2008-08-11T20:12:48.963 | 2008-08-11T20:12:48.963 | null | null | 17 | null |
8,163 | 2 | null | 7,269 | 0 | null |
I thought about that solution. However, from experiments I found two problems with that approach:
1. Shared thread (server connections, etc) are problematic. This can be solved though by paying special attention to these thread (they're all under my control and are pretty much isolated from the legacy code).
2. The... | null | CC BY-SA 2.5 | null | 2008-08-11T20:06:28.070 | 2008-08-11T20:06:28.070 | null | null | 931 | null |
8,147 | 1 | 8,289 | null | 6 | 3,272 | Using [preview 4](http://www.codeplex.com/aspnet) of [ASP.NET MVC](http://asp.net/mvc)
Code like:
```
<%= Html.CheckBox( "myCheckBox", "Click Here", "True", false ) %>
```
only outputs:
```
<input type="checkbox" value="True" name="myCheckBox" />
```
There is a `name` there for the form post back but no `id` ... | How do you get a custom id to render using HtmlHelper in MVC | CC BY-SA 2.5 | null | 2008-08-11T19:54:20.687 | 2019-04-01T20:07:54.723 | 2019-04-01T20:07:54.723 | 100,297 | 193 | [
"asp.net-mvc",
"html-helper"
] |
8,174 | 2 | null | 8,127 | 0 | null | It is very common and generally a good practice for any build process to do a 'clean' before doing any significant build. This prevents any 'artifacts' from previous builds to taint the output.
A clean is essentially what you are doing by deleting the working copy.
| null | CC BY-SA 2.5 | null | 2008-08-11T20:16:01.967 | 2008-08-11T20:16:01.967 | null | null | 12,081 | null |
8,169 | 2 | null | 8,145 | 1 | null | ```
select max_utilization from v$resource_limit where resource_name = 'sessions';
```
A good overview of Oracle system views can be found [here](http://www.adp-gmbh.ch/ora/misc/dynamic_performance_views.html).
| null | CC BY-SA 2.5 | null | 2008-08-11T20:09:12.903 | 2008-08-26T15:42:57.963 | 2008-08-26T15:42:57.963 | 672 | 672 | null |
8,173 | 2 | null | 8,140 | 2 | null | I'm tempted to point you to the Design Patterns book for this generic question :p
Seriously, I think the answer is no. You can't write extensible code by default, it will be both hard to write/extend and awfully inefficient (Mozilla started with the idea of being very extensible, used XPCOM everywhere, and now they re... | null | CC BY-SA 2.5 | null | 2008-08-11T20:15:06.570 | 2008-08-11T20:15:06.570 | null | null | 1,026 | null |
8,166 | 1 | 8,184 | null | 21 | 16,910 | I'm setting up replication for a server which runs a bunch of databases (one per client) and plan on adding more all the time, on my.cnf, Instead of having:
```
binlog-do-db = databasename 1
binlog-do-db = databasename 2
binlog-do-db = databasename 3
...
binlog-do-db = databasename n
```
can I rather just have
... | MySQL replication: if I don't specify any databases, will log_bin log EVERYTHING? | CC BY-SA 4.0 | 0 | 2008-08-11T20:08:03.310 | 2019-06-26T15:40:42.540 | 2019-06-26T15:40:42.540 | 1,783,163 | 547 | [
"mysql",
"replication"
] |
8,195 | 2 | null | 7,990 | 0 | null | I think we are going to go the third party route. I like the XSL -> HTML -> PDF -> Printer flow... Winnovative's [HTML to PDF](http://www.winnovative-software.com/) looks good for the first part, but I'm running into a block finding a good PDF printing solution... any suggestions? Ideally the license would be on a de... | null | CC BY-SA 2.5 | null | 2008-08-11T20:38:25.293 | 2008-08-11T21:09:00.707 | 2008-08-11T21:09:00.707 | 96 | 96 | null |
8,183 | 2 | null | 8,127 | 0 | null | @Brad Barker
Clean means to just wipe out build products.
Deleting the working copy deletes everything else too (source and project files etc).
In general it's nice if you're build machine can operate without doing a full delete, as this replicates what a normal developer does. Any conflicts it finds during update ... | null | CC BY-SA 2.5 | null | 2008-08-11T20:21:52.953 | 2008-08-12T08:47:12.653 | 2008-08-12T08:47:12.653 | 755 | 755 | null |
8,189 | 2 | null | 8,127 | 10 | null | Doing a full delete before or after your build is good practice. This means that there is no chance of your build environment picking up an out of date file. Your building exactly against what is in the repository.
Deleting the working copy is possible as I have done it with Nant.
In Nant I would have a clean scrip... | null | CC BY-SA 2.5 | null | 2008-08-11T20:27:11.603 | 2008-08-11T20:42:24.893 | 2008-08-11T20:42:24.893 | 922 | 922 | null |
8,196 | 2 | null | 8,140 | 1 | null | If you are using a compiled language such as C or C++, it may be a good idea to look at plugin support via scripting languages. Both Python and Lua are excellent languages that are used to script a large number of applications (Civ4 and blender use Python, Supreme Commander uses Lua, etc).
If you are using C++, che... | null | CC BY-SA 2.5 | null | 2008-08-11T20:40:44.413 | 2008-08-11T20:40:44.413 | null | null | 121 | null |
8,184 | 2 | null | 8,166 | 12 | null | That looks correct: [http://dev.mysql.com/doc/refman/5.0/en/binary-log.html#option_mysqld_binlog-ignore-db](http://dev.mysql.com/doc/refman/5.0/en/binary-log.html#option_mysqld_binlog-ignore-db).
According to that reference:
> There are some --binlog-ignore-db
rules. Does the default database match
any of the --b... | null | CC BY-SA 2.5 | null | 2008-08-11T20:22:24.730 | 2008-08-11T20:22:24.730 | null | null | 72 | null |
8,204 | 2 | null | 2,308 | 0 | null | In my rails app I have a secret action which literally does this:
```
render :text => `svn info #{RAILS_ROOT}`
```
This is the equivalent of `Process.Start( "svn info..." )` if you're only familiar with `.NET`)
If I'm wondering if the guy who manages the servers has updated the site recently, I can hit this URL, an... | null | CC BY-SA 4.0 | null | 2008-08-11T20:50:19.340 | 2019-06-05T05:54:59.523 | 2019-06-05T05:54:59.523 | 10,221,765 | 234 | null |
8,216 | 2 | null | 8,213 | 8 | null | Well, if it's a CSV, and it this is a one time process, open up the file in Excel, and then write formulas to populate your data in any way you desire, and then write a simple Concat formula to construct your SQL, and then copy that formula for every row. You will get a large number of SQL statements which you can exec... | null | CC BY-SA 2.5 | null | 2008-08-11T21:02:14.620 | 2008-08-11T21:02:14.620 | null | null | 380 | null |
8,220 | 2 | null | 8,213 | 128 | null | It's a bit crude - but for one off jobs, I sometimes use Excel.
If you import the CSV file into Excel, you can create a formula which creates an INSERT statement by using string concatenation in the formula. So - if your CSV file has 3 columns that appear in columns A, B, and C in Excel, you could write a formula like... | null | CC BY-SA 4.0 | null | 2008-08-11T21:07:51.287 | 2019-04-20T17:20:44.280 | 2019-04-20T17:20:44.280 | 10,607,772 | 475 | null |
8,223 | 1 | 8,232 | null | 11 | 4,107 | Is it necessary or advantageous to write custom connection pooling code when developing applications in .NET with an SQL Server database? I know that ADO.NET gives you the option to enable/disable connection pooling -- does that mean that it's built into the framework and I don't need to worry about it? Why do people... | Connection Pooling in .NET/SQL Server? | CC BY-SA 2.5 | 0 | 2008-08-11T21:10:32.903 | 2009-08-01T04:52:12.200 | 2009-08-01T04:52:12.200 | 76,337 | 72 | [
"c#",
".net",
"sql-server",
"connection-pooling"
] |
8,214 | 1 | 31,514 | null | 8 | 2,732 | How are you instrumenting your UI's? In the past I've read that people have instrumented their user interfaces, but what I haven't found is examples or tips on to instrument a UI.
By instrumenting, I mean collecting data regarding usage and performance of the system. A MSDN article on Instrumentation is [http://msdn.... | Instrumenting a UI | CC BY-SA 3.0 | 0 | 2008-08-11T21:00:40.520 | 2017-03-10T21:37:11.747 | 2017-03-10T20:38:35.810 | 504,398 | 708 | [
"wpf",
"user-interface",
"instrumentation"
] |
8,219 | 1 | 8,226 | null | 10 | 830 | At my work we are running a group of tests that consist of about 3,000 separate test cases. Previously we were running this entire test suite on one machine, which took about 24-72 hours to complete the entire test run. We now have created our own system for grouping and distributing the tests among about three separat... | Test Distribution | CC BY-SA 3.0 | 0 | 2008-08-11T21:07:44.687 | 2013-11-26T03:58:10.860 | 2013-07-04T12:08:44.800 | 1,584,286 | 782 | [
"java",
"testing",
"enterprise"
] |
8,213 | 1 | 8,220 | null | 62 | 113,501 | I need to import a csv file into and I've spent a couple of hours trying out some tools and none fit my needs.
The main problem is that all the tools I've been trying like [EMS Data Import](http://www.sqlmanager.net/products/ibfb/dataimport) and [Firebird Data Wizard](http://www.sqlmaestro.com/products/firebird/dataw... | Generate insert SQL statements from a CSV file | CC BY-SA 4.0 | 0 | 2008-08-11T20:59:11.973 | 2022-12-27T19:19:53.310 | 2019-04-20T17:57:00.033 | 472,495 | 727 | [
"sql",
"csv",
"insert",
"firebird"
] |
8,226 | 2 | null | 8,219 | 3 | null | I've seen some people having a play with [distributed JUnit](http://216.93.179.140:8080/wiki/display/GG15UG/Distributed+JUnit+Overview). I can't particularly vouch for how effective it is, but the other teams I've seen seemed to think it was straight forward enough. Hope that helps.
| null | CC BY-SA 2.5 | null | 2008-08-11T21:13:06.813 | 2008-08-11T21:13:06.813 | null | null | 1,035 | null |
8,229 | 2 | null | 8,223 | 2 | null | My understanding is that the connection pooling is automatically handled for you when using the SqlConnection object. This is purposefully designed to work with MSSQL and will ensure connections are pooled efficiently. You just need to be sure you close them when you are finished with them (and ensure they are disposed... | null | CC BY-SA 2.5 | null | 2008-08-11T21:14:11.477 | 2008-08-11T21:14:11.477 | null | null | 832 | null |
8,231 | 2 | null | 8,223 | -2 | null | Well, it is going to go away as the answer to all these questions will be LINQ. Incidentally, we have never needed custom connection pooling for any of our applications, so I am not sure what all the noise is about.
| null | CC BY-SA 2.5 | null | 2008-08-11T21:14:23.287 | 2008-08-11T21:14:23.287 | null | null | 380 | null |
8,193 | 2 | null | 7,917 | 17 | null | My guess here is that because the data was able to import that the field is actually a varchar or some character field, because importing to a numeric field might have failed. Here was a test case I ran purely a MySQL, SQL solution.
1. The table is just a single column (alpha) that is a varchar. mysql> desc t;
+--... | null | CC BY-SA 2.5 | null | 2008-08-11T20:35:49.773 | 2008-08-11T21:15:40.240 | 2017-05-23T11:54:08.707 | -1 | 792 | null |