Given this picture, I've understood that giver r>R, E = q/(4πεR^2) but I just can't get why inside the sphere, E equals 0? And the notes don't explain something. I've tried to look it up on the web and found similar examples that don't explain it either...

My textbook says the field inside a conductor must be zero in order for the system to be equilibrium and therefore there must be no excess charge inside.  Their proof:  1) Place a gaussian surface inside the conductor. Since the system is at equilibrium, all points on the surface must have an electric field of zero.  2) Therefore the net flux is zero, implying the charge inside is zero.  3) If there is no charge inside, all excess charge must lie on the surface.  My problem:  "Since the system is at equilibrium, all points on the surface must have an electric field of zero."  Why?  Consider an conductor with no excess charge. To simplify things, say the conductor consists of a 100 free electrons and a 100 ions of charge 1$e^+$. The conductor is neutral and at equilibrium.  Now consider the field on one specific electron. There a total of 99 other electrons and 100  ions. So there would be a net field acting on that specific electron. So even though the system is at equilibrium, the net field on the individual particles is non-zero.  So a system can be at equilibrium, even if the net field inside is non-zero. What am I misunderstanding?  Another example: Consider a system consisting of one electron and one proton. If nothing is holding them back they will attract each other until they touch. After they touch, the force acting on them is still non-zero, yet they wouldn't accelerate.


In a space with inner product show that $\|x+y\|^2+\| x-y\|^2=2\left \| x \right \|^2+2\left \| y \right \|^2$ after a lot of tries I ended up with : $\begin{Bmatrix} \langle x,x\rangle +\langle -y,x\rangle=\langle x-y,x\rangle \\  \langle -y,-y\rangle+\langle -y,x\rangle=\langle -y,x-y\rangle\\  \langle x,x\rangle+\langle y,x\rangle=\langle x+y,x\rangle\\  \langle y,y\rangle+\langle y,x\rangle=\langle x+y,y\rangle \end{Bmatrix}$ If we add them all I think we get what we want, if we consider the fact that $\langle -y,-y\rangle=\langle y,y\rangle$ is this correct? Does this equation have a geometric meaning? I think the inner product measures the angle and the length (not sure about that) but I can't warp my head around what this exactly says.

When using the definition and properties of the inner product, we get the parallelogram law: $$\:\,\|x+y\|^2 =\: \langle x+y, x+y\rangle= \langle x, x\rangle + \langle x, y\rangle +\langle y, x\rangle +\langle y, y\rangle\,,\\ \|x-y\|^2 =\:\langle x-y, x-y\rangle= \langle x, x\rangle - \langle x, y\rangle -\langle y, x\rangle +\langle y, y\rangle $$ Adding these two expressions: $$\|x+y\|^2+\|x-y\|^2 \:=\: 2\langle x, x\rangle + 2\langle y, y\rangle \:=\: 2\|x\|^2+2\|y\|^2$$ as required. But the above does not simplify to Pythagoras' theorem $\|x+y\|^2=\|x\|^2+\|y\|^2$ if $x$ and $y$ are orthogonal. How can we get Pythagoras from the parallelogram law?


When I first learn about the present form of 'be', I was told that:     Use 'are' with plural noun.   And when I first studies articles, I was told that:     Use 'a' / 'an' with single noun.   So I guess this sentence is grammatically wrong:     'Secret ballots are an important sign of a fair election.'   Any explanation?

The other day, my father and I were expecting my brothers to come home. Upon hearing a car enter the driveway, my father said, "Your brothers are here." When I looked at the door, I could see that it was actually my sister who had arrived, and not my brothers, so I responded,  She's not my brothers.  This seemed like a very awkward construction, but I could not think of any reason that it would be ungrammatical, other than the subject being singular and the object being plural. I can think of several examples of sentences where the subject and object are different in number (with an intransitive verb: obviously there is nothing wrong with a transitive verb like "kick" having a subject an object differing in number) that do not seem to have any grammatical awkwardness.  We are a family. His mind and body are one. God is three persons: the Father, the Son and the Holy Ghost.  Is the sentence, "she's not my brothers" grammatically correct, and what makes it different from these other sentences?


I'm still a beginner and decided to model a lightsaber from a CG GEEK tutorial linked .  I've been having some trouble joining two faces after running into trouble from double vertices in my mesh. I noticed it when I applied a subdivision surface and I've been having trouble solving it. The biggest detail that I've noticed is that the new vertices that were created when I tried to fill in the gap with the fill tool, aren't recognized as a face by Blender. Thank you for your advice.

There's a way to fill with faces only the area between the larger circle and the the smaller one? I mean.. It's a wheel and I'm trying to fill the rubber part of it.  Using the fill function F it fills everything inside the bigger circle.


I'm new to the Ubuntu OS and I want to be able to run it in ANY way I can.  I made a bootable USB (not persistent) to install Ubuntu. Followed the instructions in the install, had made a partition of 35 GB before, installed it with everything going smoothly. Restarted the computer and wasn't able to boot it. I looked it up and found that I had to turn off Secure Boot (did it) and use the Boot Repair tool, used it and nothing happened.  Also tried doing a live USB with persistence to at least be able to run Ubuntu in a 16 (or 32 GB) but is not kept persistent.  Does anyone have any suggestions or can provide help?  You can find my Boot-Repair report at the link below:      If anyone finds this and haven't found any solution, try this:  Just as MichaelBay suggested, make sure everything is set to UEFI, turn off Legacy. In BIOS options enable Secure Boot. Go to Security Tab and select Add file to Secure Boot(someting like that) then loop through the files that are shown and look for ubuntu file. Select it and save changes, restart computer and boot the Boot Options Menu(F12) and the file you jut added should be shown.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


Canon 70D has options of using remote shutter and using apps with iPhone/Android devices. Is there any option to do timelapse photography using either of the above where I can click photos at a specified interval? I know this can be done using the Canon EOS application provided. Is there any other possible way of doing this?

I'm looking for a digital camera that has multiple shot self-timer mode.  Is this feature available on mid-range cameras or is just high-end ones?


I recently have been getting hit by an attack that is very small around 70MBPS but causes TONS of upload...All signs point to ICMP. I realized in my firewall I have CSF firewall running on CentOS, that I had no limit on my outgoing ICMP rate...Woops. :P  Anything else I should block? We are primarily game servers so obviously blocking all incoming ICMP traffic is a no no. Or is it? That's why I'm here :D  Thanks for any tips,  Jeremy  **Also quick edit, we are on a 100MBPS port and the current firewall is able to block generic  DDoS attacks excess of 600MB without breaking a sweat.

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


Consider the different bracketings of the summation $$1+2+3+4+5\,.$$ I've listed them all below: $$  1+(2+(3+(4+5)))\,,\quad (1+((2+3)+4))+5\\  1+(2+((3+4)+5))\,,\quad (1+(2+(3+4)))+5\\  1+((2+(3+4))+5)\,,\quad ((1+2)+(3+4))+5\\  1+(((2+3)+4)+5)\,,\quad (1+2)+((3+4)+5)\\  1+((2+3)+(4+5))\,,\quad (1+2)+(3+(4+5))\\  (1+(2+3))+(4+5)\,,\quad ((1+2)+3)+(4+5)\\  ((1+(2+3))+4)+5\,,\quad (((1+2)+3)+4)+5 $$ As we go down the first column, go up to the top of the second, and down the second column, we see that each of these bracketings are connected by a single use of the associative law. These different bracketings also exhaust the possibilities for $1+2+3+4+5$.  A similar pattern can be found for $1+2+3$ trivially and for $1+2+3+4$ almost trivially. These inspire the following graph-theoretic question:     Consider the graph whose nodes consist of the various "valid bracketings" of the summation underneath   $$1+2+\cdots+n.$$   (In general, the number of nodes for this graph will be the $n-1$st Catalan number).      Two nodes will be connected by an edge if we may travel between the two via one application of the associative law.      Is there a Hamiltonian path in this graph?   The graph for $1+2+3+4+5$ is a 14-node graph where every node has a degree of three.

Let two distinct fully parenthesized products of $n$ symbols be called adjacent provided one of them may be obtained from the other by a single application of the associative law. Such graphs may be viewed as "associahedrons", though my question doesn't involve the graph theory approach so much, and in my case I assume for fixed $n$ that the graph contains as vertices all the parenthesized products. For example, for $n=4$ there are five vertices, each adjacent to $2$ others, and so essentially two possible Hamiltonian cycles. I found that in the case of $n=5$ it was possible to find a Hamiltonian cycle going through all $14$ vertices. (Here I think there are more than one such cycle...)  My question is what happens for larger $n.$ I tried $n=6$ and got close, proceeding by using cycles from previous cases and "sewing them up" into a complete cycle. However I got lost in the details. So I'm curious about the $n=6$ case, and in general for higher $n$ is there a known cutoff beyond which it is known no Hamiltonian cycle exists.  Associahedron reference at Wiki is   Here's the list I found for the $n=5$ case: $$ (((12)3)4)5 \\ ((1(23))4)5 \\ (1((23)4))5 \\ (1(2(34)))5 \\ ((12)(34))5 \\ (12)((34)5) \\ (12)(3(45)) \\ 1(2(3(45))) \\ 1(2((34)5)) \\ 1((2(34))5) \\ 1(((23)4)5) \\ 1((23)(45)) \\ (1(23))(45) \\ ((12)3)(45)  $$  Each is adjacent to the one below in the sense of one use of associative law, including the final one back to the first, to complete the cycle.


What command may I use to list the currently mounted filesystems on a Unix system?

I usually use mount to check which filesystems are mounted. I also know there is some connection between mount and /etc/mtab but I'm not sure about the details. After reading  I get more confused.  My question is: How to get the most precise list of mounted filesystems? Should I just use mount, or read the contents of /etc/mtab, or contents of /proc/mounts? What would give the most trustworthy result?


