My barbarian Gus uses a Greataxe, a two handed weapon.  While raging in combat against harpies, a round passed without Gus taking damage. On his turn, all harpies were out of his melee range, and he had used all his javelins.  To maintain his rage, he slapped the fighter with an unarmed strike.  The DM ruled that Gus could not make a unarmed strike, as he was wielding a 2 handed weapon.  I argued that he was not wielding the 2 handed weapon, just holding it; my DM didn't see the difference, and as long as Gus held a 2 handed weapon his weapon attacks must be made with that weapon.  In the end I dropped the weapon, slap the fighter, then pick up the weapon as a free object interaction.  Then he reminded me that rage is only maintained by attacking a hostile opponent, but that's not important here. I understand that , and my DM agrees with that.  The only debate is whether you can, while holding the weapon with 1 hand, make an unarmed strike with your other hand.  The description for unarmed strikes seems to imply that you could make an unarmed strike with full hands:  Instead of using a weapon to make a melee weapon Attack, you can use an Unarmed Strike: a punch, kick, head-butt, or similar forceful blow.  Even if I did have full hands, could I have head butted the fighter here? Was my DM correct in this ruling, or was I?

What are the global restrictions of making an unarmed strike? As it is considered a weapon, I suppose one must have a "hand free" to "punch". However, there are some gray areas I can't find any answers to.  For example, the Monk class allows a player to add an additional unarmed strike to his Attack action, as a bonus action. If one is using a Versatile weapon, can he attack using both hands, making the damage 1d8 and still make use of his additional unarmed strike(s)?  Additional remark: The extra unarmed strike granted by Flurry of Blows has no restrictions regarding the weapon(s) held. Am I missing any implied restrictions here? Or is a Monk somehow able to hold a two-handed weapon and still make use of Flurry of Blows ? If that is the case, I am to believe the unarmed strike from FoB would not be considered as weapons.  Would that also mean that if a monk is wielding a quarterstaff with two hands, he could open with an attack of [1d8 + Dex] damage, followed by an unarmed strike of [1d6 + Dex] damage with a bonus action (using Martials Arts) ?


I'm having a bit of problems proving the following: $$\sum_{k=1}^n k {n \choose k }  = n\cdot  2^{n-1}$$  I always seem to get to the line: $2^{n-1} + 1 = 2^n$ which I know is untrue.  Could anyone help me prove this?

I am trying to prove this binomial identity $\sum_{r=0}^n {r {n \choose r}} = n2^{n-1}$ but am not able to think something except induction,which is of-course not necessary (I think) here, so I am inquisitive to prove this in a more general way.  The left side of an identity occurs while solving another problem (concerning binomial theorem) so I am more interested in deriving the right side from the left side, else I have to remember it now onward.  EDIT: I am more interested in an algebraic proof rather than combinatorial argument or something involving calculus (however I liked  and  solution), hence I am removing the combinatorics tag.


My question is which one is correct:   a) I have been awarded the science award 5 times   or b) I was awarded the science award 5 times   Thank you :)

Possible Duplicate:          As a English non-native speaker it is difficult for me to understand when I must use present perfect or past simple because in my official language there isn't the present perfect tense. I know that present perfect is related to something that happened in the past but its result is important now. But for instance:        The message has been sent.   The message was sent.      Please help me point me out any examples/contexts where I should use 1. instead of 2.


What is the condition of Mbeya-Tabora road? Google maps shows the distance as 584 km and estimated travel (driving) time of a whole 10 hours!

I want to drive from Johannesburg South Africa to Kigali Rwanda in August 2015.  One leg of the route is concerning me.  I see the distance from Mbeya to Tabora in Tanzania is 560km along the B 6 and Google says it should take just over seven hours to complete.  My question is does anybody know what the road condition is like and is the 7 hour odd estimate correct?  We will be two or three landcruisers.


I have confusion in assigning ports as input or outputs in 8051 microcontroller.   As I have done programming with atmel atmega16 and variants we clearly have DDR registers to assign ports as inputs or outputs but not both in same program(or it might be both since I dont know if it can).  If it can be both(i/p and o/p) how would the microcontroller does this?  In a program while interfacing a 16x2 LCD with 8051 the P1.0 is used as input to find the value as busy flag and is used as an output pin when sending commands and data.  Please provide explanations.  Thakyou

is it possible to use 8051 microcontroller as input as well as output at a time? if i use particular pin as input and then how to make it as output as well.tell me please i born just now in microcontroller


My latex editor is TeXstudio and I need to configure it to enable pdflatex -shell-escape, is it possible to do it? compile with pdfLaTex, use Windows 10 and MikteX 2.9

This is a follow-up question on the post:  where invoking -shell-escape flag in TeXStudio is one of the two questions posted by the OP.  When running my document in TeXMakerX with minted package, I get the error  minted Error: You must invoke LaTeX with the `-shell-escape` flag   How can I invoke -shell-escape in TeXMakerX?


I'm rather inexperienced to LaTeX and I have run into an issue regarding ToC.  I have a report with an appendix.  I wish to have a standard ToC over the report, and only show the chapter "Appendix" in this ToC.  In my Appendix I would like another ToC containing the appendix and only the appendix.  Something like this:   ToC1 Capter1............1   section1.........1   section2.........3 Chapter2...........5   section1.........5 ChapterAppendix...10  ToC2 ChapterAppendix ..10  Section1.........10   Subsection1.....11   I have tried following this example:  but without luck.  Can someone give me a clue on what to do?

I am trying to print a List of Appendices (LoA) for my thesis, separate from the Table of Contents (ToC).   I wish for my ToC to look like this, with depth up to subsections (2?):  CONTENTS  CHAPTER   I. Introduction......1    1.1 Section title...1     1.1.1 Subsection...1  Appendices ..... 2   and for an LoA on a new page, with depth 0, thus:  APPENDICES  APPENDIX A. Proof of Theorem 1...1 B. Proof of Theorem 2...1   I am trying to achieve this using the report class, in a way that allows me to type appendices using the hierarchy that I obtain from the chapter, section commands. This is as opposed to defining a custom myappendix command into which I insert my appendix content. (I realize that I only need the titles from the appendix chapters for the LoA, but I'd like for the appendix content to have such structure.)   For instance, this approach would solve my problem:   \chapter{Introduction} \section{Section title} \subsection{Subsection} % \begin{appendices} is also acceptable \appendix   % Some settings are changed now \chapter{Proof of Theorem 1} \chapter{Proof of Theorem 2} % \end{appendices} if environment is begun   whereas the following approach would not:  \chapter{Introduction} \section{Section title} \subsection{Subsection} \myappendix{Proof of Theorem 1} \myappendix{Proof of Theorem 2}   I realize several questions have been asked regarding this before, but none of them quite solved my problem. Notably,  defines a custom appendix command;  defines two custom commands to maintain some hierarchy, but I will have to do more work to handle the inclusion of another layer (subsection) into the appendix.    is the closest to what I want: it does give me a separate LoA, but it also adds appendices to ToC and I can't quite figure out how to suppress the entires in ToC. The moment I use   \addcontentsline{toc}{\setcounter{tocdepth}{-1}}   the line   \xpatchcmd{\@chapter}{\addcontentsline{toc}}{\addcontentsline{toa}}{}{}%   fails because I am not adding anything to the ToC anymore.   My approach: Since I was using titlesec and tocloft packages anyway, I tried to do the following:   Stop ToC once appendix command is issued Start a new counter for appendices using tocloft Using the <after-code> option of titlesec, add contents line after every chapter.    My MWE   \documentclass[a4paper]{report} \usepackage{lipsum} % for arbitrary text  \usepackage{tocloft,etoolbox,titlesec} \newcommand{\listappendixname}{List of Appendices} \newlistof{appendix}{apc}{\listappendixname}  \makeatletter \g@addto@macro{\appendix}{     \clearpage     \addcontentsline{toc}{chapter}{Appendices}     \addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}     \titleformat      {\chapter}      [display]     {\huge\bfseries\filcenter}      {\Large \MakeUppercase{\@chapapp} \thechapter}      {1.5ex}{}     {\refstepcounter{appendix} \addcontentsline{apc}{appendix}{\protect{\@chapapp \thechapter}}} } \makeatother  \title{Title} \author{Author}  \begin{document} \maketitle \tableofcontents \clearpage \listofappendix  \chapter{Introduction} \lipsum[1] \section{Section} \lipsum[2] \subsection{Subsection} \lipsum[3]  \appendix  \chapter{Proof of Theorem One} \lipsum[4] \chapter{Proof of Theorem Two} \lipsum[5]  \end{document}   produces the following LoA:  List of Appendices  Appendix...... 5   It doesn't get the Appendix title or number, and fails after the first one.  Could you please help me obtain a separate LoA in a way that I can still use LaTeX's chapter, section, ... hierarchy? (I am okay with using different packages, the book class, or any approach other than mine.)


I have few tables  EMP  EmpCode, EmpName, Age   Attendance   AtCode, EmpCode, Sample1, Sample2   AnotherTable   id, EmpCode, Sample4, Sample5   Now my query is   SELECT distinct b.Sample4, e.EmpName, A.Sample1, A.Sample2 FROM  Attendance  A inner join EMP e on a.EmpCode=e.EmpCode left join AnotherTable b on A.EmpCode=b.EmpCode   This query results in following records  Sample4      EmpName    Sample1  Sample2 MG           Joy         01      11104 ST           Joy         01      11104     I need the result as   Sample4      EmpName    Sample1  Sample2 MG,ST            Joy         01      11104   How can we achieve this.

Consider a database table holding names, with three rows:  Peter Paul Mary   Is there an easy way to turn this into a single string of Peter, Paul, Mary?


In follow up to this question:    People here are giving their themes to post in a file ".texsprofile". I searched my whole disk for a file with this extension but I could not find it.  Could anyone tell me where exactly this file is hidden or how to change the theme, because my eyes really hurt after some hours of latex..  Thanks!

After perusing , I'm considering switching from TeXmaker (in which I use the preset "dark theme") to its fork, TeXstudio.  What I mean by "dark theme" is a dark background with suitable text colours, which, in my experience, is easier on the eyes than a bright background is. Here is an example:    TeXstudio doesn't seem to offer any preset dark theme, though, which means I have to customise all the colours/syntax-highlighting settings from scratch to get a dark theme even remotely usable. This can prove very time-consuming.   I'm aware this might sound a bit cheeky but,   if you are a long-time TeXstudio user, and you have fine-tuned the editor colours to get a visually pleasant dark theme,   please consider posting the relevant lines from your settings (.txsprofile or .tmxprofile) file as an answer below.  TeXstudio users who would like to use a dark theme could then build on your settings to fine-tune their own.


