How to sync the android calendar based on app
data & synchronization - manually sync mail. calender and contacts
Here is the top output which I gathered:    I noticed that top is showing vlc's cpu usage is > 100%.  Can anybody please justify me why it is showing like this, whether this is a bug in top application or something else. Cryptoclass Throws Error. Invalid private key. Must be 16 bytes. Sending 16 characters long key key__c :- abcdefghijklmnop  public static String decrypt(String data) {     EncryptionSettings__c settings = EncryptionSettings__c.getOrgDefaults();     if (settings.key__c == null) {         throw new FacebookException('Cannot decrypt without a key!');     }     Blob key = EncodingUtil.base64Decode(settings.key__c);     return Crypto.decryptWithManagedIV('AES128', key, EncodingUtil.base64Decode(data)).toString(); }  public static String encrypt(String data) {         EncryptionSettings__c settings = EncryptionSettings__c.getOrgDefaults();     Blob key = null;     if (settings.key__c == null) {         checkUserCanCustomizeApplication();         key = Crypto.generateAesKey(128);         settings.key__c = EncodingUtil.base64Encode(key);         insert settings;     } else {         key = EncodingUtil.base64Decode(settings.key__c);     }     return EncodingUtil.base64Encode(Crypto.encryptWithManagedIV('AES128', key, Blob.valueOf(data))); } Extracting numbers from vectors of strings Is it possible to dual boot two OS's at the same time? Is it possible to dual boot two OS's at the same time?  For example: I'm currently dual booting Ubuntu 11.04 and Windows 7. Ubuntu is running on a single 500gb HDD, Windows 7 is running on 1TB RAID 1 mirror. To switch between the two OS's, a reboot is required. Is it possible to switch between the two OS's without a reboot?  NOTE: I'm fully aware of the capabilities of VirtualBox and VMWare Player - I use both. Please don't answer "Use Virtualization!"  EDIT: If this is not possible can you share why it's not possible? To me, it doesn't seem like it would be that difficult. Keep in mind that my vision is unencumbered by knowledge! Declare variable to hold job name and if job running kill it I’m looking for a single file that does these things in order.   Declare a variable to hold a job name  Run a query to check whether that job declared is currently running Set up an if loop If the job is running, execute the stored procedure that kills it.   My question is to write a query that declare a variable to hold a job name and gives us result the job is still running or not if the job is running execute the stored proc to kill it.  My manager was asking me to listing running jobs and suspended jobs and declare a variable to hold job name and setup an IF loop like if job is running run proc to kill it. I am a bit confused. When can we omit the preposition on before weekdays? (Monday, Tuesday etc.) Sometimes I read weekdays without the preposition on. If the preposition is left out, does it work the same way, or does it change the meaning?  Example without the preposition     The UGC issued the public notice Monday after its two previous orders   in this regard were overlooked by the DU.   Example with the preposition     The commission on Monday also issued a public notice against the FYUP   in all leading newspapers for parents and students. Integration by partial fractions; how and why does it work? Let $a,b,c\in\mathbb{R}$ such that $\sqrt{a^2+b^2}=1&lt;c$.  Find $I:=\int_{0}^{2\pi} \frac{1}{a\cos(t)+b\sin(t)+c}dt$.  So, I set $z=e^{it}$ and then $dz=ie^{it}dt$ and so $\frac{dz}{iz}=dt$. Therefore,  $\begin{align*} I &amp; =\frac{1}{i}\int_{|z|=1} \frac{dz/z}{a\cdot\frac{z+z^{-1}}{2}+b\cdot\frac{z-z^{-1}}{2i}+c} \newline &amp;=\frac{2}{i}\int_{|z|=1} \frac{dz}{a\cdot(z^2+1)-ib\cdot(z^2-1)+2cz} \newline &amp;=\frac{2}{i}\int_{|z|=1} \frac{dz}{(a-ib)z^2+2cz+a+ib}\newline &amp;= \frac{2}{i}\int_{|z|=1} \frac{dz}{(z-z_+)(z-z_-)}\end{align*}$  Where $z_{\pm}=\frac{-2c\ \pm\ \sqrt{4c^2-4(a+ib)(a-ib)}}{2(a-ib)}=\frac{-c\ \pm\ \sqrt{c^2-(a^2+b^2)}}{(a-ib)}=\frac{-c\ \pm\ \sqrt{c^2-1}}{(a-ib)}$.  Therefore, if we define $f(z)=\frac{1}{z-z_-}$, we get that $f$ is analytic in $\{z:|z|\leq 1\}$ since  $$|z_-|=\Bigg|\frac{-c-\sqrt{c^2-1}}{a-ib}\Bigg|=\bigg|c+\sqrt{c^2-1}\bigg|&gt;|c|&gt;1$$  Finally from Cauchy's Integral Formula:  $$I=\frac{2}{i}\cdot 2\pi i\cdot f(z_+)=4\pi \frac{1}{z_+-z_-}=\frac{2\pi(a-ib)}{\sqrt{c^2-1}}$$ Which is not always real... So my question is what is the problem.  Moreover, sometimes it is correct, e.g. $a=1,b=0,c=2$ gives the correct answer $\frac{2\pi}{\sqrt{3}}$. 403 error after upgrading to apache2.4 I have a Python  object. What is the best way to subtract one day? Upcasting is allowed in Java, however downcasting gives a compile error.   The compile error can be removed by adding a cast but would anyway break at the runtime.   In this case why Java allows downcasting if it cannot be executed at the runtime? Is there any practical use for this concept?   public class demo {   public static void main(String a[]) {       B b = (B) new A(); // compiles with the cast,                           // but runtime exception - java.lang.ClassCastException   } }  class A {   public void draw() {     System.out.println("1");   }    public void draw1() {     System.out.println("2");   } }  class B extends A {   public void draw() {     System.out.println("3");   }   public void draw2() {     System.out.println("4");   } } Why is the Night's Watch so depleted at the start of ASOIAF? At the start of AGOT, the total number of the Night's Watch is said to be less than a thousand. During Aegon's conquest, the Watch numbered ten thousand men. Out of the nineteen castles on the wall, only three are manned today. Castle black itself is once said to have housed 5000.   This rapid deterioration doesn't make sense to me from a world-building perspective. The NW have continued to maintain themselves pretty well for nigh on 8000 years (if the tales can be believed that is, Sam Tarly finds no written evidence of Lord Commanders earlier than #673, which suggests that 8000 years may be an inflated 'legendary' number).   Whereas in the real world, one of the oldest and most venerable institutions, the Catholic Church, has been around for less than 2000 years and has been administered by ~200 popes. The Night's Watch has had a few rocky years, sure, but for it to maintain itself so well for so long and then deteriorate only in the last 300 years seems strange to me.   The NW has two purposes. The ostensible one of defending against the Others, and the (arguably much more real, at least at the start of AGOT) purpose of serving as a dumping ground for the 'losers' of Westeros. By 'losers', I mean the people on the losing side of various wars and political battles, as well as criminals and n-th sons of noble houses with nothing to inherit.  I am currently reading through Fire and Blood, and was struck by one chapter, where an armed revolt of members of the Faith were defeated by Maegor, and 2000 brothers were forced to take the black. Those sorts of numbers don't exist in the recent histories it seems.   One would expect that after Robert's Rebellion, there would be a surfeit of defeated Targaryen loyalists who were forced to take the black, but apart from a smattering of named characters (including Ser Alliser Thorne), there seem to be hardly any Night's watch recruits from recent wars.  Given the way the Night's watch is continually bolstered by the losers of wars and by criminals and other people who elsewise have nothing going for them, why, at the start of AGOT, is the force so depleted? How are local variables referenced in closures? So I know umask can restrict privileged users, using this format umask ugo.  I understand that the read = 4, write = 2, and exec = 1. However, when I type umask, it returns 4 digits which is 0022 or 0073. I have no understanding of how does this work now because there is an extra digit. What is that extra digit and what does 0022 mean? Inertial frames of reference I'm struggling with the notion of an inertial frame of reference. I suspect my difficulty lies with the difference between Newtonian and relativistic inertial frames, but I can't see it.   I've read that Newton's laws apply in any non accelerating frame of reference, which are called inertial frames. So, if I play pool on a train moving with uniform velocity, the balls behave in the same way as if I were playing pool in a pool hall. So the train is (to a good approximation, ignoring forces caused by the Earth's rotation and movement around the Sun etc) an inertial frame.   I've also read that in an inertial frame, Newton's first law is satisfied. So, if I slide a rock on a sheet of ice and I could somehow eliminate the frictional forces between the rock and the ice, the rock would carry on sliding for ever, as predicted by Newton's first law.   Question 1 - is the  sheet of ice also therefore a good approximation to an inertial frame?  Question 2 - are these two definitions of inertial frames saying the same thing in different ways?  Both these examples occur in gravitation fields, which doesn't seem to matter as both the train and the ice sheet are presumably good approximations to inertial frames.  Question 3 - is gravity irrelevant when defining these two inertial frames?  In special relativity, I've read (Foster and Nightingale) that an inertial frame is also one where Newton's first law holds. But as it's special relativity there cannot be an inertial frame if there's a gravitational field, so I'm assuming the above two examples are not inertial frames in special relativity.  Question 4 - how come you can use the same definition of an inertial frame (satisfied Newton's first law) but in the case of special relativity, the train and the ice sheet aren't inertial frames. Is this to do with not being able to synchronize clocks in a gravitational field?  In general relativity, I've read (Schutz) that a freely falling frame is (on Earth) the only possible (and local) inertial frame. So again the first two examples would not be inertial frames in general relativity.  Question 5 - am I right to think that my two examples aren't even approximate approximations to an inertial frame in relativity?  Question 6 - have I missed anything else that might be useful?  Many thanks  Edit. On reflection, am I right in thinking that because Newtonian mechanics assumes universal, absolute time we don't need to worry about synchronizing clocks in a Newtonian inertial frame. Therefore we don't need to worry about gravity in a Newtonian inertial frame, because in such a frame gravity does not affect time.  This is not the case in spacetime, as here gravity does affect time and the only way to have synchronized clocks in an inertial frame in spacetime is: 1. have no gravitational field, or 2. use a local, freely falling frame.  Am I on the right track here? ibus Avro in Ubuntu 14.04 LTS I used the instructions given  to install ibus Avro in my ubuntu 14.04 LTS (64 bit) but ibus avro was not installed. Can anyone help me to solve this case? After giving the commands in terminal nothing happens. The cast to value type 'Int32' failed because the materialized value is null Passing Javascript variable to Live USB "Check disk for defects” finds defects but doesn't list them I downloaded the iso file for XUbuntu. I created a live usb using Pen Drive Linux. I turned on my computer, booted to the XUbuntu installation screen, and selected "check disk for defects".  A minute later, it says that it found one defect. How do I figure out what this defect is? I'm writing up my dissertation and I'm really confused where to use "the". Examples:     In this experiment, (the?) heat transfer coefficient was calculated, allowing to estimate (the?)frost thickness.    And:     Firstly, (the?) air properties are defined.   And:     As (the?) crystals grow in radius, the amount of air in (the?) ice is reduced, due to (the?) ice becoming more packed.   None of the nouns mentioned above have been used for the first time, so I rule out the use of "a".   Would appreciate any help.