I have 2 servers :-   server 1 - shows the correct result for the hyphen(-)  server 2 - showing â€“ character for some hyphen(-) only  I am using the meta tag with charset UTF-8  All the values are coming from my SQL server 2008 Database and DB is good regarding the character hyphen(-)  On IE its showing the correct character but issue is on Chrome and Fire fox  Whats wrong I cant find it out

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Wiki Definition - A list is any enumeration of a set of items.    Below given Node(C syntax) in a linked list,  typedef struct Node{    void * data;    struct Node * next; }Node;   can accommodate any type element(void *data) in a list.  Below syntax,  >>>list  = [1, [1,2], 'a', [4,5]] >>> type(list) <class 'list'>   in python allows, list storing heterogeneous type elements.  From definition and implementation aspect, Is list suppose to allow elements of different type?

What's the difference?  What are the advantages / disadvantages of tuples / lists?


What makes a diamagnetic substance repel a magnet? If one explains it on the basis of cancelation of dipole moments in an atom and Lenz's law, shouldn't the diamagnetic substance be attracted to the magnet when the magnet is moving away from it? But that does not seem to be the case...

When we put a diamagnetic material in the presence of an external magnetic field $\vec B_0$, the magnetic field inside the material decreases to $$\vec B=(1+\chi_m)\vec B_0,$$ where the magnetic susceptibility $\chi_m$ is a small negative number. I am assuming the material is linear and isotropic.  On the other hand the diamagnetism is explained in terms of Lenz law. When we change the magnetic flux of the external field over the material, atomic currents generate an induced magnetic field trying to restore the flux. But then the induced field could have any sign (in the appropriated direction), depending if we are increasing or decreasing the flux of the external field. It seems diamagnetism is a dynamic effect. How come the sign of $\chi_m$ is always negative? Moreover, the magnitude of $\chi_m$ should depend on how large is the variation of the flux but I do not see any suggestion of this when looking at tables of $\chi_m$.


I want to prove $$ \mathrm{e}^x\left|\int_x^{x+1}\sin\mathrm e^t \,\mathrm d t\right|\leqslant 2. $$ I tried to use Cauchy–Schwarz inequality and some other basic integral inequalities but failed.   Any suggestions will be appreciated.

Let $f(x) = \int_x^{x+1} \sin(e^t)dt$. Show that $$ e^x|f(x)| < 2 $$ and that $$ e^xf(x) = \cos(e^x) - e^{-1}\cos(e^{x+1}) + r(x) $$ where $|r(x)| < Ce^{-x}$ for some constant $C$.  I can do the first part easily. Integration by parts gives us $$ f(x) = \frac{\cos e^x}{e^x} - \frac{\cos e^{x+1}}{e^{x+1}} - \int_{e^x}^{e^{x+1}} \frac{\cos u}{u^2}du, $$ so substituting $\cos u = 1$ and $\cos u = -1$ gives \begin{align*} \cos e^x - 1 + \frac{1}{e}\left(1- \cos e^{x+1}\right) &\leq e^xf(x) \leq \cos e^x + 1 - \frac{1}{e}\left(\cos e^{x+1} + 1\right)\\ -2 &< e^xf(x) < 2 \end{align*} So that $e^x|f(x)| < 2$.  I get stuck on the second part, though. From integration by parts, I have $e^xf(x) = \cos e^x - e^{-1}\cos e^{x+1} - e^x\int_{e^x}^{e^{x+1}} \frac{\cos u}{u^2}du$, so it reduces to showing that $$ \left|\int_{e^x}^{e^{x+1}} \frac{\cos u}{u^2}du\right| < Ce^{-2x} $$ for some constant $C$. However, I always end up with a constant for $Ce^{x}$ rather than for $C$.


I am making a contact from and I almost finished it, but I want to make sure that it isn't easy for people to spam to my mail. At the moment I am checking if the user has filled in all fields using Javascript and if they don't, then there is an element text being changed to something like: "You have to fill in this field". Now I wanted to validate text and emails using the filter_var function from php and then change the text to something like: "Please fill in a valid email". This is the Javascript code I am using atm   $(document).ready(function() {   document.getElementById('submitButton').onclick = function() {     var firstName = document.forms["contactForm"]["firstName"].value;     var lastName = document.forms["contactForm"]["lastName"].value;     var email = document.forms["contactForm"]["email"].value;     var message = document.forms["contactForm"]["message"].value;      var submit = true;      if (firstName == null || firstName == "") {       document.getElementById("firstName_error").innerHTML = "Please enter your first name";       submit = false;     }      if (lastName == null || lastName == "") {       document.getElementById("lastName_error").innerHTML = "Please enter your last name";       submit = false;     }      if (email == null || email == "") {       document.getElementById("email_error").innerHTML = "Please enter your email";       submit = false;     }      if (message == null || message == "") {       document.getElementById("message_error").innerHTML = "Please enter your message";       submit = false;     }      return submit;   }    document.getElementById("firstName").onkeyup = removeWarning;   document.getElementById("lastName").onkeyup = removeWarning;   document.getElementById("email").onkeyup = removeWarning;   document.getElementById("message").onkeyup = removeWarning; });  function removeWarning() {   document.getElementById(this.id + "_error").innerHTML = ""; }

Which is better to do client side or server side validation?  In our situation we are using    jQuery and MVC.   JSON data to pass between our View and Controller.     A lot of the validation I do is validating data as users enter it. For example I use the the keypress event to prevent letters in a text box, set a max number of characters and that a number is with in a range.   I guess the better question would be, Are there any benefits to doing server side validation over client side?    Awesome answers everyone. The website that we have is password protected and for a small user base(<50). If they are not running JavaScript we will send ninjas. But if we were designing a site for everyone one I'd agree to do validation on both sides.


My mother name is Firdous Bano and mistakenly typed Fidous Bano while I made online booking with Saudi Airlines. Rest of the information is correct. While this be a problem?

I have my last name typed in wrongly(xxx Tumakuru instead of xxx yyy Tumkur)  while I was booking the ticket on Saudia for my trip on OCt 1, 2017 from BLR to LAX.  The reason being my passport was recently received from a Visa stamping and the sticker on the back of the passport had Tumakuru written on it, I saw that and used it. Tumakuru is how it's spelled on my passport for my place of birth but my last name on passport has Tumkur (they both mean the place name). Also while booking the ticket on Saudia I couldn't add the second part in my first name as the system showed an error due to spaces in first name so I skipped adding the second word.   Has anyone had issues travelling from Bangalore with a slightly misspelled name and a missing middle name on the boarding pass but all these present on the passport?   Thx...


The path for the Python executable used in Blender (up to 2.79) is not configurable.  I looked around and did not find a consistent way to be able to use custom  3rd party Python modules without installing then directly in the O.S. Python.  This would work, although not the ideal solution, but then I had issues with that in Linux, as running pip install system wide adds the modules to /usr/local/lib, but /usr/local is not the in the PYTHONPATH when Blender is started.   An active Python virtualenv - Python's own way of isolating 3rd party modules is ignored by Blender - as the way to activate a virtualenv is simply using it's Python binary (in a different Path than the one used by Blender).

I'm currently developing a script for Blender to handle Mesh Frequency Decomposition.  The script is nearly complete, but i need one more thing: The SciPy library to compute eigenvalues and eigenvectors.  Following the installation instructions on , I'm able to install it as well as Numpy. Numpy works fine, but I can't even import SciPy:  Traceback (most recent call last): File "/CAF_FD.py", line 4, in <module> ImportError: No module named 'scipy' Error: Python script fail, look in the console for now...   By the way, I'm working on Linux 64 bit and I've installed SciPy and Numpy with my package manager.  Edit: When I try to use SciPy with a terminal prompt, it works.


Why does the name " United States " gets article?  Like:  He is from Japan  He is from the United states  But Japan doesn't get article. Why?  Thanks

I have been taught that it's grammatically proper to use the before countries like "Sudan and Yemen" but I was never given a reason (if there exists any, of course) when I asked why, except for "it is one of those ambiguous parts of English language that we – as non-native speakers – should just accept without trying to look for a reason". Now, I'd like to know if there is any answer to this "why" or I should keep on believing that there are no hard and fast rules when it comes to questions like these.


In C# I have following methods defined in given class (non static): int MyMethod(ScriptEngine script, int a, int b) {     return a + b; }  void MyMethod2(ScriptEngine script, string c) {     // do something with c }  I want to create wrapping lambda / Action / Delegate / MethodInfo (all are accepted by script engine) that automatically passes ScriptEngine and this from given, predefined variables. So far I've experimenting with: // With overloads up to 16 template parameters Action<T1> Wrap<T1>(Action<ScriptEngine, T1> func, ScriptEngine script) {       return (Action<T1>) ((t1) => func(script, t1)); }  But when called on MyMethod2 I've got The type arguments for method … cannot be inferred from the usage. Try specifying the type arguments explicitly. If I specify the template arguments explicity, it works, but I want to avoid such specification. Is there any other way (not neccesery following my solution) I can create such wrapper automatically (or semi-automatically)? It is worth mentioning that there is a dedicated abstract method void RegisterAll(ScriptEngine script) that can register required members of given subclass. Here is an example of what I am trying to achieve: class ScriptEngine { // Stub to have complete example, actual implementation is defined elsewhere     void RegisterApi(string name, MethodInfo methodInfo) { }     void RegisterApi(string name, Delegate delegateSelf) { } }  class Api {     int MyMethod(ScriptEngine script, int a, int b) {         return a + b;     }      void MyMethod2(ScriptEngine script, string c) {         // do something with c     }      void RegisterAll(ScriptEngine script) {          // Is there any way to shorten this up (not providing MyMethod twice, not providing template arguments?)         script.RegisterApi(nameof(MyMethod), (Delegate)Wrap<string>(MyMethod, script));     }  }  The problem is how to improve this RegisterApi method so it:  Takes the method only once Does not require specifying arguments via template method

