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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,508 | 1 | 1,525 | null | 18 | 718 | My office has a central Source Safe 2005 install that we use for source control. I can't change what the office uses on the server.
I develop on a laptop and would like to have a different local source control repository that can sync with the central server (when available) regardless of the what that central provid... | Different Distributed Version Control Systems working together | CC BY-SA 2.5 | null | 2008-08-04T19:04:47.347 | 2021-10-25T11:45:51.297 | 2008-08-17T02:05:29.187 | 55 | 149 | [
"version-control",
"dvcs"
] |
1,515 | 2 | null | 1,508 | 2 | null | You should be able to check out the current version of the code and then create a git repository around it. Updating that and committing it to your local git repository should be painless. As should cloning it.
The only catch is that you need to have them both ignore each other (I've done something similar with SVN) b... | null | CC BY-SA 2.5 | null | 2008-08-04T19:10:29.660 | 2008-08-04T19:10:29.660 | null | null | 2,089,740 | null |
1,496 | 1 | 1,517 | null | 35 | 9,746 | For those of us that like to use the graphical version of Vim or Emacs, instead of the console version, which version do you recommend?
For Vim, there's [Mac OS X Vim](http://sourceforge.net/projects/macosxvim/), [MacVim](http://code.google.com/p/macvim/), [Vim-Cocoa](http://code.google.com/p/vim-cocoa/).
For Emacs, ... | What are the preferred versions of Vim and Emacs on Mac OS X? | CC BY-SA 4.0 | 0 | 2008-08-04T18:51:38.543 | 2021-10-25T11:47:42.603 | 2019-07-24T14:44:27.110 | 10,106,580 | 136 | [
"macos",
"vim",
"emacs",
"editor"
] |
1,524 | 2 | null | 761 | 1 | null | A short form is convenient and helps avoid spelling mistakes. Localize as applicable, but be sure to display the expected format (do not leave the user blind). Provide a date-picker control as an aide to filling in the field.
As an extra, on-the-fly parsing and display of the date in long form might help too.
| null | CC BY-SA 2.5 | null | 2008-08-04T19:13:17.940 | 2008-08-04T19:13:17.940 | null | null | 304 | null |
1,525 | 2 | null | 1,508 | 2 | null | Well... KernelTrap has [something on this](http://kerneltrap.org/mailarchive/git/2008/5/27/1952124). Looks like you can use [vss2svn](http://www.pumacode.org/projects/vss2svn/wiki/RunningTheMigration) to pipe the Source Safe repo into a Subversion repository, then use the very nice git-svn to pull into a local git rep... | null | CC BY-SA 2.5 | null | 2008-08-04T19:13:23.197 | 2008-08-04T19:13:23.197 | null | null | 59 | null |
1,462 | 2 | null | 898 | 48 | null | It has been a while, so this is not comprehensive.
Unicode is great, but you can't get away with ignoring other character sets. The default character set on Windows XP (English) is Cp1252. On the web, you don't know what a browser will send you (though hopefully your container will handle most of this). And don't be... | null | CC BY-SA 3.0 | null | 2008-08-04T17:58:02.130 | 2013-02-06T10:34:58.290 | 2013-02-06T10:34:58.290 | 938,024 | 304 | null |
1,514 | 2 | null | 1,503 | 10 | null | From some of the initial research it doesn't appear to be a super simple solution.
It appears that doing this involves having Visual Studio 2008 actually installed on the continuous integration server, which could be a deal breaker.
Then configure the MSTest.exe to run in the tasks list, but first you'll have to mak... | null | CC BY-SA 3.0 | null | 2008-08-04T19:09:44.717 | 2013-01-27T12:14:44.200 | 2013-01-27T12:14:44.200 | null | 27 | null |
1,527 | 2 | null | 1,401 | 0 | null | While I would still like an answer to why my javascript wasn't being recognized, the solution I found in the meantime (and should have done in the first place) is to use an `Asp:CompareValidator` instead of an `Asp:CustomValidator`.
| null | CC BY-SA 3.0 | null | 2008-08-04T19:13:46.177 | 2016-09-27T07:54:22.837 | 2016-09-27T07:54:22.837 | 4,147,978 | 149 | null |
1,517 | 2 | null | 1,496 | 21 | null | works well and certainly looks more mature than Vim-Cocoa, moreover there is a Cocoa plugin architecture in the pipeline for MacVim (and someone is already working on a TextMate style file browser tray plugin which is a huge ++ IMHO).
There was also a Carbon version of Vim, but this didn't offer a great deal over the... | null | CC BY-SA 3.0 | null | 2008-08-04T19:11:02.140 | 2015-06-28T16:50:45.197 | 2015-06-28T16:50:45.197 | 2,630,337 | 199 | null |
1,534 | 2 | null | 1,528 | 8 | null | I think you're best least hackish way is to consider composition as opposed to inheritance.
Or, you could create an interface that has the members you want, have your derived class implement that interface, and program against the interface.
| null | CC BY-SA 2.5 | null | 2008-08-04T19:19:34.977 | 2008-08-04T19:19:34.977 | null | null | 34 | null |
1,533 | 2 | null | 1,528 | 20 | null | While you cannot prevent usage of those inherited members to my knowledge, you should be able to hide them from IntelliSense using the [EditorBrowsableAttribute](http://msdn.microsoft.com/en-us/library/system.componentmodel.editorbrowsableattribute.aspx):
```
Using System.ComponentModel;
[EditorBrowsable(EditorBrowsa... | null | CC BY-SA 2.5 | null | 2008-08-04T19:19:33.013 | 2009-11-19T17:51:07.720 | 2009-11-19T17:51:07.720 | 91 | 91 | null |
1,528 | 1 | 1,556 | null | 48 | 31,303 | I'm looking for some way to effectively hide inherited members. I have a library of classes which inherit from common base classes. Some of the more recent descendant classes inherit dependency properties which have become vestigial and can be a little confusing when using or using the classes in a visual designer.
... | Hiding inherited members | CC BY-SA 3.0 | 0 | 2008-08-04T19:13:54.693 | 2021-10-25T11:44:49.130 | 2015-04-30T10:33:31.247 | 1,468,295 | 93 | [
"c#",
"wpf",
"silverlight",
"polymorphism",
"dependency-properties"
] |
1,546 | 2 | null | 1,041 | 10 | null | If you use Visual Studio you can use Visual C++ 2008 Feature Pack Release, this implements some of TR1, and includes regular expression parsing. [Get it](http://www.microsoft.com/downloads/details.aspx?FamilyId=D466226B-8DAB-445F-A7B4-448B326C48E7&displaylang=en)
| null | CC BY-SA 2.5 | null | 2008-08-04T19:44:24.397 | 2008-09-20T07:27:23.973 | null | null | 224 | null |
1,536 | 2 | null | 1,528 | 14 | null | One potential thing you can do is contain the object rather than extend from the other class. This will give you the most flexibility in terms of exposing what you want to expose, but if you absolutely need the object to be of that type it is not the ideal solution (however you could expose the object from a getter).
... | null | CC BY-SA 2.5 | null | 2008-08-04T19:22:48.903 | 2008-08-04T19:22:48.903 | null | null | 122 | null |
1,550 | 2 | null | 650 | 1 | null | Some time ago I wrote a quick and dirty exe that would update the version #'s in an assemblyinfo.{cs/vb} - I also have used rxfind.exe (a simple and powerful regex-based search replace tool) to do the update from a command line as part of the build process. A couple of other helpfule hints:
1. separate the assemblyi... | null | CC BY-SA 2.5 | null | 2008-08-04T19:51:49.610 | 2008-08-04T19:51:49.610 | null | null | 313 | null |
1,556 | 2 | null | 1,528 | 38 | null | Override them like Michael Suggests [above](https://stackoverflow.com/questions/1528/#1533) and to prevent folks from using the overridden (sp?) methods, mark them as obsolete:
```
[Obsolete("These are not supported in this class.", true)]
public override void dontcallmeanymore()
{
}
```
If the second parm is set t... | null | CC BY-SA 2.5 | null | 2008-08-04T20:14:30.547 | 2008-08-04T20:14:30.547 | 2017-05-23T12:24:42.180 | -1 | 313 | null |
1,561 | 2 | null | 1,496 | 5 | null | I've tried Aquamacs and it's very usable and looks pretty good. Supports both traditional Mac OS style keyboard shortcuts (command-O, command-S) and the Control/Meta shortcuts for those raised on traditional Emacs. It is definitely more Mac-like than Carbon Emacs. It seems stable and fast, but I am not an Emacs guru... | null | CC BY-SA 4.0 | null | 2008-08-04T20:22:32.463 | 2021-10-25T11:46:43.763 | 2021-10-25T11:46:43.763 | 17,169,050 | 153 | null |
1,584 | 1 | 44,389 | null | 21 | 3,305 | As a LAMP developer considering moving to a .Net IIS platform, one of my concerns is the loss of productivity due to lack of shell... Has anyone else had this experience? Is there possibly a Linux shell equivalent for Windows?
| Linux shell equivalent on IIS | CC BY-SA 2.5 | null | 2008-08-04T21:04:06.407 | 2021-10-25T11:42:43.563 | 2008-10-24T01:21:51.557 | 2,574 | 40 | [
"windows",
"iis",
"shell",
"command-line",
"terminal"
] |
1,554 | 2 | null | 1,535 | 4 | null | Just wondering, what do you feel your method leaves to be desired? You could replace the anonymous delegate with a.. named? delegate, something like
```
public delegate void IoOperation(params string[] parameters);
public void FileDeleteOperation(params string[] fileName)
{
File.Delete(fileName[0]);
... | null | CC BY-SA 2.5 | null | 2008-08-04T20:07:41.840 | 2008-08-04T20:07:41.840 | null | null | 96 | null |
1,535 | 1 | 2,047 | null | 40 | 2,543 | I've never been completely happy with the way exception handling works, there's a lot exceptions and try/catch brings to the table (stack unwinding, etc.), but it seems to break a lot of the OO model in the process.
Anyway, here's the problem:
Let's say you have some class which wraps or includes networked file IO op... | Reducing duplicate error handling code in C#? | CC BY-SA 2.5 | 0 | 2008-08-04T19:21:48.530 | 2020-12-16T01:54:30.937 | null | null | 332 | [
"c#",
"exception",
"error-handling"
] |
1,587 | 2 | null | 888 | 14 | null | [Xdebug](http://xdebug.org/), by Derick Rethans, is very good. I used it some time ago and found it was not so easy to install. Once you're done, you won't understand how you managed without it :-)
There is a good article on [Zend Developer Zone](http://devzone.zend.com/article/2803-introducing-xdebug) (installing on ... | null | CC BY-SA 2.5 | null | 2008-08-04T21:07:09.130 | 2008-08-04T21:07:09.130 | null | null | 341 | null |
1,582 | 2 | null | 564 | 8 | null | This has already been answered for Java, here's the C# answer:
"Integer" is not a valid type name in C# and "int" is just an alias for System.Int32. Also, unlike in Java (or C++) there aren't any special primitive types in C#, every instance of a type in C# (including int) is an object. Here's some demonstrative code:... | null | CC BY-SA 2.5 | null | 2008-08-04T21:02:54.910 | 2008-08-04T21:02:54.910 | null | null | 332 | null |
1,594 | 2 | null | 1,584 | 1 | null | If you're referring to simply accessing your IIS server from a remote location, remote desktop generally solves that problem. Assuming your server has a static IP address or a host name you can access from the internet, remote desktop is a simple and relatively secure solution.
Is there a problem with this answer? N... | null | CC BY-SA 2.5 | null | 2008-08-04T21:14:10.333 | 2008-11-03T18:15:19.357 | 2008-08-05T02:55:35.043 | 271 | 271 | null |
1,588 | 2 | null | 1,584 | 3 | null | Are you asking about Linux shell as in an environment to work in? For that CygWin I think has been around the longest and is pretty robust: [http://www.cygwin.com/](http://www.cygwin.com/)
A while ago I found a windows port of all the popular linux commands I use (ls, grep, diff) and I simply unzip those to a file, add... | null | CC BY-SA 4.0 | null | 2008-08-04T21:08:24.010 | 2021-10-25T11:42:43.563 | 2021-10-25T11:42:43.563 | 17,169,050 | 71 | null |
1,585 | 2 | null | 1,584 | 2 | null | I assume you don't mean [cygwin](http://www.cygwin.com/), right?
How about [powershell](http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx), then?
| null | CC BY-SA 2.5 | null | 2008-08-04T21:06:14.717 | 2008-11-03T18:15:19.357 | 2008-10-21T14:42:27.387 | 6,899 | 2,089,740 | null |
1,602 | 2 | null | 888 | 16 | null | In all honesty, a combination of print and print_r() to print out the variables. I know that many prefer to use other more advanced methods but I find this the easiest to use.
I will say that I didn't fully appreciate this until I did some Microprocessor programming at Uni and was not able to use even this.
| null | CC BY-SA 2.5 | null | 2008-08-04T21:28:44.810 | 2008-08-04T21:28:44.810 | null | null | 1,384,652 | null |
1,599 | 2 | null | 1,598 | 0 | null | I don't think there is a "correct size". Since the iPhone really is running OSX, the icon rendering system is pretty robust. As long as you give it a high-quality image with the right aspect ratio and a resolution at least as high as the actual output will be, the OS will downscale very cleanly. My site uses a 158x158 ... | null | CC BY-SA 2.5 | null | 2008-08-04T21:22:50.220 | 2008-08-04T21:22:50.220 | null | null | 67 | null |
1,609 | 2 | null | 1,598 | 3 | null | Depends on how much detail you want it to have, it needs to have the aspect ratio of 1:1 (basically - it needs to be square)
I would go with the Apple's own 129*129
| null | CC BY-SA 2.5 | null | 2008-08-04T21:36:58.040 | 2008-08-04T21:36:58.040 | null | null | 52 | null |
1,595 | 2 | null | 746 | 8 | null | > To capatilise it in, say, C - use the ascii codes ([http://www.asciitable.com/](http://www.asciitable.com/)) to find the integer value of the char and subtract 32 from it.
This is a poor solution if you ever plan to accept characters beyond a-z and A-Z.
For instance: ASCII 134: å, ASCII 143: Å.
Using arithmetic get... | null | CC BY-SA 2.5 | null | 2008-08-04T21:16:22.760 | 2008-08-07T14:23:50.627 | 2008-08-07T14:23:50.627 | 102 | 102 | null |
1,600 | 1 | 1,793 | null | 28 | 4,088 | When I want to make a copy of a database, I always create a new empty database, and then restore a backup of the existing database into it. However, I'm wondering if this is really the least error-prone, least complicated, and most efficient way to do this?
| What is the best way to copy a database? | CC BY-SA 3.0 | 0 | 2008-08-04T21:27:53.003 | 2017-12-22T19:08:58.257 | 2017-12-22T19:08:58.257 | 2,384,186 | 230 | [
"sql-server",
"sql-server-2008"
] |
1,608 | 2 | null | 1,584 | 1 | null | The best way I can think of would be to use over an connection.
Here's a document that explains how to do just that:
[http://www.ucl.ac.uk/cert/openssh_rdp_vnc.pdf](http://www.ucl.ac.uk/cert/openssh_rdp_vnc.pdf)
| null | CC BY-SA 2.5 | null | 2008-08-04T21:33:58.093 | 2008-11-03T18:15:19.357 | null | null | 52 | null |
1,611 | 2 | null | 328 | 2 | null | I would check both IP and User Agent to see if they change
```
if ($_SESSION['user_agent'] != $_SERVER['HTTP_USER_AGENT']
|| $_SESSION['user_ip'] != $_SERVER['REMOTE_ADDR'])
{
//Something fishy is going on here?
}
```
| null | CC BY-SA 2.5 | null | 2008-08-04T21:38:05.603 | 2008-08-04T21:38:05.603 | null | null | 1,384,652 | null |
1,610 | 1 | 1,621 | null | 101 | 86,326 | If I'm adding a column to a table in Microsoft SQL Server, can I control where the column is displayed logically in queries?
I don't want to mess with the physical layout of columns on disk, but I would like to logically group columns together when possible so that tools like SQL Server Management Studio list the cont... | Can I logically reorder columns in a table? | CC BY-SA 2.5 | 0 | 2008-08-04T21:37:31.720 | 2023-01-04T10:13:37.353 | 2008-10-08T22:50:54.157 | 15,401 | 328 | [
"sql-server"
] |
1,607 | 1 | 1,666 | null | 139 | 43,954 | What are the best methods for tracking and/or automating DB schema changes? Our team uses Subversion for version control and we've been able to automate some of our tasks this way (pushing builds up to a staging server, deploying tested code to a production server) but we're still doing database updates manually. I w... | Mechanisms for tracking DB schema changes | CC BY-SA 2.5 | 0 | 2008-08-04T21:31:40.390 | 2021-10-25T11:38:55.880 | 2008-08-29T19:09:04.530 | 137 | 72 | [
"php",
"mysql",
"database",
"svn",
"migration"
] |
1,598 | 1 | 3,490,980 | null | 73 | 51,597 | I'm not sure what the correct size should be.
Many sites seem to repeat that the apple-touch-icon should be 57x57 pixels but cite a broken link as their source.
[Hanselman](http://www.hanselman.com/blog/MakeYourWebsiteMobileAndIPhoneFriendlyAddHomeScreenIPhoneIconsAndAdjustTheViewPort.aspx)'s and [playgroundblues](ht... | What are the correct pixel dimensions for an apple-touch-icon? | CC BY-SA 2.5 | 0 | 2008-08-04T21:17:51.150 | 2021-10-25T11:42:16.293 | 2017-05-23T12:09:57.963 | -1 | 83 | [
"iphone",
"favicon",
"apple-touch-icon"
] |
1,619 | 2 | null | 766 | 27 | null | MySQLdb is what I have used before.
If you host is using Python version 2.5 or higher, support for sqlite3 databases is built in (sqlite allows you to have a relational database that is simply a file in your filesystem). But buyer beware, sqlite is not suited for production, so it may depend what you are trying to do... | null | CC BY-SA 2.5 | null | 2008-08-04T21:54:11.857 | 2008-08-04T21:54:11.857 | null | null | 92 | null |
1,615 | 1 | 1,628 | null | 17 | 7,858 | The `.XFDL` file extension identifies `XFDL` Formatted Document files. These belong to the XML-based document and template formatting standard. This format is exactly like the XML file format however, contains a level of encryption for use in secure communications.
I know how to view XFDL files using a file viewer I f... | How can I modify .xfdl files? (Update #1) | CC BY-SA 4.0 | 0 | 2008-08-04T21:42:37.933 | 2020-06-18T00:46:46.767 | 2020-06-18T00:46:46.767 | 9,780,149 | 25 | [
"ruby",
"language-agnostic",
"xfdl"
] |
1,623 | 1 | 1,667 | null | 31 | 4,935 | When spliting a solution in to logical layers, when is it best to use a separate project over just grouping by a folder?
| Folders or Projects in a Visual Studio Solution? | CC BY-SA 2.5 | 0 | 2008-08-04T22:00:41.347 | 2013-01-27T12:12:23.270 | 2008-09-10T21:37:30.437 | 1,659 | 230 | [
"visual-studio",
"projects-and-solutions"
] |
1,624 | 2 | null | 1,610 | 5 | null | When Management Studio does it, it's creating a temporary table, copying everything across, dropping your original table and renaming the temporary table. There's no simple equivalent T-SQL statement.
If you don't fancy doing that, you could always create a view of the table with the columns in the order you'd like a... | null | CC BY-SA 2.5 | null | 2008-08-04T22:00:53.233 | 2008-08-04T22:00:53.233 | null | null | 192 | null |
1,621 | 2 | null | 1,610 | 83 | null | You can not do this programatically (in a safe way that is) without creating a new table.
What Enterprise Manager does when you commit a reordering is to create a new table, move the data and then delete the old table and rename the new table to the existing name.
If you want your columns in a particular order/g... | null | CC BY-SA 2.5 | null | 2008-08-04T21:54:18.707 | 2008-08-04T21:57:29.167 | 2008-08-04T21:57:29.167 | 224 | 224 | null |
1,625 | 1 | 1,627 | null | 40 | 18,731 | What software is recommended for working with and editing large XML schemas? I'm looking for both Windows and Linux software (doesn't have to be cross platform, just want suggestions for both) that help with dealing with huge XML files.
| XML Editing/Viewing Software | CC BY-SA 2.5 | 0 | 2008-08-04T22:01:10.317 | 2020-12-16T02:21:36.710 | null | null | 204 | [
"windows",
"xml",
"linux"
] |
1,620 | 2 | null | 833 | 2 | null | @ Mark Harrison : SQL Server does not support that syntax (`SELECT ... FOR UPDATE`).
The SQL Server equivalent is the `SELECT` statement hint `UPDLOCK`.
See [SQL Server Books Online](http://msdn.microsoft.com/en-us/library/ms187373.aspx) for more information.
| null | CC BY-SA 3.0 | null | 2008-08-04T21:54:15.463 | 2015-06-05T05:56:44.403 | 2015-06-05T05:56:44.403 | 2,958,272 | 318 | null |
1,617 | 2 | null | 1,600 | 7 | null | It is possible to skip the step of creating the empty database. You can create the new database as part of the restore process.
This is actually the easiest and best way I know of to clone a database. You can eliminate errors by scripting the backup and restore process rather than running it through the SQL Server Man... | null | CC BY-SA 2.5 | null | 2008-08-04T21:46:01.703 | 2008-08-04T21:46:01.703 | null | null | 173 | null |
1,627 | 2 | null | 1,625 | 9 | null | I may be old fashioned, but I prefer my text editor.
I use emacs, and it has a fairly decent xml mode.
Most good text editors will have decent syntax hi-lighting and tag matching facilities. Your IDE might already do it (IntelliJ idea does, and I believe Eclipse does as well). Good text editors will be able to ... | null | CC BY-SA 2.5 | null | 2008-08-04T22:01:59.580 | 2008-08-04T22:01:59.580 | null | null | 92 | null |
1,640 | 2 | null | 1,623 | 4 | null | I usually do a project for the GUI a project for the business logic a project for data access and a project for unit tests.
But sometimes it is prudent to have separation based upon services (if you are using a service oriented architecture) Such as Authentication, Sales, etc.
I guess the rule of thumb that I work o... | null | CC BY-SA 2.5 | null | 2008-08-04T22:14:17.310 | 2008-08-04T22:14:17.310 | null | null | 27 | null |
1,651 | 2 | null | 1,625 | 8 | null | I agree that your text editor is probably your best bet. I do know some people who swear by [XMLSpy](http://www.altova.com/products/xmlspy/xml_editor.html), if you need something that's tailored specifically for dealing with XML files in a visual way. I bet you could find some F/OSS work-alikse but I'm not aware of a... | null | CC BY-SA 2.5 | null | 2008-08-04T22:23:14.030 | 2008-08-04T22:23:14.030 | null | null | 72 | null |
1,649 | 2 | null | 1,644 | 10 | null | If you are into web design and website creation then I recommend [Boagworld](http://boagworld.com/) and also [The Rissington podcast](http://therissingtonpodcast.co.uk/) even if you are not.
| null | CC BY-SA 2.5 | null | 2008-08-04T22:21:17.030 | 2008-08-04T22:21:17.030 | null | null | 1,384,652 | null |
1,653 | 2 | null | 1,625 | 3 | null | The [oXygen XML Editor](http://www.oxygenxml.com/) a great IDE for Windows, bit expensive tho.
| null | CC BY-SA 2.5 | null | 2008-08-04T22:26:04.227 | 2008-08-04T22:26:04.227 | null | null | 117 | null |
1,647 | 2 | null | 1,615 | 2 | null | The only answer I can think of right now is - read the manual for uudeview.
As much as I would like to help you, I am not an expert in this area, so you'll have to wait for someone more knowledgable to come down here and help you.
Meanwhile I can give you links to some documents that might help you:
- [UUDeview Home... | null | CC BY-SA 3.0 | null | 2008-08-04T22:18:47.987 | 2013-01-27T11:57:36.587 | 2013-01-27T11:57:36.587 | null | 52 | null |
1,628 | 2 | null | 1,615 | 5 | null | If the encoding is then this is the solution I've stumbled upon on the web:
"Decoding XDFL files saved with 'encoding=base64'.
Files saved with:
```
application/vnd.xfdl;content-encoding="base64-gzip"
```
are simple base64-encoded gzip files. They can be easily restored to XML by first decoding and then unzipping... | null | CC BY-SA 4.0 | null | 2008-08-04T22:02:35.180 | 2020-04-30T19:15:32.360 | 2020-04-30T19:15:32.360 | 10,702,372 | 52 | null |
1,646 | 2 | null | 1,600 | 4 | null | Here's a dynamic sql script I've used in the past. It can be further modified but it will give you the basics. I prefer scripting it to avoid the mistakes you can make using the Management Studio:
```
Declare @OldDB varchar(100)
Declare @NewDB varchar(100)
Declare @vchBackupPath varchar(255)
Declare @query varchar(8... | null | CC BY-SA 2.5 | null | 2008-08-04T22:18:05.460 | 2008-08-04T22:18:05.460 | null | null | 225 | null |
1,655 | 2 | null | 1,625 | 2 | null | [Open source XML editors examined](http://www.linux.com/articles/43020) - it is a little bit outdated though.
| null | CC BY-SA 2.5 | null | 2008-08-04T22:27:00.810 | 2008-08-04T22:27:00.810 | null | null | 52 | null |
1,657 | 2 | null | 1,625 | 4 | null | I work a lot with XML, and have found [Oxygen](http://www.oxygenxml.com/) to be a great editor. It's cross-platform and has a graphical schema editor, but since I use DTDs and not schemas, I can't vouch for the schema editor's quality. The rest of the editing package (such as the XML editor and XSLT debugger) is soli... | null | CC BY-SA 2.5 | null | 2008-08-04T22:30:00.537 | 2008-08-04T22:30:00.537 | null | null | 207 | null |
1,656 | 2 | null | 1,607 | 5 | null | It's kind of low tech, and there might be a better solution out there, but you could just store your schema in an SQL script which can be run to create the database. I think you can execute a command to generate this script, but I don't know the command unfortunately.
Then, commit the script into source control along ... | null | CC BY-SA 4.0 | null | 2008-08-04T22:28:58.713 | 2021-10-25T11:38:22.703 | 2021-10-25T11:38:22.703 | 17,169,050 | 122 | null |
1,661 | 2 | null | 1,644 | 19 | null | The [Google Developer Podcast](http://google-code-updates.blogspot.com/2007/05/introducing-google-developer-podcast.html) is good.
| null | CC BY-SA 2.5 | null | 2008-08-04T22:36:18.327 | 2008-08-04T22:36:18.327 | null | null | 116 | null |
1,654 | 2 | null | 1,644 | 29 | null | In the Stack Overflow podcast [SE-radio](http://www.se-radio.net/) was mentioned. It's pretty in depth.
Also if you are an aspiring JavaScript developer, the Douglas Crockford "The JavaScript Programming Language" and "Advanced JavaScript" talks on [YUI Developer Theatre](http://developer.yahoo.com/yui/theater/) are e... | null | CC BY-SA 2.5 | null | 2008-08-04T22:26:29.483 | 2009-09-14T09:17:33.993 | 2009-09-14T09:17:33.993 | 63,550 | 199 | null |
1,670 | 2 | null | 1,607 | 5 | null | If you are using C#, have a look at Subsonic, a very useful ORM tool, but is also generates sql script to recreated your scheme and\or data. These scripts can then be put into source control.
[http://subsonicproject.com/](http://subsonicproject.com/)
| null | CC BY-SA 2.5 | null | 2008-08-04T22:47:46.993 | 2008-08-04T22:47:46.993 | null | null | 230 | null |
1,665 | 2 | null | 1,623 | 7 | null | denny wrote:
> I personally feel that if reusable code is split into projects it is simpler to use other places than if it is just in folders.
I really agree with this - if you can reuse it, it should be in a separate project. With that said, it's also very difficult to reuse effectively :)
Here at SO, we've tried ... | null | CC BY-SA 2.5 | null | 2008-08-04T22:42:55.067 | 2008-08-04T22:42:55.067 | null | null | 3 | null |
1,669 | 1 | 1,672 | null | 697 | 352,269 | : C/C++, Java, and Ruby.
I am looking for some helpful books/tutorials on how to write your own compiler simply for educational purposes. I am most familiar with C/C++, Java, and Ruby, so I prefer resources that involve one of those three, but any good resource is acceptable.
| Learning to write a compiler | CC BY-SA 3.0 | 0 | 2008-08-04T22:46:36.900 | 2021-07-30T22:04:27.037 | 2014-02-28T23:45:33.330 | 63,550 | 340 | [
"compiler-construction",
"language-agnostic"
] |
1,660 | 2 | null | 1,644 | 91 | null | I like
- [Stackoverflow](https://blog.stackoverflow.com/category/podcasts/)- [Deep Fried Bytes](http://deepfriedbytes.com/)- [Hanselminutes](http://www.hanselminutes.com/)- [Software Engineering Radio](http://www.se-radio.net/)- [Herding Code](http://herdingcode.com/)
- [Alt.NET Podcast](http://altnetpodcast.com/)- [... | null | CC BY-SA 4.0 | null | 2008-08-04T22:35:52.133 | 2008-09-05T16:07:42.033 | 2021-01-18T12:38:11.483 | -1 | 308 | null |
1,667 | 2 | null | 1,623 | 17 | null | By default, within the same project
- -
Separating your source code into multiple projects makes only sense if you...
- - -
If you think that some portions of your source code could be reusable, still don't create it as a new project. Just wait until you will really want to reuse it in another solution and isola... | null | CC BY-SA 2.5 | null | 2008-08-04T22:45:32.940 | 2008-08-04T22:54:47.460 | 2008-08-04T22:54:47.460 | 275 | 275 | null |
1,666 | 2 | null | 1,607 | 57 | null | In the Rails world, there's the concept of migrations, scripts in which changes to the database are made in Ruby rather than a database-specific flavour of SQL. Your Ruby migration code ends up being converted into the DDL specific to your current database; this makes switching database platforms very easy.
For every... | null | CC BY-SA 3.0 | null | 2008-08-04T22:45:11.443 | 2016-05-02T09:04:43.610 | 2016-05-02T09:04:43.610 | 6,191,314 | 216 | null |
1,673 | 2 | null | 1,300 | 15 | null | If you are quite happy with MSBuild, then I would stick with MSBuild. This may be one of those cases where the tool you learn first is the one you will prefer. I started with NAnt and can't quite get used to MSBuild. I'm sure they will both be around for quite some time.
There are some fundamental differences betwe... | null | CC BY-SA 2.5 | null | 2008-08-04T22:52:31.677 | 2008-08-04T22:52:31.677 | null | null | 308 | null |
1,678 | 2 | null | 1,669 | 32 | null | ["Let's Build a Compiler"](http://compilers.iecc.com/crenshaw/) is awesome, but it's a bit outdated. (I'm not saying it makes it even a little bit less valid.)
Or check out [SLANG](https://www.quora.com/As-a-self-taught-programmer-how-can-I-learn-about-compilers/answer/Akhil-Kooliyatt?srid=TAGM). This is similar to "L... | null | CC BY-SA 3.0 | null | 2008-08-04T22:56:30.767 | 2016-08-16T05:55:29.637 | 2016-08-16T05:55:29.637 | 3,988,992 | 52 | null |
1,687 | 2 | null | 1,683 | 0 | null | In my experience its best to keep an the info in the profile to a bare minimum, only put the essentials in there that are directly needed for authentication. Other information such as addresses should be saved in your own database by your own application logic, this approach is more extensible and maintainable.
| null | CC BY-SA 2.5 | null | 2008-08-04T23:10:05.497 | 2008-08-04T23:10:05.497 | null | null | 230 | null |
1,684 | 2 | null | 657 | 1 | null | I'm not necessarily looking for the fastest but a nice balance, some of the server that this code is being developed for are fairly slow, the script that hashes and stores the password is taking 5-6 seconds to run, and I've narrowed it down to the hashing (if I comment the hashing out it runs, in 1-2 seconds).
It does... | null | CC BY-SA 2.5 | null | 2008-08-04T23:07:15.673 | 2008-08-04T23:07:15.673 | null | null | 115 | null |
1,683 | 1 | 3,020 | null | 24 | 3,548 | I am looking for guidance regarding the best practice around the use of the Profile feature in ASP.NET.
How do you decide what should be kept in the built-in user Profile, or if you should create your own database table and add a column for the desired fields? For example, a user has a zip code, should I save the zip ... | ASP.NET built in user profile vs. old style user class/tables | CC BY-SA 3.0 | 0 | 2008-08-04T23:06:23.443 | 2017-12-13T15:25:12.563 | 2017-12-13T15:25:12.563 | 1,753,960 | 350 | [
"asp.net",
"profile"
] |
1,679 | 1 | 1,704 | null | 16 | 10,666 | I'm writing an app to help facilitate some research, and part of this involves doing some statistical calculations. Right now, the researchers are using a program called [SPSS](http://en.wikipedia.org/wiki/Spss). Part of the output that they care about looks like this:
 might be a better book for you. If you are a to... | null | CC BY-SA 2.5 | null | 2008-08-04T23:08:18.603 | 2008-08-04T23:08:18.603 | null | null | null | null |
1,688 | 2 | null | 1,683 | 0 | null | I think that depends on how many fields you need. To my knowledge, Profiles are essentially a long string that gets split at the given field sizes, which means that they do not scale very well if you have many fields and users.
On the other hand, they are built in, so it's an easy and standardized way, which means the... | null | CC BY-SA 2.5 | null | 2008-08-04T23:10:30.207 | 2008-08-04T23:14:37.547 | 2008-08-04T23:14:37.547 | 91 | 91 | null |
1,711 | 1 | null | null | 1,436 | 1,114,440 | If you could go back in time and tell yourself to read a specific book at the beginning of your career as a developer, which book would it be?
I expect this list to be varied and to cover a wide range of things.
Use the search box in the upper-right corner. To search the answers of the current question, use `inquest... | What is the single most influential book every programmer should read? | CC BY-SA 3.0 | 0 | 2008-08-04T23:50:22.933 | 2012-02-21T21:02:44.073 | 2011-09-26T15:39:12.017 | 102,937 | 303 | [
"resources"
] |
1,716 | 2 | null | 145 | 5 | null | This is very easy to do in java, and as stated above you can reach into the java.util.zip libraries from C#. For references see:
[java.util.zip javadocs](http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/package-summary.html)
[sample code](http://www.devx.com/getHelpOn/10MinuteSolution/20447)
I used this a whil... | null | CC BY-SA 2.5 | null | 2008-08-04T23:52:51.290 | 2008-08-04T23:52:51.290 | null | null | 292 | null |
1,709 | 1 | 1,724 | null | 24 | 17,982 | My dilemma is, basically, how to share an enumeration between two applications.
The users upload documents through a front-end application that is on the web. This application calls a web service of the back-end application and passes the document to it. The back-end app saves the document and inserts a row in the ta... | How to pass enumerated values to a web service | CC BY-SA 2.5 | 0 | 2008-08-04T23:43:34.757 | 2008-09-08T12:35:03.563 | 2008-08-23T18:44:03.343 | 2,134 | 349 | [
"web-services",
"application-integration"
] |
1,693 | 2 | null | 1,669 | 26 | null | If you're looking to use powerful, higher level tools rather than building yourself, going through the projects and readings for [this course](http://www.antlr.org/wiki/display/CS652/CS652+Home) is a pretty good option. It's a languages course by the author of the Java parser engine ANTLR. You can get the book for t... | null | CC BY-SA 2.5 | null | 2008-08-04T23:13:49.450 | 2008-08-04T23:25:02.690 | 2008-08-04T23:25:02.703 | 101 | 101 | null |
1,721 | 2 | null | 1,709 | 6 | null | I'd suggest against passing an integer between them, simply for purposes of readability and debugging. Say you're going through your logs and you see a bunch of 500 errors for DocumentType=4. Now you've got to go look up which DocumentType is 4. Or if one of the applications refers to a number that doesn't exist in ... | null | CC BY-SA 2.5 | null | 2008-08-04T23:54:12.817 | 2008-08-04T23:54:12.817 | null | null | 101 | null |
1,724 | 2 | null | 1,709 | 3 | null | I can only speak about .net, but if you have an ASP.net Webservice, you should be able to add an enumeration directly to it.
When you then use the "Add Web Reference" in your Client Application, the resulting Class should include that enum
But this is from the top of my head, i'm pretty sure i've done it in the past,... | null | CC BY-SA 2.5 | null | 2008-08-04T23:56:54.403 | 2008-08-04T23:56:54.403 | null | null | 91 | null |
1,704 | 2 | null | 1,679 | 3 | null | [This website](http://people.richland.edu/james/lecture/m170/ch13-2wy.html) might help you out a bit more. Also [this one](http://www.unesco.org/webworld/idams/advguide/Chapt4_3.htm).
I'm working from a fairly rusty memory of a statistics course, but here goes nothing:
When you're doing analysis of variance (ANOVA),... | null | CC BY-SA 2.5 | null | 2008-08-04T23:32:54.797 | 2008-08-04T23:32:54.797 | null | null | 59 | null |
1,733 | 2 | null | 1,709 | 5 | null | I would still use enumeration internally but would expect consumers to pass me only the name, not the numeric value itself.
just some silly example to illustrate:
```
public enum DocumentType
{
Invoice,
Contract,
WorkOrder,
SignedWorkOrder
}
[WebMethod]
public void UploadDocument(string type, byte[] data)
{
... | null | CC BY-SA 2.5 | null | 2008-08-05T00:12:35.370 | 2008-08-05T00:16:36.923 | 2008-08-05T00:16:36.923 | 275 | 275 | null |
1,734 | 1 | 1,780 | null | 36 | 2,420 | I was just looking through some information about Google's [protocol buffers](http://code.google.com/apis/protocolbuffers/) data interchange format. Has anyone played around with the code or even created a project around it?
I'm currently using XML in a Python project for structured content created by hand in a text ... | Any experiences with Protocol Buffers? | CC BY-SA 2.5 | 0 | 2008-08-05T00:12:55.290 | 2013-02-02T14:04:50.913 | 2013-02-02T14:04:50.913 | 1,675,954 | 59 | [
"python",
"xml",
"database",
"protocol-buffers"
] |
1,718 | 2 | null | 1,383 | 4 | null | This is my take on it. I would say unit testing is the practice of writing software tests to verify that your real software does what it is meant to. This started with [jUnit](http://junit.org/) in the Java world and has become a best practice in PHP as well with [SimpleTest](http://simpletest.org/) and [phpUnit](http:... | null | CC BY-SA 2.5 | null | 2008-08-04T23:53:16.440 | 2008-08-04T23:53:16.440 | null | null | 137 | null |
1,749 | 2 | null | 1,746 | 59 | null | You need to put the pattern in parentheses `/([A-Z])/`, like this:
```
preg_replace("/([A-Z])/", "<span class=\"initial\">$1</span>", $str)
```
| null | CC BY-SA 3.0 | null | 2008-08-05T00:36:08.350 | 2017-02-09T19:21:31.043 | 2017-02-09T19:21:31.043 | 3,093,731 | 137 | null |
1,746 | 1 | 1,749 | null | 58 | 21,472 | I am trying to grab the capital letters of a couple of words and wrap them in span tags. I am using [preg_replace](http://php.net/manual/en/function.preg-replace.php) for extract and wrapping purposes, but it's not outputting anything.
```
preg_replace("/[A-Z]/", "<span class=\"initial\">$1</span>", $str)
```
| How can I get at the matches when using preg_replace in PHP? | CC BY-SA 3.0 | 0 | 2008-08-05T00:35:17.493 | 2017-02-09T19:21:31.043 | 2013-07-29T22:09:53.520 | 8,454 | 137 | [
"php",
"regex",
"html-parsing",
"preg-replace"
] |
1,758 | 2 | null | 888 | 0 | null | +1 for print_r(). Use it to dump out the contents of an object or variable. To make it more readable, do it with a pre tag so you don't need to view source.
```
echo '<pre>';
print_r($arrayOrObject);
```
Also var_dump($thing) - this is very useful to see the type of subthings
| null | CC BY-SA 2.5 | null | 2008-08-05T00:49:42.347 | 2008-08-05T00:49:42.347 | null | null | 137 | null |
1,764 | 2 | null | 1,762 | 1 | null | The value of 'false' is true. You need to remove the quotes:
```
$canMerge = ($condition1 && $condition2) ? true : false;
```
| null | CC BY-SA 2.5 | null | 2008-08-05T00:57:30.863 | 2008-08-05T00:57:30.863 | null | null | 137 | null |
1,760 | 1 | 1,821 | null | 63 | 11,076 | I am getting back into a bit more .NET after a few-years of not using it full-time and am wondering what the good unit testing packages are these days.
I'm familiar with NUnit (a few years ago) and have played briefly around with [IronRuby](https://en.wikipedia.org/wiki/IronRuby), with the goal of getting something lik... | .NET unit testing packages | CC BY-SA 4.0 | 0 | 2008-08-05T00:51:49.177 | 2020-07-30T11:16:51.963 | 2020-07-30T11:16:24.913 | 63,550 | 234 | [
"c#",
".net",
"unit-testing",
"testing"
] |
1,762 | 1 | 1,771 | null | 26 | 1,095 | I am trying to set a flag to show or hide a page element, but it always displays even when the expression is false.
```
$canMerge = ($condition1 && $condition2) ? 'true' : 'false';
...
<?php if ($canMerge) { ?>Stuff<?php } ?>
```
What's up?
| Why is my ternary expression not working? | CC BY-SA 2.5 | null | 2008-08-05T00:56:43.813 | 2022-08-21T23:06:43.723 | 2009-01-24T03:19:15.033 | 42,439 | 137 | [
"php",
"ternary-operator"
] |
1,771 | 2 | null | 1,762 | 41 | null | This is broken because 'false' as a string will evaluate to true as a boolean.
However, this is an unneeded ternary expression, because the resulting values are simple true and false. This would be equivalent:
```
$canMerge = ($condition1 && $condition2);
```
| null | CC BY-SA 2.5 | null | 2008-08-05T01:03:12.553 | 2008-08-05T01:16:21.747 | 2008-08-05T01:16:21.747 | 219 | 219 | null |
1,765 | 2 | null | 1,760 | 1 | null | I like [MbUnit](http://www.mbunit.com/), er, [Gallio](http://www.gallio.org/). Most importantly to me is having good tools support inside Visual Studio. For that I use [Resharper](http://www.jetbrains.com/resharper/index.html), which has an [MbUnit test runner](http://code.google.com/p/mbunit-resharper/). A lot of f... | null | CC BY-SA 2.5 | null | 2008-08-05T00:57:48.773 | 2008-08-05T00:57:48.773 | null | null | 307 | null |
1,778 | 2 | null | 36 | 13 | null | Wild guess here: If you don't want to modify the third party's tables, Can you create a view and then put a trigger on that view?
| null | CC BY-SA 2.5 | null | 2008-08-05T01:12:37.527 | 2008-08-05T01:12:37.527 | null | null | 234 | null |
1,780 | 2 | null | 1,734 | 13 | null | If you are looking for user facing interaction, stick with xml. It has more support, understanding, and general acceptance currently. If it's internal, I would say that protocol buffers are a great idea.
Maybe in a few years as more tools come out to support protocol buffers, then start looking towards that for a publ... | null | CC BY-SA 2.5 | null | 2008-08-05T01:14:30.423 | 2008-08-05T01:14:30.423 | null | null | 77 | null |
1,776 | 2 | null | 1,600 | 0 | null | The functionality has worked great for me. See [Scott Gu's Blog Entry](http://weblogs.asp.net/scottgu/archive/2006/12/22/recipe-deploying-a-sql-database-to-a-remote-hosting-environment-part-1.aspx).
If you need something really robust look at redgate software's tools [here](http://www.red-gate.com/)...if you are do... | null | CC BY-SA 2.5 | null | 2008-08-05T01:11:30.540 | 2008-08-05T01:11:30.540 | null | null | 313 | null |
1,773 | 2 | null | 1,070 | 16 | null | The exact definitions of `vsize`, `rss`, `rprvt`, `rshrd`, and other obscure-looking abbreviations vary from OS to OS. The manual pages for the `top` and `ps` commands will have some sort of description, but all such descriptions are simplified greatly (or are based on long-extinct kernel implementations).
"Process si... | null | CC BY-SA 3.0 | null | 2008-08-05T01:07:50.657 | 2018-02-09T15:19:06.037 | 2018-02-09T15:19:06.037 | 6,237,969 | 164 | null |
1,788 | 2 | null | 1,711 | 8 | null | @Peter Coulton -- you don't read Knuth, you study it.
For me, and my work... is great for thinking and developing with functional languages in mind.
| null | CC BY-SA 2.5 | null | 2008-08-05T01:25:46.643 | 2008-08-05T01:25:46.643 | null | null | 157 | null |
1,752 | 2 | null | 11 | 16 | null | I thought I'd give this a shot using classes and polymorphism. I had a previous iteration which used sub-classing which ended up having way too much overhead. I've switched to a more flexible delegate / public property object model which is significantly better. My code is very slightly more accurate, I wish I could co... | null | CC BY-SA 2.5 | null | 2008-08-05T00:42:56.853 | 2008-08-05T01:23:39.330 | 2008-08-05T01:23:39.330 | 332 | 332 | null |
1,793 | 2 | null | 1,600 | 3 | null | Backup and Restore is the most straight-forward way I know. You have to be careful between servers as security credentials don't come with the restored database.
| null | CC BY-SA 2.5 | null | 2008-08-05T01:31:16.583 | 2008-08-05T01:31:16.583 | null | null | 307 | null |
1,790 | 1 | 2,017 | null | 20 | 3,159 | Is it possible to create "federated" Subversion servers?
As in one server at location A and another at location B that sync up their local versions of the repository automatically. That way when someone at either location interacts with the repository they are accessing their respective local server and therefore has ... | Federated (Synced) Subversion servers? | CC BY-SA 2.5 | 0 | 2008-08-05T01:27:34.610 | 2020-03-27T19:44:48.817 | 2008-08-17T02:06:15.613 | 55 | 194 | [
"svn",
"version-control"
] |
1,798 | 2 | null | 1,709 | 3 | null | If you are consuming your Web service from a .NET page/application, you should be able to access the enumeration after you add your Web reference to the project that is consuming the service.
| null | CC BY-SA 2.5 | null | 2008-08-05T01:34:40.900 | 2008-08-05T01:34:40.900 | null | null | 357 | null |
1,794 | 2 | null | 1,790 | 2 | null | Sounds like you might like [Git](http://git.or.cz/). There's a Google Talk [explaining all about it](http://www.youtube.com/watch?v=4XpnKHJAok8).
| null | CC BY-SA 2.5 | null | 2008-08-05T01:32:34.990 | 2008-08-05T01:32:34.990 | null | null | 117 | null |
1,806 | 2 | null | 1,790 | 0 | null | Its probably not exactly what your looking for, but you may be able to implement OS level clustering.
| null | CC BY-SA 2.5 | null | 2008-08-05T01:44:13.033 | 2008-08-05T01:44:13.033 | null | null | 292 | null |
1,789 | 2 | null | 1,709 | 3 | null | In .NET, enumeration values are (by default) serialized into xml with the name. For instances where you can have multiple values ([flags](http://msdn.microsoft.com/en-us/library/system.flagsattribute.aspx)), then it puts a space between the values. This works because the enumeration doesn't contain spaces, so you can g... | null | CC BY-SA 2.5 | null | 2008-08-05T01:26:14.550 | 2008-08-05T01:26:14.550 | null | null | 77 | null |