My format is whereis directory | cd but I get no output (not even a warning).  Where as you have other posts that require variables, my question asks how to do it without them.

Is it possible to redirect a command's output to cd? For example, I searched for a directory using locate and got the path to it. Now, instead of writing a cd path, can I redirect the locate output to cd?  I tried this:  $ locate Descargas | grep Descargas$ /home/oliver/Descargas $ locate Descargas | grep Descargas$ | cd $ locate Descargas | grep Descargas$ > cd $ locate Descargas | grep Descargas$ < cd /home/oliver/Descargas $    No luck. This probably isn't particularly useful, but I'm curious.


Currently I created a folder in sharepoint and break its inheritance from the parent library through a REST endpoint. Then I created permission groups and assign permission roles to them. But now I need to assign this permission groups to newly recent folder. I wonder if there is a way to accomplish that via some sharepoint REST API?

Is there a way to manage File permissions (roles) using the REST API?   I'm developing an app asking for permission on the fly:   I don't care about the way to do it... just want to upload a file to the SharePoint (already implemented that) - and then just make sure other users can't access it (before I delete it).  So any of these solutions will be just fine:     set permissions on the file itself   copy it to a folder and set permissions for that folder     create a 'document library' and set permissions for it (this seems to be doable when you have FullAccess rights - which is not possible to get using the REST API)


We have a config file which consists of more than 24000 lines.  I am stuck in one task. I need to segregate the lines starting as below (service definition of specific host in icinga2)       Object Service "<host_name>"{   And ending with        }   Files consists multiple other entries as well  I need to filter specific hosts definition  alone.

I want to start grepping from the lines that has CK at the end of line and stop grepping when the line has D at the end. I tried grep "$CK" "$D" file..txt, but it didn't work.  Input:  kkkkkkkkkkk    jjjjjjjjjjjjjjjjjj   gggggggggggg/CK   JHGHHHHHHHH    HJKHKKLKLLL    JNBHBHJKJJLKKL   JLKKKLLKJLKJ/D   GGGGGGGGGGGGGG   GGGGGGGGGGGGGG   The desired output:  gggggggggggg/CK   JHGHHHHHHHH    HJKHKKLKLLL    JNBHBHJKJJLKKL   JLKKKLLKJLKJ/D


I have recently replaced my Windows 10 OS with Ubuntu 16.04. I have two graphics cards installed in my PC (Intel - built in and Nvidia - extended).  I would like to install graphics drivers for both graphics cards.  By default, the Intel graphics driver is installed. I tried installing an Nvidia graphics driver using the official Graphics Drivers Team PPA. I checked my system properties after installing Nvidia graphics driver, and it shows only the Nvidia.  How can I make both drivers available?

I installed or upgraded to Ubuntu 16.04, but I'm having some problems with my graphics card.   The display is blank The display flickers Items on the screen do not display correctly Certain programs complain of graphics issues The computer boots to low-graphics mode Your specific issue may not be here, but try the solutions described in the answers anyway.   This question is very broad, but each one of these issues likely has one solution.    If you are experiencing a login loop, check the last part of my answer.    If you experience one of the listed issues and have your own solution (mine didn't work, or there's a faster way), feel free to post another POLITE answer, describing your problem and how you fixed it.    Those attempting to install Ubuntu, please refer to the section titled: If you are unable to enter a TTY or are trying to install Ubuntu.


In a customer review of  there seems to be a large electrolytic capacitor connected to its power supply (images below) for decoupling purposes. It is visible from the first image that the cap is accompanied by blocking diodes.  It would make no sense for them to be part of a rectifier as the amp operates with AC voltage. So my question is how are they set up with the capacitor so both decoupling and AC voltage to the amp can be accomplished.

Many IC's I've seen suggest decoupling capacitors across Vdd to Vss - this is sensible.  However some IC's for example the dsPIC33FJ128GP802 has THREE Vss pins and only two Vdd pins (AVdd and Vdd.) So would I put a decoupling capacitor on each Vdd pin, or from each Vdd pin to each Vss pin?


I recently asked a question with an unregistered account here:     This account now has reputation, and my question has generated discussion I'd really like to participate in.  Unfortunately, however, my cookies have been deleted since I created that account.  Now, there does not appear to be any way to recover or even log into the account.  When I clicked the emailed link to register the account with a password, this account was created instead.   Unfortunately, this account does me no good, as I'd really prefer to continue the discussion with my old account.

I asked and answered a question on an SE site without registering. I was accessing my unregistered account through my browser, which kept me logged in. However, someone reset my cookies and now I've lost my account.   Is there anyway to regain it, or should I give it up for lost?


Show that if G is bipartite with bipartition (x,y) where |x| is not equal to |y|, then G is non-hamiltonian.  Case 1. G is not connected (trivial) Case 2. G is connected   Is it ok to start Letting C be a Hamiltonian cycle of G?

Source is in , but it has no proof. Also, I am not completely sure what "unbalanced" means here. Non-equal number of even and uneven degrees?  What I am interested in, are there some universal properties of (connected) graphs that prevent hamiltonicity? Something to do with number of vertices versus edges, or average degrees or such? Something that is easy to demonstrate?  I will (hopefully) be using them as counterexamples of hamiltonian graphs in my thesis.


could you please help me to solve this misconception about prototypal inheritance in JavaScript    function Animal(name) {     this.name = name; }   Animal.prototype.speak = function() {     console.log("My name is " + this.name); };  Animal.sayMoo = function(){ console.log("Mooooo!"); };  var animal = new Animal('Monty');  animal.speak(); // My name is Monty animal.sayMoo; // undefined     as far as  I know any instance of an object has all it properties, and in this example animal (instance of Animal) only has what inside the constructor "this.name" and the method "speek()" but not "sayMoo" because I did not use ( Animal.protoype.sayMoo = ...   I think maybe animal or any instance only inherit what is inside the Animal.prototype  is that the right answer? if yes, why animal inherits what inside the constructor ? maybe all properties inside the constructor go automatically to the prototype, so it can be inherited by any instance?  I wish i Solve this

I'm not that into dynamic programming languages but I've written my fair share of JavaScript code. I never really got my head around this prototype-based programming, does any one know how this works? var obj = new Object(); obj.prototype.test = function() { alert('Hello?'); }; var obj2 = new obj(); obj2.test();  I remember a lot discussion I had with people a while back (I'm not exactly sure what I'm doing) but as I understand it, there's no concept of a class. It's just an object, and instances of those objects are clones of the original, right? But what is the exact purpose of this ".prototype" property in JavaScript? How does it relate to instantiating objects? Update: correct way var obj = new Object(); // not a functional object obj.prototype.test = function() { alert('Hello?'); }; // this is wrong!  function MyObject() {} // a first class functional object MyObject.prototype.test = function() { alert('OK'); } // OK  Also these  really helped a lot.


weeks ago, I read a good answer to my question,  I only remember there's a key word python3.8 in the answer.  How could I search the python3.8 through all the answers I got.

I want to search through the answers to my questions. How can I do this?  For example:  votes:10 is:answer questionBy:me   I searched meta for this already, and found a ton of questions about searching my own questions, but not about searching answers to my quesitons.


I am facing the issue while installing ubuntu  The boot starts I get the purple screen,  Then after that I get the black screen And nothing after that.  Can anyone guide me how to undercome this issue  Thanks

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I'm trying to calculate date difference using JavaScript.  My Code:  function getELECurrentdifference($this1)   {     var CtrDate = new Date('');     if($this1.datepicker("getDate") != null)     {       var ELEcertCurrentDiff= $this1.datepicker("getDate") - CtrDate;           var result = ELEcertCurrentDiff / (1000 * 60 * 60 * 24) * +1;       //$("#ELEcertDiff").text(result);       document.getElementById("ELEcertCurrentDiff").value = result;     }   }   But I got a value in float.  Output:     25.39119292824074   How I can convert it to integer value like 25 only.  Any kind of help is welcome, thanks in advance.

I'd like to convert a float to a whole number in JavaScript. Actually, I'd like to know how to do BOTH of the standard conversions: by truncating and by rounding. And efficiently, not via converting to a string and parsing.


Is this always true?   "If the rows of $M$ are a set of non-zero linearly independent vectors, then $M M^T$ is invertible."  CONTEXT: The context is that I am a musician working on a algorithmic composition system. I am using Lagrange multipliers to find a "closest point" on polytope to a given point. This is a computer program, not automated proof system, so I have to carefully refactor the algorithm so that it will reliably and efficiently find the vector I need (especially considering floating point errors). In the course of a long refactoring process, I realized that I had assumed the statement in one step of the refactor. I thought I would just take a second to make sure that this "obvious" fact,was true, because in my experience it is very easy for a non-expert to overlook some consideration that it isn't obvious at first glance, and this is my first time using LaGrange multipliers for optimization, and it is still not obvious to my how they work. But for my purposes, it is sufficient that I know that they work.  I think also at the time I had a bug, and was carefully checking every step of the proof, to try to find the bug.

Given a matrix $A$ with dimensions $m \times n$, is $B=AA^T$ invertible if and only if the rows of $A$ are linearly independent?  So far, I've tried writing A as row vectors,   $$A = \begin{bmatrix}v_1\\ v_2\\ \vdots \\ v_m\end{bmatrix}$$  where $B_{i,j} = (v_i v_j) $  The Wikipedia page on the  suggests that the condition I stated above is necessary and sufficient, but does not provide a proof.


I want to watch the unreleased Clone Wars, but I'm not sure of a specific order there may be to watch it in. I am fully aware that the released ones are out of order and I'm afraid these may be too.

I've read that the TV show Star Wars: The Clone Wars did not air in . Is there a consensus or authority on the recommended viewing order? Are there any benefits to watching it in airdate order versus chronological order?


My phone says it has 8GB of memory but its only allowing me to use 4GB, why is this? I have already searched this in google but nothing has come up.

Why do Android phones say they have 4GB storage but then cazn only use 1.6GB of it? Why is this? Is it possible to access all that other space?  If you see below it confirms how much space this phone has and how little (except for Apps) it really is using. Any advice how I can make the phone use all the available space?  Edit Its a Huawei Ascend


