Is there an official (ie, FX Cop, Guidance on MSDN, etc) way to organize the Properties, Methods and Events in a class file?  I know this can be seen as a "preference" and I have seen it done many different ways, typically:   Constructor Properties Events Methods, in alphabetically order.   My goal is to have a well organized class file which becomes important as the size of the class file gets rather large.  (Therein is a different topic, splitting a class which is too large.)  It also becomes important when multiple developers are working together so there is an agreed upon standard.  So I am looking for something "official" I can use as a reference for this.
Is there an official C# guideline for the order of items in terms of class structure?  Does it go:   Public Fields Private Fields Properties Constructors Methods ?   I'm curious if there is a hard and fast rule about the order of items? I'm kind of all over the place. I want to stick with a particular standard so I can do it everywhere.  The real problem is my more complex properties end up looking a lot like methods and they feel out of place at the top before the constructor.  Any tips/suggestions?
How do you compute negative numbers to fractional powers? My teachers have gone over rules for dealing with fractional exponents. I was just wondering how someone would compute say: $$(-5)^{2/3}$$ I have tried a couple ways to simplify this and I am not sure if the number stays negative or turns into a positive. I know that if a negative number is raised to an odd power it is negative, but fractional powers are neither odd or even. Is there a general rule for dealing with these types of problems? $\gcd(a,b,c)=\gcd(\gcd(a,b),c)\,$ [GCD Associative Law] Can someone give me a short description and comparison of the different road cycling pedal / shoe systems? I am looking at buying a pedal/shoe system as the clips and straps I am using are hurting my feet again.  It's been a long time since I have bought a road pedal / shoe system, and I have forgotten the differences between SPDs, Look pedals and all the others.    Can someone give a short comparison of each pedal system with pros and cons of each? My usage is/will be mainly city street cycling and then road cycling (recreation, not racing).  I'd prefer if people would give the pros and cons of each and not their opinion on the "pedal system war".  :) However, "I use them because I find XYZ and it helps in ABC ways" is very useful. I've heard Google's algorithm is based on PageRank, and that it has something to do with the links to your site. Can someone explain it, and more importantly, how I can increase my site's PageRank? Image uploader shouldn't remove unused link references How can I make sharp geometric 3d models look more realistic? I'm making a scene in Blender with manufactured mechanical and electrical objects - cylinders, metal objects and so forth. I want to make these look real, be fully present with a sense of mass and substance.  3DCG has a tendency to make everything very sharply geometric, often looking mathematical and artificial. In other scenes, some organic curves, normal maps or particle systems would help make object look real. Like for example, making a simple plastic dog model look more believable, one can add more vertices for better definition, add texture layer, add fur etc.  My scene shows clean resistors, wires, metal strips and such, all sharply geometric. It's tricky to find ways to make the result less mathematical and more substantial, realistic and interesting to the eye.  What are some effective ways to add realism to these objects? 17.10 Super key to open applications I've upgraded my laptop from 17.04 to 17.10 and the super key no longer brings up the applications menu. Does anyone have any idea how I can change this?   Shortcuts menu doesn't let me change Super + A to just Super.  Edit: I'm running the standard desktop version of Ubuntu 17.10 How do I check if an element is hidden in jQuery? Can a player character use the Misty Step spell to bring another character or creature with them when they teleport? I am an Eladrin elf and have the ability to use the misty step spell to teleport with my clothing and items. However, can I grapple a party member (or NPC or other creature) and use the misty step spell to bring them with me when I teleport? Would they have to be willing? I use XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/W32TeX).  I am using the crop package to add bleed and crop marks to a document. This works fine for pages with white background, but how do I achieve this for pages which have another colour in the bakckground?  I tried the pagecolor package, and see that it somehow extends the pagecolour to around 2 to 3 mm into the bleed but not beyond. How do I make the entire bleed region of the same colour as the page?  \documentclass[12pt]{article} \usepackage[dvips=false,pdftex=false,vtex=false,paperwidth=138mm,paperheight=216mm]{geometry} \usepackage[noaxes,noinfo,cam,dvips,pdftex,center,width=168mm,height=246mm]{crop} \usepackage{xcolor} \usepackage[english]{babel} \usepackage{blindtext} \begin{document} \pagecolor{orange} \blinddocument \end{document} Is it correct to change the common structure in these phrasal verbs? I just read a book to learn English. And the topic I read is about the phrasal verbs, but a big doubt has come up to my mind.  Is it correct to change the position of the preposition (putting it with the verb instead of after the direct object)?  As in:  Common structure:   My wife backs me up over my decision to quit my job. We have to blow 50 balloons up for the party.  I need to break these shoes in before we run next week. Please help me out to get this job done.   So, would it be correct to do the following:   My wife backs up me over my decision to quit my job. We have to blow up 50 ballons for the party.  I need to break in these shoes before we run next week. Please help out me to get this job done. I am an Indian citizen residing in the United States. My wife and I are planning to travel to the UK for a week. We plan to apply for the UK standard visitor visa from the US. I was filling out the application and I have a few questions.   Travel History - The application asks for travel history to the United States, Canada, Australia and New Zealand. Considering that we're resident aliens in the United States, should we consider all the times we've traveled back to the US from India? Travel History - Should we also list out the times we've traveled to India from the US? Cost of the trip - Hypothetically if we plan to spend a total of ~4,000 USD on this trip, should I split up the cost and write down 2,000 USD on my application and 2,000 USD on my wife's application? Income - From what I've read on the forum, my wife must say that "someone else" i.e. me - is paying for her costs and mention my GWF number in the remarks on her application. Would that be sufficient considering that I'll be sending all income documents with my application? Savings - We have joint savings accounts. Should I mention the same amount on both our applications? Posting the documents - Is the up-to-date advice to send all documents in one packet? Or would sending them in separate packets at the same time be better? My thought was to annotate my wife's packet with my GWF number if we were to send them separately. Bank statements - We get e-statements. Would printing those out be enough? Automatic updates are not auto-downloading I have my Xbox One set up to automatically download and install updates, the rest of my settings are shown below:    Is there a reason my games will show an update symbol on their tile, but they still don't download the update until I start the game manually? Prove that the polynomial $(x-1)(x-2)\cdots(x-n) + 1$, $ n\ge1 $, $ n\ne4 $ is irreducible over $\mathbb Z$ I try to solve this problem. I seems to come close to the end but I can't get the conclusion. Can someone help me complete my proof. Thanks          Show that the polynomial $h(x) = (x-1)(x-2)\cdots(x-n) + 1$ is irreducible over $\mathbb Z$ for all $n\ge1$ and $ n\ne4$.      Suppose $h(x) = f(x) g(x)$, then we must have $f(i)g(i) = 1$ for all $i = 1,2,...n$. So both $f(i)$ and $g(i)$ are $1$ or $-1$. In either case, $m(x) = f(x) - g(x)$ has degree smaller than $n$ and have $n$ different roots ($1,2,...,n$). So we must have $m(x) = 0$. Then $h(x) = f(x)^{2}$. So $n$ must be even. Let $n = 2k$. Because $f(x)$ has degree $k$, there are $k$ values from $\{1,2,...,2k\}$ at which $f(x)$ is $1$ and $k$ values at which $f(x)$ is $-1$.  This is where I got stuck. Hope some one can help me solve this. Thanks. The documentation for the  function states that you pass it a number, and the positions past the decimal to round. Thus it should do this:  n = 5.59 round(n, 1) # 5.6   But, in actuality, good old floating point weirdness creeps in and you get:  5.5999999999999996   For the purposes of UI, I need to display 5.6. I poked around the Internet and found some  that this is dependent on my implementation of Python. Unfortunately, this occurs on both my Windows dev machine and each Linux server I've tried. .  Short of creating my own round library, is there any way around this? Blocking web sites with Windows Firewall Is it possible to use Windows Firewall to block specific web sites for all browsers? Book where human thoughts are affecting the universe Basically our thoughts are ruining everything. Like when humans are taught stars are giant balls of gas. To the rest of the universe they aren't but humans think it and destroy alien planets. I think they come to seal us off from the rest of the universe. I have no idea how to prove it by using only what the book has talked about so far. Can anyone help? The proof shouldn't be using set theory as set theory is only mentioned in the following chapter. The proof should only make use of the addition of natural numbers, order properties of natural numbers, the trichotomy of order for natural numbers and principle of induction.  Proposition 2.2.14 (Strong principle of induction). Let $m_0$ be a natural number, and let $P(m)$ be a property pertaining to an arbitrary natural number $m$. Suppose that for each $m ≥ m_0$, we have the following implication: if $P(m')$ is true for all natural numbers $m_0 ≤ m' &lt; m$, then $P(m)$ is also true. (In particular, this means that $P(m_0)$ is true, since in this case the hypothesis is vacuous.) Then we can conclude that $P(m)$ is true for all natural numbers $m ≥ m_0$. Exercise 2.2.5. Prove Proposition 2.2.14. (Hint: define $Q(n)$ to be the property that $P(m)$ is true for all $m_0 ≤ m &lt; n$; note that $Q(n)$ is vacuously true when $n &lt; m_0$.)  Thanks! Rings and some of their properties So I am studying for an exam and was wondering if anyone could explain some of the reasoning being the proofs of the following properties:   Let R be a ring with $a,b\in R$. Then    $a0=0a=0$  $a(-b)=(-a)b=-ab$ $(-a)(-b)=ab$   Proof 1:   $a0=a(0+0)=a0+a0$ hence $a0=0$   I don't really understand why $a0+a0$ proves that $a0=0$ Embedded quotes in arcpy.CalculateField_management expression I'm using arcpy.CalculateField_management to populate a field.  The expression:  "'https://anystate.gov/someportal/DisplayQueryResults.aspx?Prompts=Spill%20Number="!ID!"&amp;Database=OfficeDocs&amp;Query=DEP_Spill_Projects&amp;QuerySet=Portal_Queries&amp;User=Portal.DEP&amp;Password=DEPPortal1'"   will work when entered into the Calculate Field Tool.  The url is completed by pulling in values from the ID field.  However, the Python code snippet pasted into my script results in a syntax error. It's worth noting the expression is bounded by """"'....'"""" (4 double quotes outside a single quote.  I tried Midavalo's suggestion a couple of different ways. First attempt set  expression = 'https://anystate.gov/someserver/…{0}&amp;Database=OfficeDocs&amp;Query=DEP_Sp‌​ill_Projects&amp;QuerySe‌​t=Portal_Queries&amp;Use‌​r=Portal.DEP&amp;Passwor‌​d=DEPPortal1'.format‌​(!ID!)   Resulting in invalid syntax  Based on the Python link, the second try included single quotes:   'https://....'.format('!ID!')    But the result was a syntax error