I could really use some help with an arcpy field calculation.I need to concatenate a float and a string to populate a TEXT field with distances and units to feed to the buffer function. I will need to buffer multiple points at various distances but with a single unit of measure. I am reading in the field name from the script tool, and I'm allowing the user to select a units string from a value list so I do not know what the actual field name or unit string will be.   Dist_Field = arcpy.GetParameterAsText(0)      # In my test data this field is called "Dist"      # and is sourced to an input table in the script tool Units = arcpy.GetParameterAsText(1)      # selection from a value list of valid unit strings -      # METERS, MILES etc...  # What goes in the expression argument? arcpy.CalculateField_management (CopiedTable, "DistUnits", ? ,"PYTHON")      # DistUnits is a TEXT field that I created so I know its field name      # I attempted to use the following as the expression       # "'str(Dist_Field)+" Kilometers"'"       # I don't have the actual line of code handy, but variations on this        # return the field name + Kilometers:  ( Dist Kilometers )       # I've also tried "'str(Dist_Field) + str (Units)'"     # a literal field name string or units string is no use to me as I only        # know the variable name    How do I concatenate a float field with a string variable and write it to the new TEXT field when I only know variable names?   I'm flailing in my attempts figure out how this works.  This is my first attempt at both Python and ArcPy.
I am trying to run a buffer tool as part of script that I will both use as a standalone script and import into ArcToolbox. I'm just wondering, if I use GetParameterAsText for the buffer distance, how do I set the linear units? E.g. I want it preset so they only have to type 300 and the script takes that to be meters? Here is what I have so far:  # Buffer the Thames feature class to create the Flood Risk Area in_features = "Thames" out_feature_class = "Flood_R_A" # Run the Buffer Tool arcpy.Buffer_analysis (in_features, out_feature_class, arcpy.GetParameterAsText(5),    "FULL", "ROUND", "ALL", "")
Video lectures on graduate level Classical Electrodynamics This is a rather broad question. Does anyone know of good video lectures for graduate level classical electrodynamics? I'm a Georgian national holding a multiple entry Schengen visa.  Last summer I was traveling to Hungary, spent a few days there, then flew to the UK. The Hungarian border official did NOT stamp my passport on exiting the Schengen area. I had to enter it again a few days later and the German border guards were confused by what had happened. Finally they let me enter.  Now I have one more entry stamp into Schengen than exit stamp and run into problems EVERY time at a Schengen border.  Is there a way to fix this? Conjugation: Do we cite authors or papers? When referencing to another work in a scientific paper, do we cite the paper or its author(s)?  This question is intended to clarify the conjugation of the verb that follows the reference -- especially in these cases:   One author, two papers:     Jane Doe (2015a, 2015b) list-s the very specific conditions under which...   -> lists (singular: referencing to Jane Doe) or list (plural: referencing to both papers) Several authors, one paper:     John Doe, et al. (2015) claim-s this and that.   -> claim (plural: referencing to the multiple authors of the paper) or claims (singular: referencing to the single paper). How are parentheses interpreted at the command line? Prove that $a^3+b^3+c^3 \geq a^2b+b^2c+c^2a$ Let $a,b,c$ be positive real numbers. Prove that $a^3+b^3+c^3\geq a^2b+b^2c+c^2a$.   My (strange) proof:  $$ \begin{align*} a^3+b^3+c^3 &amp;\geq a^2b+b^2c+c^2a\\ \sum\limits_{a,b,c} a^3 &amp;\geq \sum\limits_{a,b,c} a^2b\\ \sum\limits_{a,b,c} a^2 &amp;\geq \sum\limits_{a,b,c} ab\\ a^2+b^2+c^2 &amp;\geq ab+bc+ca\\ 2a^2+2b^2+2c^2-2ab-2bc-2ca &amp;\geq 0\\ \left( a-b \right)^2 + \left( b-c \right)^2 + \left( c-a \right)^2 &amp;\geq 0 \end{align*} $$  Which is obviously true.    However, this is not a valid proof, is it? Because I could just as well have divided by $a^2$ rather than $a$:  $$ \begin{align*} \sum\limits_{a,b,c} a^3 &amp;\geq \sum\limits_{a,b,c} a^2b\\ \sum\limits_{a,b,c} a &amp;\geq \sum\limits_{a,b,c} b\\ a+b+c &amp;\geq a+b+c \end{align*} $$  Which is true, but it would imply that equality always holds, which is obviously false. So why can't I just divide in a cycling sum?  Edit: Please don't help me with the original inequality, I'll figure it out. Java - How to reduce the size of third-party jars to reduce the size of your application Can you explain closures (as they relate to Python)? I've been reading a lot about closures and I think I understand them, but without clouding the picture for myself and others, I am hoping someone can explain closures as succinctly and clearly as possible.  I'm looking for a simple explanation that might help me understand where and why I would want to use them. Shader nodes are missing? Isn't every subset of a compact space compact? Let $\mathfrak{C}$ be an open cover of a topological compact space $X$, and let $\mathfrak{B}\subseteq \mathfrak{C}$ be its finite subcover. Then every subset of $X$ also has the same cover and subcover! Shouldn't every such subset also be compact then?  Motivation: I read somewhere that every closed subset of a compact space is compact. I wonder why it shouldn't be the case for every subset of $X$, rather than just the closed ones. Escape velocity from Earth Prove that $\lim_{n\to\infty}a_n\le \lim_{n\to\infty}b_n$ Theorem  Let $\{a_n\}$ and $\{b_n\}$ be convergent real sequences. Assume that there exists a $N\in\mathbb{N}$ so  $a_n\le b_n$ (eq. 1)  for all $n\ge N$. Then  $\lim_{n\to\infty}a_n\le \lim_{n\to\infty}b_n$.  My attempt at proving  Let $a=\lim_{n\to\infty}a_n$ and $b=\lim_{n\to\infty}b_n$. $a$ and $b$ are real numbers because the limit of a sequence of real numbers is a real number (which is a corollary in my textbook). For proof by contradiction, assume  $b&lt;a$.  Let $\epsilon=\frac{a-b}{2}$. Then we can find $N_a,N_b\in\mathbb{N}$ so  $|a-a_n|\le\frac{\epsilon}{2}$ when $n\ge N_a$, (eq. 2)  $|b-b_n|\le\frac{\epsilon}{2}$ when $n\ge N_b$. (eq. 3)  In a textbook I found that I should do the following:  Choose a $n$ so $n\ge\max(N,N_a,N_b$), then eqs. (1-3) are satisfied. Then  $a-\epsilon\le a_n+\frac{\epsilon}{2}-\epsilon$  How do I get that last thing? Is it necessary to do a proof by contradiction or can one do a direct proof? USB-C Dongles killing Wifi on 2016/2017 MacBooks – Who’s to blame? I recently switched from my beloved MacBook Pro Retina (Late 2013) i5 2.6/16/512 to MacBook Pro (2017) Non-TB i5 2.3/16/512.  I purchased what from the build-quality looked like a good USB-C-to-DisplayPort cable with 4k/60Hz support, just to run into the very problem the Logicboard repair guru Louis Rossmann had described in : As soon as you plug in the USB-C dongle, the (2.4 GHz) Wifi stops working despite full antenna signal. Unplug the USB-C connector and you are immediately back in the game.  The big question I'm asking myself now: Who is to blame? Is this a design flaw in the current generation MacBooks with improper shielding or is it a design flaw in the various dongles?  I mean the fact that even Apple’s very own USB-C Digital AV Multiport Adapter is causing these WiFi issues (as you can learn from the many horrific ; but AFAIK have been fixed through a ), show that there’s something going horribly wrong. I'm very new to Blender and I'm trying to make a water vortex like this.(may be not the easyest first project for a newbie)     I watched several tutorial on liquids particle etc but I'm not sure what is the best aproach. What I tried  until now:   I made a particle system with a vortex force field. It looks good, but I'm not able to add the right material.      I played around with the fluid physics, the water looks good but if I add a vortex force field it does nothing.   I would be very grateful if somebody could point me in the right direction because I'm definitely stocked. work done is zero if displacement of point of application of force is zero but why can't we assume forces on COM and its displacement I used to use a lot ctrl+alt+numpad to move windows, how can I use this feature on ubuntu 18 like it was default before?  Thank you in advance Is there a way to assign a value to a variable, that value which we get in terminal by writing any command?  Example command: sensors  From that we get CPU temperature. How can I assign this value to a temp_cpu variable? Node access based on view mode Is volunteer work allowed in the US while visiting under the VWP or a B1/B2 visa? Flow On Schedule I"ve created a flow that I'd like to run monthly on the 7th day of each month. How can I do this with scheduled apex. I have no experience writing apex from scratch. Any suggestions or starting off points appreciated.  Thanks,  Kris LAN not working on 17.04 Actually yesterday I've upgraded from Ubuntu 16.04 to 17.04 and I got a problem that, if connect LAN cable it does not showing anything and  remains disconnected. But i can connect with WiFi. I don't know what's the problem. Actually its showing "device not managed" under the "Ethernet Network" and both were disabled. I've searched for the solution, but did not found yet.