I've spent awhile using the extrude tool to construct a mesh, but once problem I've noticed is that if I'm creating a shape with some kind of concavity and two parts of the mesh come back together, then there are two faces pointing into each other and each one has its own set of vertices. I've been consistently entering numbers when extruding so I know that the vertices are in exactly the same position, aside from a possible small amount of floating-point error.  I found  about merging vertices to create a pyramid, but the answers on it are only applicable to creating pyramids and similar shapes, since they are about manually selecting one of the cube faces to collapse. My mesh likely has hundreds of these duplicated vertices and manually checking the entire mesh is not an option, so I either need to use a tool or get a Python script to automate the process. However, the Alt+M functionality in that question looks useful, since it seems to be able to merge arbitrary vertices.  How do I merge my vertices together? Is there some kind of Python script I can use? Is there a way I can iterate through all of the vertices, check if any two are equal in position, select them, perform the Alt+M functionality from Python, and repeat for all vertices? Since merging vertices would change the amount of vertices, the entire script would basically need run itself many times to merge all of the coinciding vertices, or somehow loop until it finds no coinciding vertices.
I'm trying to run the remove_doubles edit command on multiple selected objects. This is kinda what I got so far...  import bpy   class remDoubles(bpy.types.Operator):     """Remove Doubles on multiple objects"""     bl_label = "Remove Multiple Doubles"     bl_idname = "object.remove_doubles_multi"     bl_options = {'REGISTER', 'UNDO'}      @classmethod     def poll(cls, context):         return len(context.selected_objects) &gt; 0      def execute(self, context):          scene = bpy.context.scene         sel = context.selected_objects          for obj in sel:             scene.objects.active = obj              #do something here             print(obj.name)             bpy.ops.mesh.remove_doubles()          return {"FINISHED"}  myobject = remDoubles()  myobject.execute()   My knowledge about classes isn't too great, please help.  My code needs some work, it just errors out giving a  'TypeError: bpy_struct.new(type): expected a single argument'  But what i intend doing is run through each object applying the remove doubles command for each.
Unitl now I haven't found the option to enable the curved representation of connectors between nodes. The  doesn't mention such an  option. Is there a keyboard shortcut? Why is 128==128 false but 127==127 is true when comparing Integer wrappers in Java? How can I edit this trigger to only fire once? The trigger creates a related record when a checkbox is updated. The problem is it is creating a new related record everytime the record is edited. I want to edit the trigger to only create the related record once. (When the criteria is first met). The code is below  Trigger copyEquipmentonsite on Unit_Placements_Sales__c(after insert, after update) {      List&lt;Services__c&gt; sub=new List&lt;Services__c&gt;();      for(Unit_Placements_Sales__c u : Trigger.new) {           if(u.Service_Month_is_Next_Month__c == TRUE) {                 Services__c s = new Services__c();                 s.Equipment_Onsite__c=u.ID;                 s.Equipment_Type__c=u.Equipment__c;                 s.Machine_Specific_Notes__c=u.Machine_Specific_Notes__c;                    s.Product__c=u.The_Product__c;                   s.Dell_Tag_Number__c=u.Dell_Tag_Number__c;                 s.Serial_Number__c=u.Serial_Number__c;                  s.XD_Number__c=u.XD_Number__c;                 sub.add(s);           }           if(sub.size()&gt;0)           insert sub;      } } I've got a list of Python objects that I'd like to sort by an attribute of the objects themselves.  The list looks like:  &gt;&gt;&gt; ut [&lt;Tag: 128&gt;, &lt;Tag: 2008&gt;, &lt;Tag: &lt;&gt;, &lt;Tag: actionscript&gt;, &lt;Tag: addresses&gt;,  &lt;Tag: aes&gt;, &lt;Tag: ajax&gt; ...]   Each object has a count:  &gt;&gt;&gt; ut[1].count 1L   I need to sort the list by number of counts descending.  I've seen several methods for this, but I'm looking for best practice in Python. Writing conditional (if/then) statements into ArcGIS Field Calculator using Python Parser? I have gotten stuck on seemingly simple ArcGIS field calculator python expression.  I obtained a great answer to a another similar question a few years ago: . Now I need to populate a new field based on 6 ranges of values (bedrock depth).  My attempt at writing this expression is below:    I just need to populate the empty field "bedrockdp" using the ranges in the toc called brockdepmin.     Pre-Logic Script Code:  def !GRIDCODE! (value):     if value &gt;0 and value &lt; 50:         return "0 - 50 cm from the surface"     else:         return "n/a"   bedrockdep =  GRIDCODE (!bedrockdep!) Help, i tried installing kaltools and my Ubuntu is messed up! I tried installing Kali Linux tools.  I started installing some tools and there were several things I had to "agree" to and one message said add users... something in terminal, and when I came back I saw terminal reporting removing a bunch of core programs that I needed. I canceled the process but I don't know if I should reinstall Ubuntu or not.  How can I repair my system? How to remove blank lines from a file (including tab and spaces)? I want to remove all empty lines from a file. Even if the line contains spaces or tabs it should also be removed. When building console applications that take parameters, you can use the arguments passed to Main(string[] args).   In the past I've simply indexed/looped that array and done a few regular expressions to extract the values. However, when the commands get more complicated, the parsing can get pretty ugly.    So I'm interested in:   Libraries that you use Patterns that you use   Assume the commands always adhere to common standards such as . How to Achieve this Requirement ???Can i use Jave Script , CSS and Visual force page? elementary ring proof with composition of functions and addition of functions as operations Consider the set $\mathcal{F}=\lbrace f\mid \mathcal{f}:\Bbb{R}\to\Bbb{R}\rbrace$, in which an additive group is defined by addition of functions and a second operation defined as composition of functions. The question asks to verify that the resulting structure does not satisfy the ring properties.     This is the question 24.10 from Modern Algebra, by Durbin, 4th edition.  So what I have so far is that all of the properties for the additive group (with addition of functions as the operation here) hold, associativity of the composition of functions hold, and that the failure must come from the distributive laws.  My proof of my claim, so far;  $$1\,\,\,\,\,[(\mathcal{f}\circ\mathcal{g})+\mathcal{h}](\mathcal{x})=\cdots=\mathcal{f}(\mathcal{g}(\mathcal{x}))+\mathcal{f}(\mathcal{h}(\mathcal{x})).$$ ...but,  $$2\,\,[(\mathcal{f}\circ\mathcal{g})+\mathcal{h}](\mathcal{x})=$$ $$3\,\,(\mathcal{f}\circ\mathcal{g})(\mathcal{x})+\mathcal{h}(\mathcal{x})=$$ $$4\,\,\,\mathcal{f}(\mathcal{g}(\mathcal{x}))+\mathcal{h}(\mathcal{x}).$$ ...which brings me to my contradiction of the properties of rings that;  $$5\,\,\,[\mathcal{f}\circ(\mathcal{g}+\mathcal{h})](\mathcal{x})\neq[(\mathcal{f}\circ\mathcal{g})+\mathcal{h}](\mathcal{x}).$$  So my question is, is this the correct path to showing the distributive laws are not obeyed when composition is taken as an operation on $\mathcal{F}$? particularly my proceeding from 2 to 3 to 4 is what i feel uncomfortable about, like i may be missing a step in there.  thanks Evaluating $\int_{I^n} \left( \min_{1\le i \le n}x_i \right)^{\alpha}\,\, dx$ Let $\alpha \in \mathbb R$ and let's call $I:=[0,1]$. Evaluate   $$  \int_{I^n} \left( \min_{1\le i \le n}x_i \right)^{\alpha}\,\, dx.  $$   Well, the case $n=1$ is easy and the integral equals $\frac{1}{\alpha+1}$, for every $\mathbb R \ni \alpha \ne - 1$.  I've done also the case $n=2$ and, if I'm not wrong, it's $\displaystyle \frac{2}{(\alpha+1)(\alpha+2)}$.  My big problem is that I cannot understand how to deal with the general case. Any ideas?   Thanks in advance. Prove that $\lambda = 0$ is an eigenvalue if and only if A is singular. Why can't we initialize members inside a structure? What is the difference between apt and apt-get? Why does the connection time out when connecting to a server? What the reason the number of lines differs?  $ head -n 100000 ./access.log &gt; ./data/log.sample $ cat $_ | wc -l 1933424 Complete beginner here.  I'm trying to follow  tutorial on Anisotropic shaders, but my property panel looks nothing like the property panel in the tutorial.  For example, when creating a material, this is what his property panel looks like:    But this is what mine looks like, if I follow the same path:    I'm sure I'm missing something obvious.  How can I see the property panel shown in the tutorial? Show that $\frac{X}{X+Y}\sim Beta(\alpha,\beta)$ Let IG denote Inverse-Gamma distribution   .   If $X\sim IG(\alpha,1)$ and $Y\sim IG(\beta,1)$. Show that   $\frac{X}{X+Y}\sim Beta(\alpha,\beta)$   I tried with jacobian transformation taking $Z=\frac{X}{X+Y}$ and $W=Y$ then $$X=\frac{WZ}{1-Z};Y=W$$  $$\frac{\partial(z,w)}{\partial(x,y)}=\frac{1}{(1-z)^2}$$  $$f_{z,w}(z,w)=f_x(\frac{wz}{1-z})f_y(w)(1-z)^2$$ $$f_{z,w}(z,w)=\frac{1}{\Gamma{(a)}}(\frac{wz}{1-z})^{-\alpha-1}e^{-\frac{(1-z)}{wz}}\frac{1}{\Gamma{(\beta)}}w^{-\beta-1}e^{-\frac{1}{w}}(1-z)^2$$  but I'm stuck, in some place I read that $\frac{X}{X+Y}$ is a type 3 Beta distribution, but I can't show that. I want a true deep copy. In Java, this was easy, but how do you do it in C#? How to get a drive formatted with exfat working?