Is it possible to extend an XSD type?
XSD extend a complex type
How do I pass a function as a parameter to in elisp? I'm trying to pass one method to another in elisp, and then have that method execute it.  Here is an example:  (defun t1 ()   "t1")  (defun t2 ()   "t1")  (defun call-t (t)   ; how do I execute "t"?   (t))  ; How do I pass in method reference? (call-t 't1) Limiting number of lines in textarea I'm looking for a javascript that can limit the number of lines (by line I mean some text ended by user pressing enter on the keyboard) the user is able to enter in textarea. I've found some solutions but they simply don't work or behave really weird. The best solution would be a jquery plugin that can do the work - something like , but it should be able to limit text line count not character count. Loading a package conditionally The pronunciation of the word "a" Most times we hear that the letter A is pronounced as [ə], but sometimes I hear that it is pronounced as [eɪ] in American English. Such as the following sentence: From VOA Special English:  She says governments must make that goal of a continental free trade area a reality.  The first A is pronounced as [eɪ], the second A  is pronounced as [ə]. Why? Does it have some regularity in it? What is the difference between SAN, NAS and DAS? What is the difference between SAN, NAS and DAS? Stack Overflow reputation in CV Should I mention my Stack Overflow (and other Stack Exchange sites) reputation in my CV while applying for a post-graduate position? I was viewing some old posts on Stack Overflow (two-year-old posts) and found that due to "fast technology trend changing," some of them are no longer valid. Stack Overflow (and the Stack Exchange sites generally) should have some sort of criteria to tag questions as Obsolete, or a vote-based system to mark them as such.  I am not in favour of closing obsolete questions. How can I speed up D&D 3.5e combat? I'm looking for ways to speed up the combat in my D&amp;D 3.5 game. It seems that turns - both player and non-player - simply take too long. I have thought about giving everyone a 30 second timer, but I'm afraid that might inhibit their ability to come up with strategy and tactics. Proof of inequality using AM-GM inequality prove that $x^2 + y^2 + z^2 \ge xy + xz + yz$  I tried proving it the way I prove $x^2 + y^2 \ge 2xy$. But it just doesn't seem to work. I tried using AM-GM. Should I be using GM-HM or AM-HM? I really don't know what the problem is and I'd appreciate any help and a full proof explanation. Thanks. Ubuntu does not offers me "install alongside Windows" If you're using a quote with a period but do not want to end the sentence, do you keep the period? For example. If I want to quote a passage from a writing, that says     The cake is not a lie.   and my sentence is:     The book by author states that "The cake is not a lie." however studies show that the cake is a lie.   Is it OK to replace the period with a comma to make the sentence flow?  Relevant: Also what do you do with the capital "T" Are you allowed to lowercase it?     The book by author states "the cake is not a lie," however studies show that the cake is a lie.   I usually just work around this by switching up the structure of the sentence, but sometimes I really want to phrase something a particular way. Does a percentage quantity take singular or plural verb agreement? Does a percentage require a singular or plural verb, for example, do we say ten percent "go" or "goes"? Can you express $[0,1]$ as a countable disjoint union of closed sets, other than the trivial way of doing this? MacBook Pro 2020 Fan Issues I recently purchased a MacBook Pro 2020 13&quot; (1.4 GHz, 8GB Ram, i5). For some reason, when I open Chrome and watch Twitch my computers fans turn on and go crazy. After opening Activity Monitor, I noticed that Google Chrome Helper (Renderer) uses around 50-80% of my CPU. Also, sometimes when I run code on my MacBook Pro, the fans turn on when the program is compiling/running but slow down a few minutes after terminating the program. Also, when watching Twice on Safari, the fans don't come on. However, around 50-60% of the CPU is still being used. Should I be concerned about the CPU usage (I am nervous because I only recently purchased the laptop)? Copying prod multi-site installation to dev multi-site installation I am attempting to upgrade my Drupal 8.9.2 multi-site installation to D9. I was hoping to work this all out on a development installation, that is located in a subdirectory of my home directory on my NameCheap Shared Hosting plan. When I first installed this installation, I did so using the tarball method from years ago. I then followed the instructions given here (). I was able to get the current running prod version converted to use composer with out an issue. Before I go and start messing with the files, and attempting to upgrade to D9 through composer on a prod installation, I wanted to copy these files over to another installation where I can use it as a sandbox. To do this I:  copied the files on my server to a new directory made clone databases for the new installation truncated all the cache tables in the cloned DB changed all the database settings in the settings files to point to the cloned databases  I've done this before without any issues, and now I seem to be getting a WSOD error on all the sites running from the new installation. The error I'm getting is  PHP Fatal error:  Uncaught Error: Class 'Drupal\Core\Cache\DatabaseBackend' not found in ~/{new installation dir}/public_html/index.php:16.  If anyone has any thoughts what's going on I am all ears. Thank you in advance Cancelled UK visa on entry When would you call java's thread.run() instead of thread.start()? When would you call Java's thread.run() instead of thread.start()? A friend asked me last week how to enumerate or list all variables within a program/function/etc. for the purposes of debugging (essentially getting a snapshot of everything so you can see what variables are set to, or if they are set at all). I looked around a bit and found a relatively good way for Python:   #!/usr/bin/python                                                                                                                                                                                                                            foo1 = "Hello world" foo2 = "bar" foo3 = {"1":"a",         "2":"b"} foo4 = "1+1"  for name in dir():     myvalue = eval(name)     print name, "is", type(name), "and is equal to ", myvalue   which will output something like:   __builtins__ is &lt;type 'str'&gt; and is equal to  &lt;module '__builtin__' (built-in)&gt; __doc__ is &lt;type 'str'&gt; and is equal to  None __file__ is &lt;type 'str'&gt; and is equal to  ./foo.py __name__ is &lt;type 'str'&gt; and is equal to  __main__ foo1 is &lt;type 'str'&gt; and is equal to  Hello world foo2 is &lt;type 'str'&gt; and is equal to  bar foo3 is &lt;type 'str'&gt; and is equal to  {'1': 'a', '2': 'b'} foo4 is &lt;type 'str'&gt; and is equal to  1+1   I have so far found a partial way in PHP (courtesy of ) but it only lists all variables and their types, not the contents:   &lt;?php // create a few variables $bar = 'foo'; $foo ='bar'; // create a new array object $arrayObj = new ArrayObject(get_defined_vars()); // loop over the array object and echo variables and values for($iterator = $arrayObj-&gt;getIterator(); $iterator-&gt;valid(); $iterator-&gt;next())         {         echo $iterator-&gt;key() . ' =&gt; ' . $iterator-&gt;current() . '&lt;br /&gt;';         } ?&gt;   So I put it to you: how do you list all variables and their contents in your favorite language?    Edit by : I propose this question follows the spirit of a little "". If you do not agree, just edit and remove the tag and the link. I'm trying to work out what value resistor to use in a LED circuit. The equation I'd use to do this is:  $$ R = \frac{V_{cc} - V_f}{I_f} $$  Seems logical, and makes complete sense. The answers to the question  confirm this too.  I have the following LEDs:   \$ V_f = 3.3V \$ \$ I_{f_{typ}} = 20mA \$   Using a 5V power supply:   \$ V_{cc} = 5V \$   Plugging these into the above equation gives:  $$ \begin{eqnarray} R &amp; = &amp; \frac{V_{cc} - V_f}{I_f} \\   &amp; = &amp; \frac{5V - 3.3V}{20mA} \\   &amp; = &amp; 85\Omega \end{eqnarray} $$  All good so far.  However, if I use the calculator at , that gives me 100&Omega;. If I use the ElectroDroid app on my phone, that gives me 85&Omega;.  So, I assume that the linear1 calculator is using a different method of calculating this resistor value; is there some better way of doing this? What is the probability that a man likes pink?