Undo usermod -a -G
Ubuntu gets stuck in a login loop
QR code generation library in javascript I want to know how can I achieve this effect in LaTeX:    Basically it looks like this: {F}IRST {L}ETTER, where the letters in the braces are a little bigger than the other ones but they all the letters are uppercase.  Any suggestions? I wanna create a new partition from the existing root partition.My root partition is about 250GB.I wanna create a new partition say 150 GB taking space from this root partition.Can anyone help me with the procedure on doing this?  output: fdisk -l  karthick@karthick:~$ sudo fdisk -l [sudo] password for karthick:   Disk /dev/sda: 250.0 GB, 250000000000 bytes 255 heads, 63 sectors/track, 30394 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x28219744  Device Boot      Start         End      Blocks   Id  System /dev/sda1   *           1          61      487424   83  Linux Partition 1 does not end on cylinder boundary. /dev/sda2              61       30395   243650561    5  Extended /dev/sda5              61         124      498688   82  Linux swap / Solaris /dev/sda6             124         186      498688   82  Linux swap / Solaris /dev/sda7             186       30395   242651136   83  Linux window-switching keyboard shortcuts interfere with emacs and cannot be changed in the main keyboard system preferences Using conditional statements in ArcGIS Field Calculator? I have two fields, "P_Area" and "PC_Area", whose sizes I'd like to compare in a third field, "Areas_Equal". The "Areas_Equal" field should contain a "Yes" if the other two are equal and a "No" if they aren't.  How can I do this with Field Calculator and its Python Parser? What is the dot product and why do we need it? I understand how to calculate the dot product of the vectors. But I don't actually understand what a dot product is, and why it's needed.  Could you answer these questions? I would like to travel in the USA for a period of 3 - 6 months. But I want to spend some time working for my employer (remote work) and getting paid by the employer. Is this possible under a tourist visa (B1/B2)?  I hope this is OK since I will not be getting paid by a US employer. I am in the IT trade so all that I will be needing is my own laptop and a connection to the internet. The money I earn would actually help me pay for the expenses I get during the holiday. TV show that starts with debris encompassing Earth Problem 4.3.32 in Linear Algebra, Lay:  Let $V$ and $W$ be vector spaces, let $T:V\to W$ be a linear transformation, and let $\{\mathbf{v}_1, \dots , \mathbf{v}_p \}$ be a subset of $V$. Suppose that $T$ is a one-to-one transformation [...]. Show that if the set of images $\{T(\mathbf{v}_1), \dots ,T(\mathbf{v}_p)\}$ is linearly dependent, then $\{\mathbf{v}_1, \dots , \mathbf{v}_p \}$ is linearly dependent. This fact shows that a one-to-one linear transformation maps a linearly independent set onto a linearly independent set.  All I can think of doing: If $\{T(\mathbf{v}_1), \dots ,T(\mathbf{v}_p)\}$ is linearly dependent, then there exist weights $c_1, \dots, c_p$, not all zero, so that $$c_1 T(\mathbf{v}_1) + \cdots + c_p T(\mathbf{v}_p) = \mathbf{0}$$ Since $T$ is linear: $$c_1 T(\mathbf{v}_1) + \cdots + c_p T(\mathbf{v}_p) = T(c_1\mathbf{v}_1) + \cdots + T(c_p \mathbf{v}_p)=T(c_1 \mathbf{v}_1 +\cdots + c_p \mathbf{v}_p)=\mathbf{0}$$ So the set $\{\mathbf{v}_1, \dots , \mathbf{v}_p \}$ must be linearly dependent. Am I missing something? And why must $T$ be on-to-one for this to be true? An example showing that it is not true if $T$ is not one-to-one would be great! Should I use the past tense with did? Pdf of the square of a standard normal random variable Create unique number from 2 numbers is there some way to create unique number from 2 positive integer numbers? Result must be unique even for these pairs: 2 and 30, 1 and 15, 4 and 60. In general, if I take 2 random numbers result must be unique(or with very high probability unique)  Thanks a lot  EDIT: calculation is for computer program,so computational complexity is important If my data is overdispersed when binomial but not when Poisson does that alone mean I should use Poisson GLM? Top is Poisson, bottom is Binomial Source of variation is different people observed over a week long period. 118 people to be exact.  want to make predictions about the proportion of days/week one exercises if they wake up at a given time.  &gt; summary(FMR7)  Call: glm(formula = No.Days.Ex ~ WaketimeStand, family = poisson, data = PSD)  Deviance Residuals:       Min        1Q    Median        3Q       Max   -2.99043  -0.64677  -0.03492   0.67393   1.51943    Coefficients:               Estimate Std. Error z value Pr(&gt;|z|)     (Intercept)    1.36991    0.04689  29.218   &lt;2e-16 *** WaketimeStand -0.08309    0.04806  -1.729   0.0839 .   --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for poisson family taken to be 1)      Null deviance: 124.55  on 115  degrees of freedom Residual deviance: 121.51  on 114  degrees of freedom AIC: 479.71  Number of Fisher Scoring iterations: 4  &gt; summary(FMR6)  Call: glm(formula = cbind(No.Days.Ex, No.Days.NotEx) ~ WaketimeStand,      family = quasibinomial(link = logit), data = PSD)  Deviance Residuals:      Min       1Q   Median       3Q      Max   -3.7483  -0.9585  -0.0625   1.0428   2.9739    Coefficients:               Estimate Std. Error t value Pr(&gt;|t|)   (Intercept)     0.2595     0.1009   2.571   0.0114 * WaketimeStand  -0.1869     0.1020  -1.832   0.0695 . --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for quasibinomial family taken to be 2.015388)      Null deviance: 288.42  on 115  degrees of freedom Residual deviance: 281.57  on 114  degrees of freedom AIC: NA  Number of Fisher Scoring iterations: 4  Quite clear that there is much more overdispersion on the quasibinomial than the poisson. The response variable is no.days exercise per week and so my original thought was to analyse with binomial GLM as it is the proportion of days in a week someone exercises. However, when modelled with a Poisson GLM it is much less overdispersed. Is this a sign I am using the wrong distribution. How do I recover my accidentally lost Windows partitions after installing Ubuntu? I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them. Is there a difference between foo(void) and foo() in C++ or C? Let $R$ be a ring and let $J$ be an ideal of $R$. Assume $J$ contains   a unit of $R$. Prove $J=R$, rigorously.   Again I feel here as if the statement is intuitive so I am not able to make it rigorous. If you could show all steps in the proof that would be nice. Will metering from a DSLR apply to a film SLR? I still like to shoot with film (I use a Nikon F3) but I like the immediate feedback of digital.  I'm thinking of buying a used DSLR to help me get the framing and lighting right when I shoot static subjects.  Then I'd take the final shot with my F3. But would the metering be transferable?  If the shot looks perfect at 1/125 with f/2 on a DSLR, will the same settings work on a film camera? A thought experiment: Imagine the Sun is suddenly removed. We wouldn't notice a difference for 8 minutes, because that's how long light takes to get from the Sun's surface to Earth.   However, what about the Sun's gravitational effect? If gravity propagates at the speed of light, for 8 minutes the Earth will continue to follow an orbit around nothing. If however, gravity is due to a distortion of spacetime, this distortion will cease to exist as soon as the mass is removed, thus the Earth will leave through the orbit tangent, so we could observe the Sun's disappearance more quickly.  What is the state of the research around such a thought experiment? Can this be inferred from observation? What would be the best approach to get the recordtype id I know of two approaches to get the recordtype id of a particular record type   Use SOQL   RecordType RecType = [Select Id From RecordType  Where SobjectType = 'Account' and DeveloperName = 'Business'];    Benifit here is if the admin changes the name of the record type, the code still works as we can use developer name   Using Describe  Map&lt;String,Schema.RecordTypeInfo&gt; rtMapByName = d.getRecordTypeInfosByName(); Schema.RecordTypeInfo rtByName =  rtMapByName.get('Business');    Saves on SOQL limits but uses a describe call.  What would be your choice and why   EDIT : Usage is for setting up recordtype while inserting records in apex or trigger Could there be a bit of reputation leakage between the sites, please?