I have a used DelL latitude 2120 laptop with Ubuntu o/s I do not have administrator password and can not get past the screen that says this computer is protected by password authentication system?

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


I was running a regression with 1000 observations and 7 explanatory variables (with a constant term included as a "variable").  So, the population model initially stated was:  $Y_{i} = \beta_{1} + \beta_{2}X_{2i} + ....+ \beta_{6}X_{6i} + u_{i}$  So the sample model is:   $\hat{Y_{i}} = b_{1} + b_{2}X_{2i} + ....+ b_{6}X_{6i}$  (Estimated via OLS, meaning that I used the Gauss-Markov assumptions:  )  After performing an individually significant test over $\beta_{6}$ i got the result that I can not reject the Null Hypothesis of $\beta_{6} = 0$.  But, if I make a F-test, of joint significance, I get that I can reject the Null Hypothesis of $\beta_{6} = 0$.  What's the intuition? (and maybe the mathematics behind)   How can it be that one test contradicts the other?  Thanks!

I'm fitting a multiple linear regression model between 4 categorical variables (with 4 levels each) and a numerical output. My dataset has 43 observations.  Regression gives me the following $p$-values from the $t$-test for every slope coefficient: $.15, .67, .27, .02$. Thus, the coefficient for the 4th predictor is significant at $\alpha = .05$ confidence level.  On the other hand, the regression gives me a $p$-value from an overall $F$-test of the null hypothesis that all my slope coefficients are equal to zero. For my dataset, this $p$-value is $.11$.  My question: how should I interpret these results? Which $p$-value should I use and why? Is the coefficient for the 4th variable significantly different from $0$ at the $\alpha = .05$ confidence level?  I've seen a related question, , but there was an opposite situation: high $t$-test $p$-values and low $F$-test $p$-value. Honestly, I don't quite understand why we would need an $F$-test in addition to a $t$-test to see if linear regression coefficients are significantly different from zero.


I have an javascript object of arrays like,  var coordinates = {      "a": [          [1, 2],          [8, 9],          [3, 5],          [6, 1]      ],           "b": [          [5, 8],          [2, 4],          [6, 8],          [1, 9]      ]  };   but coordinates.length returns undefined. .

I have a JavaScript object. Is there a built-in or accepted best practice way to get the length of this object? const myObject = new Object(); myObject["firstname"] = "Gareth"; myObject["lastname"] = "Simpson"; myObject["age"] = 21;


I have a collection of car objects and i am looking through them like this:   var slide = CreateSlide();  foreach (var car in carCollection) {       displayonSlide(car, slide)  }   I now realize that i can only fit 5 cars on a slide so i need to take the carCollection and break it up into collections of 5 and then do the loop through each of those 5 (so i create a new slide for each 5 cars that exist in the collection.  What is the best way to break up a single collection into a number of smaller collection based on bucketing by a certain number of items (5 in this case)  obviously the last collection might have the remainder if not divisible.

Is there any way I can separate a List<SomeObject> into several separate lists of SomeObject, using the item index as the delimiter of each split?  Let me exemplify:  I have a List<SomeObject> and I need a List<List<SomeObject>> or List<SomeObject>[], so that each of these resulting lists will contain a group of 3 items of the original list (sequentially).  eg.:   Original List: [a, g, e, w, p, s, q, f, x, y, i, m, c] Resulting lists: [a, g, e], [w, p, s], [q, f, x], [y, i, m], [c]   I'd also need the resulting lists size to be a parameter of this function.


I was told by the support  team that I should post a support question here if I "feel" my question was incorrectly marked as duplicate.   Here's the question:   Can someone take a look at it and see what they can do?

I asked a question regarding a very specific feature of a program and whether or not it works with a larger program.  Within hours someone had marked it with "This question may already have an answer here of a similar question, but not related to my question.  The question I asked IS NOT ADDRESSED in the referred-to question. It's frustrating to spend half an hour putting together an intelligent and specific question, and then have someone mark it as a duplicate (or possible duplicate), which apparently causes people to skip over my question. I haven't received any more responses since the question was flagged.   Two questions:  (1) How do I get this flagging removed and (2) what's the best way to prevent these "helpful" flaggings in the future?


A Borg drone does use biological brain which can't be replaced, I think. Every machine including brain has a finite age.  For how long can a Borg drone live before dying naturally (death in battle is not natural). Does it depend upon the base species' lifespan? If yes, how long do human based Borg drones live? Or, are Borg drones immortals due to some kind of Borg tech?

How long does a Borg drone live for, if not endangered and 'nature' is allowed to take it's course? I know that they still mature, case in point Seven of Nine who was assimilated as a child. Do Borg drones get age past maturity though, can they get old and die? If so how're they disposed of?


I have a local proxy server running on my network that I'd like to route web traffic through while I'm at home. I can do this under System Preferences > Network > Advanced > Proxies, Web Proxy (HTTP) and Secure Web Proxy (HTTPS).  However, I only want to use this proxy server when I'm on my home network. It seems that this setting persists even as I change Wi-Fi networks, unlike on iOS.   And I only want to use it when I am not otherwise connected to my office's VPN.  Is there a good solution for managing this for me?

Sometimes I need to send my traffic to a proxy, sometimes I don't.  Currently, I have to go to the settings every time to click it.  Is there any simple way for me to switch this? For instance, use a shell command to do this.


Just want to know,    When does an election happen on Stack Overflow? Is there a fixed time interval or any other perticular scenario when elections are organized? Who organises and monitors these elections?

I'm really confused on this. I have no idea on several things:   When do elections begin?   Is there a set time each year?   Do elections actually take place each year?   Can I vote?   Where do I vote?     Etc.  Can someone please help me?


Something has been bothering me for a long time.  Voting is a central concept of Stack Exchange, it is the mechanism through which the community maintains the sites. Voting affects the fate of individual questions/answers as well as the lives of their authors on the network. Therefore the consistent and responsible use of this right is critical for the network to function.  At the same time, I feel that its function is not communicated and its misuse is not prevented well enough.  The relevant help page says:     …voting down a post signals … that the post contains wrong information, is poorly researched, or fails to communicate information.   The tooltip of the down button says:     This question does not show any research effort; it is unclear or not useful   Based on these, a downvote signals content that does not comply with the guidelines of the network for content, and is, therefore, detrimental, so may necessitate an action.  All too often, however, one sees questions that are clear, well-written and researched as far as it can be expected, downvoted, seemingly based on the voters unapproval of the subject matter.  I have two examples of my own questions:       I have yet to receive a justification for the downvotes pointing out how do these questions not live up to the expectations laid out above. The controversy around the subject matter, however, is clear from the discussion, which is telling.  I don’t think that Stack Exchange should penalize members of the community based on their opinions. I do think that – like any good democracy – it should be value-neutral, and only protect the system from misuse. Penalizing those whose opinion differ is the characteristic of dictatorships.  I have already decided never to contribute to Server Fault again, because of this intellectual nazism which seems to be especially prevalent there. I’m sure I’m not the only one who has already been driven away because of this.  So, I would like to know if my understanding of the concept of downvotes is correct, is the network, as I hope, respect their member’s experience and judgement, and I would like to see these ideas, i. e.:   upvoting a question – this question brought up something that I was interested in, it is well-written, it is researched; upvoting an answer – this post answers the question or provides additional useful information, it is well-written and to the point; downvoting a question – this question is unclear, poorly written or does not provide sufficient context downvoting an answer – this post does not answer the question, it provides the wrong solution, it is unclear, poorly written, or does not provide sufficient context   better communicated to and acting in accordance with expected from individual community members.

Note: If you're looking for a simple explanation as to why comments aren't required on downvotes, see .   I used to get "upset" (though that is too strong a term) when I got downvoted without comment. If my answer isn't good enough then I'd like to know why. Not only does it improve the answer for the OP but it improves my knowledge too.  Where the down-vote has been explained I've found it useful & it has improved my answer, or forced me to delete the answer if it was totally wrong.  So is there any way we can encourage people to leave a comment? Perhaps they don't lose rep if they explain their down-vote?  I must admit though that I haven't always explained my down-vote either so you could call me a hypocrite. I've also grown a thicker skin over the months of using SO (it seems to have come with the higher rep score ;-)), so I'm less bothered about this now.


We are moving a large codebase from GDI to QPainter. One thing we used to get on Windows easily was the EMF clipboard format, which enabled customers to manipulate their pasted output in other programs (like Office) in a vector format.  It's easy for us to produce bitmaps from Qt into EMF, but that really doesn't give us back the editability of the old format. We can also make mime data from Postscript, which in some programs will retain vector format, but won't allow editability in Office, for example.  Since Trolltech/Nokia abandoned the GDI rendering path, is there any decent way to produce vector EMF output from QPainter? Options include 3rd-party libraries postprocessing other output formats (which we haven't seen usable results from), phony printer drivers (which introduce Windows-version specific issues). It has to work on WinXP -> 7.  Has anybody else solved this?

I want my Qt application to be able to save simple vector graphics to clipboard in a compatible way. On windows I want to be able to paste the graphics into Microsoft Word or Powerpoint. On Linux I want to be compatible with the Open Office.   Which format would you recommend? Can Qt generate EMF in an easy way? Is SVG an option?  Update:  My current plan is to add a piece of native win32 code to render the graphics to emf on windows. This code will not be available on linux.


I'm looking at a code file and see an catch statement in the following format:  try{     do_something(); } catch (System::Exception^ e){     log_something(); }   What is the significance of the ^ operator in the catch?

I just came across this code and a few Google searches turn up no explanation of this mysterious (to me) syntax.  Hashtable^ tempHash = gcnew Hashtable(iterators_);  IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator();   What the heck does the caret mean? (The gcnew is also new to me, and I asked about that .)


I am trying to put my whole environment set up into a single bash file. I am only hitting one issue. When I try to export a new path from inside the file it is not setting the path in the environment that the bash file was executed in. I want to do  >>sudo -H sh test.sh   Where test.sh is  bunch of installs  export PATH=/home/ubuntu/anaconda3/bin:$PATH  a second bunch of installs   I thought this was the purpose of eval so I tried  eval `export PATH=/home/ubuntu/anaconda3/bin:$PATH`   and  even   eval `echo "export PATH=/home/ubuntu/anaconda3/bin:$PATH"`   but I can't access the command in the terminal. If I do it manually it works.  ---------------UPDATE------------  The standard bash execution completes in a sub-shell so the environment variables are lost after execution. If you want to execute in the same shell then you  source test.sh   However, I need to be able to have full permissions in the execution so I need to use sudo. As explained  you cannot call sudo source but they did provide a hack to get it to work  source <(sudo cat /etc/environment)

