How to capitalize first character of each sentence in rails model
Ruby -- capitalize first letter of every sentence in a paragraph
My thinking:    acceleration corresponds to a force which is instantaneous, so the acceleration of a rigid body can be rather spiky (non-smooth) velocity (angular velocity) describes the ratio of change of the distance(angle), so it is smooth in the real world.   Conclusion, it makes sense to  (e.g., simple averaging) a velocity signal (temporal velocity), but it does not make so much sense to do smoothing on acceleration signal. Am I right? For example, in the past, links to www.example.com wouldn't have meant Google would pass any value to say, forum.example.com. What is the current status of this? (Please provide a reference if possible). I'm trying to create a join/relate in QGIS where I have a shapefile of buildings and to that I would like to join a non-spatial table (.csv-file) containing people who work in each building. So I have multiple records in my table that I would like to be able to join to my single features in my shapefile. I can only run a join in QGIS where the first record is joined to the shapefile feature (ie building) but subsequent records get removed. Could someone let me know how to complete this join/relate in QGIS? Testing convergence of series $\sum_{n=3}^\infty\frac{1}{n (\ln(n))^p(\ln\ln(n))^q}$ Lets have this problem. $$\sum_{n=3}^\infty\frac{1}{n (\ln(n))^p(\ln\ln(n))^q}$$ I have rewritten this to a form $$\sum\frac{1}{np'^{\ln\ln(n)}q'^{\ln\ln\ln(n)}}$$ For $p,q\in\mathbb{R}$. Obviously, $p',q'&gt;0, p=\ln(p'),q=\ln(q')$ how can I add an overlapped anchor in both overlapped paths automatically states:  Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants.  However if the class/method/function that I am importing is only used in rare cases, surely it is more efficient to do the import when it is needed? Isn't this: class SomeClass(object):      def not_often_called(self)         from datetime import datetime         self.datetime = datetime.now()  more efficient than this? from datetime import datetime  class SomeClass(object):      def not_often_called(self)         self.datetime = datetime.now() How to configure Ubuntu as an LDAP client? How to configure Ubuntu 12.04 as LDAP client with PAM modules? I am trying to install Ubuntu 12.10 for quite some time, and passing hurdles one by one. Now I am in a situation as follows.  I have got a PC and 10 GB HDD which will be totally dedicated to Ubuntu so no option of Wubi and dual boot.  I was trying to install from DVD, but it is getting stuck at "Out of frequency" error. So I had to adapt for USB boot option. But my PC is USB non bootable, so workaround is "Plop Boot Manager". So I am doing the installation procedure as follows:   starting  from a CD drive which is having plop installed. opting for for USB boot in plop options. booting begins from USB. monitor eventually gives "out of frequency" error press Shift+Alt+F1 to get the terminal. open the grub with sudo nano /etc/default/grub. do necessary changes. sudo update-grub.   Now here I am getting error as follows:   /usr/sbin/grub-probe:error:failed to get canonical path of /cow.     My system is   P4 3.06 GHz, 1 GB ram , 10 GB HDD without an OS, monitor CRT lg StudioWorks (7 years old). Mobo Mercury P4 266a NDMx (865 equivalent). The whole system is perfectly in working condition under XP, but it is USB non bootable, and all other devices working perfectly.  What should I do next? How do I prevent directories mounted with 'bind' from appearing on 'Devices' on nautilus? I have these lines in the fstab   # binds /media/DataNtfs/Music           /home/can/Music                  none    rw,bind  /media/DataNtfs/Pictures        /home/can/Pictures               none    rw,bind  /media/DataNtfs/Downloads       /home/can/Downloads              none    rw,bind  /media/DataNtfs/Documents       /home/can/Documents              none    rw,bind  /media/DataNtfs/Backups         /home/can/Backups                none    rw,bind  /media/DataNtfs/Notes           /home/can/Notes                  none    rw,bind  /media/DataNtfs/Other           /home/can/Other                  none    rw,bind  /media/DataNtfs/Packages        /home/can/Packages               none    rw,bind  /media/DataNtfs/Photos          /home/can/Photos                 none    rw,bind  /media/DataNtfs/Videos          /home/can/Videos                 none    rw,bind  /media/DataNtfs/WorkSpace       /home/can/WorkSpace              none    rw,bind I'm somewhat new to using logistic regression, and a bit confused by a discrepancy between  my interpretations of the following values which I thought would be the same:    exponentiated beta values  predicted probability of the outcome using beta values.    Here is a simplified version of the model I am using, where undernutrition and insurance are both binary, and wealth is continuous:  Under.Nutrition ~ insurance + wealth   My (actual) model returns an exponentiated beta value of .8 for insurance, which I would interpret as:     "The probability of being undernourished for an insured individual is .8 times the probability of being undernourished for an uninsured individual."   However, when I calculate the difference in probabilities for individuals by putting in values of 0 and 1 into the insurance variable and the mean value for wealth, the difference in undernutrition is only .04. That is calculated as follows:   Probability Undernourished = exp(β0 + β1*Insurance + β2*Wealth) /                              (1+exp(β0 + β1*Insurance + β2*wealth))   I would really appreciate it if someone could explain why these values are different, and what a better interpretation (particularly for the second value) might be.     Further Clarification Edits As I understand it, the probability of being under-nourished for an uninsured person (where B1 corresponds to insurance) is:  Prob(Unins) = exp(β0 + β1*0 + β2*Wealth) /               (1+exp(β0 + β1*0+ β2*wealth))   While the Probability of being under-nourished for an insured person is:  Prob(Ins)= exp(β0 + β1*1 + β2*Wealth) /            (1+exp(β0 + β1*1+ β2*wealth))   The odds of being undernourished for an uninsured person compared to an insured person is:  exp(B1)   Is there a way to translate between these values (mathematically)? I'm still a bit confused by this equation (where I should probably be a different value on the RHS):  Prob(Ins) - Prob(Unins) != exp(B)   In layman's terms, the question is why doesn't insuring an individual change their probability of being under-nourished as much as the odds ratio indicates it does?  In my data, Prob(Ins) - Prob(Unins) = .04, where the exponentiated beta value is .8 (so why is the difference not .2?) I am trying to build a custom Adventure Island. At this moment I am trying to limit the allowed items on this island. I'm trying to do this by filtering on a certain enchantment which is not item-specific.  For example.   When you want to filter an wooden sword with a custom name, you use this command:  /testfor @p[r=5] {Inventory:[{tag:{display:{Name:"Custom Sword"}}}]} &lt;   When you want to filter a wooden sword with a custom name and specific enchantement, you can use:  /testfor @p[r=5] {Inventory:[{tag:{display:{Name:"Custom Sword"},ench:[{id:16,lvl:1}]}}]} &lt;   But how can I filter on items with a specific enchantment on ANY item? I tried:  /testfor @p[r=5] {Inventory:[{tag:{ench:[{id:16,lvl:1}]}}]} &lt;   But this ain't work. Does anyone know how to solve this issue? $\mathbb{Q}^{\times}$ is the group of rational number without $0$ under multiplication, and $\mathbb{Z}^{n}$ is the free abelian group of rank $n$. Show that $\mathbb{Q}^{\times}$ not isomorphic to $\mathbb{Z}^{n}$. I tried to assume that there is an isomorphism and to get a contradiction.. didn't succeed Reading shapefile using C#? I am new to ArcGIS and trying a few things..   I'm trying to read shapefile (which is supplied as an input) using C# and I want to generate a PDF file which contains underlying metadata information (similar to the Identify tool) ? What is the command that lets me see what and where devices are mounted?  I'm having trouble changing songs on my old iPod, and I have a feeling it's because of the mount point. Why is the Ideal Norm Multiplicative? Give $a, b. c$ be the lengths of a triangle and $a+ b+ c= 3$. Prove that: $$\frac{a}{b}+ \frac{b}{c}+ \frac{c}{a}\geq  \frac{1}{a}+ \frac{1}{b}+ \frac{1}{c}$$ My try  We have England MO inequality: $$\left ( \frac{a}{b}+ \frac{b}{c}+ \frac{c}{a} \right )^{2}\geq  \left ( a+ b+ c \right )\left ( \frac{1}{a}+ \frac{1}{b}+ \frac{1}{c} \right )$$  and $$\frac{a}{b}+ \frac{b}{c}+ \frac{c}{a} \geq  3=  a+ b+ c$$  But it cannot be used to prove the above inequality and how to use triangle inequality in this inequality. I need the help. Thanks! How to declare a variable inside bash -c I can't figure out how to declare a variable inside bash -c command.   bash -c "var=3; echo $var" GRUB does not detect Windows Is there a difference in disenchanting strong items vs. weak ones? Possible Duplicate:           states that the strength of the enchantment doesn't matter when disenchanting items to learn new enchantments.  Am I reading that right? If I have novice robes with 50% faster regen and disenchant it and my enchantment skill is at 5/5, when I enchant that item will it be the same result as disenchanting master robes with 150% faster regen? Because if you do the math, 5/5 enchanting will give you 100% better enchantment.   Therefore wouldn't it be better to disenchant more powerful items than weaker ones? An idempotent operator is compact if and only if it is of finite rank