I want to iterate over an array which name is in another variable. This is what I tried so far:  NTASKSLIST=(384 768 1536 3072)  # there are potentially more arrays like these, each custom defined for every entry in NTASKSLIST OV384LIST=("16 16 12" "16 16 16" "18 18 12" "18 18 16" "18 18 18") OV768LIST=("24 16 16" "24 18 18" "32 18 18" "36 18 18" "36 24 24")  for NTASKS in "${NTASKSLIST[@]}" do    OVLIST="OV${NTASK}LIST"   # OVLIST now holds the name of the array I want to iterate    # now I want to iterate over the array which name is in OVLIST but it does not work   for OV in "${!OVLIST[@]}"   do     echo $OV # prints "0" because OVLIST has only 1 item (the name of the array I want to iterate)      # here I want to do stuff with OV and NTASKS    done done   Do you have any suggestions how to do this? Alternative approaches which accomplish the same thing should to as well.  Edit:  As shown the comments by  the answer to my question is:      OVNAME="OV${NTASKS}LIST"[@]     OVLIST=( "${!OVNAME}" )      for OV in "${OVLIST[@]}"
The Bash man page describes use of ${!a} to return the contents of the variable whose name is the contents of a (a level of indirection).  I'd like to know how to return all elements in an array using this, i.e.,  a=(one two three) echo ${a[*]}   returns  one two three   I would like for:  b=a echo ${!b[*]}   to return the same.  Unfortunately, it doesn't, but returns 0 instead.  Update  Given the replies, I now realise that my example was too simple, since of course, something like:  b=("${a[@]}")   Will achieve exactly what I said I needed.  So, here's what I was trying to do:  LIST_lys=(lys1 lys2) LIST_diaspar=(diaspar1 diaspar2)  whichone=$1   # 'lys' or 'diaspar'  _LIST=LIST_$whichone LIST=${!_LIST[*]}   Of course, carefully reading the Bash man page shows that this won't work as expected because the last line simply returns the indices of the "array" $_LIST (not an array at all).  In any case, the following should do the job (as pointed out):  LIST=($(eval echo \${$_LIST[*]}))   or ... (the route that I went, eventually):  LIST_lys="lys1 lys2" ... LIST=(${!_LIST})   Assuming, of course, that elements don't contain whitespace.
Is the total variation function uniform continuous or continuous? A new version of Ubuntu has been released. I still can't find it on ubuntu.com. Where can it be downloaded from, or is it the only way to install it using update-manager to upgrade an existing installation? For a more comprehensive list of monitoring tools and their features, check out .   As the question states, what are the most commonly used tools used for this task and what are their strengths and weaknesses? How to make Arduino (Snap) access serial port /dev/ttyUSB0 (or /dev/ttyACM0)? I have Ubuntu 18.04 LTS installed.  I installed Arduino IDE v1.8.5 as a snap with  snap install arduino-mhall119   I have added my user to dial-out group and rebooted:  sudo usermod -a -G dialout $USER  $ groups  username adm dialout cdrom sudo dip plugdev lpadmin sambashare   I connected my Arduino Nano to the laptop, it is detected on port /dev/ttyUSB0 (ch341-uart).  $ ls /dev/ttyUSB0 -al crw-rw---- 1 root dialout 188, 0 авг 13 11:59 /dev/ttyUSB0   I tried to upload the simpliest Blink sketch and get the following errors in the terminal:  $ arduino-mhall119.arduino    avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied   Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.**   Also I have installed arduino 1.8.5 with umake - it can access serial port in usual way.  Note: we already have  here, but the solution was to use , not fix for the Snap.  So my question is: How to make Arduino (Snap) access serial port /dev/ttyUSB0 (or /dev/ttyACM0)?  Update: connecting serial-port to the snap fails with the following message  $ snap connect arduino-mhall119:serial-port  error: snap "core" has no "serial-port" interface slots   Current interfaces are:  $ snap interfaces | grep arduino :home                            arduino-mhall119,gedit,organize-my-files,vlc :network                         arduino-mhall119,gedit,organize-my-files,pulsemixer,vlc :unity7                          arduino-mhall119,gedit,organize-my-files,vlc :x11                             arduino-mhall119,organize-my-files,pulsemixer,vlc -                                arduino-mhall119:serial-port   Changing permissions of serial port to 777 with sudo chmod 777 /dev/ttyUSB0 does not help.  The following do not work too (because of syntax errors):  $ sudo snap connect arduino-mhall119:arduino error: snap "arduino-mhall119" has no plug named "arduino"  $ snap connect arduino-mhall119:/dev/ttyUSB0 error: snap "arduino-mhall119" has no plug named "/dev/ttyUSB0"  $ snap connect arduino-mhall119 error: cannot resolve connection, plug snap name is empty   Information about YAML-manifest:  $ ls -l /snap/arduino-mhall119/current/meta/snap.yaml -rw-r--r-- 1 root root 353 июл 28 00:20 /snap/arduino-mhall119/current/meta/snap.yaml  $ cat /snap/arduino-mhall119/current/meta/snap.yaml |grep -A 12 slots  $ cat /snap/arduino-mhall119/current/meta/snap.yaml |grep -A 5 plug     plugs:     - x11     - unity7     - home     - network     - serial-port My server is still vulnerable to heartbleed even after I update OpenSSL I have an Ubuntu 12.04 server. I have updated the OpenSSL package in order to fix the heartbleed vulnerability. But I am still vulnerable even, even though I have restarted the web server, and even the whole server.  To check my vulnerability I used:       dpkg gives:  dpkg -l |grep openssl ii  openssl  1.0.1-4ubuntu5.12   Secure Socket Layer (SSL) binary and related cryptographic tools   (launchpad.net/ubuntu/+source/openssl/1.0.1-4ubuntu5.12) Creating non-reverse-engineerable Java programs Why is fundamental group insufficient to classify manifolds? I have heard that some issues in group theory prevent classifying all manifolds upto homotopy using the fundamental group invariant. Does anyone know what are those issues?  Thanks, K. While watching  I noticed a very characteristic camera shot. At a scene where the main character, Wendy, sits in her room at the computer (watching the supposedly foretelling fotos), her sister talks to her from the outside (asking if she can have the camera/fotos). There is a certain camera shot, where on the left side a frontal close-up of Wendy's face is shown, while on the right side you see her sister standing in full height inside the open door.    This shot immediately struck me as being somehow characteristic and out of place and infused feelings to me of some kind of older Hitchcock or Brian De Palma thriller or something the like. I also think to remember of having seen this kind of shot or something similar used in , where Jessica Lange is shown in front of the dresser talking to Nick Nolte who stands in the door or father away.  I would like to know if this technique has a certain name or theory behind it and where its origins lie, or if there is any particular director or movie who made this famous. It may be even that Final Destination 3 uses this especially in reference to some director or movie. Let $C$ be the coefficient of $x^2$ in the expansion of the product $(1 - x)(1 + 2x)(1 - 3x)\cdots(1 + 14x)(1 - 15x).$ Find $|C|.$   Just to begin,  $(1-x)(1+2x) = -2x^2 + x + 1$  $(1-x)(1+2x)(1-3x) = 6x^3 - 5x^2 - 2x + 1$   But expanding on like this take too long.  In the end the terms will be like:  $(1 - 15x)(a_0 + a_1x^1 + a_2x^2 + ....)$  Then just looking at the $x^2$, it will be:  $(a_2x^2 - 15a_1x^2) = x^2(a_2 - 15a_1)$  But it it still a very hard problem, any hints? Assurance that ST_Envelope works with geography as expected Using PostGIS, I have a table of data with geographic points defined as last_known_coordinates GEOGRAPHY(POINT,4326). I want to find all of these within a geographic bounding box with given top left and bottom right geographic coordinates, and be sure that the calculations are geographic, not geometric, e.g. that the results account for the curvature of the earth. The query I'm using contains the fragment: last_known_coordinates &amp;&amp; ST_MakeEnvelope(?, ?, ?, ?, 4326)::geography As you can tell I'm a bit new to this, and I know what I want, but not necessarily how to do it correctly. Other answers hint that this is correct, but I'd like to know for sure: Will this point data and SQL fragment take into account the curvature of the Earth in the bounding box? When you cast invisibility on your turn, and walk away from 2 enemies, do they get an attack of opportunity? When a PC is in melee with a creature, casts the basic invisibility spell, and leaves melee, does an NPC get an attack of opportunity? Two Clash of Clans accounts on one device I have been playing on two clash of clans accounts on one device for a long time but just recently i cannot switch from my lvl17 to my lvl75. The switch villages option is not popping up for me and I don't know why. Can anyone help me get my main account back? Which is grammatically correct?  I can only do so much in this time.  or  I can do only so much in this time. Remove empty elements from an array in Javascript How do I remove empty elements from an array in JavaScript?   Is there a straightforward way, or do I need to loop through it and remove them manually? How can I fix "unbalanced brackets" in my data tag? Often, when making a command block contraption, you need to set an entity's data tag. These tags can sometimes be very long, with many layers of nested curly and square brackets. For example, this is the command to summon a villager with a single custom trade:  /summon Villager ~ ~ ~ {Profession:3,Career:2,Offers:{Recipes:[{buy:{id:minecraft:diamond,Count:6b}},sell:{id:minecraft:diamond_hoe,tag:{ench:[{id:16s,lvl:10s}]}]}}   The single-line command block interface of Minecraft makes it incredibly difficult to find and fix errors, especially when it comes to mismatched brackets. In fact, for illustration purposes, I put an error in the above command.  What techniques can I use to find and fix unbalanced square or curly brackets when writing long and complicated data tags? Explicit bijection between $\Bbb R$ and permutations of $\Bbb N$ Is it possible in blender to change the dimensions of a downloaded 3d model in .blend format or .obj format in blender using python scripting? I am totally new to blender, I have downloaded a 3D model of a humanoid and am able to see it in blender. I want to change its dimensions and size in all perform editing on by changing its size, height, arm width, length, etc. In a more clear picture of the question, suppose i have 5 persons whose 3D model I have to make automatically, so I want to change the dimensions of that humanoid to match the body measurements of these people. If I can mark those points manually on the humanoid and define parameters of shoulder width, arm length, height, etc and just input the values then my project can go a little forward. The model I am using is attached in this link,  Please if anyone can tell me if it is possible to edit the model by defining certain parameters through python scripting. I need it as an add on for my project. And i just need to know how can i do that rest i shall experiment and do. Create directory if it does not exist How To: Execute command line in C#, get STD OUT results How do I execute a command-line program from C# and get back the STD OUT results? Specifically, I want to execute DIFF on two files that are programmatically selected and write the results to a text box. Baking IK into FCurves I have an object containing multiple models with several IK.  One model has fcurves (euler rotation only) which gives motor to linked IK models.  What I need is bake/convert all IK animations into FCurves.  Is it possible?