I have multiple Amazon EC2 accounts and want to quickly be able to switch variables, such as $EC2_HOME, using a script.  I have have a shell script set up like this:  #!/bin/sh export EC2_HOME=/home/me/.ec2 echo $EC2_HOME   When I run the script I know that EC2_HOME is set, but I thought that using export would make the variable stick around after the script completed. It does not, as running echo $EC_HOME does not show anything.  I know this must be very rudimentary Linux scripting knowledge, but I don't know it. I tried looking for related questions without luck - so my apologies if this is a duplicate.


Often in geology & archaeology we listen that they calculated the age of things (bones, pots) using radio active dating. Radioactive dating works using half life of unstable isotopes. And what geologists/archaeologists do is use the fraction of remaining isotopes. But this makes no sense to me. I mean should not it be that those isotopes start decaying right after they were created (probably inside star cores or explosions 💥) instead of when that pot was created?

So I have this word problem and I’m a bit confused about it. I have the answer and explanation but I still don’t understand: The half-life of carbon-14 is approximately 5730 years, while the half-life of carbon-12 is essentially infinite. If the ratio of carbon-14 to carbon-12 in a certain sample is 25% less than the normal ratio in nature, how old is the sample?     A. Less than 5730 years      B. Approximately 5730 years      C. Significantly greater than 5730 years, but less than 11460 years      D. Approximately 11460 years  Correct Answer: A Explanation: Because the half-life of carbon-12 is essentially infinite, a 25 percent decrease in the ratio of carbon-14 to carbon-12 means the same as a 25 percent decrease in the amount of carbon-14. If less than half of the carbon-14 has deteriorated, then less than one half-life has elapsed. Therefore, the sample is less than 5730 years old. Be careful with the wording here—the question states that the ratio is 25% less than the ratio in nature, not 25% of the ratio in nature, which would correspond to choice (D). How is the ratio of the carbon isotopes relevant to half-lives? What is the purpose of saying the half-life of an isotope is infinite? What is meant by “the normal ratio in nature”? Just based on the answer, it seems like the question said “25% of a carbon sample decayed, how old is this sample?” Obviously it’s younger than 5,730 years (the time for its first half life) because if only 25% decayed that means half a half-life has passed. I don’t see how isotopes and ratios would change this problem at all. Edit: Every answer here was very informative and helpful. It was tough to pick a best answer. I picked Cosma’s because it clicked with me. If you’re reading this and want to understand radiocarbon dating, look at every answer because there is some useful information in every answer


Hey so I'm trying to learn Java, and I know about floating-points not being accurate and what not, but I'm feeling blind at the moment. I know I'm doing something wrong, the computer is not wrong, but I don't know where.  I'm casting the Math returns as integers and then subtracting the specific integers value from the variable cash; when I subtract integers from floats, the float seems to lose data. My question is as follows: What is the smartest way to avoid data spoilage without slowing down my program?  <!-- language: lang-java --> private static void calculateChange() {     System.out.print("Please enter any amount of cash in dollars: ");     float cash = scanner.nextFloat();      int ten_dollars = (int) Math.floor(cash/10);     cash -= 10 * ten_dollars;      System.out.println(cash);      int five_dollars = (int) Math.floor(cash/5);     cash -= 5 * five_dollars;     int dollars = (int) Math.floor(cash);     cash -= dollars;     int quarters = (int) Math.floor(cash/0.25);     cash -= 0.25 * quarters;     int dimes = (int) Math.floor(cash/0.1);     cash -= 0.1 * dimes;     int nickels = (int) Math.floor(cash/0.05);     cash -= 0.05 * nickels;     int pennies = (int) Math.floor(cash/0.01);      System.out.println("This is equal to:\n" + ten_dollars + " ten dollar bills\n"             + five_dollars + " five dollar bills\n"             + dollars + " one dollar bills\n"             + quarters + " quarters\n"             + dimes + " dimes\n"             + nickels + " nickels\n"             + pennies + " pennies"); }           run:          Please enter any amount of cash in dollars: 135,04          5.0399933          This is equal to:          13 ten dollar bills          1 five dollar bills          0 one dollar bills          0 quarters          0 dimes          0 nickels          3 pennies          BUILD SUCCESSFUL (total time: 6 seconds)

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


Hi I'm a new at Blender can anyone help me?  I'm practicing to create an anime character, I clicked Ctrl + R to make a line to connect on the hand (as picture) but doesn't work, it doesn't go through on the back.  Does anyone know what should I do ? Please help me  I am sorry for my English

Alright so I've seen some postings about loop cuts and done some research. I am very new to blender and modeling overall. I am trying to loop cut this concrete barrier. Now I'm following a tutorial and kind of did my own thing in some areas. I cleaned it up following some instructions in another answer here on stack exchange.  I can't for the life of me figure out why I can loop cut around the whole bottom:   ...but not the whole middle:   I see this marked as answered by another question. That question refers to ngons and inside faces. Now once again I'm totally new to this. I looked on the inside. I don't believe I have inside faces or any ngons by the terms I've read online in my research.  Here is a wireframe picture and the inside view:     Maybe I'm missing something the answers on other posts are saying. If so and you know what it is I'd be very appreciative of what it is.


I have this code:  var object1 = {same:'test'} var object2 = {same:'test'};        console.log(object1 === object2)   It returns false in the console.   I also have this code:  var object1 = {same:'test'} var object2 = object1; console.log(object1 === object2)     It returns true in the console.  I know '===' is an equality operator, but I don't know how it works on objects.  Why does the first example return false?

A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?  Stack Overflow question  is similar to this question, but requires a more academic answer. The scenario above demonstrates why it would be necessary to have one, and I'm wondering if there is any equivalent solution.


On my iPhone, in order to view spoiler text, I have to double click it, copy it, and paste it into a note or something similar.  Could we make it show on click since on that device there is no such thing as a mouse over?      Please?

I asked about it on  and they told me to post it here.  Probably need to add the :active to the :hover meta class or something like that.  Example:      Hammer Time


With Windows 8, why isn't a mapped drive available under an elevated cmd prompt but is under a regular cmd prompt? I can run a net use and get it to be available but I still find this odd.

I map a share from another machine using my user account. I launch an elevated command prompt (cmd.exe, right click, Run as administrator). Navigating to shared drive (Z:) results in:   The system cannot find the drive specified  Now if I open a non elevated command prompt, I can navigate to Z: just fine.


I understand the difference between CurrentCulture and CurrentUICulture well. The question I have is why did we require two separate properties, one for things like Date,Current format and one for using the right resource file?  Is it ever going to be that my Date/Currency etc is set at a Japanese culture but my Resource file that is being used is of US-English?  I have a clue to the answer: may be CurrentCulture is for a broader class of language (e.g. en) and UICulture is for more specific variant of the language (like en-US) but am not sure if  this is true.

In .NET there is the CultureInfo class in the System.Globalization namespace. It has two similar properties both returning values of the CultureInfo type: CurrentCulture and CurrentUICulture.  What is the difference between them?   Which one should I use when and why?


Let $P(z)\in\mathbb{C}[z]$ be a polynomial with complex coefficients. (1) Prove that if all zeroes of $P$ are in the right plane $Re z\geq 0$, then the same is true for $P'(z)$. (2) Deduce that $x^5+2x^4-3x^3-4x^2-5x-6$ has at least one root in the left half-plane $Rez\leq 0$. Is there any hint on how to approach this question? I was thinking to use the Mobius transformation to convert right half plane to unit circle and apply the $\int_C\frac{f'(w)}{f(w)}dw$ but I do not know how to proceed afterwards.

