Generate an incremental $variable when in a for loop
How do I dynamically create the variable name in a PHP loop?
I'm unable to upgrade Xcode 11GM to 11.1 for some time on my Mid 2014 MacBook Pro running macOS Catalina. I've installed Xcode from Mac AppStore ages ago (IIRC circa 2014), and upgraded step by step since then. Currently, I'm experiencing the following loop:   AppStore reports that I have an update. I open AppStore, open updates, click "Update" on Xcode. Mac Downloads ~2.5GB first. Installs that patch. Continues to get the full package (~7.6GB). It starts to install. After some churning and install, it reports "Cannot download Xcode now, please try again later."   I have more than enough space on the disk, and nothing is modified in Xcode or in the OS (no homebrew or something similar).  Did anyone experience something similar? Are there solutions to this? I've grown quite fond of HTTP reverse proxies in our development environment and found the DNS based virtual host reverse proxy quite useful. Having only one port (and the standard one) open on the firewall makes it much easier for management.  I'd like to find something similar to do SSH connections but haven't had much luck. I'd prefer not to simply use SSH tunneling since that requires opening port ranges other than the standard. Is there anything out there that can do this?  Could HAProxy do this? Extending the User model with custom fields in Django How to change permission external hard drive in ubuntu 12.04 I want to copy any file to my external hard drive. But always when I tried to do this I have next output:  cp: cannot create regular file /media/NameOfCard/[file]' : Read only file system  I also tried:  sudo chmod -R 775 /media/NameOfCard sudo chmod -R 777 /media/NameOfCard   But the same effect - ... Read only file system  Update:   After mount I have next output:  nazar_art@nazar-desctop:~$ mount /dev/sda1 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) /dev/sdb1 on /media/sdb1 type vfat (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfs-fuse-daemon on /home/nazar_art/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=nazar_art)   Any suggestions?   How to solve this trouble and let permission to copy and delete files to hard drive? Can you terminate more than one common on the furnace C terminal? What's the Linux equivalent to Windows batch files? I have a batch file which I use to create an .apk file on my Windows machine. Now I need to be able to create the .apk file in Ubuntu but I don't know how translate my .bat file to a script to be able to run it on Ubuntu.  Below is the batch file which works fine on Windows.  Will you please give me some hints on how I can run it on Ubuntu?  @echo off set PAUSE_ERRORS=0 :user_configuration  :: Path to Flex SDK  set FLEX_SDK=C:\sdk\flex_sdk_4.5.1.21328  :: Path to Android SDK set ANDROID_SDK=C:\sdk\android  :validation if not exist "%FLEX_SDK%\bin" goto flexsdk if not exist "%ANDROID_SDK%\platform-tools" goto androidsdk goto succeed  :validation if not exist "%FLEX_SDK%\bin" goto flexsdk if not exist "%ANDROID_SDK%\platform-tools" goto androidsdk goto succeed  :flexsdk echo. echo ERROR: incorrect path to Flex SDK echo. if %PAUSE_ERRORS%==1 pause exit  :androidsdk echo. echo ERROR: incorrect path to Android SDK in 'bat\SetupSDK.bat' echo.  if %PAUSE_ERRORS%==1 pause exit  :succeed set PATH=%PATH%;%FLEX_SDK%\bin set PATH=%PATH%;%ANDROID_SDK%\platform-tools  :: Android packaging set AND_CERT_NAME="PeymanApp" set AND_CERT_PASS=fd set AND_CERT_FILE=cert\SampleApp.p12 set AND_ICONS=icons/android  set AND_SIGNING_OPTIONS=-storetype pkcs12 -keystore "%AND_CERT_FILE%" -storepass     %AND_CERT_PASS%  :: Application descriptor set APP_XML=application.xml  :: Files to package set APP_DIR=bin set FILE_OR_DIR=-C %APP_DIR% .  :: Your application ID (must match &lt;id&gt; of Application descriptor) set APP_ID=air.com.doitflash.SampleApp  :: Output packages set DIST_PATH=dist set DIST_NAME=PeymanApp  :validation %SystemRoot%\System32\find /C "&lt;id&gt;%APP_ID%&lt;/id&gt;" "%APP_XML%" &gt; NUL if errorlevel 1 goto badid goto end_validation  :badid echo. echo ERROR: Application ID (APP_ID) does NOT match Application descriptor '%APP_XML%'     (id)  echo.  :end_validation  set TARGET= set PLATFORM=android  ::call bat\Packager.bat if "%PLATFORM%"=="android" goto android-config  :android-config set CERT_FILE=%AND_CERT_FILE% set SIGNING_OPTIONS=%AND_SIGNING_OPTIONS% set ICONS=%AND_ICONS% set DIST_EXT=apk set TYPE=apk goto start  :start if not exist "%CERT_FILE%" goto certificate :: Output file set FILE_OR_DIR=%FILE_OR_DIR% -C "%ICONS%" . if not exist "%DIST_PATH%" md "%DIST_PATH%" set OUTPUT=%DIST_PATH%\%DIST_NAME%%TARGET%.%DIST_EXT% :: Package  echo true echo. call adt -package -target %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%"     "%APP_XML%" %FILE_OR_DIR% -extdir lib/ echo. if errorlevel 1 goto failed goto end  :certificate echo Certificate not found: %CERT_FILE% echo.  if %PAUSE_ERRORS%==1 pause exit  :failed echo APK setup creation FAILED.  if %PAUSE_ERRORS%==1 pause exit  :end How do I remove objects from an array in Java? Is something similar to Robin's theorem known for possible exceptions to Lagarias' inequality? Robin's theorem says that if $$\sigma(n)&lt;e^\gamma n\log\log n$$ holds for all $n&gt;5040$, where $\sigma(n)$ is the sum of divisors of $n$, then the Riemann hypothesis is true, but if there are any counterexamples, then they are colossally abundant numbers, and there are infinitely many counterexamples.  Lagarias' theorem says $$\sigma(n)\leq H_n+e^{H_n}\log(H_n)$$ holding for all natural numbers $n$ is equivalent to the Riemann hypothesis, where $H_n$ is the $n$th harmonic number, the sum of the reciprocals of the first $n$ positive integers. It looks like Lagarias' inequality is sharper than Robin's, so any counterexamples to Robin's inequality must also be counterexamples to Lagarias'. Is known to be impossible for integers that aren't colossally abundant numbers or of some similar more general type to be exceptions to Lagarias' inequality? Sharepoint 2010 - Deploy webpart as Feature scope = web I want to create and deploy a web part as web-scoped feature.  In Visual Studio 2010, when I make the feature scope=web, I cannot add the webpart to that feature as I am able to do when scope=site. In Avengers: Age of Ultron movie,      Ultron infected tech of Avengers Tower just after his birth. It means he is capable of infecting tech. Also, if this wasn't the case, he could never be able to create his drones.   Just after its birth,      He escaped using the Internet and infected digital devices across the entire planet. Again, awesome capability (think Skynet).   We also saw that      Iron Man's armor was connected to the Internet. He googled for the keyword "Hulk" during flight just before he deployed Veronica.   Then, why did Ultron let Iron Man win the fight? Why didn't he simply hack Iron Man's armor to use him as own drone? What is "cloning a hard drive" and how does one go about doing it? What does cloning a hard drive mean? Is it just simply copying over all the "CONTENT" of the hard drive EXCLUDING the operating system, drivers, all the installed programs? or is it copying the ENTIRE hard drive BIT for BIT? Is the cloned hard drive bootable?  I have an external USB hard drive and trying to make a exact copy of my computer system by cloning, so that I can connect the cloned hard drive to another machine and boot into it, or install the cloned disk on another computer system and boot into it. Is this possible? Or am I going about this totally wrong?  What is ghosting a hard drive? At what speed does our universe expand? Random piece of plastic I have recently purchased a hybrid bike with suspension (not sure if that is relevant to this question). It came with two pieces of plastic. Any ideas what they may be for? Bind an element to two sources I currently have two text boxes which accept any number. I have a text block that takes the two numbers entered and calculates the average.   I was wondering if there was a way I could bind this text block to both text boxes and utilize a custom converter to calculate the average? I currently am catching the text changed events on both text boxes and calculating the average that way, but I am under the assumption data binding would be more efficient and easier. Every element outside the maximal ideal of a local ring is a unit A homework question from my algebra class asks:     Show that in a local ring $R$ with maximal ideal $M$, every element outside $M$ is a unit.   My argument is that since $M$ is maximal $R /M $ is a field and so for any $ x \in R \backslash M $, $ x + M $ has a multiplicative inverse, which implies $ x $ is a unit.  I don't see where we need the fact that $R$ is a local ring. This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.). Product of manifolds & orientability I'm studying orientability of manifolds currently and I'm having trouble to prove the following: $M\times N$ is orientable iff $M$ and $N$ are orientable.   I am able to prove that the product is orientable if components are orientable (chart is $\{(U_\alpha\times V_{\beta},\phi_\alpha\times \psi_\beta):(\alpha,\beta)\in A\times B \}$, and $\det J=\det J_1 \det J_2&gt;0$ by Cauchy-Binet's theorem), but I don't know how to prove the other direction.   So why this holds: if $M\times N$ is orientable, then $M$ and $N$ are orientable?  Thanks in advance. How can i change formatting of the table of contents to avoid section numbering and section title to overlap?  Document:  \documentclass[10pt,oneside,notitlepage]{book}  % Use Heuristica Font \usepackage{heuristica} \usepackage[heuristica,vvarbb,bigdelims]{newtxmath} \renewcommand*\oldstylenums[1]{\textosf{#1}}   \begin{document}  \tableofcontents  \part{Part one}  \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh}   \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi}  \end{document}   Example output: Given the Python function:  def a_method(arg1, arg2):     pass   How can I extract the number and names of the arguments. I.e., given that I have a reference to func, I want the func.[something] to return ("arg1", "arg2").  The usage scenario for this is that I have a decorator, and I wish to use the method arguments in the same order that they appear for the actual function as a key. I.e., how would the decorator look that printed "a,b" when I call a_method("a", "b")? Why do we need to discard one dummy variable?