I've just found that method in xsd dataset.  [System.Diagnostics.DebuggerNonUserCodeAttribute()]         protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {             global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();             this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));             stream.Position = 0;             return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);                         }   It creates 3 streams, but not using "using" clausule/closing them. Why is that? It also says, at the top of the file, that   //     Changes to this file may cause incorrect behavior and will be lost if //     the code is regenerated.   So I believe I shouldn't fix it myself. Can anyone explain? :) Thanks
I have the following code:  MemoryStream foo(){     MemoryStream ms = new MemoryStream();     // write stuff to ms     return ms; }  void bar(){     MemoryStream ms2 = foo();     // do stuff with ms2     return; }   Is there any chance that the MemoryStream that I've allocated will somehow fail to be disposed of later?    I've got a peer review insisting that I manually close this, and I can't find the information to tell if he has a valid point or not.
Windows 8 disk usage is 100% First time player in a group figuring out things as we all go.  I just hit level four as a Ranger, and I get to improve one ability score of my choice by 2, or I can increase two ability scores of my choice by 1.  My first thought was Strength, as I've been rocking a score of 11 with a mod of +0 so far. But I read that Rangers use (wisdom mod + 10) for their spell casting modifier. Currently my wisdom is 13, with a mod of +1. If I increase either STR or WIS, will the modifier increase as well? How and why?  A Monk in our party went from 9 CON to 11 during their ability score improvement, and by doing so their modifier went from −1 to 0.  We're all pretty new, so between eight people we're currently sharing one book, and all trying to locate our own copies for later campaigns. That's making it… inefficient for us to learn these things quickly. I've seen a lot of questions like this throughout the web but they're mostly from 2 or 3 years ago, so I decided to ask to have some updated answers.   I'm 16 and I want to start publishing and using the benefits that comes with the Developer Program. In the legal agreement says that I should be over 18, and I'm not so, i can't do it. I've contacted the apple developer support and they told me that I should use a account in my father's name. We reside in Brazil. With that, I had some doubts:   Will the name on the App Store be mine or my father's? In the future, when I'm 18, this account can be transferred to my name?   Besides that, if someone has any advice or (legal) workaround I'd appreciate it, thanks Is there a way to test an application where you simulate a hundred different clients connecting to a IIS server and asking the same data? At the customer where our project is running they have 400 computers and they often do stress tests with all computers. I on the other hand have only got my laptop... (and a development server).  (In my case the data is asked through a WebORB Gateway). What is "step size" in LASSO regression? "debconf: DbDriver "config": config.dat is locked by another process: Resource temporarily unavailable" while installing packages I'm trying to install the flashybrid but when I enter the apt-get install flashybrid command, I get this error:  root@user-desktop:/home/user# apt-get install flashybrid Reading package lists... Done Building dependency tree Reading state information... Done flashybrid is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up flashybrid (0.15+nmu2) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing flashybrid (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: flashybrid E: Sub-process /usr/bin/dpkg returned an error code (1)   I also tried this one to find what is already using that file:  root@user-desktop:/home/user# lsof | grep /var/cache/debconf/config.dat lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/user/.gvfs Output information may be incomplete. dpkg-prec 4672 root 4rW REG 8,6 39658 1697827 /var/cache/debconf/config.dat   But I don't know how to fix this. Alternative of `route -n` of Linux in Mac How can I see the list of routes and its corresponding gateway in a Mac ? The command in linux is route -n .  For a particular IP address, I am able to get the routes for an particular IP address via route get 10.0.0.0. Which side of wave-particle duality to choose in a given situation How does one know whether, in treating a certain problem, one should consider particles as waves or as point-like objects? Are there certain guidelines regarding this? Getting a FILE* from a std::fstream Is there a (cross-platform) way to get a C FILE* handle from a C++ std::fstream ?  The reason I ask is because my C++ library accepts fstreams and in one particular function I'd like to use a C library that accepts a FILE*. 'Sorry' as a replacement for 'Excuse me'? Is it ok to say 'sorry' where you otherwise would use 'excuse me'?  Example: "Sorry, but could you show me the way to the next train station?" \numcases with \tag I would like to label some cases with specific tags, and was hoping for something like  \begin{numcases}{A = } \frac{r}{a} &amp; r &gt; a \tag{G} \\ \frac{a}{r} &amp; r &lt; a \tag{H} \end{numcases}   utilizing the numcasesenvironment from the cases package, and \tag from amsmath. However, the two don't seem to be compatible:     ! Package amsmath Error: \tag not allowed here.   Is there any alternatives that would do what I hope to accomplish? Is $0\,\mathrm{m}$ dimensionless? Is $0 \, \mathrm m = 0 \, \mathrm s = 0 \,\mathrm {kg} = 0$? How do we define $[0 \, \mathrm m]$?  I once was given an assignment where I was asked to deduce and write down some physical quantity. It turned out that this quantity was $0$ in one unit or another, so I decided to drop the physical units because I figured that it didn't matter anyhow.  But I got to thinking:  If $0 \, \mathrm m = 0$, then we could add units of different dimensions (an operation not normally defined) like so: $5 + 0 \,\mathrm m = 5$.   Does $[ \cdot ]$ map $0 \, \mathrm m$ to both $0$ and $L$? Is there an established regime of thinking about physical quantities as an abstract algebra? Perhaps as a vector space where formal sums such as $5 \, \mathrm m + 10 \, \mathrm s$ are allowed? Would it be improper to drop the units of measurement of $0 \,\mathrm m$ like this in an academic paper? The only things I've found so far are a cart method (which ceased working in 1.6), a dispenser method (utilizing the decay on dropped items, but this requires occasional feeding), and a binary counter (which won't work for a single input but rather a fluctuating one).  I want to have a circuit that when I apply an input signal, the output signal doesn't change for 2 to 5 minutes.  When the input turns off, I again want a 2 to 5 minute delay.  I could accomplish this with (roughly) 240 to 600 redstone repeaters, but this is far in excess of being useful.  The only method I can think of, but would require a XOR gate (on the button-input and final output) to start and stop a clock attached to a binary counter.  While I can make room for a device of this size, I was hoping for something simpler. How to write a survey paper? What's the difference between JavaScript and Java? What's the difference between JavaScript and Java? System calls supported in running Kernel Is there a way to get the number of or list of system calls supported by currently running Linux Kernel? So I want to find a way to 'read' the syscall table of a running kernel. Ability to update profile from the Stack Exchange Android App It would be nice to update the profile page from within the app.  Perhaps not many people update their profiles more frequently, but when required to do so, I would prefer to do it from the app instead of the mobile browser. Ever since mods gained the ability to undelete comments, deleting them has become easier as the confirmation dialog was removed.  However, this is not the case in the mod queue &mdash; I still get a confirmation dialog for each comment I want to delete in the queue under a custom-flagged post (single-comment flags can be deleted just fine). And since this is the place from where I delete comments the most, it can be annoying.  In addition, the "purge comments" button, when invoked from the queue, refreshes it, so I have to scroll back down, remember which post I just purged, and mark the flag as helpful. Usually not a big issue but if there are multiple "obsolete comments" flags, then it can get confusing.  Could the workflow for comment thread moderation from within the queue be improved? Ideally, make comment deletion work like everywhere else on the site, and make the purge button AJAX-based like the comment deletes. Is there any advantage in marketing my product for £99.99 instead of £100? Create a page for useful links?