I am trying to change a contact's photo under my Motorola Moto Z2 Play / Android 8.0.0 (Security Patch July 2019):  Contacts &gt; 🔍 (find a contact) &gt; 🖉 (edit contact) &gt; 📸 (change photo) &gt; Select new photo  and I am hit with an error saying:  No pictures are available on the device.  I don't understand this situation, because:  I have dozens of photos and pictures on this device, in &quot;DCIM&quot;, &quot;Pictures&quot; and others, I can change widget's icon without any problem (my launcher allows this), I've been changing contacts' photos many times on this device. I've managed to change contact's photo on other devices and Android versions (A9 and One), I don't think this is due to SAF (details:  and ), because I am still on A8, not A10.  Since I did this last time a couple of months / maybe a year ago. The only thing that comes to my mind is that I did this last time under old, good Android 7.1.2. And the recent update to Android 8.0.0 maybe messed up something. I have tried putting new photo into every folder that came to my mind:  root, DCIM, DCIM/Camera, Pictures, Pictures/Contacts (I've been using this one for years).  All for nothing. Always seeing this damn message. I even went as far as:  Contacts &gt; 🔍 (find a contact) &gt; 🖉 (edit contact) &gt; 📸 (change photo) &gt; Take new photo, capture some test image, use it, see, where it is stored (turned out that in: DCIM/Camera, as expected), remove it, try again using &quot;Select new photo&quot;.  My phone went as wako as allowing me to change the photo of one of contacts in the first place (i.e. after using &quot;Take new photo&quot;), stored it in DCIM/Camera folder and when I tried to use the very same photo from the very same folder, but using &quot;Select new photo&quot; instead, it again claimed that I have no pictures in this device). Can anyone help me? How to workaround this problem? How to change contact's photo in A8?
At some point in time (about a week ago) something happened to my Motorola Moto Z2 Play / Android 8.0 that caused my base apps to not have access to my media files (i.e. audio, photos etc.). Examples:  all my custom ringtones (i.e. based on my own media files) were reset to default sound:  Contact apps reset custom ringtones for contacts to default one, Alarms &amp; Clock app reset custom alarm tone to default one, SMS (Messages) app reset custom message notification tone to default one, system-wide default notification tone (set by me to custom) was reset as well, system-wide default ringtone (set by me to custom one) was reset,    because my contacts app keeps saying: &quot;No pictures are available on the device&quot;.  While first situation is resolved. I see my custom ringtone files in the list and I can go through my contacts and assign them again. But second situation is not resolved. I see this error all the time and I cannot change any contact's photo. This is verified as not a bug (tested three different contacts-like applications and all of them shows exactly the same message, when trying to change contact's photo). But still, it seems that problem is limited to contacts-related apps only. Other apps still has read and write access to my custom files. For example: :  (read) I can pick any photo or other custom file and attach it to an e-mail, send it as MMS or share it in any other way or (read) upload it to OneDrive or Google Drive etc. or (write) my Camera app is still able to make new photos and store them in &quot;DCIM&quot; or (write) my sound recorder is able to record sound and write audio files.  The only thing that has changed on my phone recently and that I suspect as the cause of above metioned situation was Android 7.1.2 --&gt; Android 8.0.0 update. Is there anything I can do (since replacing contacts app didn't resolve the situation) or check in this case? Or resetting the phone to factory defaults is the only option that I am left with? EDIT: I have cleared cache and data of media app, as suggested in comment. It didn't help.
pgfplots from file: search path, looking for \graphicspath equivalent How do I pre-populate a jQuery Datepicker textbox with today's date? I have a very simple jQuery Datepicker calendar:  $(document).ready(function(){     $("#date_pretty").datepicker({      }); });   and of course in the HTML...  &lt;input type="text" size="10" value="" id="date_pretty"/&gt;   Today's date is nicely highlighted for the user when they bring up the calendar, but how do I get jQuery to pre-populate the textbox itself with today's date on page load, without the user doing anything?  99% of the time, the today's date default will be what they want. I need to delete some rows from one large table. The rows to delete shouldn't be in another table, example:  DELETE FROM LargeTable WHERE id IS NOT IN (SELECT DISTINCT foreign_id from EvenLargerTable)  but my server can't handle such blunt query, because there are almost a million records in the LargeTable and few million records in the EvenLargerTable  How can I solve it? Of Half-elven and mortal life When half-elvens choose mortal life, how would their bodies behave?  Half-elven are always elves by nature. Ever since they're born, their physical body and behaviour would be elvish - they have keen senses, they don't get physically weary, no illness, and so on.  Half-elvens are then offered a choice - Immortal elvish lives or mortal fate of men. When they choose the latter, like Elros and Arwen did, what would happen to their elvish nature? Would they lose it? I don't think they would lose their pointy ears, but what about the other elvish features that I mentioned before?  Are there any canonical references? I'm trying to wrap my head around how SQL Server decides to grant certain rights based on a users login privileges.  If a user is part of a group "READ ONLY" which has access to DB1, but they are also a part of a group "SysAdmin" which has full db owner rights to the same DB1, which rights are they given when they log in?  On a similar note. What if they are part of a group but also have a standalone account with other middle of the road privileges? make iframe height dynamic based on content inside- JQUERY/Javascript require_once () or die() not working The new notice for protected questions looks like this:     Earn 10 reputation in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.  The phrasing of this notice leaves out a lot of info, and is incorrect in many cases:  In the case where the user has just created their account on the site (whether or not they have the association bonus of +100), the default 1 for signing up does count toward the required 10. The message implies that the user has to earn 10 more reputation for a total of 11 (or 111), while the actual requirement is 10 (or 110).  If the user just registered and started off with the association bonus, then later lost part of it (e.g. through bounties or making a downvoted post), earning 10 reputation is not enough to answer protected questions. According to the literal wording of the notice, earning 10 reputation is enough regardless of previous rep loss, but this is not the case.   The easiest fix that can be made, to at least fix part of the problem, would be to explicitly indicate that the association bonus does not count. This was implemented in the prior protected question notice in response to , but was omitted from the new notice. This omission  , and adding this back would remove that. Can we please fix this notice? In my Master thesis, I used this:  \begin{itemize}[label=\ding{167}] \item Access Windows XM from Ubuntu Server \item List the directories contents of Windows XP \end{itemize}   The output is:  My question: must I avoid the use of  such beautiful things when writing my thesis or is it a normal thing to do ? Roman numerals with over- and underline This question led to a new package:      (using a variation of egreg's code, and stating this in the manual; the package isn't really new now, sorry for the delayed announcement)  I have read about "How to get Roman numerals" but asked myself how to get Roman numerals formatted as in     i.e. with fitted over- and underline (without manually using boxes and such)? I'm curious for your answer(s)! Recently, I found this , that allows you to generate a 3D model from a 2D image.   It works very well and you can download an OBJ file. Vertex are colored and when I import it using Blender, I can't see any Vertex color.   Using Cycle (I prefer a internal solution if it exists) according to some answers I've found on Blender Stack Exchange, I patched some nodes : Attribute -> Diffuse BDSF -> Material Output.  Unfortunately, I can't get it works, the model stills black.    When I open the OBJ file, I see that color per vertex are there :  v 43.747554 107.000000 69.000000 0.470588 0.380392 0.309804 v 43.780163 115.000000 64.500000 0.427451 0.337255 0.266667 v 43.782527 107.000000 68.500000 0.470588 0.380392 0.309804 v 43.801902 115.000000 65.000000 0.427451 0.337255 0.266667 v 43.806461 107.000000 69.500000 0.470588 0.380392 0.309804 v 43.821703 115.000000 64.000000 0.427451 0.337255 0.266667 v 43.838352 108.000000 68.500000 0.466667 0.376471 0.305882 v 43.854670 106.000000 69.000000 0.482353 0.392157 0.321569 v 43.856176 108.000000 69.000000 0.466667 0.376471 0.305882 v 43.873876 106.000000 69.500000 0.482353 0.392157 0.321569 v 43.888855 110.000000 68.000000 0.466667 0.376471 0.305882 v 43.891471 109.000000 68.000000 0.466667 0.376471 0.305882 v 43.892733 110.000000 67.500000 0.466667 0.376471 0.305882 v 43.895170 108.000000 68.000000 0.466667 0.376471 0.305882 v 43.900904 109.000000 68.500000 0.466667 0.376471 0.305882 v 43.907584 107.000000 68.000000 0.470588 0.380392 0.309804 v 43.917898 115.000000 65.500000 0.427451 0.337255 0.266667 v 43.925000 111.000000 67.500000 0.454902 0.364706 0.294118   According to some answers here, Blender import more easily the vertex color of a PLY file so I tried to convert to PLY with two different sites :   1. meshconvert .com : Give me a 3.5 Mo file  2. greentoken.de/onlineconv : Give me a 2.3 Mo file  (Of course, if you know some other sites I could try, it interest me)  I guess that color data are lost with greentoken (not sure).   When I import the 3.5 Mo PLY file in blender, I need to be in textured display mode, then I think I see my vertex color value but in black &amp; white instead of RGB, that is weird. Anyway, I can't get it work  EDIT 1 : I opened PLY files and color vertex aren't there... I need to find a better converter   EDIT 2 : I tried www.ofoct.com/3d-model-file-for-3d-printer-converter it doens't take vertex color into account. In fact, in each PLY files I converted with the various sites here, there is a common line :      comment Created by Open Asset Import Library -    (v3.2.0)   (the version varies)  EDIT 3 : In fact it seems that model converted by Green token, keep the vertex color. That is weird because that's the smallest file :   ply format ascii 1.0 comment Created by Open Asset Import Library - http://assimp.sf.net (v3.1.187496374) element vertex 29793 property float x property float y property float z property float nx property float ny property float nz element face 59582 property list uint uint vertex_index end_header 82 103 6.37528 0.40963 0.0331735 0.911648 82 102 6.57043 0.272087 0.235193 0.933088 82.6603 103 6.5 -0.14071 0.043367 0.9891 82 103.935 6.5 0.201161 -0.136681 0.969976 81.5475 103 7 0.825371 0.0489484 0.562465 83 102 6.62244 -0.248588 0.147929 0.957247 83 103 6.56417 -0.411487 -0.0867124 0.907281 81.5819 104 7 0.787841 -0.0338904 0.614946 82 105 6.63886 0.0715144 -0.131383 0.988749 83 104 6.77321 -0.431167 -0.171652 0.885794 83.6781 102 7 -0.470137 0.061235 0.880467 83.6327 103 7 -0.543939 -0.0905203 0.834228 83 105 6.96709 -0.445324 -0.163091 0.880391 84 103 7.23724 -0.520118 -0.141377 0.842313 84 104 7.47775 -0.546517 -0.195833 0.814229 84 102 7.16782 -0.416323 -0.021798 0.908955 83.3508 101 7 -0.314426 0.156435 0.936304 84 101 7.22581 -0.280388 0.0301462 0.959413 84.9009 101 7.5 -0.339848 -0.0219793 0.940223 84.6939 102 7.5 -0.435242 -0.0925323 0.895546   As you can see, nx, ny and nz correspond to RGB values.. 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? Using [Authorize] without SimpleMembershipProvider I just finished taking my first year of calculus in college and I passed with an A.  I don't think, however, that I ever really understood the entire $\frac{dy}{dx}$ notation (so I just focused on using $u'$), and now that I'm going to be starting calculus 2 and learning newer integration techniques, I feel that understanding the differential in an integral is important. Take this problem for an example: $$ \int 2x (x^2+4)^{100}dx $$ So solving this... $$u = x^2 + 4 \implies du = 2x dx \longleftarrow \text{why $dx$ here?}$$ And so now I'd have: $\displaystyle \int (u)^{100}du$ which is $\displaystyle \frac{u^{101}}{101} + C$ and then I'd just substitute back in my $u$. I'm so confused by all of this.  I know how to do it from practice, but I don't understand what is really happening here.  What happens to the $du$ between rewriting the integral and taking the anti-derivative?  Why is writing the $dx$ so important?  How should I be viewing this in when seeing an integral? Sci-fi series: humans are immune to telepathy, become soldiers for an alien group fighting against invertebrate telepaths Inspired by this Hagon Von Eitzen's answer( ) I started investigating how I could express natural numbers as differences of squares. Using the method explained in the solution, I investigated natural numbers up to $60$ manually. I observed the following:  There is no way to express numbers of the form $4k+2$ as a difference of two squares.  2.There is one and only one way to express prime numbers (except $2$) as a difference of two squares.  The smallest number that can be expressed as a difference of two squares in two different ways is $15$ and the smallest number that can be expressed as a difference of two squares in three different ways is $45$.  As, $15= 8^2-7^2=4^2-1^2$. $45=23^2-22^2=9^2-6^2=7^2-2^2$. I could prove point $2$ easily but could not prove point $1$. Also I am interested in knowing how I could find the smallest natural number that could be expressed as a difference of two squares in four different ways without manual calculation. Please help me to prove this trigonometric equation.  $\cos \left( 36^\circ \right)-\cos \left( 72^\circ \right) = \frac{1}{2}$  Thank you. Prove that, $\binom{3n}{r}=\binom{3n-1}{r} + \binom{3n-1}{r-1}$ Reading through my textbook I came across the following problem and I am looking for some help solving it.  Prove that,  $$\binom{3n}{r}=\binom{3n-1}{r} + \binom{3n-1}{r-1}$$  In a previous problem I solved the following but I wasn't sure how to use it to prove the question above. Prove,  $$\binom{n}{r}=\binom{n}{n-r}$$  Solution:  left Side,  $$\binom{n}{r}=\frac{n!}{(n-r)!r!}$$  right side,  $$\binom{n}{n-r}=\frac{n!}{(n-(n-r))!(n-r)!} = \frac{n!}{(n-r)!r!}$$  Therefore completing the proof,  but how do I solve my first question? thanks! Text highlighting in revisions is wrong For example, when watching revision 2 in  in the side-by-side mode, word "answer" marked as deleted on the left hand side and as added again on the right hand side:        If we switch to the side-by-side markdown mode no "answer" word is highlighted at all (correctly): Double booked - User bookmarking question recorded twice In this  one user is shown as having bookmarked  twice:  This doesn't appear to be the same question as:  or  though it's certainly possible that the cause is the same.