The problem statement is:  Part(a)  Assume P(z) is a non-constant polynomial with all of its roots in some half plane H.  Show that the derivative P'(z) must also have all of its roots in H.  Part (b)  Show that the roots of P' always lie within the closed convex hull of the set of roots of P.  The hint given is:   After obvious reductions of the problem, look at the behavior of $\frac{P'}{P}$ on the complementary half-plane.  My thoughts:   So I think that, whatever half-plane H that we have to work with, we can always just look at $P(e^{i\theta}z)$, which has its zeros in the UHP, for a suitable rotation by angle theta.    Now we can just show that $P'(e^{i\theta}z)e^{i\theta}$ also has its roots in the UHP -- and then undoing the rotations shows that both P and P' had its roots in the same half-plane H.  Using the hint regarding looking at the complementary half-plane, we then want to show that P' does not vanish in the LHP (we already know P doesn't vanish in the LHP, by assumption.)    Again following the hint we look at P'/P in the LHP and show that it does not vanish.  I am stuck at this point.  How can I proceed?  And regarding part(b) what is a "convex hull"?  I am guessing that the answer to part (b) is immediate, after figuring out part(a).  Any ideas are welcome.  Thanks,


What makes vowels different? I know that depending on the position of tongue and the mouth shape the different vowels can be produced. But what makes vowels different in terms of sound waves?

If one sings the letter "A" and "M" at the same volume and pitch, the two letters are still differentiable. If both pitch and volume are the same however, shouldn't the sound be the exact same?


I have a huge Database. And i want to save it in the Assets folder and read the data from it.  How i can do this?. I read many answers but i didn't understand how to do it.  Please, Help me with the full steps. Because i am A beginner

If your application requires a database and it comes with built in data, what is the best way to ship that application? Should I:   Precreate the SQLite database and include it in the .apk? Include the SQL commands with the application and have it create the database and insert the data on first use?   The drawbacks I see are:   Possible SQLite version mismatches might cause problems and I currently don't know where the database should go and how to access it. It may take a really long time to create and populate the database on the device.   Any suggestions? Pointers to the documentation regarding any issues would be greatly appreciated.


I used QGIS to find the extents/bounding boxes of a list of features from census data.  I used the following method: Vector - Research tools - Polygon From Layer Extent, which creates a new shapefile with a table of extent values for each feature.  However, the resulting extent values (minx, miny, etc.) are not LAT/LONG. I'm not sure what they are. The properties show CRS as "USER:100000 -   Generated CRS (+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=37.5 +lon_0=-96 +x_0=0" even though I set the project default to WGS 84 EPSG: 4326. If I change it back to WGS84, the data stays to same.  What CRS format are QGIS extents and how can I convert them to standard Lat/long so that I can plot them?

I have a series of layers of lines (shapefiles) in My Project. The CRS of some are different and to merge them they all must have same CRS.  When I use Processing/Toolbox/Qgis_algorithims/Reproject_layer the reprojection only works if it is allowed to save to temporary file somewhere (it will not change the CRS when I reproject if I try to save and replace it in My Project directory);   I must remove the original from the layer list and reproject the temp file (without changing the CRS) to get it into my project and name it appropriately.  Is there a better way to reproject a layer in Qgis?


I am wondering if QGIS (or qgis2web) can realize this: I have various shapefiles (label as points and lines) and I want to categorize them into one single layer which can be turned on and off. (It needs to have a blue tick-box in front of the top hierarchy). Plus, there is another strange exporting issue. That is: Grouped layer will be automatically placed to the bottom layer regardless where you put it when editing. Then I need to manually modify the js code in layers.js. Please see the example: "I would like to have a blue tick-box for ROAD grouped layer"  output on web   QGIS editing panel    This is what I expect to realize:

I need to create one checkbox in QGIS (and qgis2web) that than will show two other layers. So basically I don't want to check two checkboxes in the layerlist, but I want to simplify this process by just checking one checkbox. I want to do this without having to merge multiple layers in one shapefile.


I keep getting      ERROR: SQLSTATE[42000]: Syntax error or access violation: 1064 You   have an error in your SQL syntax; check the manual that corresponds to   your MySQL server version for the right syntax to use near   Please help! =]  I've checked that this literal query in phpmyadmin works.  SELECT *  FROM  `wp_customgravityall`  WHERE  (`time` >= '2015-09-01 00:00:00' AND `time` <= '2015-09-13 23:59:59') ORDER BY  `wp_customgravityall`.`time` DESC   But my code below doesn't work.  <?php $servername = "http://www.myhomepagenamethingy.com/"; $username = DB_USER; $password = DB_PASSWORD; $dbname = DB_NAME;  $table_name = 'wp_' . 'customgravityall';  $from_date  = isset( $_GET['from_date'] )   ? $_GET['from_date'] . " " . "00:00:00" : ''; $to_date    = isset( $_GET['to_date'] )     ? $_GET['from_date'] . " " . "23:59:59" : '';   try {     $conn = new PDO('mysql:$servername;dbname=$dbname', $username, $password);     $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);     $statement = $conn->prepare(         "SELECT *          FROM ?          WHERE `time` >= ? AND `time` <= ?         ORDER BY `wp_customgravityall`.`time` DESC"     );     $statement->bindValue(1, $conn->quote($table_name), PDO::PARAM_STR);     $statement->bindValue(2, $conn->quote($from_date), PDO::PARAM_STR);     $statement->bindValue(3, $conn->quote($to_date), PDO::PARAM_STR);     var_dump($statement);     $statement->execute(); } catch(PDOException $e) {     echo 'PDO ERROR: ' . $e->getMessage(); } ?>

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


