I have a GeoDatabase with a handful of shapefiles. The contents are likely to change often, so I want to build a tool that allows me to merge all the shapefiles in the GDB into one layer.  This is what I currently have:    However, I am not expecting this to work, as it seems like it would just grab one file each iteration and 'merge' it with itself. Is there a workaround so that it grabs all files from the GDB to merge them? I am using ArcGIS Desktop 10.5.
This is similar to  but I want the iterate tool to run to collect all the values and only then continue to the merge. Any ideas? Currently it just runs the whole process for each file (which works but takes much longer than if the merge is done only once) or I have to manually break the collect-merge link, run the iterate, reconnect the collect-merge link and then continue running the model which is a pain as it is a lot of towers that need processing and this collect values-finish getting all values and then continue will be required in other models as well.    I tried the "Select Data" tool as well but this doesn't allow for wildcard searches like the Iterate does -my Iterate has the "_Graded*" as the search param as the gdb included many other files related to each tower chunk.  My STOP is set to "True" (tried false as well). I also tried to connect the Stop to the Iterate instead of Collect values but same result.  === SCRIPT ADDED  I just created a python tool for this and it collects all the values but it passes them back to the model as a long list -how can I get it to output in a proper format?      import sys, os, arcpy  GDB=arcpy.GetParameterAsText(0) Search=arcpy.GetParameterAsText(1) Type=arcpy.GetParameterAsText(2)  ##GDB=r'P:\2012\044_DM_Radio_Propogation\Working\Propogation\Propogation_28355.gdb' ##Search='_m' ##Type='Polygon'  path=os.path.dirname(GDB) arcpy.env.workspace = GDB List=[] for item in arcpy.ListFeatureClasses('*'+Search+'*',Type):     List.append(path+"\\"+item)     #arcpy.SetParameterAsText(3, item)  arcpy.SetParameterAsText(3, List) arcpy.AddMessage("List: "+str(List))
What does this cryptic Bash command mean? Pass Variable to Custom Block template file I want to create my custom block with custom content in Drupal 8,in start I create  Block with just simple text on it, and work correctly, my Problem is how can I pass my custom variable to it? I saw some tutorial about it , my Module name is tcdev and this is content of .module file.  function tcdev_theme($existing, $type, $theme, $path) {     return array('tcdev' =&gt;         array(             'variables' =&gt; array(                 'title' =&gt; 'Default title',                 'description' =&gt; null             ),             'template' =&gt; 'block--sliderblock'         )     ); }   and my SliderBlock.php       namespace  Drupal\tcdev\Plugin\Block; use Drupal\Core\block\BlockBase;   /**  * Provides a 'SliderBlock' block.  *  * @Block(  * id = "slider_block",  * admin_label = @Translation("Slider Block"),  * )  */  class SliderBlock extends BlockBase{     /**      * {@inheritdoc}      */     public function build(){         return array(             '#title' =&gt; 'my title ',             '#description' =&gt; 'my custom desc'         ); } }   and finally my template file block--sliderblock.html.twig    &lt;h2&gt;My Custom Block{{ title }}-{{ description }}&lt;/h2&gt;   But Result is only "My Custom Block-" . The problem is variables not getting passed to template file,where is my fault?  appreciate any help Badge request: "Practically Perfect in Every Way" Solidify conundrum? I stumbled across a solidify issue, I cannot wrap my head around. I have a simple mesh, consisting of three faces.  When adding a solidify modifier, I expect to get an object with three walls, where every angle is square. However, whatever I try, tweaking the various solidify parameters, what I get is something like the following, with a skewed rim.  Did I hit a bug, or is it a limitation of the solidify modifier? Is there a workaround? GDBus.Error when trying to enable second screen I connected an external screen to my laptop, but my desktop didn't automagically extend to it, as it used to do about a year ago (older version of Ubuntu).  I went to the display settings. The screen was listed there (correct resolution, brand name, etc.). But when i put the switch on 'on' and click 'apply', i get this error:   Failed to apply configuration: %s  GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.gnome.SettingsDaemon.XRANDR_2' on object at path /org/gnome/SettingsDaemon/XRANDR   It's been like this for a few months now, but i'd really like to be able to use an external screen/beamer again.  Any ideas?  Thanks. How can I merge a guest post with a new account? I asked a question over at AskUbuntu(as a guest), and I'd like to be able to edit and comment on this new account. Is this possible? The Cartesian product of a family $(A_i\mid i\in I)$ is defined as $$\prod\limits_{i\in I}A_i=\{f:I\to\bigcup A_i\mid f(i)\in A_i\}$$ Let $I_n=\{i \in \mathbb N \mid i \le n\}$ for $n\in \Bbb N$ and $A_i$ be countable for all $i\in I_n$. Then $\prod\limits_{i\in I_n}A_i$ is countable.   My attempt: Lemma 1: $(\prod\limits_{i\in I_n}A_i) \times A_{n+1}$ and $\prod\limits_{i\in I_{n+1}}A_i$ are equinumerous for all $n \in \mathbb N$. (I presented a proof ) Lemma 2: If $A$ and $B$ are countable, then $A \times B$ is countable. (I presented a proof ) I will prove the theorem by induction on $n$. The theorem is trivially true for $n=0$. Assume that the theorem is true for $n=k$, then $\prod\limits_{i\in I_k}A_i$ is countable. Since $\prod\limits_{i\in I_k}A_i$ is countable (by inductive hypothesis) and $A_{k+1}$ is countable, then by Lemma 2 $(\prod\limits_{i\in I_n}A_i) \times A_{n+1}$ is countable. Furthermore, by Lemma 1 $(\prod\limits_{i\in I_k}A_i) \times A_{k+1}$ and $\prod\limits_{i\in I_{k+1}}A_i$ are equinumerous, then $\prod\limits_{i\in I_{k+1}}A_i$ is countable too. Thus the theorem is true for $n=k+1$. This completes the proof.   Does this proof look fine or contain gaps? Do you have suggestions? Many thanks for your dedicated help! OpenCV argc and argv confusion Concatenate multiple files with two blank lines as delimiter? I'm trying to join Markdown files with two newlines between each file.   I've tried using the following command:  paste -sd '\n\n' file1.md file2.md   This joins the files with a newline, but not two newlines, as I need.   What command can I use to join an arbitrary number of files with two \n characters between each join? Let$\ p_n$ be the$\ n$-th prime. Can you give me a proof for$\ \prod_{i=1}^\infty \frac{p_i-1}{p_i}=P\approx \frac{1}{11.0453}$? I found$\ \prod_{i=1}^\infty \frac{p_i}{p_i-1}\approx 11.0453$ on . Moreover, writing a paper, should one provide a proof or it is trivial? Thanks in advance. What is the path of an MTP device in Windows? I am running Windows XP and have a phone mounted through USB by MTP.  In Explorer, its address is:  My Computer\SAMSUNG-SGH-I547\Phone\DCIM   I would like to execute a command line command such as  explorer "My Computer\SAMSUNG-SGH-I547\Phone\DCIM\Camera"   so as to quickly go to the Camera folder. (Right-clicking the device or anything in it does NOT provide a "Create Shortcut" dialog.)  But "My Computer" is not a valid PATH in Windows. Unlike USB flash drives, it seems the phone mounted by MTP does not get a letter drive name.  So, what is the path of an MTP device in Windows?  If the answer is there is no command line path, is there workaround? What Wording Did Witches and Wizards in Other Cultures Use for Spells? Surprisingly many network interfaces on macOS: are these legitimate? ifconfig reveals a surprisingly long list of network interfaces on my MacBook, which is running macOS High Sierra (10.13.6): lo0, gif0, stf0, XHC20, en0, p2p0, awdl0, en1, en2, bridge0, utun0.  There is an F5 VPN client installed, but I've rebooted the MacBook since the last VPN connection.  Are all of these network interfaces legitimate or is this something I should worry about? I'm looking for a way to prove $$\sum_{n=0}^\infty\frac{(-1)^n}{(2n+1)^{2m+1}}=\frac{(-1)^m E_{2m}\pi^{2m+1}}{4^{m+1}(2m)!}$$ I know that $$\sum_{n=0}^\infty\frac{(-1)^n}{(2n+1)^{2m+1}}=\frac{1}{4^{2m+1}}\left(\zeta\left(2m+1,\frac14\right)-\zeta\left(2m+1,\frac34\right)\right)$$ so maybe I could simplify the above more? Where can I find documentation on how to use the \nolinebreak command?  The  at  never makes mention of \nolinebreak  The  states that \nolinebreak is implemented by multiplying its input parameter penalty by (-1) and passing the result into \nopagebreak.       I haven't found documentation on how to use the command. what operation repeated $n$ times results in the addition operator? If I push or hit an object in space will it rotate or move along a straight line? Do we need to unbind event listeners in directives when angular starts to destroy? How do the definitions of "irreducible" and "prime" elements differ? Remove appx package for all users Fresh Windows 10 install. Somehow the MSN Weather app became corrupted. (Unable to launch) I removed the app with the following Powershell command:     Remove-AppxPackage -Package Microsoft.BingWeather_4.7.118.0_x86__8wekyb3d8bbwe   However, when running     Get-Appxpackage –Allusers   the package is still present. When I attempt to reinstall the app via the Windows Store, the download is skipped and the same corrupted package is installed.  I've tried restarting (many times) and using WSReset to no avail.  What can I do? Thank you!