python: what library can simulate type
Key Presses in Python
Browsing the internet from the command line How can I browse the Internet from the command line in Ubuntu? In a photoelectric effect we remove electrons from a metal using high energy photons, the work function is the minimal energy required for this effect.  My question is why doesnt the work fucntion depended on time? The more electrons we take out from the metal, the more ionized it becomes (if we remove a lot of negative charge, it will turn positive), and as a result we would expect to need more energy for this effect (the possitive charge of the metal would make it harder to remove the remaining electrons).  Why does the work function remains constant no matter how much electrons we take out? How to do a secure erase on a Macbook Pro? I have a Macbook Pro with SSD and I would like to completely erase every single bits of data on it. How would I do that? On a PC, I would just run Darik's Boot And Nuke, but can I run it on a Mac too, or is there a better alternative? Have iOS apps. Can I use them on my Mac Mini? I bought many iOS Apps on various iPads and iPod touchs. This Wednesday I will have my first Mac, a Mac Mini, so my question is: Will I be able to download these Apps without any charge, if they are available on Mac Store?  I ask this because I have been watching some videos and have seen GarageBand on the Mac but I don't know if it's the same App. I know that the App Store and Mac Store are different, but, like some Apps on AppStore have a plus symbol on their icons corners saying these Apps can be run on iPad, iPod touch and iPhone I wonder whether there will be some Apps for both iOS and the Mac.  Also, I don't know if GarageBand was released on Mac before iOS devices. How is money held in escrow for a home purchase from a IRA treated by the IRS? Can a Ranger select two humanoid races as their favored enemies at 6th and 14th levels? In D&amp;D 5e, the Ranger can choose at first level to have a Favored Enemy of a single broad type (i.e. fiends, giants, aberrations, etc.) or of two different specific humanoids (such as orcs and gnolls). They gain additional Favored Enemies at 6th and 14th level.  At each of those levels, could they opt to pick two humanoid races? Or would the choice be between one type and one specific humanoid?  Relevant text:     Choose a type of favored enemy: aberrations, beasts, celestials,   constructs, dragons, elementals, fey, fiends, giants, monstrosities,   oozes, plants, or undead. Alternatively, you can select two races of   humanoid (such as gnolls and orcs) as favored enemies.   And:     You choose one additional favored enemy, as well as an associated   language, at 6th and 14th level.   (Both quotes from PHB, pg 91.)  Specifically, I'm wondering whether "one additional favored enemy" means one absolutely, or whether the "Alternatively..." sentence means that two humanoid races can be substituted for one type whenever you select a favored enemy. How to separate iMessages with shared Apple ID? My son and wife both have iPod Touches and I have an iPhone. We all used the same Apple ID and turned on iMessage. Both my son and wife were getting texts from my friends and my work on their iPods, I think because my cell phone number was linked to the Apple ID.  If I just turn off iMessage on my iPhone, will that solve the issue? I've been a Stack Exchange contributor for a couple of years now, currently most active on . One thing that keeps coming up is questions that would appeal to audiences on two different Stack Exchange sites but there are almost no features taking advantage of these questions. On travel.SE we have crossover questions most often with  and possibly next most often with  - but it can happen with almost any SE site. Today alone we had  with  and  had . I am absolutely sure that this must happen all the time between arbitrary pairs of Stack Exchange sites but the only feature that takes advantage of it is the possibility of migrating off-topic questions which leaves the original question acting as a redirect across the two sites. I think there is a missed opportunity to build the network between sites where users of one site don't realize they could make valuable contributions to a sister site they have had so far little to do with. At the very least there could be a way to &quot;advertise&quot; a question on a second site that could be interested in it. Probably by listing it in the sidebar where there are also links to meta questions, linked questions, related questions, new blog posts, and But there could also be some kind of features that make some sort of acceptable crossposting. There could be gamification/badges added around building cross-site questions or whatever else you can think up. I think this is a great way for people to spread their expertise from their main site onto other sites, to make the network stronger and more cohesive, to bring more attention to questions that would have a divided audience between two sites. I can think only of positives and no negatives. Does anyone else have some ideas to add or think this is a bad idea for any reason?  Example crossover questions: Here are some links to some crossover questions I've been finding in the Stack Exchange network here. (This was previously posted as an answer, but more people wanted it to be part of the question.)   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  : How can I disable the drag handle on the desktop? How can I make my laptop boot automatically from the hard drive without having to press F10 each time? Where should I put  tags in HTML markup? When embedding JavaScript in an HTML document, where is the proper place to put the &lt;script&gt; tags and included JavaScript? I seem to recall that you are not supposed to place these in the &lt;head&gt; section, but placing at the beginning of the &lt;body&gt; section is bad, too, since the JavaScript will have to be parsed before the page is rendered completely (or something like that). This seems to leave the end of the &lt;body&gt; section as a logical place for &lt;script&gt; tags.  So, where is the right place to put the &lt;script&gt; tags?  (This question references , in which it was suggested that JavaScript function calls should be moved from &lt;a&gt; tags to &lt;script&gt; tags. I'm specifically using jQuery, but more general answers are also appropriate.) So from what I understand transistors are one of the most important electronic elements for computers because of TTL (Transistors-Transistors Logic).  Is this true? If so, how exactly does this work? I have heard the terms "logic gate" and "logic block" tossed around. I am trying to get the SIDs of users and groups by querying  get-wmiobject -query 'select groupcomponent,partcomponent from win32_groupuser`   output:  __GENUS          : 2 __CLASS          : Win32_GroupUser __SUPERCLASS     : __DYNASTY        : __RELPATH        : Win32_GroupUser.GroupComponent="\\\\COMPUTER\\root\\cimv2:Win32_Group.Domain=\"TESTDOMAIN\",Name=\                    "Schema Admins\"",PartComponent="\\\\COMPUTER\\root\\cimv2:Win32_UserAccount.Domain=\"TESTDOMAIN\"                    ,Name=\"Administrator\"" __PROPERTY_COUNT : 2 __DERIVATION     : {} __SERVER         : __NAMESPACE      : __PATH           : GroupComponent   : \\COMPUTER\root\cimv2:Win32_Group.Domain="TESTDOMAIN",Name="Schema Admins" PartComponent    : \\COMPUTER\root\cimv2:Win32_UserAccount.Domain="TESTDOMAIN",Name="Administrator"   groupcomponent is a win32_group ().  win32_group is contains an SID ()  However the groupcomponent here is a string and not a win32_group as   get-wmiobject -query 'select groupcomponent.sid from win32_groupuser'   is an invalid query. How can I access groupcomponent's members as a win32_group? I've been watching a lot of pro replays ever since the SC2 beta came out, and I've noticed that almost always, when Protoss research upgrades, the shields are the last research chosen. Why is that? Seems to me that if anything, shields should be the most important upgrade, as they affect all Protoss units and buildings. Why does adding a new value to list overwrite previous values in the list Show sub reasons in close review queue Currently close vote review queue shows the top level close reason in the header, but some close reasons, for instance, off topic have very different sub reasons. For instance, "demonstrate minimal understanding" is different from "This question belongs on a different site in the stack exchange network".  It would be nice if sub close reasons were also shown. Recently I have been working on a mini-game that gives a few players custom spawn eggs. I want the mob to simply have a name and be on a team. I'm attempting to use this command:   /give @p[x=-102,y=48,z=81,distance=..1] shulker_spawn_egg{Team:PurpleTeam,CustomName:"\"Purple Turret\""}   It does give the player a spawn egg, but the resulting shulker spawn does not have a team or a name. Any ideas why this isn't working? While rendering a mesh with smooth shading on, I get a dark region/shadow on certain faces. The effect is more evident when smooth shading is applied to a mesh containing ngons, with the ngons turning black when rendered.   The blackening effect is visible in the viewport too.  How can I solve this problem? Wrapper for package managers There are a lot of language-specific package managers like cpan for perl, cabal for haskell etc. When we want to install some software, it can sometimes be installed from a corresponding repo, with installation instruction just like (say, ) npm install yaxy or cpan something or cabal install something.   These package managers have slightly different syntaxes, they all need root privileges and/or custom setup, or (in case of Yaxy) just a newer version of interpreter (nodejs packaged by Ubuntu was too old to run it).  Is there a wrapper for different package managers that unifies/automates setup for different package managers?  Edit: what I want is a way to execute installation command like that npm install yaxy and make it working without manual installing system npm+nodejs, getting non-functional executable, finding the simplest way to install fresher nodejs on my system, reinstalling... Figure refs stop working after I added a new counter I was using the amspset document class for generating exam practice problems. I had wanted to add some referencing to the problems so I started a new counter like this (adapted from some Tex Exchange post)  \newcounter{P} \newcommand{\plb}[1]{\refstepcounter{P}\label{#1} \textbf{P-\ref{#1}.}}  \begin{problem} \plb{p1} A parallel-wire transmission line is constructed of \#6 AWG copper wire (diameter $d=0.162$ in., conductivity $\sigma_c=5.8\times 10^7$ S/m) with a 12-inch separation in air. Assuming no leakage between the two wires, find $R'$, $L'$, $G'$, and $C'$. Assume a working frequency of 1 MHz. \end{problem}  \begin{solution} Using Table.~\ref{tab:tlparam} and Fig.~\ref{fig:tlempl},  \[ Rs = \sqrt{\pi f \mu_c/\sigma_c} = 2.61\times10^{-4}~ \Omega\] \[ R' = \frac{2R_s}{\pi d} = 4.04\times10^{-2} ~\Omega\text{/m} \] \[ L' = \frac{\mu_0}{\pi} \ln{\frac{2D}{d}}=2.0~\mu \text{H/m} \] \[ C' = \frac{\pi \epsilon}{\displaystyle\ln{\frac{2D}{d}}}=5.56 ~\text{pF/m} \] $G'=0$ because the problem states that there is no leakage between the two wires. \end{solution}  \begin{figure}[ht] \begin{centering}     \includegraphics{fig24}     \caption{(Fig.2-4 from FAE) A few examples of transmission lines.} \end{centering} \label{fig:tlempl} \end{figure}  \begin{table}[ht] \caption{(Table 2-1 from FAE)Transmission-line parameters $R'$, $L'$, $G'$, and $C'$ for three types of lines.}     \begin{tabular}{c}         \hspace{3cm}\includegraphics{tb21}     \end{tabular} \label{tab:tlparam} \end{table} ... and more   Now all the figure references stop working, I get "Fig. " instead of "Fig. 1". The table references are alright though. Any idea what the problem could be?