I've looked and didn't quite find similar to what I'm dealing with.  Hopefully a solution, or offer for better implementation.  I have a class that may be passed with an optional parameter that is preserved to the instance created.  I then have a derived class with similar optional parameter, but in its non-parameter constructor does other preparation stuff regardless of the optional parameter.  What would be the correct way to have it call the base-class parameter constructor, yet still do the non-parameter constructor of the derived.  public class MyBaseClass {    protected object preserveParm;    protected int someValue;     public MyBaseClass()    {       someValue = 1;    }     public MyBaseClass( object SomeParm ) : this()    {       preserveParm = SomeParm;    } }  public class DerivedClass : MyBaseClass {    private int customSecondaryProp;    private DateTime when;     public DerivedClass()    {       customSecondaryProp = 10;       someValue = 5;    }     public DerivedClass( object SomeParm ) : base( SomeParm )    {       when = DateTime.Now;    } }   So, if I do a   DerivedClass test = new DerivedClass( "testing" );   I need it to hit the base class to preserve the parameter, yet ALSO hit the derived class's non-parameter to set the sample bogus values.  As it stands now, the Derived parameter method is hit, which then hits the base class's parameter constructor which calls the "this()" of the base class, and returns up the chain to the DerivedClass parameter constructor, finishes itself, but never hits the DerivedClass constructor.  Is there a way to force both the baseclass parameterless AND the DerivedClass parameterless constructor?
I have two classes, Foo and Bar, that have constructors like this:  class Foo {     Foo()     {       // do some stuff     }      Foo(int arg)     {       // do some other stuff     } }  class Bar : Foo {     Bar() : base()     {       // some third thing     } }   Now I want to introduce a constructor for Bar that takes an int, but I want the stuff that happens in Bar() to run as well as the stuff from Foo(int).  Something like this:  Bar(int arg) : Bar(), base(arg) {   // some fourth thing }   Is there any way to do this in C#?  The best I have so far is putting the work done by Bar() into a function, that also gets called by Bar(int), but this is pretty inelegant.
$f_x$ is Borel measurable and $f^y$ is continuous then $f$ is Borel measurable How do I call functions loaded from a Static Resource JavaScript file? I'd like to put some shared Javascript to Resource file to reuse it between several components. This Javascript is general purpose set of utility functions. However, functions from my resource file are not available from the Components. Static resource (named TestScript):  function helloWorld() {      return 42; }   Component:  &lt;ltng:require scripts="{!$Resource.TestScript}" &lt;ui:button label="Do job" press="{!c.doJob}"/&gt;   Controller:  doJob: function(cmp, event, helper) {      var i = helloWorld();      // failed with Uncaught ReferenceError: helloWorld is not defined }   I don't like to use  &lt;ltng:require scripts="{!$Resource.***resourceName***}" afterScriptsLoaded="{!c.afterScriptsLoaded}" /&gt;   because my static resource is a set of functions and I'd like just use them as functions later in my controllers. How can I achieve that (if possible)? If not, what's the suggested solution? I'm using a \chapterstyle{tandh} because I want my chapters numbered. In order to get a References chapter numbered as well I used the following code:  \renewcommand{\bibsection}{% \chapter{\bibname}}   That worked fine, I got my References chapter numbered!!   But now, in order to get my references in a author-year style I'm using the natbib package. Seems like the package ignores my code and the References chapter is not numbered anymore.  Can someone help me? How do I create a 50x3 cell array from a 50x3 matrix. Keep just getting a 1x1 cell array with a 50x3 submatrix? We're trying to debug some applications performing broadcast.  What is the difference between the broadcast address 255.255.255.255 and as e.g. reported by ifconfig,  Bcast:192.168.1.255 How can tangential acceleration from a radial force be explained? I would like to . Apparently this is possible as of Minecraft 1.4.2, so how do I do it? I want to attach a code file to my question, but I am not able to find a link to do it. Is attaching files possible at all? Rejecting a PhD offer after having accepted it. Advice? Unable to Telnet into port 25 on CentOS PostFix Server Can I safely uninstall games purchased from Steam? Can I uninstall purchased games from my computer and then later download them through Steam without having to re-purchase if I'd like to?   I'm running short on space on my laptop, looking to free up some space and wanted to be sure that I can safely re-download anything at a later time similar to how you can with the Xbox Live marketplace. Is there a way to access wifi in Zurich airport without a phone service? I am traveling through Zurich and have a phone without any roaming there; I'm planning on picking up a SIM once I get to my final destination. Last time I was there, I couldn't access the airport wifi because it required a code sent via SMS.    In the event I need to contact someone or coordinate about flight delays, is there some alternate way to get wifi access? How can I install Steam? How can I install and run  on Ubuntu? Why is my Wi-Fi process using 3GB of memory? I'm Australian and have obtained my Canadian working visa. However rather than flying direct to Canada I am meeting an American friend in LA and driving across the border. I have a return flight booked back to Australia from LA in March of next year too. Will the esta visa will be enough to enter the USA because I have my Canadian working visa and plan to travel there? Or will there be a problem because my return flight is booked later then the 90 days allowed on the visa. PHP function to build query string from array I'm looking for the name of the PHP function to build a query string from an array of key value pairs. Please note, I am looking for the built in PHP function to do this, not a homebrew one (that's all a google search seems to return). There is one, I just can't remember its name or find it on php.net. IIRC its name isn't that intuitive. Are punches with Gauntlets of Ogre Strength magical, improvised weapon attacks? My Gnoll Paladin just got the Gauntlets of Ogre Strength from Phandelver the other day, and it got me wondering:    Would it be possible/make sense for punches using them to count as an improvised weapon? (Since I'm not punching with empty fists, I'm wearing magical gauntlets) If so, would punches from a person using them count as magical weapon damage? I use VirtualBox on my MBP and often need to mount my USB flash drive inside the guest.  The problem I'm running into is that the host OS (OS X Mavericks) immediately mounts the USB flash drive when I insert it.  When I try to unmount it (gracefully, through Finder), OS X complains that the device is in use.  Further research into lsof reveals that Spotlight and AVG are doing their thing with the flash drive.  Rather than fiddling with individual app settings, I'd like to just modify the host OS behavior so that the USB device doesn't auto-mount.  Any suggestions? Why is there a diode connected in parallel to a relay coil? In most electrical circuits with a relay, a diode is connected in parallel to the coil of the relay. Why? Is it always a good practice? Intuition on proof of Cauchy Schwarz inequality To prove Cauchy Schwarz inequality for two vectors $x$ and $y$ we take the inner product of $w$ and $w$ where $w=y-kx$ where $k=\frac{(x,y)}{|x|^2}$ ($(x,y)$ is the inner product of $x$ and $y$) and use the fact that $(w,w) \ge0$ . I want to know the intuition behind this selection. I know that if we assume this we will be able to prove the theorem, but the intuition is not clear to me.