Updater keeps saying Failed to download repository information Check your Internet connection. on 12.10
How can I fix a 404 Error when using a PPA or updating my package lists?
How do I show the current node title in page.html.twig OR in node.html.twig? If I want to show the current node title in page.html.twig (by default it seems to only be available in node.html.twig) I have to create a preprocess function like so:  function theme_preprocess_page(&amp;$variables, $hook) {   // Set our page title so we can access it in page.html.twig   if ($node = \Drupal::routeMatch()-&gt;getParameter('node')) {     $variables['my_node_title'] = $node-&gt;title-&gt;value;   } }   And then I have to overwrite page-title.html.twig by copying it into my current theme folder and commenting out everything.  This doesn't seem "right".  Is there a better way? Does payment in goods count as "income" for tax purposes? Can someone help me elucidate the definition of "income" from a tax perspective? More specifically, if Joe is paid for his work in avocados instead of dollars, then would Joe be exempt from paying any income tax for the year? Or would the value of avocados earned for the year be translated into dollars which would then be considered Joe's annual income? If so, what guidelines would one use to make this translation? (Make the assumption that Joe does not sell the avocados (for dollars) at a later date and either eats them or trades them for other real property)  What if he was paid in gold instead of avocados? I noticed that $f(x) = x\phi(x)$ seems to be one-to-one, where $\phi(x)$ is Euler's Phi function.  In particular, I'm writing some numerical python code and the line I have looks something like  sorted([n*phi(n) for n in range(1,1000)])   and there are no duplicates in the list.  First, is it one-to-one?  Second, if it is, is there a simple proof sketch? Lower Semicontinuity Concepts Why is $\Gamma\left(\frac{1}{2}\right)=\sqrt{\pi}$? It seems as if no one has asked this here before, unless I don't know how to search.  The Gamma function is $$ \Gamma(\alpha)=\int_0^\infty x^{\alpha-1} e^{-x}\,dx. $$ Why is $$ \Gamma\left(\frac{1}{2}\right)=\sqrt{\pi}\text{ ?} $$ (I'll post my own answer, but I know there are many ways to show this, so post your own!) My number is associated with iMessage on other phone, how to remove it? Good day everyone. For only 1 hour (!) I used my relatives iPhone with my sim card and that's it, he keeps receiving all of my iMessages. I tried checking in iTunes all devices associated with my account and his device is not listed. I tried to log in and log out to/from iMessage on his phone with his apple ID, still won't help. How can I stop this nightmare!? When I go to iMessage settings>Send &amp; Receive on his device, there is only my phone number listed, how do I remove it without smashing phone to the wall?! Thanks and have a great day  EDIT. After talking to apple support for some time, they removed my phone number from my friend's iMessage. So I guess if you are facing same problem you have to contact support. Let $f$ be a continuous function on $[0,1]$ such that $f([0,1])=[0,1]\times[0,1].$ Then show that $f$ is not one-one.  Hints will be appreciated. How to determine which form has been submited and to validate them in a servlet Suppose $Y_1, \ldots, Y_n$ is a random sample from a normal distribution with mean $\mu$ and variance $\sigma^2$. Let $S^2$ be the sample variance, which is unbiased for $\sigma^2$.  GOAL: Show that $S = \sqrt{S^2}$ is a biased estimator of $\sigma$.  I realize that $(n-1)S^2/ \sigma ^2$ is chi-square with $(n-1)$ degrees of freedom.  I am given that $$E(S) = E\left[\frac{\sigma}{\sqrt{n-1}} \left[\frac{(n-1)S^2}{\sigma^2}\right]^{1/2}\right] = \frac{\sigma}{\sqrt{n-1}} \int_0^\infty v^{1/2} \frac{1}{\Gamma[(n-1)/2] 2^{(n-1)/2}} v^{(n-1)/2} e^{-v/2} \, dv$$  Can anyone help me understand why they have $v^{1/2}$ and $v^{(n-1)/2}$ (combining them $v^{n/2}$ as I think it should be $v^{1/2}$ and $v^{\frac{(n-1)}{2}-1}$ (combining both terms give $v^{(n-2)/2}$ since the pdf for chi-square distribution is $$ f(v) = \frac{v^{(x/2)-1} e^{-v/2}}{2^{x/2}\Gamma(x/2)},$$ where $x$ is degree of freedom?  Could anyone please tell me which one is the correct answer with explanation?  Thank you To all the 'sed' doctors out there:  How can you get 'sed' to extract a regular expression it has matched in a  line?   In other words words, I want just the string corresponding to the regular  expression with all the non-matching characters from the containing line stripped away.  I tried using the back-reference feature like below  regular expression to be isolated           gets `inserted`                here                     |                v    sed -n 's/.*\( \).*/\1/p    this works for some expressions like   sed -n 's/.*\(CONFIG_[a-zA-Z0-9_]*\).*/\1/p    which neatly extracts all macro names starting with 'CONFIG_ ....' ( found in some '*.h' file ) and prints them all out line by line             CONFIG_AT91_GPIO           CONFIG_DRIVER_AT91EMAC                    .                    .              CONFIG_USB_ATMEL           CONFIG_USB_OHCI_NEW                    .                  e.t.c.    BUT the above breaks down for something like    sed -n 's/.*\([0-9][0-9]*\).*/\1/p    this always returns single digits like                    7                  9                  .                  .                    6   rather than extracting a contiguous number field such as.                 8908078               89670890                    .                  .                    .                23019                     .                e.t.c.     P.S.: I would be grateful to feedback on how this is achieved in 'sed'.        I know how to do this with 'grep' and 'awk'       I would like to find out if my - albeit limited - understanding of        'sed' has holes in it and if there is way to do this in 'sed' which I       have simply overlooked. How to make different materials for different objects? When I change one material, it changes it on another object. Why and how do I fix it? is there some link between the objects?    Here is my blender file of Iron Man's faceplate.  Here is my whole screen with the main portion of the face selected. On the right, you can see the material, and I can tell you that that is the same as the eyes part: Finding centrelines from polygons in QGIS? I was wondering if there is a way to create centre lines from polygons in QGIS? I have a polygon layer, but ideally need the centrelines as a separate file. How to ask for "Save Changes?" on Lighthing Component form when user tries to navigate away We have a Lightning Community and would like to prompt the user to "Save Changes" if they try to click one of the community's navigational components (home link, or other menu item) but they have unsaved form changes on a custom Lightning component.  Ideally, we'd have a window.confirm popup asking if they want to leave without saving their changes, and if they click Cancel, the URL navigation would be aborted.  Is this possible via custom Lighting Components and Lighting Communities, and if so, how? If not, are there any patterns to work around this? What is the difference between 'tell' and 'say' Atheros AR9485 wifi disconnects randomly Exact sequence of sheaves with non exact sequence of global sections Let $X$ be some topological space. By $\mathcal{F}_i$ we denote some sheaves of abelian groups on $X$. The sequence of sheaves and morphisms  $$\mathcal{F}_1\longrightarrow \mathcal{F}_2\longrightarrow \mathcal{F}_3\longrightarrow... $$ is said to be exact if for each $x\in X$ the corresponding sequence of stalks $$(\mathcal{F}_1)_x\longrightarrow (\mathcal{F}_2)_x\longrightarrow (\mathcal{F}_3)_x\longrightarrow... $$ is exact. However if the sequence of sheaves is exact than the sequence of global sections is not necessarily exact! (The most famous example is the sequence of sheaves $$0\longrightarrow\mathbb{Z}\hookrightarrow \mathcal{O}\stackrel{\exp}{\longrightarrow} \mathcal{O}^*\longrightarrow0$$ considered as sheaves on $\mathbb{C}-\{0\}$, where $\mathcal{O}$ is a sheaf of holomorphic functions, $\mathcal{O}^*$ is a sheaf of holomorphic functions with no zeros).  So, could you give me some easy examples of such phenomenon ? I'd like to map an int value pbs_errno declared as a global in the library libtorque.so using ctypes.  Currently I can load the library like so:  from ctypes import * libtorque = CDLL("libtorque.so")   and have successfully mapped a bunch of the functions. However, for error checking purposes many of them set the pbs_errno variable so I need access to that as well. However if I try to access it I get:  &gt;&gt;&gt; pytorque.libtorque.pbs_errno &lt;_FuncPtr object at 0x9fc690&gt;   Of course, it's not a function pointer and attempting to call it results in a seg fault.  It's declared as int pbs_errno; in the main header and extern int pbs_errno; in the API header files.  Objdump shows the symbol as:  00000000001294f8 g    DO .bss   0000000000000004  Base        pbs_errno How delete an application that is bundled with macOS? Backstory:   I am running macOS Sierra and use TextEdit a lot. The problem is that I hate the Versions save schema that causes the universal Save As shortcut of CmdShiftS to instead create a copy of the document. I also hate how Auto-Save makes permanent changes to documents I don't want to modify when I'm tentatively modifying a work-in-progress. Since the introduction of these nuisance features in Lion I have always backed up and then replaced TextEdit.app with the legacy 1.6 version from Snow Leopard.  The problem:  Today when I tried to delete TextEdit.app from my Applications folder using this Terminal command  sudo rm -rf /Applications/TextEdit.app   I got this error  rm: TextEdit.app: Operation not permitted   I was surprised to find that I can't kill it, even with sudo.  How can I actually get rid of an application that is bundled with macOS?  What I've tried so far:  I followed the instructions in , but it didn't work. I also read , which almost accomplishes the same solution by means of disabling Versions and Auto-Save, but then I don't get the benefit of legacy TextEdit's temporary backup saving feature. See the part in the answer stating "This effectively disables the old-style, pre-Lion autosaving completely".   So I think deleting the newer TextEdit v1.12 and replacing it with the legacy v1.6 is still the best option, however I can't get my system to delete it. Any help appreciated. List of chat rooms with host stackoverflow.com is not the same as the actual list of rooms on stackoverflow.com chat itself Generally chat.&lt;site&gt;.com redirects to chat.stackexchange.com/?tab=site&amp;host=&lt;site&gt;.com and go for same thing but here you can check your self:       Both are Different!  If one visits  and select site: StackOverflow, then it outputs  and they miss rooms that are only listed by .  So, why does this happen? Is this a bug?  Note: I found this while  for general chat-room at StackOverflow; see chat-discussion KernelEvents::REQUEST is not fired on cached pages