Why does inherting from object in Python, change they type of the __dict__ when not specifying a parent does not?
What is the difference between old style and new style classes in Python?
How to create a page like this? I'm a LaTeX newbie. I want to create a page layout like in the picture below on every page.  Can someone help please? Thanks. Double orthogonal complement is equal to topological closure What is the official name for the "special" ASP.NET tags like this:  &lt;%# %&gt; &lt;%= %&gt; &lt;%@ %&gt; &lt;%$ %&gt;   I can't seem to figure out the conceptual or well known name for these, so I'm having trouble searching for more info.  As a bonus, can anyone give me a quick rundown of all of the possible "special tags" and what each one of them does (or point me to a resource)? I’m having trouble finding an official clarification of this, so I’m wondering if anyone has found a ruling:  Solarians gain powers known as stellar revelations. These are either “photon” or “graviton” revelations. It is specifically mentioned they can be used out of combat, though most include improved effects or separate powers that can only be used “while attuned” - a state a Solarian enters during combat. They may be photon or graviton attuned, at the player’s choice, and are able to increase their level of attunement each round until they become fully attuned to one or the other. However, apart from the very powerful “zenith revelations”, nowhere in the rules mentions whether photon revelations may only be used while photon attuned, or graviton revelations only while graviton attuned. The revelations themselves usually say “while attuned or fully attuned” for the more powerful effects, without mentioning the mode, and there’s no general rule in the class feature that answers this question.  Is there an official ruling on whether the “only while attuned” power of a photon revelation can be used when the character is graviton attuned, or vice versa? I suspect the answer is yes but it’s hard to tell based on the core rules. I need a counsel about my websites' domain.  Let's say I have just bought two domains: xyz.com and xyzphotography.com.  As we can see, the first one is shorter but way less meaningful than the second one. The second one contains a photography keyword but it's longer.  I have only one website which is my photography portfolio. Can you advise me how to set those domains to make it all as SEO-friendly as possible? Which one should be the main one, does the rest should work on their own or have some kind of SEO-friendly redirect to the main domain? solution :-  $21= 3 \times 7$  there is only one Sylow $3$ and Sylow $7$ subgroup  so, Sylow $3$ and Sylow $7$ subgroup are normal in group $G$  so $G$ is cyclic group of order $21$.  Am I right ?  somebody told me that group of order $21$ is not cyclic.  he gave me this .  If group of order 21 is not cyclic, then can we understand it by Sylow method ? Closures in a for loop In polar coordinate how we can get $dx\;dy=r\;dr\;d\theta$?  with these parameters:    $r=\sqrt{x^2+y^2}$ $x=r\cos\theta$ $y=r\sin\theta$  Tanks. Variable number of arguments in C++? calculate slope for a road network I am working on a road network for routing operations using postgis and QGIS.    I am new to both of these tools and need to calculate the slope for each edge (by retrieving the Z value for the start and end node for the edge from a raster). Any ideas of the best approach to this?   I know postgis can dump points and get the value from a raster, but can I get the slope attribute to the edge without breaking the network topology (with edges that have corresponding start/end nodes) using this method?   thanks Equation's symbols or parameters description are shown below, however, the = and the details of parameter are not aligned.     I want to make a parameters list for a equation like this, in which symbols, = and detail information are aligned in terms of vertical position.  where    ...    P   =   notional permeability factor    N   =   number of waves    Sd  =   damage level    ...   A tabular environment will produce more spacing before and after text. So how to make the = vertical aligned?   The codes is provided:  \begin{equation} \frac{H_s}{\Delta D_{n50} } = 1.0~ P^{0.13}~ \left(\frac{S_d}{N} \right)^{0.2} \xi_m^P~ \sqrt{\cot \alpha} \end{equation} where:   $H_s$ = significant wave height, equal to the average of the highest 1/3 of the waves  $\Delta$  = relative buoyant density, equal to $\rho_r / \rho_w - 1$, where     $\rho_w$ is the water density  $D_{n50}$ = nominal  diameter defined in Equation (2)  $P$ = notional permeability factor  $S_d$ = damage level   $N$ = number of waves  $\xi_m$ = breaker parameter based on mean wave period $T_m$  $\alpha$ = slope angle Can't Remove Cortana from Windows 10 I am seeking suggestions on what may be going in with an iMac I am currently troubleshooting, as it’s displaying behaviour I do not recall seeing before.  Short story  This iMac refuses to boot up. It gets the Apple logo, gets past the progress bar, and then gets stuck on the grey screen for about two minutes before rebooting itself. However, what makes this odd is that I can:   Start the iMac in Target Disk Mode and use it to successfully boot up other Macs. In doing so everything seems to work perfectly fine. Successfully boot the iMac from an external drive and everything seems to work perfectly fine.   Long story  I was presented this iMac about 2 weeks ago as it refused to bootup. That is, it would commence booting up and cycle through the Apple logo and progress bar, but after the progress bar completed it would remain on the grey screen for a couple of minutes before rebooting itself and doing the same thing all over again.   To address this I undertook the following troubleshooting steps:   Resetting SMC - failed Resetting NVRAM - failed Starting up in Safe Mode - failed Starting up in OS X Recovery Mode – failed Starting up in OS X Recovery Mode via the internet – failed Undertook an extensive hardware test using Apple Hardware Test (AHT 3A213) - passed Started iMac in Target Disk Mode and retested hard drive using Scannerz on another iMac - passed Started iMac in Target Disk Mode and reformatted the hard drive and did a clean install of Mac OS X El Capitan 10.11.6 - successful Migrated data from a Time Machine backup - successful   After these steps I tested the iMac for four days with no issues in terms of booting up and using the computer. On the fifth day I needed to manually import seven Apple Mail mailboxes. I did these one by one and six of them imported within minutes.  The last mailbox was showing as being 270 GB in size. I knew this was inaccurate, but I decided to import the mailbox so I could do a mailbox rebuild to correct whatever corruption had taken place. This import took over 12hrs to do but seemed to work fine and Mail was displaying the emails.  I then tested the iMac on and off for another day to ensure it had no problems booting up. This was successful.  I then decided to initiate the mailbox rebuild, but as soon as I did the screen went black and stayed that way regardless of any keyboard shortcuts I tried using. I waited an hour, forced a reboot, and ever since the iMac has returned to its original behaviour of not booting up – it would get past the progress bar and stay on the grey screen for a while before rebooting itself and starting the whole vicious cycle again.  I have again retested the hard drive, processor, RAM and Video Ram by starting the iMac from an external hard drive and using a combination of the following packages:   Apple Hardware Test (AHT 3A213) Scannerz TechTool Pro Memtester (under the Homebrew subsystem)   And now I have a situation where I can boot the iMac from external hard drives, and also use it in target disk mode to boot up other Macs, but cannot use it to boot from its own internal drive.  At present I have isolated the internal hard drive and am running a scan to check for any malware.   In the meantime, I am wondering:   Has anyone come across a similar scenario and, if so, what was the cause? Assuming I find no malware, do I go through the reformat/clean install/migration process again, but this time not import the last mailbox and see whether the iMac works fine? Any other suggestions?   iMac specs are as follows:   iMac (27”, mid 2011) 3.1 GHz Intel Core i5 8 GB RAM AMD Radeon HD 6970M 1024 MB 1 TB 3.5” SATA HD Mac OS X El Capitan 10.11.6 Determine resultant velocity of an elastic particle-particle collision in 3d space So I have two particles that have collided in 3 dimensional space. I want the particles to rebound off of each other in an elastic manner. How do I determine the resultant velocity vector if I know: Both particles' initial velocity vector, their masses, and their initial position vectors relative to the origin.  I tried to follow the instructions on  but I am not sure how to make their equations work without polar coordinates / how to translate my data to polar coordinates.  Also, if you answer my question in terms of polar coordinates, can you explain which angle is theta and which is phi? Since there are 2 different conventions, I am not really sure which angle is being referred to in the explanation on the aforementioned website.  EDIT: This isn't for a class. I'm writing a physics engine for a gravity simulation I am making using Unity. I haven't taken kinematics since I was in high school, which is why I am so rusty. I am using a cloned hard drive in attempts to restore some old files.   The cloned drive has 2 users, one with an encrypted home drive, one without. Both are administrators. When I couldn't get into the main user (with the encrypted home directory), I logged in as the 2nd user and changed the password.   It seems that I somehow broke the relationship between the encryption passphrase and the user. I'm pretty sure I have the passphrase. Is there a way to get to the data? This is a generic inquiry on the common practice/standard for determining the acceptable values of RMS when georeferencing topographic maps.  Is there an absolute value?  Some literature suggests that it should be "less than or equal to 1/2 of the side of a cell which make up the total resolution of the image." '+' and 's' in permission strings If the ls -l command gives me a permission string like  rwsr-s--x   What does the 's' mean? The only sources I found mention that it can be present sometimes but do not elaborate.  What does a '+' instead of a '-' mean? I have found mentions of 'extended permission' but nothing clear. I have a bibliography in which a particular author wrote two papers in the same year. Bibtex is sorting them alphabetically by title, but I want them listed chronologically. (So in the example below 'universal grammar' should precede 'English as a formal language'.) What's the appropriate way to flip the order?  MWE:  \documentclass{article} \usepackage{natbib} \begin{document}  ... formal semantics in the  Montagovian tradition \citep{montague1970aug,montague1970befl,montague1973ptq}.   \bibliographystyle{harvard} \bibliography{test} \end{document}   This generates the text 'formal semantics in the Montagovian tradition (Montague, 1970b,a, 1973)' whereas I actually want '1970a,b,1973'.  test.bib file for MWE:  @incollection{montague1973ptq,   title={The proper treatment of quantification in ordinary {English}},   author={Montague, Richard},   booktitle={Approaches to natural language},   editor={Hintikka, K. Jaakko J. and Moravcsik, Julius M.E. and Suppes, Patrick},   pages={221--242},   year={1973},   publisher={Dordrecht} }  @article{montague1970aug,   title={Universal grammar},   author={Montague, Richard},   journal={Theoria},   volume={36},   number={3},   pages={373--398},   year={1970},   publisher={Blackwell Synergy} }  @incollection{montague1970befl,   title={English as a formal language},   author={Montague, Richard},   booktitle={Linguaggi nella Societa e nella Tecnica},   editor={Visentini, Bruno and others},   publisher={Edizioni di Comunità},   pages={189--224},   year={1970} } I am studying for an exam and I am having trouble with this practice question:  In this question, we consider finite bit strings that do not contain $00$. Examples of such bitstrings are $0101010101$ and $11110111$. For any integer $n\geq 2$, let $B_n$ be the number of bitstrings of length $n$ that do not contain $00$.   Determine $B_2$ and $B_3$. Prove that $B_n = B_{n-1} + B_{n-2}$ for each $n\geq 4$. For each $n\geq 2$, express $B_n$ in terms of a Fibonacci number.   Any help is greatly appreciated How do I get my PCs to not be a bunch of murderous cretins? Most RPGs teach you that casual violence is the best solution to all your in-game problems. This is so well established a part of the vast majority of RPGs that there are entire satire RPGs like Greg Costikyan's  and John Tynes'  dedicated to showcasing the issue. Even now that the '80's anti-RPG hysteria is past, you see more sober critiques of endemic violence in RPGs in places like . In most RPGs, PCs become inured to murder and other antisocial activities very quickly, and enter the depths of depravity that wouldn't be appropriate in the worst parts of the world. Armed robbery, mass murder, and genocide become routine parts of an adventurer's day, something only stick-in-the-mud characters with the most extremely stated ethics object to. , even though it is not properly applied to just any conflict, is a PC's friend and they generally escalate any conflict in that direction. The sophistication of the gamer mindset towards introspection on this issue can be demonstrated in that the most meaningful question usually debated about in-game violence is some variant on &quot;but should we kill the noncombatant children&quot; or &quot;can we just murder people out of hand as long as they're from a typically evil race?&quot; In the real world, we generally a priori regard anyone having to have this discussion as a monster already. (P.S. The &quot;wipe out a given evil race&quot; thing isn't the point of this question; it is only mentioned to indicate that it's only &quot;that far&quot; that usually causes ethical handwringing from players, when that is a really quite extreme case and we should be uncomfortable with casual violence a lot sooner. ) What I'd like to have is a more realistic in-game treatment of conflict.  People getting wounded and giving up, taking and ransoming of prisoners, not always escalating a fistfight to weapons, not always escalating weapon combat to killing, etc.  Heck, as I write this, I'm watching an episode of Adventure Time with my daughter and the protagonists snuck in and rescued a princess kidnapped by the Ice King and then exit right next to his sleeping form. I thought, &quot;If this were D&amp;D they'd all be carefully coordinating a coup de grace to kill him in his sleep on the grounds that he inconvenienced them.&quot;  The problem isn't limited to D&amp;D of course, sci-fi PCs are happy to neutron bomb planets for convenience too, for example. I'm not part of the &quot;D&amp;D is Satanic&quot; crowd obviously, but I frankly do have compunctions about continually playing in games where the taught behavior is uncomfortably equivalent to the worst examples of human behavior we see on the nightly news. How can I give my PCs a newfound respect for human life?