Latest recipes tagged "resolution"http://code.activestate.com/recipes/tags/resolution/new/2012-12-12T12:40:24-08:00ActiveState Code RecipesDetect screen resolution without wmi (part 2) (Batch) 2012-12-12T12:40:24-08:00greg zakharovhttp://code.activestate.com/recipes/users/4184115/http://code.activestate.com/recipes/578377-detect-screen-resolution-without-wmi-part-2/ <p style="color: grey"> Batch recipe 578377 by <a href="/recipes/users/4184115/">greg zakharov</a> (<a href="/recipes/tags/resolution/">resolution</a>, <a href="/recipes/tags/screen/">screen</a>). </p> <p>In previous time I wrote how to do it with <a href="http://code.activestate.com/recipes/578345-detect-screen-resolution-without-wmi/?in=user-4184115">mshta.exe</a>. Good, now I want to show you how to do it with COM-object <strong>htmlfile</strong>. It looks like similar way with mshta.exe:</p> Detect screen resolution without wmi (Batch) 2012-11-21T11:02:51-08:00greg zakharovhttp://code.activestate.com/recipes/users/4184115/http://code.activestate.com/recipes/578345-detect-screen-resolution-without-wmi/ <p style="color: grey"> Batch recipe 578345 by <a href="/recipes/users/4184115/">greg zakharov</a> (<a href="/recipes/tags/mshta/">mshta</a>, <a href="/recipes/tags/resolution/">resolution</a>, <a href="/recipes/tags/screen/">screen</a>). </p> <p>Maybe you know what it's possible to invoke mshta.exe inside batch with some specific parameters. So, it helps to access for <strong>screen</strong> which keeps data about screen resolution.</p> Calculate the MRO of a class (Python) 2011-06-11T08:31:09-07:00Steven D'Apranohttp://code.activestate.com/recipes/users/4172944/http://code.activestate.com/recipes/577748-calculate-the-mro-of-a-class/ <p style="color: grey"> Python recipe 577748 by <a href="/recipes/users/4172944/">Steven D'Aprano</a> (<a href="/recipes/tags/c3/">c3</a>, <a href="/recipes/tags/classes/">classes</a>, <a href="/recipes/tags/method/">method</a>, <a href="/recipes/tags/mro/">mro</a>, <a href="/recipes/tags/order/">order</a>, <a href="/recipes/tags/resolution/">resolution</a>). </p> <p>This function allows you to calculate the Method Resolution Order (MRO, or sometimes linearization) of a class or base classes. This is the so-called "C3" algorithm, as used by Python (new-style classes, from version 2.3 and higher). The MRO is the order of base classes that Python uses to search for methods and attributes. For single inheritance, the MRO is obvious and straight-forward and not very exciting, but for multiple inheritance it's not always obvious what the MRO should be.</p>