I am wondering why the C# 3.0 compiler is unable to infer the type of a method when it is passed as a parameter to a generic function when it can implicitly create a delegate for the same method.  Here is an example:  class Test {     static void foo(int x) { }     static void bar<T>(Action<T> f) { }      static void test()     {         Action<int> f = foo; // I can do this         bar(f); // and then do this         bar(foo); // but this does not work     }    }   I would have thought that I would be able to pass foo to bar and have the compiler infer the type of Action<T> from the signature of the function being passed but this does not work.  However I can create an Action<int> from foo without casting so is there a legitimate reason that the compiler could not also do the same thing via type inference?


The main weakness in my application was my weak research experience in the field I applied to. Say I got two new writing samples and greatly improved my research experience. Would it be acceptable for me to reapply to a school I got rejected from? I really want to go to that program.

I have the following dilemma: I am finishing my Master's degree in pure mathematics this academic year (summer 2015) and I hoped to apply to a PhD program (US schools) starting from September 2015. Therefore, I have to apply this fall (till December 2014 in most places).  However, I have the following problem - my first article has just been completed and I have to go through a painful publication process which will not be finished in time (surely not till December). Second problem is that I have not particularly high GRE Math results (around 750 I guess, still waiting for results); the exam can be retaken only in April 2015.  Therefore, the only strengths I have are high GPA and solid letters of recommendation. I guess I could send the article to Arxiv.org, but I am not sure if that is acceptable to admissions committee and I am not familiar with the process of placing the article there.  So my questions are:  Is it OK to apply this fall and in case I am not accepted to the desired program, reapply next year, in the fall of 2015?  Or there is some kind of cooldown like the one you have in industry jobs and it is wiser to skip this year's admissions and apply in 2015 with a solid application profile?


I am a Nigerian citizen and have booked a Turkish Airlines flight to Nigeria with 12 hours both ways (return) layover at Istanbul Airport. I have a Chinese residence permit.   Do I need a transit visa at Istanbul Airport to enter Istanbul for city sightseeing?

Do I need a transit visa at Istanbul Airport to enter Istanbul for city sightseeing or hotel accommodation?. All services provided free by the Turkish Airline. I am Nigerian citizen and booked Turkish Airline flight to Nigeria with 12hours layover at Istanbul Airport.


I installed the newest version of blender on my new computer made a scene and tried to render with a camera setup and it just shows up blank. I checked if the camera is turned on for rendering and it is.  Thanks in advance

A scene I made is not rendering, at all. This grey screen stays the same and nothing changes.  Here are my settings:  [


Prove that $(\frac{n+1}{n})^n<n\quad $ for any n=3,4,5... by using induction.  For n=3 is true. and lets assume $(\frac{n+1}{n})^n<n$ is true. we must show that $(\frac{n+2}{n+1})^{n+1}<n+1$ is true. How can I continue?

So I have to prove:      For each natural number greater than or equal to 3,   $$(1+\frac1n)^n<n$$   My work: Basis step: $n=3$ $$\left(1+\frac13\right)^3<3$$ $$\left(\frac43\right)^3<3$$ $$\left(\frac{64}{27}\right)<3$$ which is true.  Now the inductive step, assume $P(k)=\left(1+\frac1k\right)^k<k$ to be true and prove $P(k+1)=\left(1+\frac1{k+1}\right)^{k+1}<k+1$.   This is where I am stuck because usually you add or multiply by $k+1$ or some similar term.


So, I have an HDR file that is lighting my scene ( this one, to be specific), but it's casting rather sharp shadows onto my scene. This is undesirable in the context of my scene, but I'm not sure how to make it do anything else.  How do I soften the shadow cast by this HDR texture?  EDIT The answer given in the "duplicate question" section is not satisfactory to me. I wish to use this HDR file, adding additional light-bouncing objects would not work astonishingly well due to the nature of the scene, and blurring the HDRi as shown in that answer completely changes the appearance of the scene.

How can I make make shadows blur as they get further from the object casting them?   I have set up a relatively simple scene witch includes two pots on a clay ground texture, and I am lighting it using an HDRI image. Here is my render result right now:    How could I go about making the shadow of the pots gradually blur more the farther it is from the pots?   is the HDRI i am using to light the scene.   Thanks in advance!


I am not sure where to ask this question, so perhaps it is physical limitation.   I have a 8 GB flash micro SD memory card. When I copy any file size of up to few gigabytes, copying happens normally. But if I am trying to copy file over 4 GB file, then the system tells me like insufficient memory on card, although 8 GB is available. So perhaps only 32 bit address is used for keeping size of file in micro SD card, or is my micro SD defective?

Yes, why can't I?  I was stashing away some old photography backup zips last night. I could copy 4 of my > 1 GB backup zips to my external USB connected hard-drive when I got the error message "Cannot copy file. Not enough free space." (sort of) for a zip of roughly 7 GB.  But there are 120 GB free. Why is this?   EDIT: Clarification - the files that I could copy was smaller than 4 GB. The failing one was 7 GB. The cause seems to be the FAT32 4 GB limit.


I'm wondering about a few things concerning importing modules. I have a module that contains nothing but a list of variables, so that I can use these across 3 or 4 scripts that run either once or daily. This same module I would like to use in another script of mine, but I only need to load it once, and afterwards, I don't need the module anymore, because I would copy the variables to a list in my script(for comparison purposes). My questions: 1. if I import the module in a method, is it discarded when the function ends? 2. what is the memory-impact on importing a module?  Good to know is that the function is one-shot.  Greetings

If a large module is loaded by some submodule of your code, is there any benefit to referencing the module from that namespace instead of importing it again?  For example: I have a module MyLib, which makes extensive use of ReallyBigLib. If I have code that imports MyLib, should I dig the module out like so  import MyLib ReallyBigLib = MyLib.SomeModule.ReallyBigLib   or just  import MyLib import ReallyBigLib


Some person is downvoting my answer.  This answer is the accepted answer, but they cast downvotes on my answer. How to deal with such kind of users? How to complain to the admin of Stack Overflow?

I've posted a question or an answer, and I have received one or more downvotes. I am not really sure why I was down voted, or I think I know why, but I disagree.  Why did this happen, and what should I do about it?


This issues had been in my life for 2 weeks and I was unable to figure it out.  My domain name was hosted by 1&1 and my website is hosted by my own Ubuntu 18.04. I have no issue to ping anywhere and my website has no issue to visit.  However I can't update or upgrade my Ubuntu server with the following error message:  my nameserver shows this:  nameserver 127.0.0.53 options edns0   Thank you in advance for help.  sudo -E apt-get update Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease   Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1560:8001::1                                                                                1). - connect (101: Network is unreachable) Cannot initiate the connection to ar                                                                                chive.ubuntu.com:80 (2001:67c:1360:8001::21). - connect (101: Network is unreach                                                                                able) Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:800                                                                                1::17). - connect (101: Network is unreachable) Cannot initiate the connection t                                                                                o archive.ubuntu.com:80 (2001:67c:1560:8001::14). - connect (101: Network is unr                                                                                eachable) Could not connect to archive.ubuntu.com:80 (91.189.88.162), connection                                                                                timed out Could not connect to archive.ubuntu.com:80 (91.189.88.24), connection                                                                                timed out Could not connect to archive.ubuntu.com:80 (91.189.88.149), connectio                                                                                n timed out Could not connect to archive.ubuntu.com:80 (91.189.88.31), connectio                                                                                n timed out

I am using Ubuntu 16.04 Beta 2 at the moment and every time I try to update at home via sudo apt-get update or upgrade trough sudo apt-get upgrade I wont get any feedback. Even installing of anything will have the same result. It will just "hang up" on 0% while fetching data.  $ sudo apt-get update [sudo] password for niclas:  0% [Connecting to archive.ubuntu.com (2001:67c:1560:8001::11)] [Connecting to archive.canonical.com (2001:67c:1360:8c01::1b)]   I have no idea how to solve the problem. I already tried to ping6 archive.ubuntu.com with 100% packet loss while just ping wont have any loss.  I changed the DNS-Server (IPv4 & IPv6) to Google's one no solution either.


I often find this at the bottom of pages.  Page generated in 0.00013899803161621  Sometimes, I come across  Page generated in 9.0122222900391E-5  What does that time mean? I tried searching Wikipedia for E and maths but found the . My guess is E stand for Exponential and -5 is the power it is raised to. And the displayed time is a really small number. But that doesn't make sense when compared to the other time in the question. 0.00013899803161621 is bigger than 9.0122222900391E-5. If it means x times $10^{-5}$, then 9.0122222900391E-5 will be 0.000090122222900391 which is smaller than 0.00013899803161621. What does E stand for?


Prove that:  $$\left(\sin\frac {9\pi}{70}+ \sin\frac {29\pi}{70} - \sin\frac {31\pi}{70}\right) \left(\sin\frac {\pi}{70}-\sin\frac {11\pi}{70} - \sin\frac {19\pi}{70}\right) =\frac {\sqrt {5} -4}{4}$$  I Could not get any idea to solve. Please help

Prove the given identity.  $$\left(\sin\frac {9\pi}{70}+ \sin\frac {29\pi}{70} - \sin\frac {31\pi}{70}\right) \left(\sin\frac {\pi}{70}-\sin\frac {11\pi}{70} - \sin\frac {19\pi}{70}\right) =\frac {\sqrt {5} -4}{4}$$  Please help, I could not gather enough ideas, even on how to get to the first step. I thought of using the transformation formula (from sum to product) but did not find a fruitful result.   UPDATE 1.:  $\left(-\frac{1 +\sqrt{5}}{8} + \frac{1}{8} \sqrt{14\left(5 - \sqrt{5} \right)}\right)\left(-\frac{ 1+ \sqrt{5}}{8} -\frac{1}{8} \sqrt{14 \left(5 -\sqrt{5} \right)}\right) $,    I noticed that Alexis had got to this point.  Can anyone explain me how did he get here, with calculations. Please help.  Thanks in Advance.


Looking at the  to the Q there would be a fitting answer.  It would be a nice feature for Moderators to be able to convert comments to answers (and more often vice versa).  Possible or not?

When someone posts an answer that's really a comment, mods can move it to the comments.  But when someone posts a comment that is essentially a complete answer (and no further answer is likely to be forthcoming) about all we can do to get the answer to be an answer on the question is say "please post that as an answer".  Should mods be given the ability to go the other way, making answers-in-comments into actual answers (simultaneously deleting the comment)?   [Note that this is not the same thing as  which is about commenters making their own comments into answers, nor is it the same as  (which is about askers making comments that answer their questions into answers, and which the previous one should not be marked as a duplicate of since they're asking quite distinct things); it's fairly obvious that those two questions could have very different answers to each other, and both could have very different answers to this question, which is about moderators converting comments to answers. Different questions, requiring different sorts of answers.]  If the original poster of the comment has some strong reason to not want it as an answer they are still able to delete the answer, of course, but the comment would (and generally should) remain deleted in that case.


