Middle-click paste in Screen with Mousetrack Enabled
tmux: enable mouse only when shift pressed
Photoelectric Effect - Dependence of current on frequency We all know that the amount of current flowing b/w the plates is independent of the frequency. If I were to ask why doesn't it depend then you'd probably say that it depends on the number of electrons rather than the frequency or you might show me a current vs frequency graph.  But here is my theoretical argument. Electric current is defined as the amount of charge flowing through a point/space/wire per unit time. Let I be current due to photo electrons ejected by photons of some frequency. Now if I would increase the frequency, the kinetic energy of the ejected electron would increases, therefore it will move faster and therefore contribute more current (charge will through the same point many times per unit time) . Thereby, giving a net current greater than I.  What is wrong with my argument?  After thinking a lot, I came up with a possible reason. However fast the electrons may move, but when they hit the metal plate, they would lose their velocity and start moving in drift velocity. Now there is a problem with this argument. If this were to be true then I should expect to see a big chunk of extra electrons getting stuck at the anode.  If my reasoning was correct, then why can't I see a big charge buildup at the anode. Why didn't the mirror universe's tech progress past the main timeline's? In Star Trek TOS, we see the Defiant disappear to unknown parts  ('The Tholian Web'), and Star Trek: Enterprise revealed that the Defiant went back in time to the mirror universe ('In a Mirror Darkly', parts 1 &amp; 2).   Because of this, one might wonder why (in-universe) the mirror universe didn't obtain (and maintain) technological superiority over the main timeline. (Granted, the out of universe answer is that TOS depicted the two universes as having essentially the same level of tech)  So does any work (whether STO, or a pocket books work) address why the mirror universe didn't simply leap frog the main universe's technology?   (Or to put it another way, why did the mirror universe's technology appear to stagnate for a century after obtaining access to the Defiant's advanced technology?) Entering and leaving the UK on the day of visa expiry Is there such a thing as charge density in quantum mechanics? Is there such a thing as a time-varying charge density in quantum mechanics? I am looking at the tungsten filament in a light bulb. Am I allowed to say that there is a wave function which describes that filament, and that in some sense there is a time-varying charge density (which some people call a probability) associated with the square of that wave function? There are electrons which have a probability distribution, and there are nuclei which are vibrating within the lattice, but all in all is there, or is there not, a time-varying charge distribution associated with that glowing filament? And if not, why not?  EDIT: There seems to be some question as to just what kind of charge-density fluctuations I am talking about. Let me clarify: in a hydrogen atom in the ground state, I would say there are NO charge density fluctuations. But if there is a superposition of the ground state and a 2p state, I would say the charge distribution fluctuates sinusoidally at the difference frequency of the two states. THAT is the kind of charge density fluctuation I am asking about for in the tungsten filament. Does it or doesnt' it?  I hope this clarifies the intent of my question.   RE-EDIT: In a separate (and rather hard-fought) discussion, it appears that people who know more than me agree that there is indeed an oscillating charge distribution in the hydrogen superposition as described above (see  ).  So if there is an oscillating charge in the hydrogen atom, why wouldn't there be oscillating charge in a heated tungsten filament? Using recordtypes of the same name across multiple SObject types I have one recordtype named 'India' in both Account and Contact Objects.My requirement is whenever i create a new account record of type 'India' a new contact record of type 'India' should be created automatically.  i tried with the following code:  trigger AccRecTypeTrigger on Account (before insert) {     List&lt;RecordType&gt; recType = [select id,name from RecordType where sobjectType = 'Account' and isActive = true];    Map&lt;String,Id&gt; m = new Map&lt;String,Id&gt;();    for(RecordType r : recType){      m.put(r.name,r.id);    }     List&lt;Contact&gt; conlst = new List&lt;Contact&gt;();    for(Account a : trigger.new){        a.recordTypeId = m.get('India');        Contact con = new Contact();        con.accountId = a.id;        con.recordTypeId = a.recordTypeId;        con.recordType.name = a.recordType.name;         conlst.add(con);       }    insert conlst; }   But i am getting following error when i try to save     Apex trigger AccRecTypeTrigger caused an unexpected exception, contact   your administrator: AccRecTypeTrigger: execution of BeforeInsert   caused by: System.NullPointerException: Attempt to de-reference a null   object: Trigger.AccRecTypeTrigger: line 14, column 1   Please help me how to achieve this...... Algebraic closure of $\mathbb{C}(x)$ is isomorphic to $\mathbb{C}$ Let $x$ be transcendental over $\mathbb{C}$. Let $K$ be the algebraic closure of $\mathbb{C}(x)$. How to show that $K$ is isomorphic to $\mathbb{C}$? Running programs in the background from terminal How do I run a program in the background of a shell, with the ability to close the shell while leaving the program running? Lets say my UI is having problems or for some reason, I need to boot up a program from the terminal window, say, nm-applet:  nm-applet   When it's started, it occupies the foreground of the terminal window.  Is there any simple way to run the program in the background without needing to leave the terminal open or have it occupy the whole terminal?  On that note, I did find a way to run programs from the terminal and have it allow for other inputs, by appending an ampersand (&amp;) to the command as such:  nm-applet &amp;   But this isn't much use as any processes started in the terminal are killed once the terminal is closed. I have a large table that is already partitioned by an identifier (CustomerId). I have created new customers, and want to add new partitions to the table, and want to confirm the correct way to do this. My predecessor set this up and is no longer available so I cannot confirm.  There are currently partitions for 60 distinct CustomerIds (let's say 1-60), and a filegroup and file for each. I have created new filegroups and files for the new customers (61-68) and need to partition the existing data already in this table. So, the data that's already in the table, with customerId 61-68 needs to be moved into separate partitions.   I tried to use the partition wizard, but couldn't find an option for what I wanted. As far as I can tell, I need to run something like:  ALTER PARTITION SCHEME PS_Details  NEXT USED Filegroup61 ALTER PARTITION FUNCTION PF_Details ()  SPLIT RANGE (61)   I'm looking for someone to point me in the right direction as to best practice for this sort of thing. Do I take the data out of the table, into a new table stored in the Filegroup61 then switch the partition in? Not really sure how to approach this. Is $0 \, \mathrm m = 0 \, \mathrm s = 0 \,\mathrm {kg} = 0$? How do we define $[0 \, \mathrm m]$?  I once was given an assignment where I was asked to deduce and write down some physical quantity. It turned out that this quantity was $0$ in one unit or another, so I decided to drop the physical units because I figured that it didn't matter anyhow.  But I got to thinking:  If $0 \, \mathrm m = 0$, then we could add units of different dimensions (an operation not normally defined) like so: $5 + 0 \,\mathrm m = 5$.   Does $[ \cdot ]$ map $0 \, \mathrm m$ to both $0$ and $L$? Is there an established regime of thinking about physical quantities as an abstract algebra? Perhaps as a vector space where formal sums such as $5 \, \mathrm m + 10 \, \mathrm s$ are allowed? Would it be improper to drop the units of measurement of $0 \,\mathrm m$ like this in an academic paper? I can show that for $x &gt; 0$ and $r_{i} &gt; 0$ we have $$ \left(\, x + r_{1}\,\right)\ldots\left(\, x + r_{n}\,\right)\ \geq\ \left[\, x + \left(\, r_{1}\ldots r_{n}\,\right)^{1/n}\,\right]^{n}.$$ However, I can't do this using straight up induction, strong or weak. Can someone do this?   You can show the inequality holds for $n$ if it holds for $n+1$ using $r_{n+1} = (r_1 \cdots r_n)^{1/n}$, so going down isn't a problem, but going up has eluded me. Additionally, you can show that if it holds for $n=a$ and $n=b$ then it holds for $n=ab$. Using powers of two and the above is sort of a way to prove the above by induction but it certainly isn't "normal".  You can also prove the above using Lagrange multipliers (which isn't surprising). The last proof I know is where you compare coefficients of $x^k$ and use the AM-GM inequality. Is there a way to xcopy just changed or new files? I am trying to deploy a website from my desktop to my webserver and so right now I am doing this:   xcopy C:\source X:\destination /s   My desktop is a Windows XP machine, and I need to copy to a Windows Server 2008 machine, but this copies everything and the whole site is very large and it takes a really long time to finish copying.   Is there a way to specifically just copy new or updated files? I see you can pass in a changed-since date, but I wanted to see if there is a simpler way to compare against the destination file...  Also, I am open to using anything outside of xcopy that can do the job as well... Reading order for Dragonlance? Batch Convert Images from One Format to Another while maintaining directory structure, and removing originals I've looked at , and while it works there a few issues:   All converted images are placed in the directory from which the command is called. The original images are kept.   I need to convert around 70,000 .tif and .jpgs to .pngs.  It's really important the the files when converted are placed in their normal directories.    I can do a batch rm of .tff/.jpg's at the end if that's the best way to handle removing the old files. How to block and unblock https access on OS X 10.9 I am working on a test project that requires me to block https access for a specific app on my Mac (OS X 10.9).   The instruction provided are "Chinese" to me and I have no idea where to start:  (Example: Alter the iptables) Steps:   Block the port:  root@QA9:/opt/appname/appnamerouter2# iptables --list root@QA9:/opt/appname/appnamerouter2# iptables -A INPUT -p tcp --destination-port 443/8443 -j DROP root@QA9:/opt/appname/appnamerouter2# iptables --list  For Open the Port:  root@QA9:/opt/appname/appnamerouter2# iptables -D INPUT 1 A guide to moderating chat Today a couple of buffer overflows in NTP were announced , . It looks like updating my system to fix these issues is in order.   How can I find out if they have been fixed in the Ubuntu repositories, such that if I were to run:   sudo apt-get update sudo apt-get upgrade   then the fix would get installed and the vulnerability closed?   Edit: The selected answer specifically addresses the question of how to identify if a given CVE has been fixed or not, "Does Ubuntu generally post timely security updates?"  is certainly related but not identical The standard files/tools that report memory seem to have different formats on different Linux distributions. For example, on Arch and Ubuntu.   Arch  $ free               total        used        free      shared  buff/cache   available Mem:        8169312     3870392     2648348       97884     1650572     4110336 Swap:      16777212      389588    16387624   $ head /proc/meminfo  MemTotal:        8169312 kB MemFree:         2625668 kB MemAvailable:    4088520 kB Buffers:          239688 kB Cached:          1224520 kB SwapCached:        17452 kB Active:          4074548 kB Inactive:        1035716 kB Active(anon):    3247948 kB Inactive(anon):   497684 kB  Ubuntu  $ free              total       used       free     shared    buffers     cached Mem:      80642828   69076080   11566748    3063796     150688   58358264 -/+ buffers/cache:   10567128   70075700 Swap:     20971516    5828472   15143044   $ head /proc/meminfo  MemTotal:       80642828 kB MemFree:        11565936 kB Buffers:          150688 kB Cached:         58358264 kB SwapCached:      2173912 kB Active:         27305364 kB Inactive:       40004480 kB Active(anon):    7584320 kB Inactive(anon):  4280400 kB Active(file):   19721044 kB    So, how can I portably (across Linux distros only) and reliably get the amount of memory—excluding swap—that is available for my software to use at a particular time? Presumably that's what's shown as "available" and "MemAvailable" in the output of free and cat /proc/meminfo in Arch but how do I get the same in Ubuntu or another distribution? "He is king" vs "He is a king." I'm reading a book and encountering the phrase "insert name is king" a lot. I'm wondering, what's the difference between them? When and why should I use "He is king" instead of "He is a king"?   Examples:        Tommen is king now   Yet if neither one is king, still, how could it be Lord Renly?   And he is a king, and you’re just a spy   Everyone else is a king or prince these days      Same with other words:        They elected him president.   They called him a thief. Can anyone help me with a solution? "Put me in touch with whomever created it"? He created it.  Put me in touch with him.   So which is correct and why:   Put me in touch with whomever created it. Put me in touch with whoever created it.