I have a MB Pro Mid 2015 (15'') and an iPhone SE 128GB and every now and then when I connect the phone to the laptop it drops the connection after few seconds, then connects again, drops etc... Resetting USB ports or NVRAm seems to do the trick for a while, but it is only a matter of time, before the same thing happens again. Is there any permanent solution to this, or should I just live with it?  I am not completely sure if it the problem is mac or iPhone related. All other peripherals connect without problems (although sometimes a standard usb for example is not recognised right away, so I have to unplug it and plug it back in to work).  Thank you in advance for your help,  cheers
I am using an iPhone 6s with iOS 12.4 and a MacBook Pro mid2015 with macOS 10.14.6. Since recently (I am not exactly sure when it started), I cannot charge the phone with my computer anymore. As soon as I plug the phone in, it will play the charging sound repeatedly. The right-hand side port sometimes works, the lefthand side port never works. When I connect my old iPhone 5 (using the same cable), it charges without any issues. My iPad mini 4 shows the same issue.  Sometimes the "Do you trust this computer" setting flashes on the phone and disappears before I can click anything.   How can I fix this?  Update 1  Sometimes I get the Software Update dialogue in macOS. After approx. 2 minutes it shows the following:     Update 2  For some reason the issue disappeared for a while but is back now. Disabling "Settings" > "Touch ID &amp; Passcode" > "USB Accessoires" seems like it makes the problem a bit less bad, but not go away.  Update 3  This is driving me crazy. I upgraded to Mojave 10.14.3 mostly to get rid of the issue. It persists. Some more random information: Before logging in (Filevault pre-boot authentication), the phone will charge fine. Only when a user account is loaded, the issue appears. The likelihood of a successful connection increases with the battery state of the iPhone. Workaround 2 in my answer below suggest that this a "Trust issue" from the iPhone's side. I suppose the solution will have to be hidden somewhere there...    What I tried so far (will update):   Reset Privacy settings on iPhone Different (original, almost new Apple) lightning cables   Remove and add "iPhone USB" in Network Settings  SMC reset (), PRAM reset Upgrade to latest iOS 12.4 and MacOS 10.14.6
I have an Excel file containing data collected over many years as latitude and longitude coordinates for archaeological sites. How can I import it into QGIS as a new layer? Compare given date with today Can I send in for repair a lens that has a shattered front element?     UPDATE: The front element was not shattered, it was the UV filter. Factory diagnosis: Lens assembly had been impacted; cleaned and checked.  Helpful notes by Crowley, David Richerby (x2), Michael Clark (x2), and   mattdm (on element price vs UV filter).      Canon cleaned and checked my lens back to like new quality for $179 labor, no parts, not including shipping.      Jim Garrison answered my question, but Crazy Dino has the best info all around for a lens element shatter.   Original Question:  I recently opened my camera bag to find a shattered front element on a Canon EF 16-35mm f/2.8 L II USM lens.   There are a lot of micro glass shards on the second element.  Does anyone have experience with this sort of thing?  Some of the following are questions I have:   Can I get it repaired? What will the cost be roughly? Will the lens ever work the same and have a good image quality? Should I ship it as is, or attempt cleaning it with air? Where is the best place to cry a little?   Thanks, any good info on this would be appreciated.  I will never rest a lens on another lens, I nearly lost a 24-70mm L that shattered a UV filter also.   Good reason to have a UV always, never thought it could happen to me.  Update: Looking at it more it looks like maybe just the front ring came undone and the UV filter broke?  I can't remember what it looked like exactly before.  I threw away the glass shards (polished sand) in the Nevada desert.      UPDATE: Primary reason for thinking more than just the UV was broken,   UV filter split into two rings, depositing the locking collar into the   lens barrel. I was wondering if there is an easy way to trigger an e-mail alert on Windows Server 2008 when any logical disk partitions become low on space.  I have 2 SQL servers that have come close to running out of disk space because of the DB log files.  Thanks, Ryan wp_customize_image_control default value I am trying to create a custom theme using Wordpress 3.4's customization options. I would like to create an option to change the theme's logo, but I would like to also display a default logo image.   I am using the following code in my function.php page:  $defaultbranding = "get_bloginfo('template_directory') . '/images/logo.png";      $wp_customize-&gt;add_setting( 'change_branding', array(         'default' =&gt; get_bloginfo('template_directory') . '/images/logo.png',     ) );      $wp_customize-&gt;add_control( new WP_Customize_Image_Control( $wp_customize, 'change_branding', array(         'label'   =&gt; 'Image Control',         'section' =&gt; 'theme_settings',         'settings'   =&gt; 'change_branding',     ) ) );   And in the theme's header.php page:  src='&lt;?php echo get_theme_mod( 'change_branding' , 'default' ) ?&gt;'   I would like the 'default' value on the front end to be:  get_bloginfo('template_directory') . '/images/logo.png'   Is there some way I can achieve this?  Thanks in advance for any help. I have a media server (Windows 8) located in a very inconvenient part of my house. Occasionally I will have to reset my router or it will reset itself. The issue is the PC loses connectivity for some reason, and I am forced to walk outside, around the house, into the basement, over a bunch of toys and weights and boxes, to push a button to reboot it.  I would love to have it check itself every 5-10 minutes and auto reboot if it is unable to ping a given address/IP.  Any ideas how to accomplish this? Lubuntu Installer Giving Error after Partition creation "YOUR SYSTEM MAY OR MAY NOT BOOT " I was replacing my Ubuntu 18.04 with Lubuntu 20.04. I wanted to keep my /home partition same. After creating /root , swap and changing mount point for /home partition the installer gave a warning that /boot/efi partition is not created Lubuntu 20.04 needs /boot/efi partition to boot. Please create a FAT32 partition and mount it as /boot/efi and enable flag esp. Then I created the /boot/efi  partition but there was no esp flag(s). I had installed Ubuntu 18.04 alongside windows10. What should I do now? "She will be visiting" vs. "she will visit" When she goes to Mexico, she will be visiting Chichen Itza. When she goes to Mexico, she will visit Chichen Itza.  Is there a particular difference in meaning, or it is just the matter of style? "Repository doesn't support architecture" when trying to update on Landscape client Is it appropriate to put a comma before "which"? I was trying to remove all the lines of a file except the last line but the following command did not work, although file.txt is not empty.  $cat file.txt |tail -1 &gt; file.txt  $cat file.txt   Why is it so? What's the legal way to stream music online? It's really hard getting a definite answer on this so I'm going to ask it here. Is there a legal way to stream new music on a website without getting artist consent first. There seems to be a lot of popular sites like hotnewhiphop.com doing this that are hosting from both the US and Canada so I'm guessing there is a grey area that allows it. For the record I don't allow downloads of the music and simply stream each song in a player. I understand that the Bernoulli effect is a flawed explanation for the cause of lift, and does not cause much at all, but how much?   Is there any experimental data on the force caused by the Bernoulli effect? Maybe implicitly through data of the pressure difference between the top and underside of an aeroplane's wings. After that, I assume I could (crudely approximating the pressure to be acting perpendicularly to the flight direction) use $\Delta P A$ to work out the net force on the plane.    Perhaps there is another way to quantitatively analyse the extent to which the Bernoulli effect causes lift.  Edit: see  short cartoon (content similar to Mike Dunlavey's answer). Does $\sum_{k=1}^\infty\frac1{k^n}$ converge for $\Re(n)=1,\Im(n)\ne0$?  The ratio test is inconclusive.  It passes the term test for $\Re(n)=1$, but this is not sufficient to prove convergence.  Since we are dealing with so many complex numbers, I do not know of any convergence tests for this.  I know that if it is convergent, it is conditionally convergent. Suppose $T$ is the subset of $M_2(\mathbb{Z})$ of lower triangular matrices, those of form $\begin{pmatrix} a &amp; 0 \\ b &amp; c\end{pmatrix}$. So $T$ is a subring. Now I know that the ideals of $M_2(\mathbb{Z})$ are all of the form $M_2(I)$ for $I$ and ideal of $\mathbb{Z}$.   However, is there a nice way to describe all the ideals in $T$ specifically, or does it not behave quite as nicely? Problem from Herstein on group theory Moving Grub to a new drive to get rid of Windows The -k option (or --convert-link) will convert links in your web pages to relative after the download finishes, such as the man page says:     After the download is complete,   convert the links in the document to   make them suitable for local viewing.   This affects not only the visible   hyperlinks, but any part of the   document that links to external   content, such as embedded images,   links to style sheets, hyperlinks to   non-HTML content, etc.   So, if I didn't specify -k, can I run wget again after the download and fix that, and if so, what would be the proper command? My guess is wget -c [previous options used] [url] and run it in the same working directory as the file were downloaded to. Let $x = (a, b), y = (c, d) \in \mathbb{Z}^2$. What is the condition on $a, b, c, d$ so that ${x, y}$ is a basis?   My answer: $ad\neq bc$ and $gcd(a, c) = gcd(b, d) = 1$.  The first condition ensures that they aren't the same vector; the second ensures that we can actually "get" all of the integer values/lattice points.  Is this correct?  Thanks. How does $ \sum_{p<x} p^{-s} $ grow asymptotically for $ \text{Re}(s) < 1 $?