I can't figure out the reason 100000000000000030/10 = 10000000000000004 in JavaScript, I haven't seen this problem in other questions.      <script>     alert(100000000000000030/10);   </script>

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


So I have a test DB that is live, I was away for the holidays and come back and my MYSQL DB is wiped of data (only about 8 lines).  It was all test data so I am not worried about it, my thoughts is that I was SQL injected through my PHP signup form but I don't see any vulnerabilities here.  I am using variables for my SQL queries which is what I thought prevented this type of attack.  I am at a loss as to where the vulnerabilities are.  I only have 5 files, here is the one that I think is the problem, it is receiving data from a previous form.    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Challenge Me</title>    <?php  if($_GET["dispname"] && $_GET["regemail"] && $_GET["regpass"] && $_GET["regpass2"] ) { if($_GET["regpass"]==$_GET["regpass2"]) { $regemail = $_GET["regemail"] ; $servername="localhost"; $username="***"; $password="***"; $database="***"; $conn= mysql_connect($servername,$username,$password)or die(mysql_error()); mysql_select_db("$database",$conn);   $query = 'SELECT email FROM users WHERE email = "' . $regemail . '"'; $result = mysql_query($query) or die(mysql_error());  if (mysql_num_rows($result) ) {         die("Duplicate email found!  Please press the back button to use another email or " . "CLICK HERE to have your password emailed");     }     else {}   $sql="insert into users (fullname, displayname,email,password)values('$_GET[fullname]','$_GET[dispname]','$_GET[regemail]','$_GET[regpass]')"; $result=mysql_query($sql,$conn) or $string = mysql_error();        $to = $_GET['regemail']; $subject = "Thank you for Registering!"; $message = "Hello " . $_GET['dispname']; $from = "noreply@challengeme.com"; $headers = "From:" . $from; mail($to,$subject,$message,$headers) or die('You have successfully registered however mail servers are currently down, you may or may not receive an email');    print "
You have registered successfully
";  print "You will receive an email shortly with your confirmation.  You may now log in"; } else print "passwords do not match"; } else print"Please fill out all required fields"; ?>

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I'm trying to do apt-get install -f -o APT::Immediate-Configure=0 (just apt-get install -f doesn't work currently for me...) which fails with  Unpacking libboost1.46-dev (from .../libboost1.46-dev_1.46.1-7ubuntu3_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libboost1.46-dev_1.46.1-7ubuntu3_i386.deb (--unpack):  trying to overwrite '/usr/include/boost/aligned_storage.hpp', which is also in package libboost1.40-dev 1.40.0-4ubuntu4 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)   and many similar errors.  There are similar questions (, ) already but the suggested solution is for dpkg and I don't know how to apply that to apt-get.  How can I resolve this?

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


