I've tried to reconfigure my locale, but I keep getting the same error.   > yuri@Yuri-laptop:~$ sudo aptitude dist-upgrade No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:         LANGUAGE = "en_US",         LC_ALL = (unset),         LC_TIME = "pt_BR.UTF-8",         LC_MONETARY = "pt_BR.UTF-8",         LC_CTYPE = "pt_BR.UTF-8",         LC_ADDRESS = "pt_BR.UTF-8",         LC_TELEPHONE = "pt_BR.UTF-8",         LC_NAME = "pt_BR.UTF-8",         LC_MEASUREMENT = "pt_BR.UTF-8",         LC_IDENTIFICATION = "pt_BR.UTF-8",         LC_NUMERIC = "pt_BR.UTF-8",         LC_PAPER = "pt_BR.UTF-8",         LANG = "es_US.UTF-8"     are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory
I am getting this message every time I do something like starting or stopping a service.  perl: warning: Setting locale failed.    perl: warning: Please check that your locale settings:            LANGUAGE = "en_US:en",            LC_ALL = (unset),            LC_MESSAGES = "en_US.UTF-8",            LANG = "en_US.UTF-8"        are supported and installed on your system.    perl: warning: Falling back to the standard locale ("C").    locale: Cannot set LC_CTYPE to default locale: No such file or directory    locale: Cannot set LC_MESSAGES to default locale: No such file or directory    locale: Cannot set LC_ALL to default locale: No such file or directory    (Reading database ... 21173 files and directories currently installed.)   Removing bind9 ...    * Stopping domain name service... bind9                                        [ OK ] Processing triggers for man-db ...    locale: Cannot set LC_CTYPE to default locale: No such file or directory    locale: Cannot set LC_MESSAGES to default locale: No such file or directory    locale: Cannot set LC_ALL to default locale: No such file or directory      How do I fix this error ?
How do I make my own horse follow me? I've found a horse in Skryim and I ride it a bit to explore the wild but when I dismount, it wanders away and doesn't stay where I leave it. How do I stop it from doing this? Is there a special thing I forgot about horses? I didn't steal this horse - it was from an Imperial Fort that I've cleared. I'm hoping someone could check my work. I'm trying to simplify the equation for $x$. $$(\frac{x}{a})^{3.2} + (\frac{y}{b})^{3.2} = 1$$ $$\frac{a}{b} = \frac{174.1}{86}$$ Thus I began by substituting $a$ with: $$a = \frac{174.1}{86}b$$ $$((\frac{86}{174.1})(\frac{x}{b}))^{3.2} + (\frac{y}{b})^{3.2} = 1$$ $$((\frac{86}{174.1})(\frac{x}{b}))^{3.2} = 1 - (\frac{y}{b})^{3.2}$$ $$(\frac{x}{b})^{3.2} = \frac{(1 - (\frac{y}{b})^{3.2})(174.1)^{3.2}}{(86)^{3.2}}$$ $$x^{3.2} = \frac{(1 - (\frac{y}{b})^{3.2})(174.1)^{3.2}(b)^{3.2}}{(86)^{3.2}}$$ $$x^{3.2} = \frac{(1 - (\frac{y}{b})^{3.2})((174.1)(b))^{3.2}}{(86)^{3.2}}$$ $$x^{\frac{16}{5}} = \frac{(1 - (\frac{y}{b})^{3.2})((174.1)(b))^{3.2}}{(86)^{3.2}}$$ $$x = [\frac{(1 - (\frac{y}{b})^{3.2})((174.1)(b))^{3.2}}{(86)^{3.2}}]^{\frac{5}{16}}$$ Is my work correct, or am I completely off the board? Suppose that $f:M \to N$ is a smooth map of two manifolds and $E$ is a vector bundle over $N$. Given a connecton $\nabla$ on $E$ one can pull it back to $f^*N$ (which is a bundle over $M$) and obtain a connection $f^* \nabla$.   If $E=TN$ is a tangent bundle one can consider the Levi-Civita connection $\nabla$, with respect to the chosen metric $g$ on $N$. It is characterised uniquely as torsion free metric connection. Given a map $f:M \to N$ one can pullback the metric $g$ to $f^*g$. If it happens that $f^*g$ is again a metric (which is the case for example for immersions) one can consider the Levi Civita connection on $M$ with respect to $f^*g$. I wonder how these two constructions are related, in particular      Is there a way to pullback affine connections to get again affine connection (i.e. connections on tangent bundle)?     Additionally I would like to know:     What is the relation between Christoffels symbols for the connection and for its pullback? Is 20 watts of electricity dangerous? I have a few circumstances which invlove someone being shocked with 20 watts of electricity and whether it would be deadly. So here they are:   Would 1000 volts at 20 miliamperes of AC (2MHz frequency) be dangerous or deadly? Would 1000 volts at 20 miliamperes of DC be dangerous or deadly? Would 10 Kilo volts at 2 miliamperes of AC (2MHz frequency) be dangerous or deadly? and Would 10 Kilo volts at 2 miliamperes of DC be dangerous or deadly?   Thanks for everyones help. Stack Overflow is not getting refreshed automatically Stack&nbsp;Overflow is not getting refreshed automatically. I have to press F5 explicitly to refresh the website. What might be the issue? why can't i select two objects in edit mode?     I am trying to make a face from two different meshes but can't perform the action Variable parameters in C# Lambda So I wish to create and object and set it's shading to 'smooth' using python. It seems simple enough but after trying every method I could find on the internet none of them worked for me. Here's a short example script where the object needs to have smooth shading:  import bpy from mathutils import Vector  verts = [(0,0,0),(0,5,0),(0.25,5,0),(0.25,0,0),(0,0,5),(0,5,5),(0.25,5,5),(0.25,0,5)] faces = [(0,1,2,3), (4,5,6,7), (0,4,5,1), (1,5,6,2), (2,6,7,3), (3,7,4,0)]  grat1mesh = bpy.data.meshes.new("grat1") grat1obj = bpy.data.objects.new("grat1", grat1mesh) grat1obj.location = (5, -5, 0) bpy.context.scene.objects.link(grat1obj) grat1mesh.from_pydata(verts,[],faces) grat1mesh.update(calc_edges=True)  grat2obj = grat1obj.copy() grat2obj.data = grat1mesh.copy() bpy.context.scene.objects.link(grat2obj) grat2obj.location += Vector((-0.125, 1.25, 1.25)) grat2obj.scale = (2, 0.5, 0.5)  bm = grat1obj.modifiers.new("Chop", 'BOOLEAN') bm.object = grat2obj bm.operation = 'DIFFERENCE' bpy.context.scene.objects.active = grat1obj bpy.ops.object.modifier_apply(modifier=bm.name) bpy.context.scene.objects.unlink(grat2obj)   I found this online and tried to place it at the end of the script:  smoothings = [] smoothings.append(face.use_smooth) me_ob.faces.foreach_set("use_smooth", smoothings)   However this just returned an error on the second line, perhaps as it was from an older website. Obviously using a simple bpy.ops.object.shade_smooth() didn't work and I'm kind of stumped as of what to do here! Effect of elementary row operations on determinant? I'm trying to "add" an 3D object onto a photo. I have added the photo to the scene in three ways so far, but none of them render (eevee):   Camera > Background Images Empty a. Add > Empty > Image (Empty gets added to current Collection) b. Add > Image > Backround (Empty gets added to Scene Collection)   These all show up in the 3D View and I was able to align the camera and the object so its perspective matches the scene in the photograph. But when I Render the scene, I only see the object, not the background image.  For the latter, it's simple: Empties are not rendered at all. There are few questions about this, since 2.8 has changed how it handles background images. The most popular seems this one (it includes references to others):      But I seem not to be able to find a method to have the background image render.  Another method might be to use the Compositor (Nodes) to Mix or Alpha Over an Image with the Render Layers. But this does not give the same alignment as achieved with the background image (also this requires that the World background does not get rendered (Alpha channel); for Eevee, this can be achieved by checking Film>Transparent).  What other options are there?  Docs: If I am shooting the 8-ball for a win, and my opponent has a ball near the pocket I'm aiming for, can I call something like "8-ball off the 2 ball into the corner pocket"?  I thought this was allowed, but a friend says this is an automatic loss and that the 8-ball must never touch another ball before going into the pocket.  Various pool rules aren't clear for me on this scenario. Differentiation between passive and active components I want to emphasize that I only have 5 dollars, so can I use the sentence:     Five dollars is all I have.   Or must it be:      Five dollars are all I have.   Please give the explanation as well. If $ \langle G, \star \rangle $ is an abelian group, then for all $a, b \in G$, show that $(a \star b)^{n} = a^{n} \star b^{n}$. If $ \langle G, \star \rangle $ is an abelian group, then for all $a, b \in G$, show that $(a \star b)^{n} = a^{n} \star b^{n}$.  I am stuck at the first step, unable to figure out how to start. I am just beginning on group theory, and know that an abelian group obeys commutativity, associativity, has an identity element, and each element is invertible. I am unable to figure out how to apply this for the proof. Any hints on how I should get started? Why is my voice command missing from the ok glass menu in XE16? She don't know that she's a lucky girl Here's from an old song (1963) "" by Lesley Gore.       She don't know that she's a lucky girl   Here's another example, "Silence is Golden" (1964) by The Tremeloes [YouTube ]      Oh, don't it hurt deep inside to see someone do something to her.   I wonder how common it is to say "She don't" or "don't it". Do native English speakers often use these?  By the way, Lesley Gore is American, and the Tremeloes is British. Selecting all files in directory for merging in QGIS Processing? I'm writing a generic script which involves writing shapefiles to a directory which are then merged together. After writing the files out to the Output folder, I'm trying to get the saga:mergeshapeslayers algorithm to merge all the files in the Output folder. I have used the Model Builder and although it is helpful to an extent, I find that it is used for specific purposes whereas I am attempting to make a script for generic purposes.   Code:  ##Test=name ##Select_folder=folder ##Result=output vector  import os import glob  path_1 = Select_folder path = path_1 os.chdir(path)  def function():      output = glob.glob(path_1 + './*.shp')     x = 0      while output[x]:         for fname in glob.glob("*.shp"):             outputs_1 = processing.runandload("qgis:fieldcalculator", output[x], 'Number', 1, 10, 0, True, 1 , "C:\Users\Me\Desktop\Output\\"  + fname)             multiple_0 = glob.glob("*.shp")             x = x + 1          if x + 1 &gt; len(output):             processing.runalg("saga:mergeshapeslayers", output[0], ";".join(multiple_0) , Result)             break         else:             continue  if path_1:     function() else:    pass Will my passport number change when I renew it? I have a few questions regarding CAN bus load  Is there any derived equation/formula to calculate the bus load?  I need transmit below frames(Assume Standard frame format) at baud rate 500 kbps on the bus 5ms  ----- 50 frames. 10ms ----- 10 frames. 100ms ---- 30 frmaes. Event messages ---- 10 frames.   How to calculate bus load, does anyone knows kindly illustrate the same?  What is the maximum bus load on CAN bus? Multiplexing UART I'd like to interface my main microcontroller's hardware serial port to more than one device at the same time. My understanding is that UART on my microcontrollers is based on an active-low 5V TTL.  (I know what I'm explaining here can be technically achieved by using more suited protocols, such as SPI and I2C, but my project requires to be only implemented using UART.)  Here's a pseudo-schematics chart of what I'm trying to achieve:         &ndash; Schematic created using   Please note that:   I don't want to use a second UART interface on the master, or any of the slaves. Only one slave at a time is going to transmit or send data on the line to the master. (e.g. If the slave 1 is transmitting data, slave 2 and 3 should remain idle.) Whatever the master is transmitting can, and should be received by all of the slaves. All of the slaves should be hot-pluggable, meaning they could be removed or inserted at any time. The RX and TX wires to the master are parallel between each slave, so no daisy chaining.   So, my questions are as follows:   Assuming the correct impedance is considered, I shouldn't need an additional circuit to transmit data from the master's TX line to any of the slave's RX line simultaneously. Is this correct? I understand that without current limiting resistors between slaves' TX line and the master's RX line, if any of the devices begin to broadcast data, the line between the devices will short circuit and I risk damaging them. Is this correct? Assuming the items 1 and 2 are correct:  a) Would just some current limiting resistors be enough to use?  b) Can I use 74-series logic gates instead of resistors? Between options a and b above, what route should I choose? For a reliable 115200 baud rate connection, will the switching frequency of a 74HC08 AND gate suffice to be incorporated?   EDIT: I'm well aware of other well-suited protocols such as SPI and I2C. There's a reason I'm using UART, and that's because the optiboot bootloader that is used on the master's mcu communicates over UART, albeit UART's obvious limitations.  Also, while daisy-chaining is definitely a clever approach, due to breaking the 4th requirement, it also breaks bootloader functionality.  The devices could also be USB-to-Serial chips, and using SPI-to-USB or I2C-to-USB would not be feasible in this project.  So, I'd appreciate if you could focus on the 6 questions listed here instead, and share your UART knowledge.