I would like to know how to install Touchwiz apps on Cyanogenmod 12.X.
I got my Galaxy S4 today (i337M), it's wayyy better than my old SII hehe.  I immediately removed the stock Bell firmware and put the latest snapshot available from CyanogenMod.  I'm wondering if it's possible to convert apps like S Planner, S Note, S Health to CyanogenMod.  Current stock android version available for i337M is 4.2.2. Latest Android version for CM is 4.4.  If I install CM 4.2, can I import/install the APKs and then upgrade to 4.4?  Hope you'll be able to help me :)
This is a question about American English usage of the word "already". As a UK resident I don't completely understand when I hear Americans give commands like "Stop it already!" In the UK the word already is not normally used in the imperative mood and the sentence I've just quoted would leave an English person thinking "If you're saying I've already stopped it why are you asking me to stop it again?" How do remove "Ignoring file in directory /etc/apt/sources.list.d/ as it has an invalid filename extension? What is the meaning of the density of a distribution at a point? I know how to use PDFs to calculate probabilities, but I don't think I understand them. For example, at $X=0$ the PDF of the standard normal distribution is $\approx 0.4$. Does this have any useful meaning? How to use SSH to run a local shell script on a remote machine? I have to run a local shell script (windows/Linux) on a remote machine. I have SSH configured on both machine A and B. My script is on machine A which will run some of my code on a remote machine, machine B. The local and remote computers can be either Windows or Unix based system. Is there a way to run do this using plink/ssh? I'm examining a proof I have read that claims to show that the Cartesian product $\mathbb{N} \times \mathbb{N}$ is countable, and as part of this proof, I am looking to show that the given map is surjective (indeed bijective), but I'm afraid that I can't see why this is the case. I wonder whether you might be able to point me in the right direction?  Indeed, the proof begins like this:  "For each $n \in \mathbb{N}$, let $k_n, l_n$ be such that $n = 2^{k_n - 1} \left(2l_n - 1 \right)$; that is, $k_n - 1$ is the power of $2$ in the prime factorisation of $n$, and $2 l_n - 1$ is the (necessarily odd) number $\frac{n}{2^{k_n - 1}}$."  It then states that $n \mapsto \left(k_n , l_n \right)$ is a surjection from $\mathbb{N}$ to $\mathbb{N} \times \mathbb{N}$, and so ends the proof.  I can intuitively see why this should be a bijection, I think, but I'm not sure how to make these feelings rigorous?   I suppose I'd say that the map is surjective since given any $\left(k_n , l_n \right) \in \mathbb{N} \times \mathbb{N}$ we can simply take $n$ indeed to be equal to $2^{k_n - 1} \left(2l_n - 1 \right)$ and note that $k_n - 1 \geq 0$ and thus $2^{k_n - 1}$  is both greater or equal to one so is a natural number (making the obvious inductive argument, noting that multiplication on $\mathbb{N}$ is closed), and similarly that $2 l_n - 1 \geq 2\cdot 1 - 1 = 1$ and is also a natural number, and thus the product of these two, $n$ must also be a natural number. Is it just as simple as this?  I suppose my gut feeling in the proving that the map is injective would be to assume that $2^{k_n - 1} \left(2 l_n - 1 \right) = 2^{k_m - 1} \left(2 l_m - 1 \right)$ and then use the Fundamental Theorem of Arithmetic to conclude that $n = m$. Is this going along the right lines? The 'implicit' definition of the mapping has me a little confused about the approach.    On a related, but separate note, I am indeed aware that if $K$ and $L$ are any countable sets, then so is $K \times L$, so trivially, taking the identity mapping we see trivially that this map is bijective and therefore that $\mathbb{N}$ is certainly countable (!), and thus so is $\mathbb{N} \times \mathbb{N}$. Hence, it's not really the statement that I'm interested in, but rather the exciting excursion into number theory that the above alternative proof provides. Let $M$ be an A-module and $f \in \text{End}(M)$ an idempotent endomorphism. Show that $M = \ker(f) \oplus \ker (f-\text{id}_M)$. I don't know how to approach this exercise, using only properties of modules and direct sums, without projections. Can you help me? Thanks in advance. Making a private method public to unit test it...good idea? Are there some good overviews of basic facts about images and inverse images of sets under functions? The full prophecy by Trelawney, the part my question is about in bold:     "The one with the power to vanquish the Dark Lord approaches ... born to those who  have thrice defied him, born as the seventh month dies ... and the Dark Lord will mark him as his equal, but he will have power the Dark Lord knows not ... and either must die at the hand of the other for neither can live while the other survives ... the one with the power to vanquish the Dark Lord will be born as the seventh month dies ..."    – Sybill Trelawney (to Dumbledore)    I am interpreting      for neither can live while the other survives   as: Harry can't live while Voldemort survives and vice versa. But why? It clearly worked until the end of book 7. One could argue with Dumbledore's thery of the self-fulfilling prophecy. But clearly Voldemort was smart enough to see that there was no mechanism that would kill him just because Harry stayed alive.    and either must die at the hand of the other    Again: Why? If somebody else destroyed all Horcruxes and then killed Harry, Voldemort would be just as vulnerable and could be killed by anyone. On the other hand, Harry could have been killed by anyone - his mum's protection transferred to Voldemort by Harry's blood was only helping against Voldemort.  I guess that I am interpreting this part of the prophecy in the wrong way or maybe there is an alternate, less obvious and more tricky one. So my question is: What exactly does the highlighted part of Trelawney's prophecy state? How can I merge properties of two JavaScript objects dynamically? How to call Apex REST API from Javascript? I have two different developer orgs. One contains apex REST web service, and I want to call that REST service from my second org. I have tried to call that REST service using normal ajax post request and forcetk.js, But I got following error     XMLHttpRequest cannot load   . Origin    is not allowed by   Access-Control-Allow-Origin.   I searched about this problem then I got to know that Salesforce never allows CORS (Cross-Origin-Resource-Sharing).  Initially I was using apex to call that REST web service, that time I was able to post data from apex. But as we have callout limitation in salesforce, I want to use javascript.  Can anybody please help me? Sound of a next scene starts one moment earlier than video I saw this several times in different movies, but I don't understand what is this supposed to mean. The main idea is when the scene is about to change, for one second or so we still see the picture from the old scene, but the sound is already coming from from the upcoming scene. Why do they do this? What's the purpose of this technique? Deploy Community Builder audience page assignments with ant migration tool? In Community Builder, if you create audiences and assign them to page variations, you cannot deploy these using change sets, according to .  In fact, Audience doesn't even appear in the list of change set components.  On the other hand, Audience metadata can be deployed using the ant migration tool, so I was hopeful that the audience assignments would also be deployable.  Unfortunately, I haven't had success in deploying any audience assignments, either for entire pages or for components on a page.  Has anyone found a workaround for deploying audience assignments for Community Builder pages?  I should say that I'm using the Build Your Own template.  If it can't be deployed, is there at least a way to get a list of audience assignments so I don't have to open every single page in the Community Builder to check?  Here's what I'm using in my package.xml manifest.  All the community builder page variations and all the audiences are created correctly, but the assignments are not.  &lt;types&gt;     &lt;members&gt;*&lt;/members&gt;     &lt;name&gt;Audience&lt;/name&gt; &lt;/types&gt; &lt;types&gt;     &lt;members&gt;*&lt;/members&gt;     &lt;name&gt;CustomSite&lt;/name&gt; &lt;/types&gt; &lt;types&gt;     &lt;members&gt;*&lt;/members&gt;     &lt;name&gt;SiteDotCom&lt;/name&gt; &lt;/types&gt; How do you get the caret position in a &lt;textarea&gt; using JavaScript?  For example: This is| a text  This should return 7.  How would you get it to return the strings surrounding the cursor / selection?  E.g.: 'This is', '', ' a text'.  If the word “is” is highlighted, then it would return 'This ', 'is', ' a text'. What are the limits of house-elf apparition? I know Wizards can't apparate where they want on the Earth, except if they are very powerful but what about a house-elf ? Their magic is different so I was wondering if they can apparate wherever they want or if they have a limit too. What Sith Lords were turned to the Light Side? Could a ship equipped with Alcubierre drive theoretically escape from a black hole? Could a ship equipped with Alcubierre drive theoretically escape from a black hole?  Also, could it reach parts of the universe that are receding faster than the speed of light from us? show that the interval of the form $[0,a)$ or $(a, 1]$ is open set in metric subspace $[0,1]$ but not open in $\mathbb R^1$ On the metric subspace $S = [0,1]$ of the Euclidean space $\mathbb R^1 $, every interval of the form $A = [0,a)$ or $(a, 1]$ where $0&lt;a&lt;1$ is open set in S. These sets are not open in $\mathbb R^1$   Here's what I attempted to show that $A$ is open in $S$. I have no idea how it is not open in $\mathbb R^1$.  Let $M = \mathbb R^1$, $x \in A  = [0,a)$ . If $x = 0$, $ r \leq \min \{a, 1-a\}, \\\  B_S(0; r) = B_M(0,r)\cap[0,1] = (-r, r) \cap[0,1] = [0,r) \subseteq A $  If $x \neq 0, r \leq \min \{x,|a-x|, 1-x\},  \\B_S(x; r) = B_M(x,r)\cap[0,1] = (x-r, x+r) \cap[0,1] \subset (0,x) \text{ or } (x, 1) \subset A$ What were the rules for capitalising nouns in the 17th and 18th centuries? It seems to have been common practice in the 17th and 18th centuries in English-language sources to capitalise the first letters of nouns, as in  At which Time he prov'd himself the Noah's Dove, that finding himself no Rest anywhere, was receiv'd again into his own Ark, and brought a peaceable Olive-Leaf in his mouth. —  (1685)  Most original sources I can find on the web have used modern rules for capitalisation, so I have a few questions:  Was the practice used for all nouns (Note mouth isn't capitalised in my quotation above.)? When did this practice begin? When and why did it end? How to save an alias of an eval $(other_comand) command I've been using docker for a while and there's a command I write each time I boot up my docker:  eval $(docker-machine env)   I know eval shouldn't be used unless necessary, but it's mentioned by the following:  docker-machine env outputs environment variables like this:  docker-machine env export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://&lt;some_ip&gt;:&lt;some_port&gt;" export DOCKER_CERT_PATH="/home/gableroux/.docker/machine/machines/default" export DOCKER_MACHINE_NAME="default" # Run this command to configure your shell:  # eval $(docker-machine env)   eval grabs these and load them in my current session.  Now what if I'd like to have an alias like this:  alias dockereval="eval $(docker-machine env)"   Syntax is good, but the problem is when a dotfile (let's say .zshrc as an example), well the content of the $() is evaluated when registering the alias when you source that file.  which dockereval   Results in  dockerenv: aliased to eval   I tried a few things like:  alias dockereval="docker-machine env | eval" alias dockereval="docker-machine env | /bin/bash" alias dockereval="eval `docker-machine env`"   but none did work. 2nd one is probably because it's running in a different session, 3rd does the same as $() I guess  Is there an other way to load these environment variables with an alias?