Abort trap: 6 error when working with array in C
How do I determine the size of my array in C?
Xubuntu or Lubuntu on a Mac mini? My Mac mini doesn't have sufficient hardware for Ubuntu 11.04 (specifically Unity I think), and so I have to use the classic environment, which is fine, but it seems to run slower on 11.04 (I'm upgrading now to 11.10).  However, I heard  that if it runs slow I should use Xubuntu or Lubuntu.   So my question is:    What is the best way to upgrade from Ubuntu 11.10 to Xubuntu or Lubuntu and which one would be better for a late 2005 model Mac Mini PPC? Is the consciousness currently in oneself the same the the consciousness that used to be or in the future will be in oneself? People seem to believe that one's consciousness is a "different" consciousness than that of others, but the "same" consciousness as the one that has been in one's body in the past and the one that will be in one's body in the future. How likely is this to be true and why?   Also, I have almost no knowledge about neuroscience, so please refrain from using neuroscience jargon if feasible. Differentiation - simple case If a lightning-radio-group has two options, and a user selects one, I want to programmatically have the UI changed back to the other one.  Link to a . (code copied below)  import { LightningElement, track } from 'lwc';  export default class RadioGroupRequired extends LightningElement {     @track value = 'option1';      get options() {         return [             { label: 'Option one', value: 'option1' },             { label: 'Option two', value: 'option2' },         ];     }      handleOnChange(evt) {         this.value = 'option1';         // how to make the UI select Option one?     } }   And the html:  &lt;template&gt;     &lt;lightning-radio-group name="radioGroup"                            label="Radio Group"                            options={options}                            value={value}                            required                            type="button"                            onchange={handleOnChange}&gt;&lt;/lightning-radio-group&gt;                             value={value} &lt;/template&gt;     I think that there is no rerendering because the bind variable, {value} doesn't actually change. However, the selected state of the lightning-radio-group does, and I want to be able to change it back. How can that be achieved?   I did not notice any methods or attributes that would seem to do the trick in the . How can I get id,class or name attr an element with jquery Showing 2 Distributions are the Same Let $X_1, X_2, \dots$ be i.i.d. exponentially distributed RVs. For $n = 1,2,\dots$ consider: $Y_n := \max(X_1, X_2, \dots, X_n)$ $U_n := \sum_{i=1}^{n}\frac{X_i}{i}$ Show that $Y_n$ and $U_n$ have the same distribution   What I've tried: $P(Y_n&lt;y)= P(X_i&lt;y)^n = (1- e^{\lambda y})^n =&gt; P(Y_n=y) = n(1- e^{\lambda y})^{n-1}$ But I get stuck with $U_n$. I tried an MGF, $U_n$ evaluates nicely but then $Y_n$ gets messy. Any thoughts? I've seen in every introductory material on LaTeX and in a lot of code of other people (event experts) that the \newcommand command is used by wrapping the first argument in braces, even if it seems unnecessary to me.   The braces are consistent with the usual way arguments are passed to LaTeX commands (since usually the braces are used even if the argument is made of a single token, for consistency and clarity), but in this single case they appear very ugly to me and in my opinion they lower readability.  But these are opinions, while the question is technical: is there any technical reason why one should write this:  \newcommand{\mycmd}[1]{Hello #1}   instead of this:  \newcommand\mycmd[1]{Hello #1} Maintain the aspect ratio of a div with CSS Norman Window Optimization If $A$ is an $m \times n$ and $B$ is an $n \times m$ matrix with $n &lt; m$ then prove that $C = AB$ is not invertible.  I am not getting any idea. May be I am missing vary basic point. $C = AB$ where both $A$ and $B$ are square matrices  will be invertible iff both $A$ and $B$ be invertible. I know it and its proof.  May be this question has been discussed earlier, but I am not seeing the link. Thank you for your help. Transfering money from NRE to saving account is taxable or not I see a lot of example code for C# classes that does this:  public class Point {     public int x { get; set; }     public int y { get; set; } }   Or, in older code, the same with an explicit private backing value and without the new auto-implemented properties:  public class Point {     private int _x;     private int _y;      public int x {         get { return _x; }         set { _x = value; }     }      public int y {         get { return _y; }         set { _y = value; }     } }   My question is why. Is there any functional difference between doing the above and just making these members public fields, like below?  public class Point {     public int x;     public int y; }   To be clear, I understand the value of getters and setters when you need to do some translation of the underlying data. But in cases where you're just passing the values through, it seems needlessly verbose. Existence of area-preserving diffeomorphism between two sets in $\mathbb{R}^2$ Suppose that we have open sets $A, B\subset \mathbb{R}^2$ such that $A$ and $B$ are simply connected and have smooth boundaries. Furthermore, let us assume that $m(A) = m(B) &gt; 0$, where $m$ is the Lebesgue measure on $\mathbb{R}^2$. My question is as follows: when does there exist an area-preserving diffeomorphism between $A$ and $B$? In this context, an area-preserving diffeomorphism between $A$ and $B$ is a is a $C^{\infty}$-diffeomorphism $\phi : A\to B$ such that $m(S) = m(\phi(S))$ for all measurable $S\subseteq A$. If an area-preserving diffeomorphism doesn't always exist between sets $A$ and $B$ as above, are there any extra conditions we can impose on $A$ and $B$ such that there does exist an area-preserving diffeomorphism?  My thoughts thus far are that we always have a $C^{\infty}$-diffeomorphism between $A$ and $B$: this is a consequence of the . It's also obvious to me that if we can deform $A$ linearly to get $B$, then that deformation will be area-preserving. Furthermore, it seems that aside from this case, there's no reason why an area-preserving diffeomorphism should exist. However, I'm having a hard time proving that there necessarily isn't an area-preserving diffeomorphism between $A$ and $B$ if $B$ is not a linear deformation of $A$. Does anybody have any ideas? What are the uses of Unicorns? What different uses does the unicorn have?  Other than the delicious taste of them coming off the grill.   At Wit's End #221 Unicode identifiers in Python? Set myself as owner of /etc with chown command now getting all kinds of errors I needed to edit a .config file (which I know for a fact is not creating these problems, just to clear that up) and it wouldn't let me save it, so I took ownership of /etc and all contents with the command chown -hR username /etc and that let me edit the .config file but now whenever I try to install any packages or use any sudo commands, it doesn't work  (I've checked for errors in the sudo file in sudoers.d and there was nothing wrong with that).   So how do I return it to the previous owner? Adding more than 15 digits in Excel I want to add more than 20 digits in an Excel cell.  The current format of the cell is general, it converts the number to an exponential format. I tried with a number format and accounting, but when I enter more than 15 digits it gets converted to 0's.  What are the recommended steps for stopping Excel from converting data to exponential Format for 20 digits when in the general format?     Example: 12345678901234567890   Excel converts it to 1.23457E+19 in general format.  Without using ' before the value, is there any other way to keep value same? Show that $n$ lines separate the plane into  $\frac{n^2+n+2}{2}$ regions if no two of these lines are parallel and no three pass through a common point.   I know we start with the base case, where, if we call the above equation P(n), P(0), for 0 lines would be 0.  But I really have no idea how to begin the inductive step.  How do we know what k+1 we're supposed to arrive at?  Thanks! How do I install Guest Additions in a VirtualBox VM? I've recently installed Ubuntu on Oracle's Virtualbox.  Now I want to install the guest additions.  I started up my Ubuntu guest OS, clicked "Devices" and chose "Install Guest Additions". Nothing happened, and I don't see the CD icon on my desktop.  How can I make this work? Suppose there are two users that have commented on an answer. Both have the same user name, and I want to reply to one of them. How can I do this?  It appears that, under the current system, there is no way for me to do this. Specifically, from , I see that:     4. Matching is performed in reverse chronological order, so if five people named John are participating, @john will match the most recent John   So, consider this a request to add this feature using an -n suffix or something similar; e.g. @john-2 could be used to reply to the second John from the top.  Update Thanks to  for nice answer of @name(userid) based auto-complete suggestion which has no loophole. It involves no counting from top &amp; has no consequences when a comment is deleted. But, I think @name(userid) should be used directly in comment as all form inputs at SE are text (nothing embedded).  Now, I'm trying to finalize it based on it: The system should allow optional @name(userid) format for reply. Provided userid with this format, system should ignore name. And, in the situation of duplicate name based confusion, system should demand this format as mandatory to submit comment.  How to get userid? In case of duplicate name based confusion, system should append (userid) in hypertext to their profile. It'd work for mobile version too. On full version, for easy fill-up, a hover reply icon would be fine (like hover vote up icon). Upon clicking it, system should fill @name(userid) in comment text box.  From reply reader side: Multiple Johns could be confused even if they didn't come from notification (because nobody remembers his/her own userid). So, highlight the background of comments which are replied to them.