Connect PS3 Controller to Nexus 4
How do I connect a PS3 Controller with Xperia P?
Are mirror lenses good for wildlife photography in daylight? I've recently seen these Rokinon/Opteka mirror lens with whooping focal length (like 500mm, 600mm, 800mm, 1000mm) at a cheap price. And I have seen some of their same pictures in Flickr and vendor sites. But the only thing is that they usually starts from smaller aperture (f/5.6 and upwards)   Now what I was wondering, as they are cheap with quite good IQ - are they good for any bird photography or wild life photography in proper daylight? Can I deduct a contribution to a traditional IRA if I am also contributing to a 401(k) in the same tax year? Roots of polynomials in field of prime characteristic p Let $F$ be a field of characteristic $p$, and let $\alpha \in F$. Let $f \in \mathbb{Z}_p[x]$ be such that $f(\alpha) = 0$. Apparently, we have $f(\alpha^p) = 0$. This was mentioned but not proved in my lectures. Can someone explain why please?  Thanks. Finder: keep sort-by per-directory Using old version of numpy even with a newer version installed I have two submit buttons in a form. How do I determine which one was hit serverside? What is a good introductory book on quantum mechanics? I'm really interested in quantum theory and would like to learn all that I can about it. I've followed a few tutorials and read a few books but none satisfied me completely. I'm looking for introductions for beginners which do not depend heavily on linear algebra or calculus, or which provide a soft introduction for the requisite mathematics as they go along.  What are good introductory guides to QM along these lines? Should I use a canonical link which refers to the current URL with pagination? How to deselect the checkbox when max row selection is set to 1 in LWC? I'm trying to build a datapack that lets you craft xp bottles from glass bottles at the expense of 7 xp per bottle (because they drop 3 to 11 xp so the average is 7). I have almost everything working except for a check for if they have too little xp. If they have 7 or less xp, I would like to remove one bottle of enchanting from their inventory and give them one glass bottle, because the function for removing xp is called after they've crafted one and a scoreboard has counted it. My remove function currently looks like this:  #create dummy scoreboard to multiply bottles crafted by seven to get xp to be removed scoreboard objectives add 7xp dummy scoreboard players set @s 7xp -7 scoreboard players operation @s xpCrafted *= @s 7xp  #how do I get the value in xpCrafted into the command to remove xp? xp add @s -7 points  #cleanup scoreboard players reset xpCrafted scoreboard players reset 7xp scoreboard players set @e xpCrafted 0 scoreboard objectives remove 7xp   And my tick function like this:  execute as @e[scores={xpCrafted=1..}] at @s run function craft_xp:removexp   As the inline comment says, how do I get that value in xpCrafted into my xp removing command, and also how should I check to make sure the player has enough xp for the operation in the tick command (or elsewhere)? Presumably I would run a different command to remove the extra bottle if they didn't have enough xp, but I don't know how because there doesn't seem to be any type of if/else structure in commands. Finally, should a question like this be in two different questions or is one ok on this forum? How does Ubuntu partition the disk when we choose "Erase disk and install Ubuntu" during installation? "DataBinding: 'index+NewsItem' does not contain a property with the name 'Link'", but property exists (Not a Typo) How much money do you need to have on hand when entering USA? My friend, a Chilean citizen, is entering the US via waiver program to spend 3 weeks in USA in a couple of weeks. She already got her ESTA approval, the plane ticket, all hotels are already booked (but paid by me, not her).  How much money would she need to bring with her when entering US? Do they still check this? She would of course have credit cards with her. Volume of an n-simplex It's rather tedious to show using Fubini's Theorem and induction on $n$ that the volume of the region $x_1+x_2+...+x_n \leq 1$ with $x_1,...,x_n$ nonnegative is $\frac{1}{n!}$.  Is there an easier way to see this? $3^{n+1}$ divides $2^{3^n}+1$ Describe all positive integers,n such that $3^{n+1}$divides $2^{3^n}+1$. I am little confused about what the question asks-if it asks me to find all such positive integers, or if it asks me to prove that for every positive integer n,$3^{n+1}$ divides $2^{3^n}+1$. Kindly clarify this doubt and if it's the former part, please verify my solution-n=1. Why can't you say don't instead of won't? Our textbook says,     A: "I have to go shopping this afternoon."   B: "Don't forget the bread."   A: "No, I won't."   About the last sentence, why can't you say "No, I don't."?  i.e. Why is "No, I don't." not acceptable in this case: Making images from single.php pointing to an attachment .php template Fantasy book series with non-human races and labyrinth How to create a shortcut that executes an xdotool command to simulate a key press? I'm trying to simulate a media key press using a custom shortcut.  So far, I've been able to achieve the simulation I need using the command:  xdotool key XF86AudioPlay   It works perfectly, it pauses or starts the music player every time it is run.  The problem comes when trying to run it as a shortcut.  First I tried to run an alias with a custom shortcut, but it did not work.  As explained on :     The commands run by keyboard bindings are not parsed via a shell. Your best bet is to create a directory bin in your homedir.   Next I created the suggested script and named it simplay:  #!/bin/sh xdotool key XF86AudioPlay   It is located inside a bin folder which is part of the PATH, this works fine and can be run from any location.  When trying to create the Custom Shortcut, I was unable to get it to execute, the configuration is the following:  Name: test Command: simplay  Shortcut: Ctrl+Alt+R   After searching a bit more I found another way to execute the shortcut:  gnome-terminal -e simplay   I tried it on a terminal and noticed that when executing it it would rapidly open a new terminal window, execute the child process, pausing the music and immediately close the window.  I changed the command on the shortcut and when hitting it I noticed the same behavior opening a terminal and immediately being closed but this time the child process did not pause the music, which makes me think that the script has been called on all my previous attempts but it is somehow not being able to execute.  How can I solve this problem according to your knowledge? How do I remove this wall plate with no visible screws? I'm amazed how complicated this wall plate is to remove. It is made of plastic and accommodates a phone jack and a coaxial cable. Please see the images that accompany this question. I've searched it thoroughly and there are no tabs anywhere on the face or edges to press in. There are no screws. I've pulled on it pretty hard, hoping that it would pop off, but if I pulled any harder it surely would break. Of course, I had the coaxial off while I tried to remove the plate. The brand name on the phone jack part is &quot;KRONE&quot;. Has anyone seen a wall plate like this? If so, how do you remove it? I have to say, I'm absolutely blown away by how ridiculously difficult this is. Any help would be appreciated.