I am using a small mechanical keyboard on which if I press a special function key and key 'W', it means 'up'  I use  as my console app. From time to time I use 'up' to recall past commands.  Unfortunately this function key is next to the ⌘ key. So sometimes I miss the special function key, and pressed ⌘W accidentally. It closes an active tab of `iTerm2' instead of going back in command history.  Is there any way I can use some key combination to replace and disable ⌘W in order to close a tab?
I know someone or the other has asked about disabling ⌘Q, but I like the shortcut, and I use it often. However, I use an email client called Airmail that unfortunately does not keep a service (for notifications) running in the background when it is quitted. However, if I press the close button a service runs in the background, allowing me to receive notifications.  But since I have a habit of pressing ⌘Q all the time to close apps, I was looking into a way I could disable it for only Airmail.  Anyone know of a what to do this?
A phonon is a quantized unit of sound; they are encountered when quantizing lattice vibrations in solids. Now, even an ideal gas supports sound waves, but in this case, interactions between atoms are weak. That makes it hard to imagine what a quantized vibration would look like, since at small scales, the particles are free!   Is there a phonon picture for sound in an ideal gas? Is it ever useful? How can I export object's field schema information to excel? How can I export the fields of an object from Salesforce into an Excel sheet? I'm only looking for the field schema information, not the objects records. REML or ML to compare two mixed effects models with differing fixed effects, but with the same random effect? Background:  Note: My data set and R code are included below text I wish to use AIC to compare two mixed effects models generated using the lme4 package in R.  Each model has one fixed effect and one random effect.  The fixed effect differs between models, but the random effect remains the same between models.  I've found that if I use REML=TRUE, model2 has the lower AIC score, but if I use REML=FALSE, model1 has the lower AIC score. Support for using ML: Zuur et al. (2009; p. 122) suggest that &quot;To compare models with nested fixed effects (but with the same random structure), ML estimation must be used and not REML.&quot;  This indicates to me that I ought to use ML since my random effects are the same in both models, but my fixed effects differ.  [Zuur et al. 2009.  Mixed Effect Models and Extensions in Ecology with R.  Springer.] Support for using REML: However, I notice that when I use ML, the residual variance associated with the random effects differs between the two models (model1 = 136.3; model2 = 112.9), but when I use REML, it is the same between models (model1=model2=151.5).  This implies to me that I ought instead to use REML so that the random residual variance remains the same between models with the same random variable. Question: Doesn't it make more sense to use REML than ML for comparisons of models where the fixed effects change and the random effects remain the same?  If not, can you explain why or point me to other literature that explains more? # Model2 &quot;wins&quot; if REML=TRUE: REMLmodel1 = lmer(Response ~ Fixed1 + (1|Random1),data,REML = TRUE) REMLmodel2 = lmer(Response ~ Fixed2 + (1|Random1),data,REML = TRUE) AIC(REMLmodel1,REMLmodel2) summary(REMLmodel1) summary(REMLmodel2)  # Model1 &quot;wins&quot; if REML=FALSE: MLmodel1 = lmer(Response ~ Fixed1 + (1|Random1),data,REML = FALSE) MLmodel2 = lmer(Response ~ Fixed2 + (1|Random1),data,REML = FALSE) AIC(MLmodel1,MLmodel2) summary(MLmodel1) summary(MLmodel2)  Dataset: Response    Fixed1  Fixed2  Random1 5.20    A   A   1 32.50   A   A   1 6.57    A   A   2 24.77   A   B   3 41.69   A   B   3 34.29   A   B   4 1.80    A   B   4 10.00   A   B   5 15.56   A   B   5 4.44    A   C   6 21.65   A   C   6 9.20    A   C   7 4.11    A   C   7 12.52   B   D   8 0.25    B   D   8 27.34   B   D   9 11.54   B   E   10 0.86    B   E   10 0.68    B   E   11 4.00    B   E   11 A Riemann integrable function must have infinitely many points of continuity Asynchronous shell exec in PHP I've got a PHP script that needs to invoke a shell script but doesn't care at all about the output. The shell script makes a number of SOAP calls and is slow to complete, so I don't want to slow down the PHP request while it waits for a reply. In fact, the PHP request should be able to exit without terminating the shell process.  I've looked into the various exec(), shell_exec(), pcntl_fork(), etc. functions, but none of them seem to offer exactly what I want. (Or, if they do, it's not clear to me how.) Any suggestions? How to transform negative values to logarithms? I would like to know how to transform negative values to Log(), since I have heteroskedastic data. I read that it works with the formula Log(x+1) but this doesn't work with my database and I continue getting NaNs as result. E.g. I get this Warning message (I didn't put my complete database because I think with one of my negative values is enough to show an example):   &gt; log(-1.27+1) [1] NaN Warning message: In log(-1.27 + 1) : NaNs produced &gt;    Thanks in advance  UPDATE:  Here is an histogram of my data. I'm working with palaeontological time series of chemical measurements, E.g the difference between variables like Ca and Zn is too big, then I need some type of data standardization, that is why I'm testing the log() function.   This is my How to compute the  formula $\sum  \limits_{r=1}^d r \cdot 2^r$? Given $$1\cdot 2^1 + 2\cdot 2^2 + 3\cdot 2^3 + 4\cdot 2^4 + \cdots + d \cdot 2^d = \sum_{r=1}^d r \cdot 2^r,$$ how can we infer to the following solution? $$2 (d-1) \cdot 2^d + 2. $$   Thank you example of a non differentiable manifold Take the manifold: The graph of $|x|$ on $(-1,1)$, with the induced topology from $\mathbb{R}^2$. This is a topological manifold, which is homeomorphic to $(-1,1)$ by projection. Is it a differentiable manifold? I believe it is, because we can take an atlas with only the projection, and then we will have only one transition map which is the identity, and therefore differentiable. But I'm not sure I get the definition of a differentiable manifold right...  Thanks! I'd like to be able to easily transfer large files wirelessly, fast, between Android devices - preferably without requiring root.  As a secondary objetive, it wouldn't hurt if the same solution could be used, to transfer files between the Android devices and a Windows PC.   Specifically, I'm trying to exchange files between my Nexus 7 (Android 4.2.2) and Samsung Galaxy S2 (Android 4.0.4).   Bluetooth is simply too slow, so that's out of the question Transfer via the Internet is also not an option, hence so is cloud-based solutions Only Nexus 7 supports NFC, so that's out too  looked promising and very simple, but does not work on "Devices that don't have WiFi Tethering setting, such as the Nexus 7"   Wi-Fi direct ( and up) seems to be a decent lowest common denominator between my two devices, however...  Galaxys S2's native Send via Wi-Fi Direct sees the Nexus, but seems to get stuck in the "Connecting..." most times. When there finally seems to be breakthrough, I get "Waiting..." and a spinning circle. Even if it worked, it would only allow me to send from the Galaxy S2 to the Nexus 7, as a similar option os not present on the Nexus 7.  J4velin's  is no longer available in the Play Store, with the following explanation:     WiFi Direct drivers are broken on many devices, which led to users leaving negative reviews for this app. As I don't see any sense in keeping a free app published when only getting 1-star-ratings (for an issue which only your device manufacturer can fix), the app is no longer available at the Play Store.   Nick Adams'  seems flaky at best. Invations from Nexus 7 to Galaxy S2 are never received. Invitations from Galaxy S2 are mostly received, but even when accepting promptly, the peers doesn't always show as connected. When they finally do, usually after quite a long wait, I can select a file to send but it's never transferred -  "Transfer failed" it says almost immediately in the notification bar.  budius inc's  is working slightly better, but still very unreliable. I actually managed to (occasionally) send files both ways, but never when attempting connection from the Nexus 7. To send from the Nexus 7 to the Galaxy S2, I had to go through this akward manoeuvre:   Share the file on the Nexus 7 via the WiFi Shoot intent Start the Receive WiFi Shoot app on the Galaxy S2 Invite the Nexus 7 from the Galaxy S2 (never the other way around!) Accept the invitation on the Nexus 7 Press the Shoot button on the Galaxy S2   Take the whole switching back and forth between devices, and garnish with random delays or failures in any step of the process...  Is there really no easy, reliable, fast way to transfer files directly between different Android devices?  Generally, my experience with Wi-Fi Direct is all but positive...   A device often won't even see a device lying next to it Sometimes, it will see the other device, only to have it disappear from the list, before I have the chance to connect When I do have a chance, invations are not realiably received (from Galaxy S2 to Nexus 7 mostly reliable, but never worked the other way around) When invitations are received (and accepted), a partnership rarely manages to be setup ("invited" or "connecting") And even when that happens, some apps can't seem to transfer files through it...   *Sigh*  Maybe J4velin's explanation pretty much sums up the sad state of Wi-Fi Direct on Android, which otherwise seemed as the best solution to my quest? Prove that the product of two continuous functions is continuous Show *realtime* mouse cursor coordinates? (Cursor mod / overlay) Also, copy to clipboard? I'm looking for a solution that would display the current mouse cursor coordinates in realtime (i.e. NOT xdotool and NOT xev).  I need to move the mouse to a certain position, then press Alt-Tab to flip to another window and record the coordinates there. (This would not move the mouse, so the coordinate display would stay the same).  There's a Windows program that works BEAUTIFULLY for this purpose -   ...but it doesn't even start up in Wine.  Alternately, instead of displaying the coordinates, if this solution could copy the coordinates (in XXX,YYY format) to the clipboard, upon pressing a hotkey, that would be even better.  Any suggestions would be much appreciated!  P.S. I'm running Ubuntu 12.04 LTS. Prove that $E$ is disconnected iff there exists two open disjoint sets $A$,$B$ in $X$ Does Reincarnation allows skills to be passed into other classes I'm mainly asking this for Disgaea: Afternoon of Darkness, given I have enough Mana to reincarnate a character into 4 different types of Mages (Green, Blue, Red, Star), a Cleric and then a Warrior, would the Warrior have all the spells learned from the previous classes? Putting altered social media logo icons on my website, can I get sued? I would say most websites with a somewhat thought-through graphical design use social media icons (i.e Twitter, Facebook, YouTube, etc) which are altered to fit the theme and design of the site.  Now, my boss insist we only use the ones provided by say Facebook or Twitter themselves (in fear of getting sued or lose credibility), but sometimes it just doesn't look very good on the site.   What is the common practice for these things? What do you risk by using an altered logo? What should I tell my boss?  I'll provide a few examples, what'd happen if I put any of these on a site? What do you call a person who does/thinks the opposite of the crowd for just that reason? XIV pages in page counts? 99% of the time, I'm clear on when I should use "a" versus "an." There's one case, though, where people &amp; references I respect disagree.  Which of the following would you precede with "a" or "an," and why?   FAQ FUBAR SCUBA   [Note: I've read the questions  and , but the rules given there don't necessarily apply here.]    [Edited to add]  Here's a shorter (and hopefully clearer) version of the question…  In written English, which is correct (and why): "a FAQ" or "an FAQ"?  Some references with differing opinions:   an: the  and  a: the Microsoft Manual of Style for Tech Publications, 3e either: the  and I want to attach a code file to my question, but I am not able to find a link to do it. Is attaching files possible at all? Is it ethical to omit the PhD credential from my resume? I am applying for a Statistical Programmer position at a commercial research organization (CRO), and I am wondering if it is unethical to omit my PhD in Statistics from my resume?  All of my degrees (Bachelor's, Master's, PhD) are in Statistics, and I am just wondering if it would be ethical to just list my Bachelor's and Master's degree on my resume, and indicate my experience as a RA while I was a PhD student as my "work experience"? (Since this Statistical Programmer position only requires Master's degree plus some years of experience)  I am asking this question because I do not want to do anything unethical/cause me troubles later on. How can I maximize the "blurry background, sharp subject" (bokeh) effect?