Java regex for consecutive exponential terms
My regex is matching too much. How do I make it stop?
Why don't Lightroom or PSE recognize CR2 files from my Canon 7D mk II even though they are up to date? Explain $\iint \mathrm dx\,\mathrm dy = \iint r \,\mathrm \,d\alpha\,\mathrm dr$ I'm writing code to do Xml serialization. With below function.  public static string SerializeToXml(object obj) {     XmlSerializer serializer = new XmlSerializer(obj.GetType());     using (StringWriter writer = new StringWriter())     {         serializer.Serialize(writer, obj);         return writer.ToString();     } }   If the argument is a instance of class without parameterless constructor, it will throw a exception.     Unhandled Exception:   System.InvalidOperationException:   CSharpConsole.Foo cannot be serialized   because it does not have a   parameterless constructor.    at   System.Xml.Serialization.TypeDesc.CheckSupported()   at   System.Xml.Serialization.TypeScope.GetTypeDesc(Type   type, MemberInfo sourc e, Boolean   directReference, Boolean throwOnError)   at   System.Xml.Serialization.ModelScope.GetTypeModel(Type   type, Boolean direct Reference)    at   System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type   type , XmlRootAttribute root, String   defaultNamespace)    at   System.Xml.Serialization.XmlSerializer..ctor(Type   type, String defaultName space)    at   System.Xml.Serialization.XmlSerializer..ctor(Type   type)   Why must there be a parameterless constructor in order to allow xml serialization to succeed?  EDIT: thanks for cfeduke's answer. The parameterless constructor can be private or internal. How to properly secure a wireless home network I'm soon going to be setting up a wireless network for me and some buddies and (hopefully) making it secure. I have some questions and concerns regarding this and figured someone here could give me a hand and steer me in the right direction.   I have a WRT55AG (version 2) loaded with the factory firmware. I've heard that it's possible to load your own firmware onto routers like these. Is it worth it? What can be achieved with it? I was wondering what kind of security I should use on my wireless. Ideally I would want all devices to be 'accepted', but I'm not sure how to accomplish this. I'm guessing it has something to do with MAC addresses, but I don't know the first thing about them. It would be great that ALONG WITH encryption (I'm told WPA2 is the best), every device would need to be added to a list of some sort before even being able to access the AP. Another feature I was thinking of would be completely hiding my wireless from showing up on other people's computer. Is this possible (like an SSID broadcast thing). Is it worth the trouble? One more option I was looking to implement would be bandwidth calculators. Ideally something in the router to measure the amount of bandwidth being used and how much has been used for that month (this has to do with bills and limits, obviously). Is it possible to throttle down speed when a certain limit is reached?   These are alot of points but I was hoping someone who has more knowledge than me in this subject could give me a hand and a few pointers. Hopefully all this is possible and I'm not dreaming :) Possible Duplicate:          How do you convert a C++ string to an int?  Assume you are expecting the string to have actual numbers in it ("1", "345", "38944", for example).  Also, let's assume you don't have boost, and you really want to do it the C++ way, not the crufty old C way. I started using Sublime Text 2 a week or so ago and I loved it so much I've spent $60 on it and now want to use it for everything.  Gedit currently has ownership of most of the text file associations. I'd essentially like to replace any association to gedit with sublime-text-2.  Any tips available on bulk association changing? Desktop-neutral methods are preferred. Downgrading MacBook Pro 16” to Mojave Did anyone succeed in installing Mojave on the MacBook Pro 16”? It ships with Catalina but my corporate requires Mojave to connect to the corporate network.  I  but once I select booting from the Mojave external drive I get a “forbidden” icon and the system shuts down. How to get the full executable name of a running process in Linux executing Python script in PHP and exchanging data between the two How can I change the field names (not the alias) in ArcGIS 10.2? I already found this page on ArcGIS support: &quot;&quot; but there is is not &quot;Defense Mapping&quot; on Customized Mode Categories In my ArcCatalog! Without access to Defense Mapping, how can I change the field names? How do I sort a two-dimensional (rectangular) array in C#? I have a two-dimensional array (of Strings) which make up my data table (of rows and columns).  I want to sort this array by any column.  I tried to find an algorithm for doing this in C#, but have not been successful.  Any help is appreciated. What is the best option for South America Brazil to configure: provider.get_backend (''), because melbourne_16 is very slow. Beamer continue block in next column Why does work depend on distance? So the formula for work is$$ \left[\text{work}\right] ~=~ \left[\text{force}\right]  \, \times \, \left[\text{distance}\right] \,. $$  I'm trying to get an understanding of how this represents energy.  If I'm in a vacuum, and I push a block with a force of $1 \, \mathrm{N},$ it will move forwards infinitely. So as long as I wait long enough, the distance will keep increasing. This seems to imply that the longer I wait, the more work (energy) has been applied to the block.  I must be missing something, but I can't really pinpoint what it is.  It only really seems to make sense when I think of the opposite scenario: when slowing down a block that is (initially) going at a constant speed. Let $S = \bigoplus_{n\ge 0} S_n$ be a graded commutative ring. Let $f$ be a homogeneous element of $S$ of degree $&gt; 0$. Let $S_{(f)}$ be the degree $0$ part of the graded ring $S_f$, where $S_f$ is the localization with respect to the multiplicative set $\{1, f, f^2,\dots\}$. Suppose $S$ is finitely generated algebra over $S_0$. Then $S_{(f)}$ is a finitely generated algebra over $S_0$. Duplicate auxiliary verbs in a sentence (may we / should we delete the second?) How can I prove $\sqrt{2} ^{\sqrt{2}}$ is irrational? Why is the gate charge curve (Miller plateau) of MOSFETs dependent on Vds? Using sed with an integer variable I want to sed using a variable.  For example, sed -n '1,10p' file. So, instead of 10, I want to use $k where k is an integer. I would like to treat a user as a non-gender noun and refer to it with the gender-neutral pronoun, it. E.g.,     The user defines two variables, x and y. It then multiplies each variable by a prime number.    However, on  I found this:      The word "it", however, has an extremely impersonal connotation, even offensive, in common usage and is rarely used in English to refer to an unspecified human being or person of unknown gender. This is because the word "it" connotes that the person being specified is inferior to a person or is an object.   Is to appropriate to refer to a person of unknown sex as it?  Should I rephrase my sentence as follows:     The user defines two variables, x and y. The user then multiplies each variable by a prime number.