A user is receiving "a potentially dangerous request.form value was detected" error message when trying to log in. I set validateRequest="false" in the logon.aspx page as well as the following in the "location" of web.config:  <location path="~/Account/Logon.aspx">     <system.web>       <pages validateRequest="false" />       <httpRuntime requestValidationMode="2.0" />       <authorization>         <allow users="?" />       </authorization>     </system.web>   </location>   User still getting the error message. I askded what special characters he has in his password and he has "&", "#" and "(", none of which should generate this error (I have # and * in mine). Is there anything else I can try?  Almost all suggestions to fix this issue, including those at this site, recommend the use of "validaterequest=false" which does not seem to help.

Every time a user posts something containing < or > in a page in my web application, I get this exception thrown.  I don't want to go into the discussion about the smartness of throwing an exception or crashing an entire web application because somebody entered a character in a text box, but I am looking for an elegant way to handle this.  Trapping the exception and showing     An error has occurred please go back and re-type your entire form again, but this time please do not use <   doesn't seem professional enough to me.  Disabling post validation (validateRequest="false") will definitely avoid this error, but it will leave the page vulnerable to a number of attacks.  Ideally: When a post back occurs containing HTML restricted characters, that posted value in the Form collection will be automatically HTML encoded. So the .Text property of my text-box will be something & lt; html & gt;  Is there a way I can do this from a handler?


It was about an all water world, where people were living under water.   They'd manage by catching air bubbles that would float slowly under water by catching them in contraptions they'd wear on their head.   If I remember correctly, the planet was created by some sort of portal from Earth, to dispose of extra seawater.  The people that live on this planet couldn't surface because it's too close to (a) sun, so they would die if they did.   A thing I also remember is the core of the planet was this 'being' that had mind controlling abilities.

I read this book +20 years ago. What I remember is the following:  Someone built a device that in case the water of the ocean rise it would be transported to a bubble in space, and in case the water drops the water from the bubble would flow back to the oceans.  Inside the bubble are also people, lost submarine and a intelligent "slime" that control them and also sharks and other fish. The slime send woman back to earth. The rest I don't remember.


Problem  I'm trying to sell the idea of organizational patch/update management and antivirus management to my superiors. Thus far, my proposition has been met with two responses:   We haven't had any issues yet (I would add that we know of) We just don't think it's that big of a risk.   Question  Are there any resources available that can help me sell this idea?  I've been told that 55-85% of all security related issues can be resolved by proper anti-virus and patch/update management but the individual that told me couldn't substantiate the claim. Can it be substantiated?  Additional Information  1/5 of our computers (the ones on the building) have Windows update turned on by default and anti-virus installed. 4/5 of our computers are outside corporate and the users currently have full control over anti-virus and Windows updates (I know this is an issue, one step at a time).

Since starting working where I am working now, I've been in an endless struggle with my boss and coworkers in regard to updating systems.  I of course totally agree that any update (be it firmware, O.S. or application) should not be applied carelessly as soon as it comes out, but I also firmly believe that there should be at least some reason if the vendor released it; and the most common reason is usually fixing some bug... which maybe you're not experiencing now, but you could be experiencing soon if you don't keep up with .  This is especially true for security fixes; as an examle, had anyone simply applied a patch that had already been available for months, the infamous SQL Slammer worm would have been harmless.  I'm all for testing and evaluating updates before deployng them; but I strongly disagree with the "if it's not broken then don't touch it" approach to systems management, and it genuinely hurts me when I find production Windows 2003 SP1 or ESX 3.5 Update 2 systems, and the only answer I can get is "it's working, we don't want to break it".  What do you think about this? What is your policy? And what is your company policy, if it doesn't match your own?  What about firmware updates (BIOS, storage, etc.)? What about main O.S. updates (service packs)? What about minor O.S. updates? What about application updates?  My main interest is of course in updating servers, as client patch management is usually more straightforward and there are well known tools and best practices to handle it.


In one of the update prompts I get this    This leaves me wondering, why does Ubuntu install it in the first place if it should be of no use? (my CPU is made by AMD) Is it just to have it ready whenever I boot the system on a totally different hardware?

I have a Supermicro AS-2022G-URF (H8DGU motherboard) with 2 AMD Opteron 6272 16C/16T 2.1GHz and an LSI MegaRAID SAS 2108 RAID controller currently running Ubuntu Server 14.04 LTS (scheduled to be upgraded to 16.04 this summer). Several times over the last year, when I have done aptitude update/upgrade, the intel-microcode package has shown up as one of the packages that will be installed. Since this server has AMD processors, not Intel, Why does aptitude offer this package? Is it in any way necessary for other reasons? Any ill effects from going along with aptitude on this?


After receiving reports from my website assistant that he was unable to receive email resulting from a user performing an action that would generate an email to him, I decided to test a function on my site that worked in the past. I used the simple contact form to try to send an email to myself and my website assistant. Instead of the email going out, the remote servers rejected the email. When I looked in the server logs, I see this error reported from the yahoo server (into my exim_mainlog file)  "SMTP error from remote mail server after end of data: 554 5.7.9 Message not accepted for policy reasons."  I checked the account settings on my server through cpanel and   noticed that DKIM and SPF are enabled on the account.  Next to SPF, I see  "(v=spf1 +a +mx +ip4:64.15.69.254 ~all)"  Is it possible that I need to modify that SPF string to make the remote mail clients happy? I'm using WHM 11.52.2 build 5 and something makes me thing upgrading is a solution but at the same time, upgrading could wreck other parts of my high-speed website setup.  So without upgrading can I fix this problem? Does it really boil down to just a data configuration error that magically happened?

When sending or forwarding emails using a personal or company domain using a  website or email client, how do I prevent the email from being incorrectly marked as spam?


Consider an arbitrarily shaped body immersed partly in one fluid and partly In another. Can an expression  be derived for two different forces applied by the the two fluids on the immersed volumes by using Archimedes principle separately for the displaced fluids?  If so how will an upward force be applied by the upper fluid layer

Problem: I have a cylindrical vessel of height $H$ and radius $R$. There are two liquid layers in the vessel. The first has density $D_1$ and height $h_1$, the second has density $D_2$ and height $h_2$. The second liquid is floating on the first liquid (thus $D_2 < D_1$) and they are both entirely within the vessel ($h_1+h_2 \le H$). Now I have a cube of density $D$ and edge length $n$. The cube fits into the vessel ($n \le \sqrt2R$) but it might not be completely inside it ($n>H$ is possible). I place it into the vessel such that one side is horizontal (the cube is not lopsided). Some liquid might overflow as a result. How do I use Archimedes' principle to calculate the topmost liquid level after placing the cube? I can ignore damping and other physical effects. EDIT: Note that the only values I know are $H, R, D_1, h_1, D_2, h_2, n$ and their abovementioned constraints.  My workings: I tried using the formula directly, where $\text{weight of cube}=\text{weight of displaced liquid}$. I first get $Dn^3=D_2n^2s_2$ where $s_2$ is the height submerged in the second liquid. If $s_2 \le h_2$ then the cube is only submerged in the second liquid. So the answer is $\min(H, h_1+h_2+{n^2s_2\over\pi R^2})$, accounting for overflows. This case is simple. But if $s_2>h_2$ then the cube can be submerged in the first liquid too. I thought of subtracting the weight of the second liquid displaced to obtain the height submerged in first liquid, but realize that I don't know that. The weight displaced depends on the final liquid height, which can be affected by overflows, whether the cube fits totally within the two liquids, etc. In fact, it can be the case that after the liquid level rises, the cube now displaces more of the second liquid, causing it to not be submerged in the first (is that even possible?) It seems very messy and I have no idea how to start. :( Does anyone have a nice solution to this problem?


I have 2 audio output devices:   5.1 Speaker System attached via Toslink Gaming Headset attached via USB   Is there a simple way to change which device is the default output device, from the command-line?  I'm interested in scripting it.

I want an easier way to change my default sound device from my sound card to my usb headset.  Currently it takes a very precise right click, a left click, another right click, and two more left clicks.   Ideally i could just have it swap with a shortcut key. (it was a little easier in XP but not by much.)   A software solution is preferred, but I am open to suggestions that use hardware.   I am running Windows 7 currently.


I've got a camera tracked to an empty, and I'd like to add keyframes with constant interpolate to have the camera "click" forward.  How can I scale the distance between objects, without affecting their size? Even better would be setting an absolute value of the distance between the objects.

If I have multiple objects selected can I use scaling to make the objects closer together (without rescaling the objects)?


Our galaxies are speeding apart from each other and that is because of dark energy, but we don't know where it comes from right? If I'm not mistaken could dark matter have dark energy? (If they are the same thing please correct me.) Matter has gravity so could  have , so sense there is more dark matter is that why our galaxies are being pushed apart?

I was curious whether it is possible to make dark energy equivalent to dark matter.   Can this unification be done?  If it can, why do scientists prefer to separate dark energy from dark matter?


I am using OpenCV + deep neural network for object detection. I am using python language.  I want to run the code on some embedded system platform (like Raspberry Pi for example). I want to know whether my code will run or not on the embedded system platform. Right now I am running the code on my laptop which has large memory.   I want to first know how much my code is consuming memory at run time. After that I will choose hardware containing  sufficient RAM.  So how can I know the run time memory consumption of my python code? Any extra tips or opinions will also be appreciated.  EDIT: I am using Ubuntu Linux.

I've recently become interested in algorithms and have begun exploring them by writing a naive implementation and then optimizing it in various ways.  I'm already familiar with the standard Python module for profiling runtime (for most things I've found the timeit magic function in IPython to be sufficient), but I'm also interested in memory usage so I can explore those tradeoffs as well (e.g. the cost of caching a table of previously computed values versus recomputing them as needed). Is there a module that will profile the memory usage of a given function for me?


My MWE:  \documentclass{article} \usepackage{amsmath} \newcommand{\sgn}{\operatorname{sgn}}  \begin{document}  \begin{table}[!htpb] \centering \caption{Commonly used candidate CLFs.} \begin{tabular}{cll} \hline \hline CLF\# & \multicolumn{1}{c}{$V(x)$} & \multicolumn{1}{c}{$\dot{V}(x)$}              \\ \hline 1     & $\frac{1}{2}x^2$           & $x\dot{x}$                                    \\ 2     & $|x|$                      & $\sgn(x)$                                     \\ 3     & $\sqrt{|x|}$               & $\sgn(x)\frac{1}{2}|x|^{-\frac{1}{2}}\dot{x}$ \\ 4     & $ln(x^2+1)$                & $2x\dot{x}\left (x^2 +1 \right ) ^{-1}$       \\ 5     & $\left [ln(x+1) \right ]^2$              & $x\dot{x} \cdot \log[x+1](x+1)^{-1}$          \\ \hline \hline \end{tabular} \label{tab:CLF} \end{table}  \end{document}   The result:    Now I don't like the spacing for the first two rows of the table, because $\dot{V}(x)$ and $\frac{1}{2}x^2$ are too close to the horizontal lines. Is there an easy way to add some vertical space while keeping the text vertically centered?

How do you guys go about controlling column padding in tables?   Update  To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the following code snippet, I could pad the columns and make them look a bit less... ugly. :P   \begin{tabular}{|l|l|}     \hline     column 1 & column 2 \\      \hline     I really would like this less & crammed\\     \hline \end{tabular}   I tried this by using the command \vspace but it leaves gaps in the vertical lines.


I need help. How can I fix this problem with taburlax not fit on page? If I use tabular and width=\textwidth, it works but the text on the table stays very small.   obs: I looked for similar posts here but none of them helped me to fix it.    \begin{table}[H]   \caption{Quantidade de Votos. Elaborado por Autor. 2018.}     %\begin{adjustbox}{width=\textwidth}     \renewcommand{\arraystretch}{2.5}         \begin{tabularx}{\textwidth}{|*{11}{c|}} %{\linewidth}{*{11}{|c}|} %{|l|c|c|c|c|c|c|c|c|c|c|}         \hline         \multicolumn{1}{|c|}{\textbf{Número}} & \textbf{Candidato a Vereador}    & \textbf{Partido} & \textbf{Coligação} & \textbf{Situação} & \textbf{\makecell{Votos Nominais \\ Zona 146}} & \textbf{Votos Válidos na Zona} & \textbf{\% de Votos Válidos na Zona} & \textbf{Colocação Geral} & \textbf{Votos Totais Goiânia} & \textbf{NEM (Concentração/Dispersão)} \\ \hline         90100  & Vinicius Cirqueira        & PROS                      & PROS & Eleito & 5431 & 64908 & 8.37 & 3 & 88582 & 3.08                                          \\ \hline         44444  & Jorge Kajuru              & PRP                       & DEM/PRP & Eleito & 3154 & 64908 & 4.86 & 1 & 37796 & 23.31                                          \\ \hline         19193  & Sargento Novandir        & PTN                      & PTN & Eleito & 1964 & 64908 & 3.03 & 65 & 2713 & 24.7                                          \\ \hline         13680  & João Araujo              & PT                      & PT/PEN/PPL/PC do B & Suplente & 1947 & 64908 & 3 & 78 & 2305 & 13.02                                          \\ \hline         22018  & Jorge                    & PR                      & PR/PMN & Suplente & 1890 & 64908 & 2.91 & 57 & 3044 & 37.51                                          \\ \hline         45444  & Mauricio Beraldo        & PSDB                      & PSB/PSDB/PRB/SD & Suplente & 1775 & 64908 & 2.73 & 46 & 3472 & 17.36                                          \\ \hline         \end{tabularx}        \label{tab:quantidadeVotos6Candidatos}     %\end{adjustbox} \end{table}

I have a table that I want to insert on a page, but at least one (perhaps both) of the following conditions are met:   The table is too wide to fit within the text block or page. That is, I'm exceeding some horizontal restriction. The table is too tall to fit within the text block or page. That is, I'm exceeding some vertical restriction.   What are my options to make this table fit? If it doesn't fit, regardless of my attempts, what other options exist?


I had a bootcamp partition that I'd wanted to remove. It seemed like it'd been removed using bootcamp, but it is still taking up a big chunk of space in the System storage, and now I can't find it to get rid of it. This is what the diskutil list returns:   Last login: Fri Jan 17 13:03:32 on ttys000 Elisas-MacBook-Pro-2:~ Elisa$ diskutil list /dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *251.0 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         199.0 GB   disk0s2  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +199.0 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            138.5 GB   disk1s1    2:                APFS Volume Preboot                 24.5 MB    disk1s2    3:                APFS Volume Recovery                519.0 MB   disk1s3    4:                APFS Volume VM                      1.1 GB     disk1s4   I have looked through other threads on this topic but haven't found a solution to work, as I don't have the extra disks for bootcamp that other posts have shown. Any help is appreciated, this is really not one of my skill areas.

Using the latest Macbook Pro with currently High Sierra 10.13.1, I was using bootcamp for a year, and I decided to get rid of the Bootcamp partition this morning. The Bootcamp utility would not let me erase this partition, so I decided to do it through Disk Utility.  I did everything I could to "erase" it, but I can't find any way to merge this 58GB partition with my primary Macintosh HD one.    In Disk Utility, if I want to erase the container Disk2, it tells me that an internal error occured... The BOOTCAMP partition is actually formatted as APFS...    $ diskutil list     How can I merge those two partitions ?  EDIT : The BOOTCAMP partition is now gone but I can't extend the primary one ...


I recorded a video using QuickTime, but cannot find the file.  Where is the file saved and how do I find it?

I was recording my screen whilst giving a presentation. Instead of stopping the recording cleanly I closed the lid of my laptop. Later, when I opened it again, the recording had stopped, but there was no sign of the resulting file. Can anyone tell me where the recording may be stored on disk so I can recover it?


I need to reference some JUnit Tests (src/test/java) from project B in the test package src/test/java of project A whereas B is a maven dependecy of A.  Is this even possible?  <dependency>     <groupId>XYZ</groupId>     <artifactId>B</artifactId>     <version>${project.version}</version>     <type>jar</type>     <scope>test</scope> </dependency>    Both projects are under my controll.  Thanks for your advice

How can you depend on test code from another module in Maven?    Example, I have 2 modules:   Base Main   I would like a test case in Main to extend a base test class in Base.  Is this possible?  Update: Found an , which involves creating a test jar.


I was writing a book about royalty and I needed to use the word suitor in it, but the "suitors" were female. Should I keep using the word suitor or suitress?

I'm looking for a word which could satisfy the usage of "suitor", except it would be used to indicate female "suitors":  E.g.:     She had a host of suitors eagerly awaiting her favour...   Now, I want a word that could fit in this sentence, except it would be about females:     He had a bevy of ?????? eagerly awaiting his favour...


I am having a problem with the following:  Alias:  alias gks='gitk --all &; clear; git status'       When I try it I see -  Console Resp:  $ gks bash: syntax error near unexpected token `;'   It appears to be the job control ('&') for the gitk command, is it possible to integrate this job control into an alias?

I have been using this command successfully, which changes a variable in a config file and then executes a Python script within a loop: for((i=114;i<=255;i+=1)); do echo $i > numbers.txt; python DoMyScript.py; done  As each DoMyScript.py instance takes about 30 seconds to run before terminating, I'd like to relegate them to the background while the next one can be spawned. I have tried what I am familiar with, by adding in an ampersand as below: for((i=114;i<=255;i+=1)); do echo $i > numbers.txt; python DoMyScript.py &; done  However, this results in the below error: -bash: syntax error near unexpected token `;'


I started to read 2010 and I don't understand why some of the facts of 2001 are different from what the characters say in 2010. For example:   The most obvious one, Discovery One travels to Saturn in 2001, whereas in the second odyssey they say that it went to Jupiter. The monolith, AMH-2, is on Saturn in 2001, while on Jupiter in the second odyssey. HAL is called CARL (in French) in the first book.

So, in the book in 2001, it says the monolith is around Saturn, and in the movie, it says it's around Jupiter. Also, in 2010, they both agree that it's around Jupiter. Why is that?


I've just started studying design patterns. While I was studying " Decorator Pattern " I noticed that we use Interface in order to instantiate an object. I will demonstrate my example by using the decorator pattern. public interface GuitarMets {  public String getDesc(); public double getCost(); }  This is my interface and this interface is implemented by another class that will be used for the creation. And in my main class I have lines like this. public class MainClass {  public static void main(String[] args){      GuitarMets guitar = new Sound(new Guitar());     System.out.println(guitar.getDesc());     System.out.println(guitar.getCost());       } }  So what I could not figure out is that, since we cannot create an object from Interfaces, how we are able to use it in order to instantiate objects from the interface? I hope my question is not weird and finds you well.

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


Let's say that there are two dedicated servers, freshly installed, with identical software and users on both of them.  Suppose that, for whatever reason, I would like to copy ownership patterns from one of these servers to another. Is that possible?

I was going to change the ownership of a directory to apache:apache, but I ended up running:  chown -R apache:apache /   Bad! Very bad! I knew what was going on when it started saying:     chown: changing ownership of `/proc/2694/fd/48': Permission denied   That's when I stopped everything (Ctrl+C).    The current system I have is a server running virtualbox running CentOS 5. This problem happened inside the VM.  Currently, everything seems to be working, but I have not restarted the system yet, and to be honest, I'm afraid that if I did something will break.  I do not know chown's order, should I be concerned and assume something will break after a reboot? Is there a way to recover form this problem without having to rely on backups? I do have a daily one, but I thought there may be a simpler way out.


I am not able to get understand what is difference between deep copy and shallow copy. Please make me understand with the simple example. Thanks

What is the difference between a deep copy and a shallow copy?


How should I prove the greatest value of the binomial coefficient $C(n,r)$ occurs for $r=\left[\cfrac{(n+1)}{2}\right]$ ?

How do you prove $n \choose k$ is maximum when $k$ is $\lceil n/2 \rceil$ or $\lfloor n/2 \rfloor$?  This  provides a proof of sorts but it is not satisfying. From what I understand, it focuses on product pairings present in $k! (n-k)!$ term which are of the form $i \times (i-1)$. Since these are minimized when $i=n/2$, we get the result. But what about the reasoning for the rest of the terms?


On , I was looking for the Elementary OS SE page, but could not find it in the list. OK, try Technology... not seeing it there. Finally, I decided to do a Ctrl+F, and I found it - at the end of the list.  If sites are sorted by name, they should be consistently sorted by name. I'm assuming this is a bug, but with over 100 site names, I did not have a chance to look through them all.

There seems to be something wrong with the sorting of Stack Exchange sites by name:    elementary OS and Русский язык appear in the wrong place at the end of the list.


Can we have constructor in abstract class ?  If yes, what the use of that because we can't instantiate the Abstract class and constructor will never call.

Can an abstract class have a constructor?  If so, how can it be used and for what purposes?


I have PostgreSQL CSV-log its errors according to this structure:  Sadly, from what I can tell, it neither includes in that example, or supports at all, dumping the actual script's file path as a field. This means that while I do know the application_name and other fields, I don't know which actual script caused the error, meaning my neat little HTML table which I create from this table is "blind" as to what exactly caused the error. For example:  could not receive data from client: An existing connection was forcibly closed by the remote host.  I can tell roughly which script caused that from the application_name, but I cannot build a link which would open the relevant script immediately, or make statistics about which scripts cause the most errors/log entries, to know what to prioritize fixing first. I first thought that I could just add my own column to the table, but then I realized that this won't help, since my script which does the COPYing of the csvlog data into my table has no idea from where the entries origin, since they are not logged by PG. I can't see any logical way around this unless PG after all does support a "file path" CSV log field. But since it's not included in the example, and not mentioned on that page (that I can see), the chances seem slim. It seems like a crucial field to me, though...

I have PostgreSQL CSV-log its "errors" according to this structure:  It doesn't include the file path to the script which ran the query, so I have no idea where it occurred besides the vague, essentially useless hint from the "application_name". How do I make it log which file caused the error/warning/log? My first thought was to just add my own column to the table, called file_path, but then I realized that this won't help, since my script which does the COPYing of the csvlog data into my table has no idea from where the entries origin, since they are not logged by PostgreSQL. Without knowing where the error occurs, I might as well not have a log at all. How do I make it log the file path and not just the application_name? I'm baffled as to why this is lacking in the table structure/CSVlog dump format. The "detail" column is almost always empty, so there are no file paths there for me to extract.


I have some log files that have ansi-color codes in them. When I open them in Emacs I see garbage:              As an example, I run the following:  ls --color=yes -ald -- * > my_files.txt   on a generic folder (using gnome-terminal in Ubuntu with zsh)  The interesting thing is that if I run  cat my_files.txt   the shell displays the contents correctly in color (i.e. the shell knows how to interpret those ansi-codes)  Is there any way to have Emacs display such files correctly as well?

I want to view (and/or edit) colorized text in emacs, such as is output by ls -l --color=always, tree..., or whatever.   The text I refer to exists in a file. When I open that file in emacs, I want to be able to see it colorized, or toggle it to show ANSI (SGR) escape sequences.     ansi-color.el seems be be what I need, but I haven't been able to get it to do any colorizing of the ANSi escape sequences, but I do see blue-bold for individual contol bytes (eg. ^A and ^[)... I'm not sure if that is a feature of ansi-color, but I think it is.       According to the , it can work with strings and regions, but even that doesn't seem to work.. For example the function ansi-color-apply-on-region is not recognized by M-x. It says, "No match"     I've added (require 'ansi-color) to my .emacs file and even (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on). I get no error or warning when emacs starts, so I'm stuck.        How can I get the standard functions to work, and can it be made to automatically apply when opening a file whose name is suffixed with .col?


How do you go from $$\sum_{0}^\infty (0.5e^-jw)^n$$   to   $$\frac{1}{1-0.5e^-jw}=\frac{e^jw}{e^jw-0.5}$$  and I was looking and this formula  $$\sum_{m=0}^{m=n} (a)^n = \frac{1-(a)^(n+1)}{1-a}$$

Why does the following hold:  \begin{equation*} \displaystyle \sum\limits_{n=0}^{\infty} 0.7^n=\frac{1}{1-0.7} = 10/3\quad ? \end{equation*}  Can we generalize the above to      $\displaystyle \sum_{n=0}^{\infty} x^n = \frac{1}{1-x}$ ?   Are there some values of $x$ for which the above formula is invalid?  What about if we take only a finite number of terms? Is there a simpler formula?     $\displaystyle \sum_{n=0}^{N} x^n$   Is there a name for such a sequence?    This is being repurposed in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: .


I'm just wondering.Because I don't know if there are some things you can do in LireOffice Writer but you cannot do in Microsoft Word.Because my son does a lot of computer projects and I installed Ubuntu on VirtualBox so he can use it and install Dropbox on it to transfer a document on to my Windows 7 computer (The computer that I used to install it Ubuntu on a virtual machine) and keep working on both machines.

Is LibreOffice Writer able to read properly Ms Office Word docx Files?  I think it can't and users should be aware of it!  I tried to open many documents .docx created with Ms Office 2007 and appeared modified/transformed when I tried to open them with LibreOffice.  Can I do anything about it?


I want to install Debian and Ubuntu in the same disk with different partitions. I also have a windows partition.  The question is if I could install Ubuntu and Debian sharing the same swap memory or instead I need to have one swap partition for each installation.  Has anyone tried this?

I have a laptop on which I have installed Ubuntu 12.04 and Windows Now just for learning purposes I am going to install Backtrack OS on it.  My laptop has 4 GB of RAM so according to the recommendation I have allocated 8 GB of swap space on my hard drive.  can I share the swap space between these two OS (Backtrack and Ubuntu)  I really don't want to waste 8 GB of more space for swap (because as I have noticed it is rarely used and as far as I know OS doesn't store any data in swap space, does it?) So is there a way with which I can share this 8 GB swap partition? If yes how?


Yesterday I offered a bounty on my question that is several months old. .  However there have been only 3 more visits since yesterday - so the bounty appears not to be creating more attention.   Should I have asked a new question instead?

It's possible to offer and award bounties of reputation on questions.   What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have?      See also:  in the Help Center


I want to convert a MOV file to MP4 file. I have found many ways on YouTube, but in a fix which one will take less time.

The conversion answers that I have seen on the web suggest using a -c option in the command line using FFmpeg.  However using Ubuntu 14.04 the -c option does not exist in FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.  Is there a newer version? If so how can I get it. Using apt-get it says that this is the newest version.


Why is information indestructible in quantum mechanics?

I really can't understand what Leonard Susskind means when he says in the video  that information is indestructible.  Is that information that is lost, through the increase of entropy really recoverable?   He himself said that entropy is hidden information. Then, although the information hidden has measurable effects, I think information lost in an irreversible process cannot be retrieved. However, Susskind's claim is quite the opposite. How does one understand the loss of information by an entropy increasing process, and its connection to the statement “information is indestructible”.  Black hole physics can be used in answers, but, as he proposes a general law of physics, I would prefer an answer not involving black holes.


Step and switch-like functions can be thought of as deterministic switches at some threshold, so smooth sigmoidal-like functions describe that switch with uncertainty around that value.  The machine learning literature discusses 'activation functions' extensively, but the choices are usually justified by application results. I am not aware of an argument for particular functions form first principles. The heaviside function is sometimes approximated by $H(x) \approx \frac{1}{2} + \frac{1}{2}tanh(rx)$, and I think the gaussian CDF has a more immediate probabilistic interpretation. Since probability distributions can be described as arising from idealized processes (e.g. gaussian from brownian motion, Gamma from sequence of exponential waiting times, binomial from repeated sampling with a fixed probability) my question is whether there is a canonical choice, or canonical choices depending on the process that generates the step function. EDIT The question is not whether there are continuous approximations to the step or Heaviside functions, nor whether there are functions that are popular or commonly used (so it's different from ) as an alternative to the discontinuous step. The question is whether there are functions that represent probabilistic switch-like behavior and arise naturally from probabilistic reasoning (if not in general, for specific processes that generate some sort of switch).

Why is the de-facto standard sigmoid function, $\frac{1}{1+e^{-x}}$, so popular in (non-deep) neural-networks and logistic regression?   Why don't we use many of the other derivable functions, with faster computation time or slower decay (so vanishing gradient occurs less). Few examples are . One of my favorites with slow decay and fast calculation is $\frac{x}{1+|x|}$.  EDIT  The question is different to  as I'm only interested in the 'why' and only for the sigmoid.


I have made a free version of an app (not in the app store yet) with ad banners and some features.  But I want to make a paid version of this app as well with no ads and more features.  Do I duplicate the app and make 2 separate copies of the app (free and paid) and submit them separately to the app store or is there a way of coding the paid version in to the current free version  I think it may have something to do with targets but i'm not sure  help would be appreciated

I'm starting to get to the point where I want to consider building a lite version of my iPhone app. I've found a few things on the web that talk about the process a bit, namely:      What I'm specifically interested in is simplifying the process of managing which files are included in the different versions of my app as I continually modify and enhance my paid for version.


I went to the Ubuntu website, and looked up the local area user group (LOCO) for Maine, USA, North America... it doesn't exist, but I would like it to exist.  How do I create it? how do I create an Ubuntu Local Community?    I have a group of guys, we meet up on a bi-weekly basis. Coding, hacking (not the evil sort) and Maker projects are standard fair.

I know what an Ubuntu Team is and , but what can users do if their area doesn't have a LoCo team?


I have installed Ubuntu Server 20.04 and when I get to the login prompt, I see a lot of messages from cloud-init writing over that prompt. Is there a way to disable that or hide it or redirect it to another TTY? I've tried creating a service that waits for cloud-init.target, but that doesn't work. Uninstalling cloud-init works, but I'd prefer keeping it. The messages that I want to hide look like this: [  26.488167] cloud-init[768]: Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 running 'modules:config' at Fri, 06 Nov 2020 17:00:08 +0000. Up 26.39 seconds. [  28.318996] cloud-init[768]: Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 running 'modules:final' at Fri, 06 Nov 2020 17:00:10 +0000. Up 28.21 seconds. [  28.319963] cloud-init[768]: Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 finished at Fri, 06 Nov 2020 17:00:10 +0000. Datasource DataSourceNone Up 28.31 seconds. [  28.321070] cloud-init[768]: 2020-11-06 17:00:10,815 - cc_final_message.py[WARNING]: Used fallback datasource   They show up all mixed in with the login prompt...

I have a fully-configured instance and an image from that for an autoscaling group. When autoscaling new instances from this image, it calls cloud-init. cloud-init changes the hostname and breaks fstab.  I want to prevent cloud-init from starting on instance launch.


So im trying to compare 2 variables of type double. I have 2 arrays as follows:  double xPosRobots[1]; double Map[10][4] = {         //{X1, Y1, X2, Y2}         { 0, 3, 1, 4 }, //Grid 1         { 1, 3, 2, 4 }, //Grid 2         { 2, 3, 3, 4 }, //Grid 3         { 3, 3, 4, 4 }, //Grid 4         { 4, 3, 5, 4 }, //Grid 5         { 5, 3, 6, 4 }, //Grid 6         { 6, 3, 7, 4 }, //Grid 7         { 6, 2, 7, 3 }, //Grid 8         { 6, 1, 7, 2 }, //Grid 9         { 6, 0, 7, 1 }  //Grid 10     };   I have a for loop which increments the value in xPosRobots as follows:  for(int i=0; i<numRobots; i++){    if(curGridRobot < nextGridRobot){       xPosRobots[i] += robotSpeed * clock_period;     } }   where robotSpeed = 1 and clock_period = .005.  Then, i check the value of xPosRobots[i] to see if im crossing a boundary as follows:  if(xPosRobots[i] == Map[1][0]){    //Crossing boundary    //Update grid position }   Right now, I only have 1 robot so xPosRobots[i] is only size 1, but I plan to add more robots so just leaving it flexible.  The issue im having is when im comparing xPosRobots with Map. Map[1][0] is set to 1 and it doesnt seem to trigger the if condition.  Likewise, when i tried to check it by doing if(xPosRobots[i] == 1) but this also doesnt seem to work since my code skips over it when when xPosRobots[i] = 1 and i think its probably due to the level of precision that comes with double? So my question is, what's a good way to go about doing this type of comparison when im dealing with 3 decimal point precision?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I have clients traveling to Punta Cana, DR, next week. They have a stopover in New York. They are getting differing information about whether they need a visa.

In Europe usually you don't need to go through immigration to change planes (unless you are entering/exiting Schengen). Is it the case in the US as well? May I catch a connecting flight on one of the US airports if I don't have US visa?


Could you tell me which is correct in the following situation:  I have one parrot, its feathers are of different colors. Which is the correct way to speak about the parrot:        I have a parrot. It is blue and white and green and yellow.   I have a parrot. It is blue, white, green, and yellow.      Some say that the 1st variant is obsolete, the second is correct. Others tell me the 1st is correct, while the pattern of enumeration in the second option suits the situation when one speaks about several objects, not one.  So which one is correct? May be you can suggest a grammar book where this rule is stated?

In semi-poetic writing, I have had occasion to deviate from the standard prose list practice (interpose commas or semicolons between items, with an "and" preceding the final item), by utilizing a second or third and to separate three or four items.  That is,       Bob likes beer, wine and liquor.   The variant would be:     Bob likes beer and wine and liquor.   Now, the usage is obviously nonstandard and should be avoided in formal writing, but for those instances where poetic variation may be justified.    What is it called?  "Emphatic And" is the best I can coin on my own, but I wonder if there is a more established name for this variation.


Can I use 'I' in an essay, can I address myself and explain things from my perspective ? (without twisting or bending facts of course)

I read that in college applications some questions are fine to use first person. An example of a prompt that would use first person is : to prevent dead links it follows this question. I have been told several times to never use first person in formal writing. Is it fine to use first person on formal essays where the prompt is about you?     Describe a topic, idea, or concept you find so engaging that it makes you lose all track of time. Why does it captivate you? What or who do you turn to when you want to learn more?


I've been trying to add hair to my stylized character sculpt using the curve technique that many youtube tutorials teach, but I find myself quite stumped on something; If I want to have one strand of hair split into 2 smaller ends of hair, how would I do that? I've kinda done this before by just duplicating the strand and moving the ends of the path slightly to achieve a similar effect, but this isn't ideal since it both doubles the polycount and doesn't really connect to the original strand organically (They're noclipping through each other)  This is a scuffed diagram of what I'd like to do. Just be able to extrude at a node and it have it properly create a new strand instead of the mess it actually creates in blender  Here's another diagram, from the artwork () I'm basing the hair from. You can see how one 'thick' strand splits into 2 smaller curved strands I imagine it might be possible by duplicating the strands, making them into a mesh, then sculpting them so that the seam and overlap are unnoticeable, however, this is pretty time consuming and forces me to retopolgize the hair; I'd be grateful to hear any techniques for doing this as easily as possible! (There is a similar question involving cables, but I do believe it is a different enough issue to warrant a separate question. Sorry if it isn't)

I want to extrude a curve in two directions.    Or join both curves into one, is it possible? I've tried copying it and then join segments, but I don't see Remove Doubles option while working with curves.


I'm trying to make a slider for a custom cut-out slide ruler with logarithmic increments/divisions on each side. On one side the scale needs to go from 100 to 5000. On the other it needs to go from 0.1 to 10.  I can make a ruler, e.i. like this:  \documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[rotate=0,transform shape]     %% Draws a 15 cm ruler ''box''         \draw (-0.2,0) rectangle (15.5,1);         %% Lower side divisions in cm             % Draws long line every 1 cm             \foreach \x in {0,1,...,15}{             \draw (\x,0) -- (\x,0.2)node[above,scale=0.4]{\x};             }             % Draws medium line every 0.5 cm             \foreach \x in {0.1,0.2,...,14.9}{             \draw (\x,0) -- (\x,0.075);             }             % Draws short line every 0.1 cm             \foreach \x in {0.5,1,...,14.5}{             \draw (\x,0) -- (\x,0.15);             }      %% Upper side divisions in inches             % Draws long line every 1 in             \foreach \x in {0,1,...,6}{             \draw (\x in,1) -- (\x in,0.8)node[below,scale=0.4]{\x};             }             % Draws medium line every 0.5 in             \foreach \x in {0.1,0.2,...,5.9}{             \draw (\x in,1) -- (\x in,0.925);             }             % Draws short line every 0.1 in             \foreach \x in {0.5,1,...,5.5}{             \draw (\x in,1) -- (\x in,0.85);             }     \end{tikzpicture} \end{document}   But this have just normal, even increments. I've been looking everywhere to find out how to make them logarithmic, but I've had no luck so far. The closest I've come is axis and pgfplots, but I hav no ide how to utilize that for a slider/ruler like the one over.  Any tips or points in the right direction would be much appreciated!  In advance thanks to anyone who can help.  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  CLARIFICATION/UPDATE ON QUESTION:  Hi again.  I was not precise earlier. I want to to make a ruler about similar to this one:   It doesn't need to be exactly like it and internal placement of the scales is for now not important. I just want to know how to make the logarithmic divisions. I have seen the other post seen here:   The solution here is a logarithmic grid system with a hidden axis, producing something like this:  This gave me a couple of problems: I haven't figured out how to put custom numbering on this, i.e. (0.1,0.2,0.3,...1,2,3,...10,20,30,...100) instead of 1e0.1,1e0,2, and so on. The other is to have two og them side by side in a ''ruler'' ment for cut-out.  If \foreach can do this directly it would be perfect. But I haven't been able to find anything about it anywhere.  I hope this made my question a little clearer.

I have recently found out about slide rules from a  and I like them very much. However, I have never got access to a real slide rule. So I made my own slide rule using my printer with the help of . However, the slide rule that I have made does not have many scales whereas real slide rules , have a lot of scales.  So I thought that maybe I will be able to make a better one using TikZ. I started making it and got stuck here:  \documentclass{article}  \usepackage{amsmath,amsfonts,amsthm} \usepackage{tikz} \usepackage[a5paper,margin=0pt]{geometry}  \begin{document} ~\vfill \centering  \begin{tikzpicture} \draw (0,0) rectangle (14,20); \draw (8.75,0) -- (8.75,20); \draw [dashed] (1.75,0) -- (1.75,20); \draw [dashed] (7,0) -- (7,20); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \foreach \x in {2,...,18}{\draw (0,\x) -- ++(0.15,0);} \node [rotate=90] at (0.5,1.5) {C}; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{tikzpicture}\\  \vfill \end{document}   The problem is that I don't know how to make a logarithmic scale in TikZ. So please tell me just the basic syntax to create the logarithmic scale. I will do the rest.


According to what is said :  For example, the following command redirects handle 2 (that is, STDERR) into handle 1 (that is, STDOUT): 1<&2  I understand why we might need to apply the redirection such as 2>&1, but I can't see any reason for applying 1<&2. Could anybody clarify this for me? Thank you in advance.

I have come across several commands that use 2>&1 and 1>&2, but I quite can't get my head around the purpose of using it and when I should be using it.  What I understand  I know that 1 represents standard out and 2 represents standard error. I understand that 2>&1 combines the output of 2 to 1 and vice versa.  What I don't get   When should I be using it? What purpose does it serve?


When you search for "Hosting" in google.co.in, I get www.hostingraja.in in the first page. But instead of displaying the title in the index page, it shows "Hosting Raja", this word itself is not not there in the index page.   When the word "Hosting Raja" is not there in the index page, where does Google pick up the word?

I have been working on one of the client's website from couple of months now. I have installed Yoast SEO plugin and titles was forced to put site name i.e "Widget" at the end of each post.   But from last few days I have noticed that Google results have started showing "Widget" with "Widget tips". I have never used "Widget tips" anywhere on the site as description or in the posts section.   I have set the yoast to rewrite the title with site name at the end only. I'm just wondering that how "Widget tips" is there when I have not used it any where on site. I have also tried to check the page source codes but this term has not found anywhere.   Can anyone help me to rectify the actual issue for this?


Cat5 ethernet cables use only 2 pairs for Ethernet what are the other 2 pairs for ?  Pin Color               Function 1   White with Green    +TD 2   Green               -TD 3   White with Orange   +RD 4   Blue                Not Used 5   White with Blue     Not Used 6   Orange              -RD 7   White with Brown    Not Used 8   Brown               Not Used

This might seem a stupid question but why do Ethernet cables have 8 wires? Cat5 cables were just using 4 of the 8 wires, so only 4 are actualy 'needed'. Why not 12 or 16 wires?


CORRECTION :  I edited two line from:  1) "class circle : public shape" to "class circle : public virtual shape"  2)"class square : public shape" to "class square : public virtual  shape"  And yes , i am trying to have only one instance of Shape class for the shapes class , while  defining  the method draw differently inside Circle class and Square class    I am trying to do a simple inheritance program , but it gave me the following error:  *error C2250: 'shapes' : ambiguous inheritance of 'void shape::draw(void)' *IntelliSense: override of virtual function "shape::draw" is ambiguous    -->this code resembles the solution of the diamond problem. I don't get why i see this error.  Here is the code:      #include<iostream>     using namespace std;     class shape     {     public:         shape()         {             cout << "shape created" << endl;         }         virtual void  draw()=0;       };         class circle : public virtual shape     {     public:         circle()         {             cout << "circle created" << endl;         }         virtual void  draw()         {             cout << "this is a circle" << endl;         }     };         class square : public virtual  shape     {     public:         square()         {             cout << "square created" << endl;         }         virtual void  draw()         {             cout << "this is a square" << endl;         }     };         class shapes : public  circle, public  square     {     public:         shapes()         {             cout << "shapes created" << endl;         }     };         void main()     {         shapes e;         cout << "-------------" << endl;         system("pause");     }

I want to know what a "virtual base class" is and what it means.  Let me show an example:  class Foo { public:     void DoSomething() { /* ... */ } };  class Bar : public virtual Foo { public:     void DoSpecific() { /* ... */ } };


I am looking for a way to convert a long string (from a dump), that represents hex values into a byte array.  I couldn't have phrased it better than the person that posted .  But to keep it original, I'll phrase it my own way: suppose I have a string "00A0BF" that I would like interpreted as the  byte[] {0x00,0xA0,0xBf}   what should I do?  I am a Java novice and ended up using BigInteger and watching out for leading hex zeros. But I think it is ugly and I am sure I am missing something simple.


I'm trying to make a recursive call in assembly but I couldn't figure out how to do it. This is the code that I'm trying to convert from C to assembly: int function(int n) {     if (n <= 1) {         return n;     }     return function(n - 1) + function(n - 2); }  I can write the if part but the return part is tricky for me. I couldn't solve the logic of it. I saw some examples for that but unfortunately didn't understand how to implement them on the MSP430.  As I said, I saw some examples for other assembly architectures such as MIPS. But I want to write the assembly code for MSP430. The gcc command is not what I asked for. That command does not help me like the other examples.

How does one do this?  If I want to analyze how something is getting compiled, how would I get the emitted assembly code?


The question is      Find all polynomials $p(x)$ such that $p(x^2)=[p(x)]^2$.   First of all i saw that  $p(x)=0$ and $p(x)=1$ are two polynomials satisfying the condition. Next I tried putting some values and observed that  Since $p\big((-a)^2\big)=[p(-a)]^2$. Also, $p\big((a)^2\big)=[p(a)]^2$ Hence we can conclude - $p(-x)=p(x)$  Now my doubt is what to do next to find all possible polynomials or whether my approach is right or not .Any help would be appreciated.Thanks in advance.

Find all polynomials $P:\mathbb{C}\rightarrow\mathbb{C}$ such that $$P(x^2)=P(x)^2 .$$   Here is what I tried:  First, it is easy to see the constant solutions, namely $P\equiv 0,P\equiv 1$.  Let $r$ be a root of $P$ (i.e. $P(r)=0$). It follows that all terms in the infinite sequence $r,r^2,r^4,\dots,r^{2n},\dots$ are roots of $P$. To avoid a polynomial with infinite roots, we have to have the sequence be periodic. So it turns out that either $r=0$, or the roots of $P$ are roots of unity of degree $2n$ for some $n\in\mathbb{N}$.  In the first case, we get $P(x)=xQ(x)$. Plugging in, we get $$x^2Q(x^2)=x^2Q(x)^2\implies Q(x^2)=Q(x)^2 ,$$ i.e. that $Q$ satisfies the same condition as $P$.  In the second case, we have $P(x)=(x^{2n}-1)Q(x)$. Plugging in, we get $(x^{2n}-1)Q(x^2)=(x^{2n}-2x^n+1)Q(x)^2$. I was not sure how to proceed from here.