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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4,472 | 2 | null | 3,230 | 0 | null | If you are looking to find out which dll's your target machine is missing then use depends.exe which used to come with MSDev, but can also be found [here](http://dependencywalker.com/). Testing this on a few target machines should tell you which dll's you need to package with your application.
| null | CC BY-SA 2.5 | null | 2008-08-07T06:40:28.177 | 2008-08-07T06:40:28.177 | null | null | 259 | null |
4,477 | 2 | null | 4,458 | 1 | null | Since you're looking to the MS-world, you may want to look at [F#](http://research.microsoft.com/fsharp/fsharp.aspx). It offers the ability to extend its syntax to write domain specific languages (see [this link](http://tomasp.net/articles/fsharp-i-introduction/article.pdf), page 16 for sample code).
| null | CC BY-SA 2.5 | null | 2008-08-07T06:53:27.807 | 2008-08-07T06:53:27.807 | null | null | 422 | null |
4,449 | 2 | null | 3,157 | 6 | null | And the correct answer iiiiis...
```
RewriteRule ^(a|bunch|of|old|directories).* - [NC,L]
# all other requests will be forwarded to Cake
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
```
I still don't get why the index.php file in the root directory was called initially even with the... | null | CC BY-SA 3.0 | null | 2008-08-07T06:09:54.337 | 2013-01-09T05:34:41.623 | 2013-01-09T05:34:41.623 | 1,471,203 | 476 | null |
4,403 | 2 | null | 4,371 | 48 | null | Unfortunately your user password is irretrievable. It has been hashed with a one way hash which if you don't know is irreversible. I recommend go with Xenph Yan above and just create an new one.
You can also use the following procedure from [the manual](http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html... | null | CC BY-SA 3.0 | null | 2008-08-07T04:54:27.937 | 2015-01-16T12:19:05.693 | 2015-01-16T12:19:05.693 | 2,854,264 | 389 | null |
4,458 | 1 | 7,070 | null | 12 | 1,487 | I was just listening to some older .Net Rocks! episodes, and I [found #329 on DSLs](http://www.microsoft.com/downloads/details.aspx?FamilyID=D91887EA-5128-4BB1-B861-1DC1F9564941&displaylang=en) to be interesting. My problem is that I can't find any good online resources for people trying to learn this technology. I get... | Domain Specific Language resources | CC BY-SA 2.5 | 0 | 2008-08-07T06:24:33.870 | 2011-08-15T23:49:02.893 | 2010-10-12T02:24:20.407 | 73,488 | 100 | [
"t4",
"dsl",
"vsx"
] |
4,493 | 2 | null | 4,080 | 4 | null | We are using FindBugs and Checkstyle as well as Clover for Code Coverage.
I think it's important to have some kind of static analysis, supporting your development. Unfortunately it's still not widely spread that these tools are important.
| null | CC BY-SA 2.5 | null | 2008-08-07T07:21:49.230 | 2008-08-07T07:21:49.230 | null | null | 198 | null |
4,492 | 2 | null | 4,080 | 5 | null | [Checkstyle](http://checkstyle.sourceforge.net/) is another one I've used at a previous company... it's mainly for style checking, but it can do some static analysis too. Also, [Clover](http://www.atlassian.com/software/clover/) for code coverage, though be aware it is not a free tool.
| null | CC BY-SA 2.5 | null | 2008-08-07T07:18:26.710 | 2008-08-07T07:18:26.710 | null | null | 122 | null |
4,420 | 2 | null | 4,418 | 5 | null | A workaround is to install [http://web.archive.org/web/20060913093359/http://apserver.sourceforge.net:80/](http://web.archive.org/web/20060913093359/http://apserver.sourceforge.net:80/) on your local machine, configure it and run gems through this proxy.
- - `PARENT_PROXY``PARENT_PROXY_PORT`- `cd aps097; python main.p... | null | CC BY-SA 4.0 | null | 2008-08-07T05:25:54.050 | 2020-06-19T06:19:38.423 | 2020-06-19T06:19:38.423 | 9,780,149 | 574 | null |
4,432 | 1 | 4,441 | null | 21 | 9,220 | Typical way of creating a [CSV](http://en.wikipedia.org/wiki/Comma-separated_values) string (pseudocode):
1. Create a CSV container object (like a StringBuilder in C#).
2. Loop through the strings you want to add appending a comma after each one.
3. After the loop, remove that last superfluous comma.
Code sample:
... | CSV string handling | CC BY-SA 3.0 | 0 | 2008-08-07T05:49:04.253 | 2018-09-11T07:44:49.323 | 2016-02-07T14:30:15.983 | 2,921,691 | 202 | [
"c#",
"csv"
] |
4,491 | 2 | null | 4,430 | 1 | null | Well, those features are specific to a tool that you are using for development in those languages.
You wouldn't have those tools if (for example) you were using notepad to write code. So, maybe you should ask the question for the tool you are using.
For PHP: [http://webservices.xml.com/pub/a/ws/2004/03/24/phpws.html]... | null | CC BY-SA 2.5 | null | 2008-08-07T07:17:55.340 | 2008-08-07T07:17:55.340 | null | null | 380 | null |
4,511 | 1 | null | null | 17 | 994 | New version of Management Studio (i.e. the one that ships with SQL Server 2008) finally has a Transact-SQL IntelliSense feature. However, out-of-the-box it only works with SQL Server 2008 instances.
Is there some workaround for this?
| Is there any trick that allows to use Management Studio's (ver. 2008) IntelliSense feature with earlier versions of SQL Server? | CC BY-SA 2.5 | null | 2008-08-07T08:04:30.923 | 2014-11-25T16:51:31.793 | 2014-11-25T16:51:31.793 | 2,641,576 | 95 | [
"sql",
"sql-server",
"database",
"sql-server-2008",
"intellisense"
] |
4,518 | 2 | null | 4,432 | 0 | null | How about some trimming?
```
public string ReturnAsCSV(ContactList contactList)
{
StringBuilder sb = new StringBuilder();
foreach (Contact c in contactList)
{
sb.Append(c.Name + ",");
}
return sb.ToString().Trim(',');
}
```
| null | CC BY-SA 3.0 | null | 2008-08-07T08:19:56.040 | 2016-02-07T14:33:50.707 | 2016-02-07T14:33:50.707 | 2,921,691 | 383 | null |
4,509 | 2 | null | 4,506 | 3 | null | You should send a 304 if the client has explicitly stated that it may already have the page in its cache. This is called a conditional GET, which should include the header in the request.
Basically, this request header contains a date from which the client claims to have a cached copy. You should check if content has... | null | CC BY-SA 2.5 | null | 2008-08-07T08:01:54.203 | 2008-08-07T08:01:54.203 | null | null | 227 | null |
4,505 | 2 | null | 3,088 | 0 | null | I think learning to program because you want to learn to program will never be as good as learning to program because you want to DO something. If you can find something that your brother is interested in making work because he wants to make it work, you can just leave him with Google and he'll do it. And he'll have yo... | null | CC BY-SA 2.5 | null | 2008-08-07T07:47:41.363 | 2008-08-07T07:47:41.363 | null | null | 137 | null |
4,502 | 2 | null | 4,432 | 3 | null | You could also make an array of data and use method to create your line.
```
public string ReturnAsCSV(ContactList contactList)
{
List<String> tmpList = new List<string>();
foreach (Contact c in contactList)
{
tmpList.Add(c.Name);
}
return String.Join(",", tmpList.ToArray());
}
```
Th... | null | CC BY-SA 3.0 | null | 2008-08-07T07:37:57.543 | 2016-02-07T14:33:28.160 | 2016-02-07T14:33:28.160 | 2,921,691 | 227 | null |
4,506 | 1 | 4,527 | null | 12 | 4,844 | I'm writing a resource handling method where I control access to various files, and I'd like to be able to make use of the browser's cache. My question is two-fold:
1. Which are the definitive HTTP headers that I need to check in order to know for sure whether I should send a 304 response, and what am I looking for ... | How to know when to send a 304 Not Modified response | CC BY-SA 3.0 | 0 | 2008-08-07T07:54:37.013 | 2014-05-08T12:49:41.153 | 2014-05-08T12:49:41.153 | 2,363,481 | 192 | [
"language-agnostic",
"http"
] |
4,533 | 1 | 4,540 | null | 31 | 26,587 | How do I generate an ETag HTTP header for a resource file?
| HTTP: Generating ETag Header | CC BY-SA 2.5 | 0 | 2008-08-07T08:45:07.300 | 2020-07-26T19:52:49.557 | 2008-09-17T08:06:45.770 | 2,961 | 192 | [
"language-agnostic",
"http",
"webserver",
"header",
"etag"
] |
4,529 | 1 | 4,547 | null | 21 | 25,893 | Has anyone tried installing SQL Server 2008 Developer on a machine that already has 2005 Developer installed?
I am unsure if I should do this, and I need to keep 2005 on this machine for the foreseeable future in order to test our application easily. Since I sometimes need to take backup files of databases and make av... | SQL Server 2005 and 2008 on same developer machine? | CC BY-SA 2.5 | 0 | 2008-08-07T08:35:30.753 | 2009-08-03T10:59:29.907 | 2008-10-14T05:38:53.773 | 8,454 | 267 | [
"sql-server-2005",
"sql-server-2008",
"installation"
] |
4,498 | 2 | null | 4,149 | 3 | null | The answer seems to be "no" ... and "yes". There seems to be no real way to know if a file is open for writing by another application. So, reading from such a file will just progress until content is exhausted. I took Mike's advice and wrote some test code:
Writer.java writes a string to file and then waits for the us... | null | CC BY-SA 2.5 | null | 2008-08-07T07:25:02.580 | 2008-08-07T07:25:02.580 | null | null | 488 | null |
4,508 | 1 | 38,383 | null | 13 | 4,182 | Using MAPI functions from within managed code is officially unsupported. Apparently, MAPI uses its own memory management and it crashes and burns within managed code (see [here](http://blogs.msdn.com/pcreehan/archive/2007/05/04/what-does-unsupported-mean.aspx) and [here](http://blogs.msdn.com/mstehle/archive/2007/10/03... | MAPI and managed code experiences? | CC BY-SA 2.5 | 0 | 2008-08-07T07:56:24.327 | 2015-08-06T07:12:34.170 | 2008-08-31T00:27:23.617 | 305 | 227 | [
".net",
"email",
"pinvoke",
"mapi"
] |
4,539 | 2 | null | 4,529 | 2 | null | I believe that this is perfectly possible. I am currently running both SQL Server 2000 and SQL Server 2005 on my development server while I transfer applications over.
The only thing you will have to do is create a new instance which isn't already being used by SQL Server 2005.
As with anything new, there will probab... | null | CC BY-SA 2.5 | null | 2008-08-07T08:57:34.140 | 2008-08-07T08:57:34.140 | null | null | 383 | null |
4,521 | 2 | null | 66 | 45 | null | A few months back I wrote a blog post about Fluent Interfaces and LINQ which used an Extension Method on `IQueryable<T>` and another class to provide the following natural way of paginating a LINQ collection.
```
var query = from i in ideas
select i;
var pagedCollection = query.InPagesOf(10);
var pageOfId... | null | CC BY-SA 3.0 | null | 2008-08-07T08:22:27.440 | 2012-08-09T14:59:49.197 | 2012-08-09T14:59:49.197 | 1,105,514 | 358 | null |
4,535 | 2 | null | 4,506 | 1 | null | regarding cache-control:
You shouldn't have to worry about the cache-control when serving out, other than setting it to a reasonable value. It's basically telling the browser and other downstream entities (such as a proxy) the maximum time that should elapse before timing out the cache.
| null | CC BY-SA 2.5 | null | 2008-08-07T08:47:09.700 | 2008-08-07T08:47:09.700 | null | null | 116 | null |
4,519 | 1 | 4,691 | null | 5 | 39,725 | I have the Xming X Window Server installed on a laptop running Windows XP to connect to some UNIX development servers.
It works fine when I connect directly to the company network in the office. However, it does not work when I connect to the network remotely over a VPN.
When I start Xming when connected remotely no... | Using Xming X Window Server over a VPN | CC BY-SA 3.0 | 0 | 2008-08-07T08:20:47.100 | 2018-11-16T01:55:06.553 | 2015-11-05T17:14:25.697 | 881,229 | 381 | [
"unix",
"vpn",
"xming"
] |
4,527 | 2 | null | 4,506 | 8 | null | Here's how I implemented it. The code has been working for a bit more than a year and with multiple browsers, so I think it's pretty reliable. This is based on [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html) and by observing what and when the various browsers were sending.
Here's the pseudocode:
... | null | CC BY-SA 2.5 | null | 2008-08-07T08:30:16.113 | 2008-08-07T09:01:58.390 | 2008-08-07T09:01:58.390 | 116 | 116 | null |
4,546 | 2 | null | 4,544 | 1 | null | Does calling the method twice work?
Seems to me that your authentication is being approved after the content arrives, so then a second attempt now works because you have the correct cookies.
| null | CC BY-SA 2.5 | null | 2008-08-07T09:23:44.163 | 2008-08-07T09:23:44.163 | null | null | 383 | null |
4,545 | 1 | 4,549 | null | 80 | 53,182 | Does anyone remember the `XMP` tag?
What was it used for and why was it deprecated?
| What was the <XMP> tag used for? | CC BY-SA 3.0 | 0 | 2008-08-07T09:21:41.563 | 2018-12-17T15:49:59.753 | 2017-05-26T09:38:53.863 | 1,402,846 | 383 | [
"html",
"tags"
] |
4,547 | 2 | null | 4,529 | 23 | null | Yes this is possible. You will have to create a named instance not used by another version of SQL Server as per the previous answer and version 3.5 of .Net installed. Works great!!
Here the list of prerequisites:
- - -
| null | CC BY-SA 2.5 | null | 2008-08-07T09:30:58.253 | 2008-08-12T15:27:03.750 | 2008-08-12T15:27:03.750 | 605 | 605 | null |
4,540 | 2 | null | 4,533 | 17 | null | An etag is an arbitrary string that the server sends to the client that the client will send back to the server the next time the file is requested.
The etag should be computable on the server based on the file. Sort of like a checksum, but you might not want to checksum every file sending it out.
```
server ... | null | CC BY-SA 4.0 | null | 2008-08-07T08:57:37.993 | 2020-07-26T12:54:18.413 | 2020-07-26T12:54:18.413 | 50,543 | 116 | null |
4,544 | 1 | 6,996 | null | 18 | 1,428 | I'm trying to create a bookmarklet for posting del.icio.us bookmarks to a separate account.
I tested it from the command line like:
```
wget -O - --no-check-certificate \
"https://seconduser:thepassword@api.del.icio.us/v1/posts/add?url=http://seet.dk&description=test"
```
This works great.
I then wanted to create ... | Http Auth in a Firefox 3 bookmarklet | CC BY-SA 4.0 | null | 2008-08-07T09:08:52.260 | 2019-10-11T22:25:05.527 | 2019-01-18T08:01:38.920 | 567,854 | 86 | [
"javascript",
"firefox",
"delicious-api"
] |
4,541 | 1 | 106,093 | null | 5 | 1,535 | To analyze lots of text logs I did some hackery that looks like this:
1. Locally import logs into Access
2. Reprocess Cube link to previous mdb in Analisis Service 2000 (yes it is 2k)
3. Use Excel to visualize Cube (it is not big - up to milions raw entries)
My hackery is a succes and more people are demanding an ... | Simple MOLAP solution | CC BY-SA 3.0 | null | 2008-08-07T08:58:18.460 | 2015-04-30T09:43:19.333 | 2015-04-30T09:43:19.333 | 2,202,537 | 501 | [
"database",
"logging",
"text-files",
"olap"
] |
4,549 | 2 | null | 4,545 | 37 | null | A quick Google search on W3C reveals that `XMP` was introduced for displaying in HTML 3.2 and earlier. When W3C deprecated the `XMP` tag, it suggested using the `PRE` tag as a preferred alternative.
Update: [http://www.w3.org/TR/REC-html32#xmp](http://www.w3.org/TR/REC-html32#xmp), [http://www.w3.org/MarkUp/html-spec... | null | CC BY-SA 3.0 | null | 2008-08-07T09:43:28.353 | 2015-05-01T18:18:21.907 | 2015-05-01T18:18:21.907 | 1,497,596 | 342 | null |
4,515 | 2 | null | 3,255 | 30 | null | Seeing the answers here I think we can conclude that most of us do indeed approximate the order of the algorithm by at it and use common sense instead of calculating it with, for example, the [master method](http://en.wikipedia.org/wiki/Master_theorem) as we were thought at university.
With that said I must add that e... | null | CC BY-SA 3.0 | null | 2008-08-07T08:10:04.780 | 2011-05-22T18:58:11.970 | 2017-05-23T12:10:45.110 | -1 | 46 | null |
4,559 | 2 | null | 3,088 | 7 | null | [How to Design Programs](http://www.htdp.org/)
[Structure and Interpretation of Computer Programs](http://mitpress.mit.edu/sicp/full-text/book/book.html) . Videos lectures at [http://www.swiss.ai.mit.edu/classes/6.001/abelson-sussman-lectures/](http://www.swiss.ai.mit.edu/classes/6.001/abelson-sussman-lectures/)
| null | CC BY-SA 2.5 | null | 2008-08-07T10:04:27.560 | 2008-08-07T10:04:27.560 | null | null | 486 | null |
4,556 | 1 | 4,562 | null | 13 | 8,032 | Which of the following has the best performance?
I have seen method two implemented in JavaScript with huge performance gains, however, I was unable to measure any gain in C# and was wondering if the compiler already does method 2 even when written like method 1.
The theory behind method 2 is that the code doesn't ha... | DataTable Loop Performance Comparison | CC BY-SA 3.0 | 0 | 2008-08-07T10:01:04.823 | 2013-10-17T19:44:11.380 | 2013-10-17T19:44:11.380 | 2,000,557 | 383 | [
"c#",
"performance",
"loops"
] |
4,573 | 2 | null | 2,525 | 10 | null | I have tried almost every obfuscator on the market and SmartAssembly is the best in my opinion.
| null | CC BY-SA 2.5 | null | 2008-08-07T10:44:33.580 | 2008-08-07T10:44:33.580 | null | null | 608 | null |
4,565 | 1 | null | null | 8 | 1,472 | I'm talking about [http://en.wikipedia.org/wiki/Quality_of_service](http://en.wikipedia.org/wiki/Quality_of_service). With streaming stackoverflow podcasts and downloading the lastest updates to ubuntu, I would like to have QoS working so I can use stackoverflow without my http connections timing out or taking forever.... | How to setup Quality of Service? | CC BY-SA 2.5 | 0 | 2008-08-07T10:20:16.687 | 2015-02-21T21:46:53.460 | 2015-02-21T21:46:53.460 | 508,666 | 486 | [
"networking",
"modem",
"qos",
"adsl"
] |
4,572 | 2 | null | 742 | 9 | null | If you're simply displaying data from models, why not use the [Django Generic Views](https://docs.djangoproject.com/en/1.2/ref/generic-views/)? They're designed to let you easy show data from a model without having to write your own view and stuff about mapping URL paramaters to views, fetching data, handling edge case... | null | CC BY-SA 3.0 | null | 2008-08-07T10:44:23.957 | 2013-07-12T19:06:48.380 | 2013-07-12T19:06:48.380 | 1,011,749 | 612 | null |
4,574 | 2 | null | 4,519 | 0 | null | Haven't have the exact problem, but I think you need to look at the xhost and make sure that the vpn remote is allowed to send data to the x server.
This link might help:
[http://www.straightrunning.com/XmingNotes/trouble.php](http://www.straightrunning.com/XmingNotes/trouble.php)
| null | CC BY-SA 2.5 | null | 2008-08-07T10:45:04.517 | 2008-08-07T10:45:04.517 | null | null | 170 | null |
4,562 | 2 | null | 4,556 | 6 | null | No, it can't do that since there is no way to express for a value.
If the compiler should be able to do that, there would have to be a guarantee from the code returning the value that the value is constant, and for the duration of the loop won't change.
But, in this case, you're free to add new rows to the data tabl... | null | CC BY-SA 2.5 | null | 2008-08-07T10:09:58.703 | 2008-08-07T10:09:58.703 | null | null | 267 | null |
4,567 | 2 | null | 4,565 | 1 | null | I don't know if this will help you, but I've never been a fan of using the ISP provided box directly. Personally I use a [Linksys wrt54gl](http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&DEPA=0&Description=wrt54gl&x=0&y=0), with [DD-wrt](http://www.dd-wrt.com), behind(DMZ) my ISP provided box.
DD-wrt has exc... | null | CC BY-SA 2.5 | null | 2008-08-07T10:25:37.520 | 2008-08-07T10:25:37.520 | null | null | 100 | null |
4,563 | 2 | null | 4,533 | 7 | null | From [http://developer.yahoo.com/performance/rules.html#etags](http://developer.yahoo.com/performance/rules.html#etags):
> By default, both Apache and IIS embed data in the ETag that dramatically reduces the odds of the validity test succeeding on web sites with multiple servers....If you're not taking advantage of the... | null | CC BY-SA 2.5 | null | 2008-08-07T10:13:20.477 | 2008-08-07T10:13:20.477 | 2020-06-20T09:12:55.060 | -1 | 486 | null |
4,576 | 2 | null | 4,511 | 8 | null | There's no known trick 'in the wild' for getting around this, other than using CTP-6 of SQL Server 2008 (in favour of the RTM).
the reasons for removing backward compatability (and a lot more discussion besides) are provided at the [relevant feedback in microsoft connect](https://connect.microsoft.com/SQLServer/feedba... | null | CC BY-SA 2.5 | null | 2008-08-07T10:52:30.757 | 2008-08-18T11:43:54.480 | 2008-08-18T11:43:54.480 | 49 | 49 | null |
4,579 | 2 | null | 1,644 | 0 | null | It's not software, but I frequently watch the [Tekzilla](http://revision3.com/tekzilla/) podcasts. Love me some Veronica Belmont / Patrick Norton!
Also, all of the others already mentioned - Stack Overflow, TWiT, etc.
| null | CC BY-SA 2.5 | null | 2008-08-07T10:55:58.613 | 2009-09-14T09:25:01.730 | 2009-09-14T09:25:01.730 | 63,550 | null | null |
4,566 | 2 | null | 3,739 | 0 | null | Other applications if run this way (i.e. from a timer job with explicit credentials) are failing the same way with "The application failed to initialize propely". I just worte a simple app which takes a path of another executable and its arguments as parameres and when run from that timer job it fails the same way.
``... | null | CC BY-SA 3.0 | null | 2008-08-07T10:25:33.090 | 2016-02-07T17:42:18.983 | 2016-02-07T17:42:18.983 | 2,921,691 | 578 | null |
4,592 | 2 | null | 4,432 | 1 | null | Just a thought, but remember to handle comma's and quotation marks (") in the field values, otherwise your CSV file may break the consumers reader.
| null | CC BY-SA 2.5 | null | 2008-08-07T11:18:09.143 | 2008-08-07T11:18:09.143 | null | null | 419 | null |
4,584 | 2 | null | 4,582 | 1 | null | If I remember correctly, this matrix allows you to save the data to a file with compression.
If you read further down, you'll find the zig-zag pattern of data to read from that final matrix. The most important data are in the top left corner, and least important in the bottom right corner. As such, if you stop writing... | null | CC BY-SA 2.5 | null | 2008-08-07T11:08:21.020 | 2008-08-07T11:08:21.020 | null | null | 267 | null |
4,586 | 2 | null | 4,541 | 1 | null | I'm not completely familiar with the implications of Step 2 in your approach above, but if you're looking for a more robust OLAP solution, it might be worth your while to check out [Mondrian, the open-source OLAP / Analysis services](http://mondrian.pentaho.org/) module of Pentaho.
| null | CC BY-SA 2.5 | null | 2008-08-07T11:10:44.963 | 2008-08-07T11:10:44.963 | null | null | 480 | null |
4,593 | 2 | null | 4,541 | 0 | null | I dont think that Mondrian is better than SSAS but I do know that its free and you independently distribute it. It uses XMLA and its cube definition XML file is almost the same as SSAS.
| null | CC BY-SA 2.5 | null | 2008-08-07T11:18:21.657 | 2008-08-07T11:18:21.657 | null | null | 617 | null |
4,589 | 2 | null | 4,227 | 8 | null | Why don't you just extend the dictionary class to add in a last key inserted property. Something like the following maybe?
```
public class ExtendedDictionary : Dictionary<string, int>
{
private int lastKeyInserted = -1;
public int LastKeyInserted
{
get { return lastKeyInserted; }
set { la... | null | CC BY-SA 3.0 | null | 2008-08-07T11:15:35.093 | 2011-08-11T12:46:41.020 | 2011-08-11T12:46:41.020 | 213,550 | 445 | null |
4,595 | 2 | null | 1,983 | 12 | null | Tuples are a quick\flexible way to create data-types.
Lists are containers for, well, lists of objects.
For example, you would use a List to store a list of student details in a class.
Each student detail in that list may be a 3-tuple containing their roll number, name and test score.
```
`[(1,'Mark',86),(2,'John',... | null | CC BY-SA 3.0 | null | 2008-08-07T11:21:56.097 | 2018-02-22T16:46:14.450 | 2018-02-22T16:46:14.450 | 305,953 | 618 | null |
4,590 | 2 | null | 4,508 | 2 | null | Calling process.Start on the [Mailto: protocol](http://msdn.microsoft.com/en-us/library/aa767737(VS.85).aspx) (as shown below) will give you basic functionality but not attachments.
```
Process.Start("mailto:name@domain.com?subject=TestCode&Body=Test Text");
```
You can do this approach with attachment paths but thi... | null | CC BY-SA 2.5 | null | 2008-08-07T11:16:11.987 | 2008-08-08T11:09:42.453 | 2008-08-08T11:09:42.453 | 33 | 33 | null |
4,600 | 2 | null | 972 | 13 | null | What you're looking for is `setattr` I believe.
Use this to set an attribute on an object.
```
>>> def printme(s): print repr(s)
>>> class A: pass
>>> setattr(A,'printme',printme)
>>> a = A()
>>> a.printme() # s becomes the implicit 'self' variable
< __ main __ . A instance at 0xABCDEFG>
```
| null | CC BY-SA 2.5 | null | 2008-08-07T11:30:16.047 | 2008-08-07T11:30:16.047 | null | null | 618 | null |
4,601 | 2 | null | 1,535 | 2 | null | You could also use a more OO approach:
- -
This has the advantage of naming each type of operation you perform and gives you a Command pattern - operations have been represented as objects.
| null | CC BY-SA 2.5 | null | 2008-08-07T11:30:38.853 | 2008-08-07T11:30:38.853 | null | null | 608 | null |
4,582 | 1 | null | null | 17 | 7,787 | I've implemented an image/video transformation technique called discrete cosine transform. This technique is used in MPEG video encoding. I based my algorithm on the ideas presented at the following URL:
[](http://vsr.informatik.tu-chemnitz.de/~jan/MPEG/HTML/mpeg_tech.html)[http://vsr.informatik.tu-chemnitz.de/~jan/... | Video Compression: What is discrete cosine transform? | CC BY-SA 2.5 | 0 | 2008-08-07T11:04:37.423 | 2016-11-01T12:06:26.600 | 2008-11-10T05:27:12.230 | 609 | 609 | [
"video",
"compression",
"dct"
] |
4,605 | 2 | null | 3,061 | 458 | null | Based on [Patrick's solution](https://stackoverflow.com/a/3071/365102), to get the module dynamically as well, import it using:
```
module = __import__('foo')
func = getattr(module, 'bar')
func()
```
| null | CC BY-SA 4.0 | null | 2008-08-07T11:35:23.323 | 2022-06-04T21:58:36.523 | 2022-06-04T21:58:36.523 | 365,102 | 618 | null |
4,577 | 2 | null | 4,168 | 67 | null | [Topological Sort](http://en.wikipedia.org/wiki/Topological_sorting) (From Wikipedia):
> In graph theory, a topological sort or
topological ordering of a directed
acyclic graph (DAG) is a linear
ordering of its nodes in which each
node comes before all nodes to which
it has outbound edges. Every DAG has
on... | null | CC BY-SA 2.5 | null | 2008-08-07T10:53:31.237 | 2011-03-17T12:34:52.320 | 2011-03-17T12:34:52.320 | 42,921 | 608 | null |
4,611 | 2 | null | 4,432 | 5 | null | Don't forget our old friend "for". It's not as nice-looking as foreach but it has the advantage of being able to start at the second element.
```
public string ReturnAsCSV(ContactList contactList)
{
if (contactList == null || contactList.Count == 0)
return string.Empty;
StringBuilder sb = new StringBu... | null | CC BY-SA 3.0 | null | 2008-08-07T12:00:51.553 | 2016-02-07T14:33:04.557 | 2016-02-07T14:33:04.557 | 2,921,691 | 615 | null |
4,612 | 1 | 29,283 | null | 20 | 3,207 | Is faster than ?
It be as it presumably bypasses the compiler front-end.
| CSharpCodeProvider Compilation Performance | CC BY-SA 2.5 | 0 | 2008-08-07T12:01:14.503 | 2016-02-07T14:29:25.583 | 2008-08-07T12:44:47.707 | 608 | 608 | [
"c#",
"performance",
"compiler-construction"
] |
4,614 | 2 | null | 4,610 | 0 | null | You need to create an extension method, which requires .NET 3.5. The method needs to be static, in a static class. The first parameter of the method needs to be prefixed with "this" in the signature.
```
public static string MyMethod(this string input)
{
// do things
}
```
You can then call it like
```
"asdfas"... | null | CC BY-SA 2.5 | null | 2008-08-07T12:03:42.563 | 2008-08-07T12:03:42.563 | null | null | 489 | null |
4,616 | 2 | null | 4,610 | 0 | null | Using the 3.5 compiler you can use an Extension Method:
```
public static void Trim(this string s)
{
// implementation
}
```
You can use this on a CLR 2.0 targeted project (3.5 compiler) by including this hack:
```
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Method | AttributeTa... | null | CC BY-SA 2.5 | null | 2008-08-07T12:04:14.560 | 2008-08-07T13:15:19.750 | 2008-08-07T13:15:19.750 | 608 | 608 | null |
4,618 | 2 | null | 3,611 | 3 | null | Try adding a path. The following code works for me:
```
<?php
if ( !empty($_FILES['file']) ) {
$from = $_FILES['file']['tmp_name'];
$to = dirname(__FILE__).'/'.$_FILES['file']['name'];
if( move_uploaded_file($from, $to) ){
echo 'Success';
} else {
echo 'Failure';
}
hea... | null | CC BY-SA 2.5 | null | 2008-08-07T12:06:45.817 | 2008-08-07T12:06:45.817 | null | null | 40 | null |
4,610 | 1 | 4,615 | null | 20 | 10,728 | How is it possible to make prototype methods in C#.Net?
In JavaScript, I can do the following to create a trim method for the string object:
```
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g,"");
}
```
How can I go about doing this in C#.Net?
| How can I create Prototype Methods (like JavaScript) in C#.Net? | CC BY-SA 3.0 | 0 | 2008-08-07T12:00:50.540 | 2014-12-16T18:35:32.947 | 2014-12-16T18:35:32.947 | 314,291 | 383 | [
"c#",
".net"
] |
4,622 | 1 | 4,626 | null | 62 | 164,152 | What is the and correct syntax for the SQL Case expression?
| SQL Case Expression Syntax? | CC BY-SA 3.0 | 0 | 2008-08-07T12:13:01.390 | 2021-06-13T20:18:21.767 | 2021-06-13T20:18:21.767 | 792,066 | 383 | [
"sql"
] |
4,617 | 1 | 4,712 | null | 14 | 1,173 | We've got two developers on the same closed (ugh, stupid gov) network, Another developer a couple minutes drive down the road, and a fourth developer half-way across the country. E-Mail, ftp, and removal media are all possible methods of transfer for the people not on the same network.
I am one of the two closed netwo... | What is a good Mercurial usage pattern for this setup? | CC BY-SA 2.5 | 0 | 2008-08-07T12:05:48.410 | 2009-05-22T21:57:29.010 | 2008-08-17T02:11:25.710 | 55 | 287 | [
"version-control",
"mercurial",
"dvcs"
] |
4,615 | 2 | null | 4,610 | 22 | null | You can't dynamically add methods to existing objects or classes in .NET, except by changing the source for that class.
You can, however, in C# 3.0, use extension methods, which like new methods, but are compile-time magic.
To do this for your code:
```
public static class StringExtensions
{
public static Strin... | null | CC BY-SA 2.5 | null | 2008-08-07T12:04:11.907 | 2008-08-07T12:04:11.907 | null | null | 267 | null |
4,623 | 2 | null | 3,147 | 4 | null | you might want to take a look at [http://www.codeplex.com/nxl](http://www.codeplex.com/nxl) and [http://www.codeplex.com/umbrella](http://www.codeplex.com/umbrella) which are both extension method libraries. I personally haven't had a look at the source code but I'm sure the guys there would be able to give you some go... | null | CC BY-SA 2.5 | null | 2008-08-07T12:14:49.093 | 2008-08-09T21:25:03.843 | 2008-08-09T21:25:03.843 | 1 | 493 | null |
4,631 | 2 | null | 4,622 | 4 | null | I dug up the Oracle page for the same and it looks like this is the same syntax, just described slightly different.
Link: [Oracle/PLSQL: Case Statement](http://www.techonthenet.com/oracle/functions/case.php)
| null | CC BY-SA 3.0 | null | 2008-08-07T12:27:02.610 | 2013-01-27T12:59:50.777 | 2013-01-27T12:59:50.777 | null | 267 | null |
4,630 | 1 | 478,658 | null | 17 | 2,722 | Example: I have two shared objects (same should apply to .dlls). The first shared object is from a third-party library, we'll call it libA.so. I have wrapped some of this with JNI and created my own library, libB.so. Now libB depends on libA.
When webstarting, both libraries are places in some webstart working area. M... | How can I Java webstart multiple, dependent, native libraries? | CC BY-SA 2.5 | null | 2008-08-07T12:26:50.707 | 2019-07-31T20:53:23.437 | 2019-07-31T20:53:23.437 | 985,906 | 287 | [
"java",
"java-native-interface",
"java-web-start"
] |
4,633 | 2 | null | 4,629 | 4 | null | You can use reflection to get the property and invoke it. Something like this:
```
object result = theObject.GetType().GetProperty("Property" + i).GetValue(theObject, null);
```
That is, assuming the object that has the property is called "theObject" :)
| null | CC BY-SA 2.5 | null | 2008-08-07T12:29:50.530 | 2008-08-07T12:29:50.530 | null | null | 489 | null |
4,627 | 1 | 4,649 | null | 13 | 1,403 | I am currently aware that ASP.NET 2.0 is out and about and that there are 3.x versions of the .Net Framework.
Is it possible to upgrade my ASP.NET web server to version 3.x of the .Net Framework?
---
I have tried this, however, when selecting which version of the .Net framwork to use in IIS (the ASP.NET Tab), onl... | Upgrade to ASP.NET 3.x | CC BY-SA 3.0 | 0 | 2008-08-07T12:21:25.070 | 2012-06-11T12:18:26.050 | 2012-06-11T12:18:26.050 | 1,288 | 383 | [
"asp.net",
".net-3.5"
] |
4,635 | 2 | null | 4,629 | 0 | null | You could do it with a prototype function:
```
void something(int i, string P1) {
something(i, P1, String.Empty);
}
void something(int i, string P1, string P2) {
something(i, P1, P2, String.Empty);
}
void something(int i, string P1, string P2, string P3) {
something(i, P1, P2, P3, String.Empty);
}
```
... | null | CC BY-SA 2.5 | null | 2008-08-07T12:30:59.763 | 2008-08-07T12:30:59.763 | null | null | 383 | null |
4,629 | 1 | 4,637 | null | 107 | 79,540 | I can do an `eval("something()");` to execute the code dynamically in JavaScript. Is there a way for me to do the same thing in C#?
An example of what I am trying to do is: I have an integer variable (say `i`) and I have multiple properties by the names: "Property1", "Property2", "Property3", etc.
Now, I want to perfo... | How can I evaluate C# code dynamically? | CC BY-SA 3.0 | 0 | 2008-08-07T12:26:46.917 | 2021-08-25T07:57:57.073 | 2018-04-10T19:39:40.300 | 1,753,960 | 384 | [
"c#",
"reflection",
"properties",
"c#-2.0"
] |
4,619 | 2 | null | 4,610 | 5 | null | It sounds like you're talking about C#'s Extension Methods. You add functionality to existing classes by inserting the "this" keyword before the first parameter. The method has to be a static method in a static class. Strings in .NET already have a "Trim" method, so I'll use another example.
```
public static class My... | null | CC BY-SA 2.5 | null | 2008-08-07T12:09:02.007 | 2008-08-07T12:13:53.587 | 2008-08-07T12:13:53.587 | 615 | 615 | null |
4,626 | 2 | null | 4,622 | 81 | null | The syntax depends on the database engine you're working with:
For SQL Server:
```
CASE case-expression
WHEN when-expression-1 THEN value-1
[ WHEN when-expression-n THEN value-n ... ]
[ ELSE else-value ]
END
```
or:
```
CASE
WHEN boolean-when-expression-1 THEN value-1
[ WHEN boolean-when-expression-... | null | CC BY-SA 3.0 | null | 2008-08-07T12:20:22.827 | 2016-02-07T14:26:21.160 | 2016-02-07T14:26:21.160 | 2,921,691 | 267 | null |
4,638 | 1 | 4,650 | null | 13 | 4,394 | How do you create your own custom moniker (or URL Protocol) on Windows systems?
Examples:
- - -
| How do you create your own moniker (URL Protocol) on Windows systems? | CC BY-SA 2.5 | 0 | 2008-08-07T12:31:42.413 | 2009-12-03T14:31:01.257 | 2009-12-03T14:31:01.257 | 307 | 307 | [
"windows",
"winapi",
"moniker"
] |
4,646 | 2 | null | 4,627 | 2 | null | Unfortunately, the statement isn't entirely true. If you install 3.5, it requires 2.0 SP1, which disrupt legacy applications that uses 2.0 and connects to Oracle database servers.
| null | CC BY-SA 2.5 | null | 2008-08-07T12:39:04.363 | 2008-08-07T12:39:04.363 | null | null | 267 | null |
4,642 | 2 | null | 4,627 | 0 | null | The version you are selecting in IIS is the version of the CLR to use. There are only two versions of the CLR. The .NET Framework 3.5 runs on CLR 2.0
| null | CC BY-SA 2.5 | null | 2008-08-07T12:35:04.670 | 2008-08-07T12:35:04.670 | null | null | 489 | null |
4,639 | 2 | null | 4,627 | 1 | null | Sure, download the 3.5 redistributable, install it on the servre, and you're good to go. .NET versions can be installed side-by-side, so it won't disrupt any "legacy" apps.
[http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en](http://www.microsoft.com/downloads/... | null | CC BY-SA 2.5 | null | 2008-08-07T12:32:22.023 | 2008-08-07T12:32:22.023 | null | null | 34 | null |
4,637 | 2 | null | 4,629 | 50 | null | This answer was written back in 2008. The landscape has changed drastically since then.
Look at the other answers on this page, especially the one detailing `Microsoft.CodeAnalysis.CSharp.Scripting`.
Rest of answer will be left as it was originally posted but is no longer accurate.
---
Unfortunately, C# isn't a dyn... | null | CC BY-SA 4.0 | null | 2008-08-07T12:31:18.530 | 2021-08-25T07:57:57.073 | 2021-08-25T07:57:57.073 | 267 | 267 | null |
4,649 | 2 | null | 4,627 | 5 | null | > if I install 3.5 and have IIS setup to use 2.0. I will be able to use 3.5 features?
Yes, that is correct. You have IIS set to 2.0 for both 2.0 and 3.5 sites, as they both run on the same CLR. 3.5 uses a different compile method than 2.0. This is declared in the web.config for the site. See [this post](http://blogs.m... | null | CC BY-SA 2.5 | null | 2008-08-07T12:41:49.897 | 2008-08-07T12:41:49.897 | null | null | 51 | null |
4,650 | 2 | null | 4,638 | 4 | null | Take a look at [Creating and Using URL Monikers](http://msdn.microsoft.com/en-us/library/aa741006(VS.85).aspx) , [About Asynchronous Pluggable Protocols](http://msdn.microsoft.com/en-us/library/aa767916(VS.85).aspx) and [Registering an Application to a URL Protocol](http://msdn.microsoft.com/en-us/library/aa767914.aspx... | null | CC BY-SA 2.5 | null | 2008-08-07T12:42:06.683 | 2008-08-07T12:49:02.910 | 2008-08-07T12:49:02.910 | 238 | 238 | null |
4,636 | 2 | null | 4,629 | 14 | null | Not really. You can use reflection to achieve what you want, but it won't be nearly as simple as in Javascript. For example, if you wanted to set the private field of an object to something, you could use this function:
```
protected static void SetField(object o, string fieldName, object value)
{
FieldInfo field =... | null | CC BY-SA 3.0 | null | 2008-08-07T12:31:07.563 | 2016-02-07T14:25:06.877 | 2016-02-07T14:25:06.877 | 2,921,691 | 34 | null |
4,634 | 2 | null | 4,622 | 19 | null | Here are the [CASE statement examples from the PostgreSQL docs](http://www.postgresql.org/docs/current/static/functions-conditional.html) (Postgres follows the SQL standard here):
```
SELECT a,
CASE WHEN a=1 THEN 'one'
WHEN a=2 THEN 'two'
ELSE 'other'
END
FROM test;
```
or
```
SELECT a,
CAS... | null | CC BY-SA 3.0 | null | 2008-08-07T12:30:18.390 | 2014-05-17T14:12:22.420 | 2014-05-17T14:12:22.420 | 619 | 619 | null |
4,663 | 2 | null | 4,617 | 0 | null | Correct. The only way anything makes it onto the closed network is via flash drive.
| null | CC BY-SA 2.5 | null | 2008-08-07T12:53:17.597 | 2008-08-07T12:53:17.597 | null | null | 287 | null |
4,597 | 2 | null | 4,347 | 43 | null | This is a rather broad question, as programming GUI applications in Windows can be done in so many ways.
There are two main parts to developing any GUI app: the and the . Considering you're interested in learning to build Windows GUI apps, the language isn't really a point of focus for you. Hence, you should pick a l... | null | CC BY-SA 2.5 | null | 2008-08-07T11:24:54.997 | 2008-08-07T11:24:54.997 | null | null | 611 | null |
4,661 | 1 | 4,777 | null | 16 | 1,913 | I have more than one OpenID as I have tried out numerous. As people take up OpenID different suppliers are going to emerge I may want to switch provinders. As all IDs are me, and all are authenticated against the same email address, shouldn't I be able to log into stack overflow with any of them and be able to hit th... | How do I use more than one OpenID? | CC BY-SA 2.5 | 0 | 2008-08-07T12:51:38.910 | 2016-02-07T14:24:47.220 | 2008-09-10T06:23:39.510 | 1 | 274 | [
"openid"
] |
4,657 | 2 | null | 4,629 | 7 | null | All of that would definitely work. Personally, for that particular problem, I would probably take a little different approach. Maybe something like this:
```
class MyClass {
public Point point1, point2, point3;
private Point[] points;
public MyClass() {
//...
this.points = new Point[] {point1, point2... | null | CC BY-SA 2.5 | null | 2008-08-07T12:47:19.887 | 2008-08-07T12:47:19.887 | null | null | 93 | null |
4,666 | 2 | null | 4,664 | 4 | null | Yes they should, only leads to confusion otherwise.
| null | CC BY-SA 2.5 | null | 2008-08-07T12:55:17.653 | 2008-08-07T13:01:19.077 | 2008-08-07T13:01:19.077 | 230 | 230 | null |
4,662 | 2 | null | 4,638 | 3 | null | Here's some old Delphi code we used as a way to get shortcuts in a web application to start a windows program locally for the user.
```
procedure InstallIntoRegistry;
var
Reg: TRegistry;
begin
Reg := TRegistry.Create;
try
Reg.RootKey := HKEY_CLASSES_ROOT;
if Reg.OpenKey('moniker', True) then
begin
... | null | CC BY-SA 2.5 | null | 2008-08-07T12:52:04.087 | 2008-08-07T12:52:04.087 | null | null | 267 | null |
4,668 | 2 | null | 4,665 | 0 | null | You should do a CRC check on each file... from the wiki:
[Cyclic redundancy check](http://en.wikipedia.org/wiki/Cyclic_redundancy_check), a type of hash function used to produce a checksum, in order to detect errors in transmission or storage.
It produces an almost unique value based on the contents of the file.
| null | CC BY-SA 2.5 | null | 2008-08-07T12:57:07.540 | 2008-08-07T12:57:07.540 | null | null | 383 | null |
4,659 | 2 | null | 4,612 | 0 | null | I've tried finding the ultimate compiler call earlier and I gave up. There's quite a number of layers of interfaces and virtual classes for my patience.
I don't think the source reader part of the compiler ends up with a DOM tree, but intuitively I would agree with you. The work necessary to transform the DOM to IL sh... | null | CC BY-SA 2.5 | null | 2008-08-07T12:48:29.557 | 2008-08-07T12:48:29.557 | null | null | 267 | null |
4,669 | 2 | null | 4,664 | 6 | null | I'd say yes.
First, it will be easier to find the actual code files by following down the namespaces (say, when somebody e-mails you a naked exception call stack). If you let your folders go out of sync with namespaces, finding files in big codebases becomes getting tiring.
Second, VS will generate new classes you cr... | null | CC BY-SA 2.5 | null | 2008-08-07T12:57:13.390 | 2008-08-07T12:57:13.390 | null | null | 227 | null |
4,665 | 1 | 4,687 | null | 7 | 796 | I was working with quality yesterday doing some formal testing. In their procedure they were verifying all files on the test machine were pulled from the release. The way they were verifying these files were the same was by checking the size and the date/time stamp windows put on them in Windows Explorer. These happ... | Verifying files for testing | CC BY-SA 3.0 | null | 2008-08-07T12:54:51.057 | 2013-11-14T22:00:56.907 | 2013-11-14T22:00:56.907 | null | 406 | [
"windows",
"testing"
] |
4,671 | 2 | null | 4,664 | 36 | null | I think the standard, within .NET, is to try to do it when possible, but not to create unnecessarily deep structures just to adhere to it as a hard rule. None of my projects follow the namespace == structure rule 100% of the time, sometimes its just cleaner/better to break out from such rules.
In Java you don't have a... | null | CC BY-SA 2.5 | null | 2008-08-07T12:58:13.997 | 2008-08-07T12:58:13.997 | null | null | 34 | null |
4,675 | 2 | null | 4,665 | 1 | null | I would do something like an md5sum hash on the files and compare that to the known hashes from the release. They will be more accurate than just date/time comparisons and should be able to be automated more.
| null | CC BY-SA 2.5 | null | 2008-08-07T12:59:49.033 | 2008-08-07T12:59:49.033 | null | null | 75 | null |
4,670 | 1 | null | null | 20 | 3,112 | So I want to get a project on a distributed version control system, such as mercurial, git, or bazaar. The catch is that I need the Windows support to be good, i.e. no instructions that start off with "install cygwin...". Now I've that git's Windows support is decent these days, but don't have any first hand experie... | DVCS Choices - What's good for Windows? | CC BY-SA 2.5 | 0 | 2008-08-07T12:57:32.377 | 2010-08-16T20:52:57.217 | 2010-08-16T20:52:57.217 | 213,269 | 634 | [
"version-control",
"dvcs"
] |
4,672 | 2 | null | 4,664 | 89 | null | Also, note that if you use the built-in templates to add classes to a folder, it will by default be put in a namespace that reflects the folder hierarchy.
The classes will be easier to find and that alone should be reasons good enough.
The rules we follow are:
- - - -
| null | CC BY-SA 2.5 | null | 2008-08-07T12:58:21.267 | 2010-08-01T19:08:06.803 | 2010-08-01T19:08:06.803 | 267 | 267 | null |
4,677 | 1 | 5,453 | null | 11 | 1,591 | The singleton pattern is a design pattern that is used to restrict instantiation of a class to one object instance. Although I know how to code the singleton pattern in C++ and Java, I was wondering if anyone know how to implement it in Ruby?
| How do I create a Class using the Singleton Design Pattern in Ruby? | CC BY-SA 2.5 | 0 | 2008-08-07T13:00:07.690 | 2012-06-13T20:06:44.430 | 2008-08-23T14:53:36.517 | 2,134 | 25 | [
"ruby",
"design-patterns",
"singleton"
] |
4,664 | 1 | 4,672 | null | 157 | 58,952 | Should the folders in a solution match the namespace?
In one of my teams projects, we have a class library that has many sub-folders in the project.
Project Name and Namespace: `MyCompany.Project.Section`.
Within this project, there are several folders that match the namespace section:
- `Vehicles``MyCompany.Projec... | Should the folders in a solution match the namespace? | CC BY-SA 3.0 | 0 | 2008-08-07T12:53:19.217 | 2018-07-15T07:00:30.890 | 2014-04-30T07:36:49.150 | 648,078 | null | [
"c#",
".net",
"namespaces"
] |