Is this proper usage ? seems to me "perfect"  is like "best" (it can't be more or less "perfect or "best").

"More perfect" is presumably bad English (Preamble to the US  Constitution notwithstanding), since something is either perfect (and  thus can't be improved) or not.   "Less imperfect", however, seems to make sense. It means "having fewer  flaws" or "closer to perfection".   The paradox: "more perfect" and "less imperfect" should mean the same  thing, no?   The real question: is "perfect" binary or continuous? Or is this a  weird case where "perfect" is binary, but "imperfect" is continuous,  meaning these words aren't true opposites?   [I tried to work in a joke about English being imperfect, but couldn't  find the perfect joke]


Wings serve most birds for flying, or (as in penguins) for swimming. But ostriches, which exclusively use only their legs for locomotion, still have wings. Why?

If a trait would be advantageous to an organism then why hasn't it evolved yet?  Conversely, if a trait is not advantageous or mildly disadvantageous, why does it exist?  In other words why does evolution not make the organism more "perfect"?    This is a general question that would be applicable for any kind of trait. Please keep the answers precise and scientific.   Read this meta post for more information:


Please, give-me a hint to prove this proposition:     Let $\mathcal A$ be the ring of all continuous real functions (with the usual operations of sum and multiplication) defined on the interval $[0,1]$, and $I= \{f \in \mathcal A;f(0)=0 \}$. Prove that $I$ is a maximal ideal of $\mathcal A$.   My approach to this problem was the following: consider $I \subset Y \subset \mathcal A$, with $Y \neq I$. Then I must prove that $Y=\mathcal A$. Since $I \subset Y$, there exists a continuous function $g$ such that $g \in Y$ and $g \notin I$, i.e., $g(0) \neq 0$, or $g(0)=a, a \neq 0$. Now, if I manage to show that $1 \in Y$,  then I am done. So I ask: What should be the next step? Thanks in advance!

Is the ideal $I = \{f \mid f (0) = 0\}$ in the ring $C [0, 1]$ of all continuous real valued functions on the interval $[0, 1]$ a maximal ideal?


Is there anyway to count words in a pdf document on Mojave?, it is not in 'get info' when right clicking and preview doesn't seem to have a tool for it.  thanks for your time

I'd like to count words on a PDF file on OS X. The inspector doesn't contain the word count.


I have an Enum public enum MyEnum     {         value1= 1,         value2= 2,         value3= 3,         value4= 4     }  How do I get the integer values , if I give the string as input , say input--> value2 , then , output-->2 Thanks

What's the best way to convert a string to an enumeration value in C#? I have an HTML select tag containing the values of an enumeration. When the page is posted, I want to pick up the value (which will be in the form of a string) and convert it to the corresponding enumeration value. In an ideal world, I could do something like this: StatusEnum MyStatus = StatusEnum.Parse("Active");  but that isn't a valid code.


I have heard this from many SEO experts that a website with less bounce rate will rank well on Google. But what if the website does not use any analytics tools to calculate bounce rate, how will then Google know the bounce rate of the website and rank it higher

Does Google consider bounce rate or something similar in ranking sites?  Background: here at Stack Exchange we noticed that the latest Google algorithm changes resulted in about a 20% dip in traffic to  (and a much smaller dip in traffic to ). Stack Overflow traffic was not affected.  There was an  which hypothesized that bounce rate might be a ranking signal in Google's latest Panda update.  According to Google Analytics, these are our bounce rates over the last month:  Site           Bounce Rate Avg Time on Site -------------  ----------- ---------------- SuperUser      84.67%      01:16 ServerFault    83.76%      00:53 Stack Overflow 63.63%      04:12   Now, technically, Google has no way to know the bounce rate. If you go to Google, search for something, and click on the first result, Google can't tell the difference between:   a user who turns off their computer a user who goes to a completely different web site a user who spends hours clicking around on the website they landed on   What Google does know is how long it takes the user to come back to Google and do another search. According to the book  (page 47), Google distinguishes between what they call "short clicks" and "long clicks":   A short click is a search where the user quickly comes back to Google and does another search. Google interprets this as a signal that the first search results were unsatisfactory. A long click is a search where the user doesn't search again for a long time.   The book says that Google uses this information internally, to judge the quality of their own algorithms. It also said that short click data in which someone retypes a slight variation of the search is used to fuel the "Did you mean...?" spell checking algorithm.  So, my hypothesis is that Google has recently decided to use long click rates as a signal of a high quality site. Does anyone have any evidence of this? Have you seen any high-bounce-rate sites which lost traffic (or vice-versa)?


Based on the discussion in the comments here:    Some of us are interested in knowing when hand dominance becomes firmly established.   I'm looking for a general timeline of the related developmental milestones. I know that there's ambiguity and fluidity regarding handedness in young children, but I'm not positive on when the switching becomes less common, and when it zeroes in on one or the other.  Some reports are that it happens quite early, but when 90% of the population ends up being right-handed, I think it's a bit of a self-fulfilling prophecy.  suggests it actually happens quite late. I'm not sure if there's more to back up/refute the information found here.    Both of these:       are related questions, but discuss the how/why, not the when.

Out of curiosity: At what age does one hand gain "advantage" over the other? When do motor skills start differentiating for arms?


I know there's a lot of solutions out there but I've tried most of them and just cannot figure out why my image is slightly below the text.. I've tried the display:flex;, played around with the margins and paddings, and played around with aligning, but just cannot figure it out.     .amenities-wrapper {   margin: 15px 0;   font-size: 0; }  tr {   align-items: center;   margin-top: 8px;   width: 250px; }  td {   margin-left: 100px;   margin-right: 100px; }  .amenities-text {   font-size: 15px;   margin-left: 10px;   margin-right: 100px;   line-height: 35px;   display: inline-block; }  .amenities-logo {   width: 30px;   height: 30px;   vertical-align: middle;   margin-bottom: 0.75em; }

AMENITIES & SERVICES

                         High School Internet       	                         Parking       	                         Air Conditioner

                         Desktop Computers       	                         Printer       	                         Thanks Cafe

Why won't vertical-align: middle work?  And yet, vertical-align: top does work.   span{   vertical-align: middle; }
      Doesn't work.


Suppose that $X$ and $Y$ are independent and identically distributed. The claim is that $P(X<Y)=P(X>Y)=1/2$. How do I prove this?  My attempt  Since they are IID $f_X=f_Y$. So $P(X<Y)=\int\int_{s<t} f_X(s)f_Y(t)dsdt=\int\int_{s<t} f(s)f(t)dsdt$  If this is correct, I just don't know how the above integral evaluates to $1/2$

Let $X$ and $Y$ be independent and identically distributed.    Show that if $X$ and $Y$ are continous, then $P(X<Y) = 1/2$ Give an example of two IID RVs $X$ and $Y$ such that $P(X<Y)\neq 1/2$   I can't make sense of ncmathsadist's answer. Can somebody clarify?


Without a calculator, find $\cos\frac{\pi}{3}$.   I started AP Calc today. I’m a sophomore and I skipped precalc and, well, I am utterly confused.  Can someone please teach me how to solve this from the basics by hand? Thank you so much!

Is it possible to prove that $\cos(\pi/3)=1/2$ without using any trigonometric identities?  To be specific, my calculus-book simply states that with an angle of $\pi/3$ on the unit-circle the points (0,0) and (1,0) are the vertices of an equilateral triangle with edge length 1. But how can one reach such conclusion?  Thanks!


Goal:  In order to have a fully interactive map, I would like to be able to save some drawn features (in a second step with some attributes that may be grabbed through an input mask form or pop-up) on a Leaflet map to a PostgreSQL (PostGIS) database table.  Technical details:  I am using Lighttpd as webserver + geoserver (based on jetty) to serve my base vector layer on which I'd want to write the new features.  What I have read and tried:  Based on this code :   it is possible to "export" the features as a GeoJson string to a local file.  Related resources that I've tried but doesn't work:   And with this, I'm able to print out to the console a GeoJSON string that is ready to be written in a database field but I do not know how to technically communicate it to the database:    Related to the Geoserver documentation (the "demo" menu on the left column), it is not possible to write a GeoJson string to the connected PostgreSQL database: WFS-T only allows to write features using the GML format...  I remember (long time ago, so it is blurry in my mind) some functions with OpenLayer that could do some parsing on a GeoJson string to make it "GML ready" but I can not find any equivalent within Leaflet.     Am I stuck or is there an elegant way to store drawn vector features from a Leaflet map into a PostgreSQL database (based, or not, on Geoserver)? If not possible, which other (light) techniques would be nice to use?   The raw code example:    Edit:  The answer given in the thread on which this question was marked as duplicate (  ) is to use the Leaflet-WFST plugin: .   When I tried the first command: npm i leaflet-wfst --save   I get an error "command not found". So it doesn't work in my really simple case where I use Geoserver. What I would like to find is a small function that converts a geojson object (which I already have!) to a GML one (which is the only format available with Geoserver WFST protocol).

I have a PostGIS database and have successfully consumed a table into GeoServer and published a WFS.  Are there REST endpoints available for these WFS' akin to ESRI's feature services?  How are parameters to be constructed?


Graphically I can see that. But i don't know how to prove this. We have to prove using the fact that $x^n <y^n$ Any help please.

I'm trying to prove that for $a,b\in \mathbb{R}^+$, if $a<b$, then $a^{1/n} < b^{1/n}$. I'm naturally proceeding by induction on $n$, with it being trivial for $1$. I've proven it separately before with $n=2$ as well, and I'm just gong to assume it true here for convenience. My problem is in the induction step, having it assumed to be true for some fixed $n$. I need to show $a^{1/(n+1)} < b^{1/(n+1)} $. I'm having a complete brain fart. Can anyone help?


The graph  of  $xy=1$  in  $\mathbb C^{2}$ is  set  of  points $(x+iy,u+iv)$ that satisfies  $$xu-yv=1$$ and $$uy+xv=0$$ How  to  find  if  this  set  is  connected  or  not .   I  also  have another  doubt. Can  this  set  mean  the collection  of  points $\{x+iy \in \mathbb C | xy=1\}$=$\{x+{{i}\over {x}}|x\in \mathbb R\}$ $?$    Some  lead  please ,  I  am  totally  clueless.

The graph of $xy = 1$ in $\Bbb C^2$ is connected. True or false?  I know that it is not connected in $\Bbb R^2$, but what is the case of $\Bbb C^2$?


I have been using gparted for years under any ubuntu version. gparted won't start under ubuntu 17.10. Is this a bug of ubuntu 17.10?

I installed Ubuntu 17.10. Now I am having trouble with gksu:  $ gksu -dg synaptic No ask_pass set, using default! xauth: /tmp/libgksu-HgUjgQ/.Xauthority STARTUP_ID: gksu/synaptic/8760-0-alex-XPS-15-9530_TIME4974977 cmd[0]: /usr/bin/sudo cmd[1]: -H cmd[2]: -S cmd[3]: -p cmd[4]: GNOME_SUDO_PASS cmd[5]: -u cmd[6]: root cmd[7]: -- cmd[8]: synaptic buffer: -GNOME_SUDO_PASS- brute force GNOME_SUDO_PASS ended... Yeah, we're in... Unable to init server: Could not connect: Connection refused (synaptic:8767): Gtk-WARNING **: cannot open display: :1 xauth: /tmp/libgksu-HgUjgQ/.Xauthority xauth_env: (null) dir: /tmp/libgksu-HgUjgQ   If I don't use -g, the password dialog is disabled. So looks like a problem with creating a tty for root.  Any advice?


I'm doing an easy note creator in JavaScript, just to improve my knowledge in web development.  So, I've almost did everything: but I've a problem:   if($("div").length != 0) $("div").click(function() {     for(var i = 0;i < $("div").length;i++) {     $("div").remove(); } });   If I open my page and I put it in console, it works.  If I put it in my JS file, the DOM doesn't load it.  Can I know why of that?    $("button.add").click(function() {   var text = document.querySelector("input").value;   var x = document.createElement("div");   x.innerHTML = text;   document.body.appendChild(x); });  if ($("div").length != 0)   $("div").click(function() {     for (var i = 0; i < $("div").length; i++) {       $("div").remove();     }   }); body {   background-color: lightblue;   margin: 5%; } input, button {   border: none;   padding: 10px;   display: block;   margin: 0 auto; } button {   background-color: #fff;   margin-top: 10px;   opacity: 0.9; } input:focus {   opacity: 0.9;   outline: none; } div {   background-color: #fff;   padding: 5%;   width: 10%;   color: #ccc;   display: inline;   transition: 0.4s; } div:hover {   background-color: #b71c1c; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <!DOCTYPE html> <html>  <head>   <meta charset="utf-8">   <meta name="viewport" content="width=device-width">   <title>Matteo Notes</title>   <link rel="stylesheet" href="C:\Users\User\Desktop\Dash\Notes\style.css">   <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.1.1.min.js"></script> </head>  <body>   <input type="text" placeholder="Add...">   <button class="add">Add</button>   <button class="remove">Remove</button>   <script src="script.js" type="text/javascript"></script> </body>  </html>

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


let variable1="hello"; function func1(variable){     variable="hello hello"; } func1(variable1); console.log("after function: "+variable1);  let object1={     property1:"hello2" } function func2(obj){     obj.property="hello object"; } func2(object1); console.log("after function:" +object1.property);   I have this code, the first console.log() returns  hello   but second console.log() returns   hello object   So I understood javascript cannot change and update variable but it can change and update property of object. But why and how?

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


My Sony Xperia V touch screen is broken in the right corner. The rest of the screen doesn't respond, but the LCD works fine.   I need to make a full backup, but I can't activate debug mode. Also, Windows can't see the internal or external memory.  Do I have any other options on retrieving my data?  UPDATE: This problem is SOLVED. I got debug mode turned on by using a USB (Female) to Micro USB cable (Male). I connected a regular wireless mouse, and moused it through the settings.

The screen of my phone is physically broken, so it doesn't display anything, but the touch aspect does seem to be working, as I can unlock my phone, and get haptic feedback.  Before I go to get it replaced, I'd like to back up some personal data from the built-in memory to the SD card. I'm fairly certain that if I can get adb to recognize the device, then I can use  to see where I am touching the screen and do what I need to do. Problem is, when I plug it in, it's not recognized, while my emulator is.  I suspect that I might not have USB debugging enabled, which I think is necessary for adb to work. If this is the case, can someone give me screenshots of their Droid X (running 2.3.X) going from the home screen, through all the menus, to activating debug mode? Hopefully I can do it by dead reckoning and adb from there.  Edit: I haven't changed anything about the ROM or launcher; it's all stock.


I am working with a script that is supposed to first check if a PC is alive then FTP a file to a server. However, when running the script I am getting the following error:  Exception calling "UploadFile" with "2" argument(s): "The Content-Type header cannot be set to a multipart type for this request."  Here is the script:  $down = "C:\Script\log\down-hosts.log" $computers = Get-Content "C:\Script\list\Computers.txt"  $sourcefileName = "source_file.csv"  #ftp server  $ftp = "sftp://servername"  $user = "user"  $pass = "pass"  $webclient = New-Object System.Net.WebClient $webclient.Credentials = New-Object System.Net.NetworkCredential($user,$pass)  # Create empty log file for down hosts (overwrite if exists) New-Item $down -type file -force  foreach ($computer in $computers) { if ( Test-Connection -ComputerName $computer -Count 1 -ErrorAction SilentlyContinue ) {   Write-Host "$computer is up"   Write-Host "Uploading \\$computer\c$\UPS CSV Exports\$sourcefile..."   $sourcefilePath = "\\$computer\c$\UPS CSV Exports"   $uri = New-Object System.Uri($ftp+$computer+"_"+$sourcefileName)   $webclient.UploadFile($uri,$sourcefilePath+"/"+$sourcefileName)   if($? -eq $True) {   write-host "$ftp$sourcefileName ok"   Remove-Item $sourcefilePath"\"$sourcefileName  } } else {   Write-Host "$computer is down"   "$computer is down" | Out-File $down -append    } }   The idea is that the script finds the file, then uploads to the FTP server. If the PC is not available, it writes to a log file so I know to manually retrieve the file.  Thanks!

I'm looking to write a script (preferably powershell) that will essentially copy a file from a bunch of PC's and FTP it to a server.   So the structure of the environment is that we have a file on multiple PC's (around 50 or so) that need to placed on a server. Sometimes one of the PC's may be turned off so the script would first need to ensure the PC is up and running (maybe a ping result), then it would need to go into a directory on that PC, pull a file off of it, rename the file, place into a source directory, then remove the file. Naming convention doesn't matter, but date/time stamp would be easiest. Ideally, it would be best to first move all the files to a source directory to save on FTP bandwidth, but since the files will be named the same, the files must be renamed during the move process. Move not copy because the directory needs to be empty so the file can be re-created the next day. So once moved to the source directory, now all the files need to be FTP'd to a server for processing.   After all of this, we need to know which PC's on the list did not respond so we can manually retrieve the file so the script should output a file (txt is fine) that will show which PC's were offline.   Everything is one domain and script will be run from an server with admin creds.   Thank you!


Yesterday I downloaded El Capitan partly via the Appstore. I didn't have the time to finish the installation, so I cancelled the download. Today I want to resume, but the download buttons don't work, and in the update tab I see "waiting..." and a pause button that is greyed out. I restarted and tried again, but nothing changed.  Is there a way to reset this installation or to resume it?

I started to download the El Capitan upgrade, but then I shut down my computer. The day after I wanted to continue the download but in App Store it shows "Waiting..." and doesn't do anything. Also when I go to the updates section, it shows the button "Download" but it's inactive. Maybe someone can help me? I tried to find the download file in some directory to delete it and start over but I couldn't find it.


I am trying to find a formula (if one exists, and this is the right place) to try and calculate how far a radio station can transmit, under ideal conditions. I have searched Google, and I can not find a solid answer.   Broadcast Frequency: 89.7 MHz  Effective Radiated Power: 910 Watts Transmission Power: 936 Watts Transmitter Height: ~39m Terrain: Flat   Thanks for the help.

If I know the:   Frequency Effective Radiated Power Height Above Average Terrain Radiation Center Above Mean Sea Level Radiation Center Above Ground Level   of a radio signal / tower, is there a way to determine the rough range of the radio signal?


Show that if $\sum x_n y_n$ converges for all $y=\{y_n: n\}$ in $\ell_2$ , then $x=\{x_n :n\}$ is in $\ell_2$.  I am not able to go anywhere with this problem. Please help

I'm trying to prove the following:     If $(a_n)$ is a sequence of positive numbers such that $\sum_{n=1}^\infty a_n b_n<\infty$ for all sequences of positive numbers $(b_n)$ such that $\sum_{n=1}^\infty b_n^2<\infty$, then $\sum_{n=1}^\infty a_n^2 <\infty$.   The context here is functional analysis homework, in the subject of Hilbert spaces.  Here's what I've thought:  Let $f=(a_n)>0$. Then the problem reads: if $\int f\overline{g}<\infty$ for all $g>0,g\in \ell^2$, then $f\in \ell^2$. This brings the problem into the realm of $\ell^p$ spaces.  I know the inner product is defined only in $\ell^2$, but it's sort of like saying: if $\langle f,g\rangle <\infty$ for all $g>0,g\in \ell^2$ then $f\in \ell^2$.  I read this as: "to check a positive sequence is in $\ell^2$, just check its inner product with any positive sequence in $\ell^2$ is finite, then you're done", which I find nice, but I can't prove it :P  From there, I don't know what else to do. I thought of Hölder's inequality which in this context states: $$\sum_{n=1}^\infty a_nb_n \leq \left( \sum_{n=1}^\infty a_n^2 \right)^{1/2} \left( \sum_{n=1}^\infty b_n^2 \right)^{1/2}$$  but it's not useful here.


If $H \leq G$ such that $[G:H]=2$ then $a^2 \in H $ for every $a\in G $   If $a \in H $ then $a^2 \in H $ so I took $a\in G-H $ and wrote $G=Hx \cup Hy $ for some $x,y \in G $ but wasn't able to arrive anywhere. Any hint?

I'm having some trouble understanding cosets.  If I understand it correctly, cosets form a partition. So, if I have $|G:H| = 2$, then $G = H \cup xH$. Right?  In an exercise, I'm asked the following:  "For $G$ group and $H \le G$ such that $|G:H| = 2$, prove that $x^2 \in H$ for any $x \in G$"  If $x \in H$, then $x^2 \in H$ because $H$ is a group. But, if $x \notin H$, then $x \in gH$ for any $g \in G$, right? Then $x^2$ = $(gh)^2$ but I can't see why this is in $H$.  Can you give me some hint? Thanks for stopping by.


as you can see in the photo example. I would like to know how can we create smooth gradient like that.Thank in advance  [1]:

i came across a photo where the gradient looks like it s smeared from cream. It is hard to explained by saying so here is the  Let say i create 2 similar shapes with the gradient pattern then adjust the opacity but the edges will still remain. But in the example the edges are appeared to be soft and hard randomly. Thanks in advance !


An airplane is headed 123 degrees with an air speed of 310 mph with a wind of 40 mph on a bearing of 200 degrees. Find the ground speed to the nearest mph, and the true course of the airplane to the nearest degree.  I tried to draw the vectors but I am unable to figure it out.Please help me.

An airplane heads northeast at an airspeed of 900 km/hr, but there is a wind blowing from the west at 60 km/hr. In what direction does the plane end up flying? (angle). What is its speed relative to the ground?   I drew a picture. I think I am having a hard time understanding how to solve the problem. I want to add the wind vector to the plane vector - is that as simple as 840 km/hr? After really adding the vectors together, do I do: (added vectors)cos(45)?


Can anyone help me. I have made looping using javascript but i dont know how to redirect after playing all the text animation. Here's my source code.  CSS         JS         HTML
i am.

How can I redirect the user from one page to another using jQuery or pure JavaScript?


When a question got many other questions linked from/to it, there is a special page showing list of all those questions, e.g.   I just noticed while leaving it open, that the live refresh is active in there and showing "x questions with new activity" whenever there is new activity, even if in a question not linked to/from the original question.  I think the live refresh should be disabled while in that view, or filtered to load only questions actually being linked.

When there are too many linked questions to fit in the sidebar, it shows a link to "see more linked questions...". Clicking on this link takes you to a front-page type showing only the linked questions. You can then use the tabs to sort by "active" to show the most recently active linked questions. However, the gray popup that appears when new questions are posted shows up for any recent activity, not just activity on the linked questions. Clicking through then updates the list, appending more questions to the top of the list, regardless of whether or not they're linked to the question at hand. To reproduce:  Go to  Wait for activity  Screenshots:   Now obviously this isn't a show-stopper, but I thought it might be worth mentioning.  Update June 2020 This is still relevant.  While sitting on the "linked questions" page for a specific question - in the above screenshot,  - and sorted by newest, when a new question is asked the "1 question with new activity" banner will show up, even if that new question does not link back to the question that you were on.


I have code like this.  var sampleBus = BusConfigurator.Instance                 .ConfigureBus((cfg, host) =>                 {                     cfg.ReceiveEndpoint(host, "sampleQueue", e =>                     {                         e.UseScheduledRedelivery(r => r.Intervals(TimeSpan.FromMinutes(5));                         e.UseMessageRetry(r => r.Interval(5, 5000));                         e.Consumer<ConsumerClass1>();                     });                 });  sampleBus.Start();   I have a lot of consumer classes and i want to handle this with config file.How can i convert class names in config file to ConsumerClasses.  foreach(string className in consumerClassNameList){   ????  var sampleBus = BusConfigurator.Instance                     .ConfigureBus((cfg, host) =>                     {                         cfg.ReceiveEndpoint(host, "sampleQueue", e =>                         {                             e.UseScheduledRedelivery(r => r.Intervals(TimeSpan.FromMinutes(5));                             e.UseMessageRetry(r => r.Interval(5, 5000));                             e.Consumer<???>();                         });                     });  sampleBus.Start(); }   Each ConsumerClass derive from :  public class ConsumerClass1<T> : IConsumer<T> where T : class   Appraciate for any help.  EDIT  I asked question wrong.This code,  e.Consumer<ConsumerClass1>();   is not initialize a class.It is invoking a method.  public static void Consumer<TConsumer>(this IReceiveEndpointConfigurator configurator, Action<IConsumerConfigurator<TConsumer>> configure = null) where TConsumer : class, IConsumer, new();   Sorry for wrong question.Question should be "how to call method with generic type parameter dynamically". I found answer .

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod<T>()?         GenericMethod<myType>(); // This doesn't work          // What changes to call StaticMethod<T>()?         Sample.StaticMethod<myType>(); // This also doesn't work     }      public void GenericMethod<T>()     {         // ...     }      public static void StaticMethod<T>()     {         //...     } }


Is there a way to set all attributes in a decorated function as in the original function?  For example if I take this code:  def timeit(f):     import time     def new_f(n):         start = time.time()         res = f(n)         end = time.time()         tt = end-start         print tt         return res     return new_f  @timeit def fun(n=0):     ''' docstring '''     res = 0     for _ in xrange(n):         res = res + 1     return res   Then the function fun has actually lost all its attributes such as fun.func_defaults or fun.func_dict or fun.func_doc. Is there a generic way to handle this?

In a comment on this , someone said that they weren't sure what functools.wraps was doing. So, I'm asking this question so that there will be a record of it on StackOverflow for future reference: what does functools.wraps do, exactly?


I want to prove that the group  $$B_n =  \{ \begin{pmatrix} a_1 & b_{1,2} & \cdots &   b_{1,n} \\ & \ddots & & \vdots \\ & & a_{n-1} & b_{n-1, n} \\ & & &  a_n \end{pmatrix}  | b_{ij} \in F, a_i \in F^* \} $$   is solvable.  I though about using the homomorphism $f: B_n \rightarrow (F^*)^n$  , which is declared $$f(\begin{pmatrix} a_1 & b_{1,2} & \cdots &   b_{1,n} \\ & \ddots & & \vdots \\ & & a_{n-1} & b_{n-1, n} \\ & & &  a_n \end{pmatrix}) = (a_1,....,a_n)$$  this way, I get  $$Kerf = \{ \begin{pmatrix} 1 & b_{1,2} & \cdots &   b_{1,n} \\ & \ddots & & \vdots \\ & & 1 & b_{n-1, n} \\ & & &  1 \end{pmatrix}  | b_{ij} \in F* \} $$  and since $Ker(f) \lhd B_n$ I thought about using the theorem which says that: if $N \lhd G$ is solvable and $G/N$ is solvable, then G is also solvable.  I also know that $Im(f) = (F^*)^n$.  I got stuck proving that $Ker(f)$ and $B_n/Ker(f)$ are solvable  Help would be appreciated

Let $GL_n(k)$ be the n by n general linear group over $k$, $B_n(k)$ be the subgroup of $GL_n(k)$ consisting of all upper triangular matrices, and $U_n(k)$ be the subgroup of $B_n(k)$ whose diagonal elements are all 1.   To show $B_n(k)$ is solvable, I'm proving it now by following steps: 1. $U_n(k)$ is a subgroup of $B_n(k)$. (done) 2. $U_n(k)$ is normal in $B_n(k)$. (done) 3. $U_n(k)$ is solvable. (question) 4. $B_n(k) / U_n(k)$ is also solvable. (not yet) 5. $B_n(k)$ is solvable. (by the below thm)  I'll use a theorem to verify $B_n(k)$ is solvable.   G is solvable if and only if H and G/H are solvable for some normal subgroup $H$ of $G$.   So, I have to prove both step3 and step4. But I have no idea about them. How to prove? Since my knowledge is not enough, I don't wanna show using Lie theory.  Thanks in advance.


How I can create deep copy in angular 2, I tried to use let newObject = Object.assign({}, myObject) but still myObject reflects all the changes done in newObject.

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


When I add an arrow tip to a path, a part of the path is replaced so that the overall length stays the same:  \documentclass[margin=10pt]{standalone} \usepackage{tikz}  \begin{document}   \begin{tikzpicture}     \draw[->, thick] (0, 0) -- (1, 0);     \draw[thick] (0, -0.2) -- (1, -0.2);   \end{tikzpicture} \end{document}     How can achieve it, that the arrow tip is added to the path?

Why the arc does not fit over the circle if we use -latex arrow tip? Maybe some bug or some bad math computations?    MWE  \documentclass[11pt,margin=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta}  \begin{document} \begin{tikzpicture} \draw         (0:1cm) arc (0: 180:1cm) arc (180:0:1cm and 2cm); \draw         (0:1cm) arc (0:-180:1cm); \draw[->]     (0:1cm) arc (0:  80:1cm); \draw[-latex] (0:1cm) arc (0:- 80:1cm); \end{tikzpicture} \end{document}


I have windows 10 installed on a SSD in my computer. I installed Ubuntu 18.04.2 LTS onto an empty SATA drive. When I select windows from the GRUB boot list, appears as "Windows Boot Manager (on /dev/sdc1), there is an error message  saying the hardware has changed and it restarts.  When I am in ubuntu I am able to see my SSD with all of my files in the files explorer it is listed as /dev/sda2  I have attempted to use Boot repair with no success.  The log can be found here.    Any help is greatly appreciated, I am just creating a windows 10 usb from my old laptop, i have a feeling I may need it!  Here is the error message I am getting  Windows failed to start. A recent hardware or software change might be the cause. to fix the problem: 1. Insert your windows installation disc and restart the computer 2. Choose your language settings then click next 3. click repair your computer  File : \EFI\Microsoft\boot\BCD Status: 0xc0000225 Info: The Boot Configuration Data for your PC is missing or contains Errors   Thanks again

I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install.  What can I do to fix this?


I have an application(Moodle platform) with 50 users. The actual performances of the server are:  RAM is 2 GB Storage is 10 GB CPU is AMD 2.1 GHz with 2 Core  The server is hosted in amazon, instance type t3a.small The actual status of usage of RAM and Storage are:  RAM 1.8GB Storage 8.9GB CPU   My plan is to have 500 users soon what should I upgrade from those performances?

This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.


Which one is correct?         It is my friend's, Adam's birthday.   It is my friend, Adam's birthday.       Does the word 'friend' need an apostrophe to show possession?

I would like to say something like     The boy, Adam's, favorite toy was a bike.   What is the proper way to say this?


Can I use a non-AF lens with a Canon 1000D AF body. Canon lenses use in-lens motors for focus, and the only connection is electrical, so I don't see why not. What type of mount and lens should I look for? I like the convenience of AF, but there are times when I don't need it, and non-AF lens are cheaper.

I've got some lenses of brand X, but I've just got a new camera of brand Y. How can I tell if it's possible to use my lenses on my camera? I accept that I may lose a lot of automatic functionality like autofocus, aperture control and metering when using an adapter to connect the two.


[This is not a duplicate, since I am seeking for an alternative proof for this problem] This is a problem from Proofs and Fundamentals, by Ethan D. Bloch.  Show that, for all $n \in \mathbb{Z}$, $n^{3} \equiv n$ (mod $6$).  I wrote my proof as follows and I would really appreciate if you could check it:  Proof: Let $n \in \mathbb{Z}$. Note that $n^{3} - n = (n-1) \cdot n \cdot (n+1)$, so the former is the product of three consecutive integers. By the Division Algorithm, we know that $n = 3q + r$, with $q,r \in \mathbb{Z}$ and $r \in \{0,1,2\}$. Since we have three consecutive integers, we know that each is either equal to $3k$, or $3k + 1$, or $3k + 2$ for some $k \in \mathbb{Z}$. Let’s suppose that $n = 3k$ for some $k \in \mathbb{Z}$ (the argument is similar for the rest two cases, so for the sake of briefness I will omit here). It follows that $n-1 = 3k - 1 = 3k - 3 + 2 = 3(k-1) +2$ and $n+1 = 3k +1$. We have to possibilites on the parity of $k$. If $k$ is even, then $k=2j$ for some $j \in \mathbb{Z}$. Hence $n = 3 \cdot 2 \cdot j = 6k$. Hence $n^{3}-n=6k(n-1)(n+1)$ and $k(n-1)(n+1) \in \mathbb{Z}$. Therefore $n^{3}-n \equiv 0$ (mod $6$) and then $n^{3} \equiv n$ (mod $6$). If $k$ is odd, then $k = 2i + 1$ for some $i \in \mathbb{Z}$. Hence $n + 1 = 3(2i+1) +1 = 6i + 4 = 2(3i+2)$. It follows that $n^{3} - n = (n-1) (3k) (2(3i +2)) = 6k(n-1)(3i+2)$ and $k(n-1)(3i+2) \in \mathbb{Z}$. Thus $n^{3}-n \equiv 0$ (mod $6$). Therefore $n^{3} \equiv n$ (mod $6$). This completes our proof. $\square$  I would also like to know that if there is other way to prove this result? (In the book, Bloch gives a hint that says to note that $n \equiv 0$ (mod $6$), or ..., or $n \equiv 5$ (mod $6$) and then in each case to compute $n^3$ (mod $6$), but I don’t know how this will work as a proof... any idea?). Thank you for your attention!


I am Currently building a Number generator for my boss that is customizable in every front.  I can save a load start and end value etc but I cannot save and load the foreground colour the user has selected.  My radio button to select foreground colour:  rGreen.addActionListener(new ActionListener(){         @Override         public void actionPerformed(ActionEvent ae){             if (rGreen.isSelected()){                 sColour.setText("GREEN");                 String gr = sColour.getText();                 if (gr =="GREEN"){                 tNumber.setForeground(Color.GREEN);                 rRed.setEnabled(false);                 rBlue.setEnabled(false);                 rYellow.setEnabled(false);                 rPink.setEnabled(false);                 rPurple.setEnabled(false);                 rWhite.setEnabled(false);                 rOrange.setEnabled(false);                 }             }else             {                 tNumber.setForeground(Color.WHITE);                 rRed.setEnabled(true);                 rBlue.setEnabled(true);                 rYellow.setEnabled(true);                 rPink.setEnabled(true);                 rPurple.setEnabled(true);                 rWhite.setEnabled(true);                 rOrange.setEnabled(true);             }         }         }     );   Save config  bSave = new JButton("Save");     bSave.setFont(new Font("Tahoma", Font.BOLD, 11));     bSave.setInheritsPopupMenu(true);     mnConfiguration.add(bSave);     bSave.addActionListener(this);     f.setVisible(true);     // ----------------Save Config------------------------------     bSave.addActionListener(new ActionListener() {         @Override         public void actionPerformed(ActionEvent arg0) {             try {                 saveProperties();                 JOptionPane.showMessageDialog(f,                         "Properties were saved successfully!");             } catch (IOException ex) {                 JOptionPane.showMessageDialog(f,                         "Error saving properties file: " + ex.getMessage());             }         }     });     try {         loadProperties();     } catch (IOException ex) {         JOptionPane                 .showMessageDialog(f,                         "The config.properties file does not exist, default properties loaded.");     }     tName.setText(configProps.getProperty("Name"));     tFrom.setText(configProps.getProperty("Start"));     tTo.setText(configProps.getProperty("End"));     sColour.setText(configProps.getProperty("Colour"));     tTitle.setText(tName.getText());   save and Load  // -----------------------Saving----------------------- private void saveProperties() throws IOException {      configProps.setProperty("Name", tName.getText());     configProps.setProperty("Start", tFrom.getText());     configProps.setProperty("End", tTo.getText());     configProps.setProperty("Colour", sColour.getText());     OutputStream outputStream = new FileOutputStream(configFile);     configProps.store(outputStream, "host setttings");     outputStream.close();  }  // ------------------------Loading-------------- private void loadProperties() throws IOException {     Properties defaultProps = new Properties();     // sets default properties     defaultProps.setProperty("Name", "Randomiser");     defaultProps.setProperty("Start", "1");     defaultProps.setProperty("End", "100");     defaultProps.setProperty("Colour", "WHITE");      configProps = new Properties(defaultProps);      // loads properties from file     InputStream inputStream = new FileInputStream(configFile);     configProps.load(inputStream);     inputStream.close(); }   So I thought if the green radio button was pushed the JTextField would be changed to GREEN and if the text field was GREEN it would change the foreground colour to GREEN. But what happens is the text field changes to GREEN but the foreground won't change.  What am I doing wrong here?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am trying to generate a random number between a given range and 0. The code given below helped me to generate a number between the given range.  (int)(Math.random() * 13 + 4);   Is it possible to modify this code to generate a value between 4 and 10 and also 0

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


I have always wondered about a shape of a soap bubble. Why is it always spherical and not some other shape (like, cylindrical)? And why are the layers of the soap bubbles so thin? Also when someone tries to create a giant bubble, why does it burst so easily?

I suspect this has something to do with thermodynamics and the  and I'm interested in a mathematical derivation of this result.


I'm a bit confused about the druid's spellcasting. I checked several forum posts, the errata and the PH in German and English but still got a problem. The 5e PH says on p. 66:      Casting the spell doesn’t remove it from your list of prepared spells.   Does this mean if I prepared Healing Word only one time I can use it as many times as I want to without resting? It's a big discussion between me, some companions and our DM. It feels way too overpowered to be true but everyone understands it this way.  p. 201 says:     Some characters and monsters have special abilities that let them cast spells without using spell slots. For example, a monk who follows the Way of the Four Elements, a warlock who chooses certain eldritch invocations, and a pit fiend from the Nine Hells can all cast spells in such a way.   Is this such an example? Thank you for your help! Greetings

Our group had some confusion about preparing spells for a Wizard and Cleric. The rules say that you prepare a number of spells from your list and that you tick off spell slots when you cast a spell. In D&D 3.x, if you wanted to cast a spell multiple times you had to prepare it multiple times, but we couldn't figure out from the rules whether or not this was the case in D&D 5e.   So can a spell be prepared once and then cast multiple times?


I installed Dreamweaver 8 on Kubuntu with Wine, and I've already installed LAMP. Now I'm trying to give Dreamweaver root access to my var/www/html directory so I can write some PHP scripts but I can't find any way of doing that—is it possible?  Also is there any other native Linux app that is as good as Dreamweaver (with syntax highlighting)?

Having installed the web server is there a simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www  I gave myself administrative privileges in Ubuntu but it still doesn't allow copies.