Get sum of values of a single cell accross many sheets

I have 10 sheets from the same template with True/False values. I want to count the number of True values in a certain cell across all sheets. I tried the following but it doesn't work. =COUNTIf(['1'!B3,'2'!B3,'3'!B3,'4'!B3, ..., '10'!B3],"=True") Update I figured this works but is there any more convenient way? =sum(N('1'!B3),N('2'!B3),N('3'!B3),N('4'!B3))


Standard $n$-simplex is not a Kan complex

In Lurie's Kerodon it is mentioned as a remark that none of the standard $n$-simplices, i.e. the representable simplicial sets, are Kan complexes. I am curious to see a proof of this 'straight from the definition'. That is, I would like to see why we can't extend every morphism  $\Lambda^k_i\to \Delta^n$ to a morphism $\Delta^k\to \Delta^n$. I have tried a few things, but not really anything mentionable. Any help is welcome! edit: as an administrator pointed out, the case $n=1$ is indeed already given as an answer to . However, I am still interested in a generalization to arbitrary $n$.


How to find specifics of what Defender detected in real time protection?

Windows Defender very quickly popped up a notification saying it has taken action to prevent against malware. I need to know the details. This happened while I was downloading pictures from Google Photos, but I also have a hunch that a program I recently installed to improved privacy on Windows 10 warned it sometimes gets flagged as malware.   To be clear I'd like to know which file was detected, if it was deleted or quarantined, and which virus it was detected as.


May I change the notification of low battery?

I always wonder that when receiving this notification. I'd like to change the 10% value to 25%. May I? Thx in advance!!!!


What happens when a charge spins at near- $c$?

I asked a similar  but it was closed with no valid reason, this question asks a surely legit question of what happens when a charge moves at $c-\epsilon$.  Consider an electron that actually spins at c-1 planck's L. I imagine that even such a little difference means a lot, but even so, can you tell me what happens? I read some articles that justify all electrons properties just by it spinnin at c: they mention auto induction, magnetic pressure (?) that compensates charge repulsion, resonant frequency of LC circuit etc...  [Note: do you know why the actual spinning of the electron has been discarded and a meaningless 'intrinsic' property has been accepted? I know little of the mentioned processes an formulas, but one thing strikes me as plain and obvious, if the charge spins at near c the magnetic attraction almos compensate the repulsion, and the residual force explains the perfect spherical shape. Also, using the classical values, the magnitude of the spin is short by a factor smaller than 10 and  a spin at 0.995 c already produces an angular momentum 10 times greater.]  Can you please focus on (auto-) induction if it exists, or on what could cause a boost of the original energy?  edit  since it has been considered a duplicate: isn't there a great difference between speed at near c or at c, in the consequences a charge would experience when it can be affected byits own electrostatic force?


Why is : $ \mathrm{dim} \ ( S_X )_d = \begin{pmatrix} n+d \\ n \end{pmatrix} - \begin{pmatrix} n+d-s \\ n \end{pmatrix} $?

In page : $206$ of the following electronic textbook :  , the author says that the Hilbert function of $ S_X $ is : $$ \mathrm{dim} \ ( S_X )_d = \begin{pmatrix} n+d \\ n \end{pmatrix}  - \begin{pmatrix} n+d-s \\ n \end{pmatrix} $$ with, $ X $ is any hypersurface of degree $s$ in $ \mathbb{P}^n $.  Can you explain to me please, what is $ S_X $, and how do we obtain this formula above ?  Thanks in advance for your help.


Virtual PC 2007: A internal virtual machine error (3) has occoured. Please restart the machine

I'm trying to install Windows 10 Technical Preview on Microsoft Virutal PC 2007 SP1.  When I start it up to the windows logo for the restart it says:


Logic statements between a string and a scanner input isn't working

Ok, so when I run this code, then put in the value "y" as the input value for variable response, I keep getting a printed result of false for the logic statement (response == "y"). What am I doing wrong?  import java.util.Scanner;  class Main {    public static void main(String[] args) {      Scanner UserInput = new Scanner(System.in);        System.out.println("\nResponse:");      String response = UserInput.nextLine();      System.out.println(response == "y");    }  }


I am a new latex users and in a report must print this type of summation     What is the latex code  Thanks to Steven B. Segletes I have obtained this result:    I need to reduce the space highlighted


I am trying to prove that $(a,b)^2=(a^2,b^2,ab)$ and was told that this follows from some very basic $\gcd$ laws. What am I not seeing?


If it is feed when one gives food to a person, what is it when water is given?

When a person, say a guest, comes into a house, the host might think "I will feed my guests." But what if the guests need water, would the host say "I will water my guests" -- Because that sounds a bit odd (since water is generally used for plants). Which leads me to my question, is there a word for giving water to a person?


Yesterday, I created a bootable USB using UNetbootin. I created it with Windows7.iso file. It was successful.   The problem is when I booted my USB onto computer, it just show me this window without proceeding to Windows 7 installation.     After that, I pressed Tab key. Then this screen appeared :     To be honest, I didn't got any ideas what to do. Is there any commands to run in this window ?


Why the bias against subjective questions?

It seems more and more lately that people on this site dislike subjective questions, as opposed to ones about narrow, technical topics. I don't understand this. I see two reasons as to why subjective questions should be respected:   Understanding multiple points of view on a subject makes you more informed and allows for better decision making. I like to post subjective questions just to understand what the different arguments are. Yes, people argue, but a healthy debate is a good thing and attacking a point of view is not the same as attacking someone personally. They're fun.   Given the above, why does the community seem to hate subjective questions more and more lately?


Not a "formal" word, but most of our current day mobile texting is not formal, a whole new evolving language... I use "Efficate" as: "... What can I do to best efficate Laura's desired outcome?"


This question has been on my mind for quite some time. I don't really have in-depth knowledge about singularities, but from what I understand they rupture the spacetime and they are hard/impossible to describe in a scientific way, because you are dealing with infiniteley dense objects in an infinitely small point. Somehow it seems reasonable to me to assume, they don't exist to avoid all this trouble. As I understand it, one way that a singularity forms is by a massive star collapsing to a single point under its own gravity. But that's just how the collapsing star experiences it, right? For the outside world, this never happens because time slows down more and more as seen from the outside. So the singularity is never finished and hence does not exist. All we see, are objects that are endlessly becoming singularities, so the math is still finite. No more headaches. What are your thoughts on that?


Grouping 1D data to find intervals with most data points

I have a sorted list of integers. From this list, I would like to find intervals of numbers in which most of the numbers are concentrated.  I have used K-Means with R and played around with the k parameter to visually identify ranges, but I am not satisfied with the justification of this method as I'm not sure how to evaluate how good each clustering scheme is.  Would it be possible to use something like Kernel Density Estimation to get the ranges?


What kind of Super Saiyan transformation did Trunks use when fighting Zamasu?

According to Dragon Ball Super's manga, Trunks is able to transform to SSJ2 which was used to defeat Dabura and Babidi. When he traveled to the past, he didn't know about Goku's SSJ3.  In the fight against Zamasu and Black, he transformed into a powerful Super Saiyan form, for a moment and could handle a battle with Zamasu, apparently this is not a stronger transformation like SSJGSSJ (Super Saiyan Blue).   Also this transformation has a similar Ki aura of a Super Saiyan Blue, but he keeps hair of a SSJ2. So, what transformation is this?


How to check the integrity of Live USB in Ubuntu

I'm trying to install Ubuntu from a live USB but always encounter errors in the copying files installation phase.  The error message says that this I/O error are commonly due to faulty Medium or HDD. I'm checking my SSD and making a new Live USB to try again.  So this is my concern I can md5sum the ISO I download, but how do I check the live USB is good?


Are \( and \) preferable to dollar signs for math mode?

Along the lines of , what reasons are there (if any) to favor \( ... \) over $ ... $?


How distorted does the Andromeda Galaxy appear to us due to the speed of light?

The Andromeda Galaxy appears to us at an angle to the galactic disk, i.e. we are not in the Andromeda Galaxy disc's plane, nor are we near the direction that the galaxy's pole points. Therefore, due to the geometry and distances involved, it would seem to me that we are seeing the 'far edge' a few thousand years later than we are seeing the 'near edge'. How far can a galaxy spin during that those few thousand years, and therefore how distorted are we seeing Andromeda? Can we infer how Andromeda or other large spiral galaxies seen at an angle would look if light were to travel instantly?  Might this phenomenon account for some of the unusual spin properties measured in galaxies, which is attributed to dark matter?


Create shorcuts in a terminal to navigate between folders

I am looking a way to create shortcuts for the cd command. My goal is to go quickly to distant folders. I have a new (big) drive which is not in my /home folder (but in /media/user/xxX/yyy/) and I need to access all the time to this location.   Is it possible to create a command such as "cd my_distant_folder" which save my the time to write the entire path?  I already thought about alias in my ~./bash_aliases but it would be a new command and not an argument of the cd command.


How to install Estru3D - Structural Analysis Software?

I had problems installing Estru3D. It requires Gambas3 to be installed as a prerequisite. But it doesn't work with the newest Gambas3 installed in Ubuntu 16.04.


Why is most of my RAM always being used?

I got one of those phone boosters for Android but it looks like it does not work very well because when I run a clean it stops at 88% or somewhere and immediately tells me that I have to clean again.  I figured that it is some kind of bug or that an app is using a lot of RAM and it can't be cleaned.  Is there a way to clean more RAM so my phone can get faster?


Syntax highlighting with less, trouble with lexer

I have installed python-pygments and using it for syntax highlighting with less as described by mankoff  I put a function in my .bashrc  cless () {     pygmentize -f terminal "$1" | less -R }   it is enabling syntax highlighting with less. But when I am going to open a file like /etc/fstab or /etc/apt/apt.conf a error saying  Error: no lexer for filename '/etc/apt/apt.conf' found   I found option to show pygmentize the lexer with -l at this . But what will be the appropriate lexer for such files? and how to use it?


On which SE should one post questions relating to deep learning?

Practical, yet not code-related, questions about deep learning: where should they be posted? As far as I can tell, they should go either on  or on .


Ubuntu software center disappeared on Ubuntu 20.04

So, I've just installed Ubuntu 20.04 and after less than 5 minutes ( without even configurated the system nor installed nothing) the "Ubuntu Software center" icon disappears and is "replaced" with the snap store one. Ubuntu fully switched to snap store (even changed the logo, I mean: changed the orange beautiful store logo for the snap store default one) or is just a kinda of bug Wich happened to me? Greetings from Brazil! PS: sorry about my bad English


Files that are named the same, e.g.  File.txt File(2).txt File(3).txt File(4).txt   And so on. How do I do so that no matter how many files with the same name I throw in in the same directory they will all be edited by my script? Something that makes Python take e.g. File(Some number here).txt and edit them no matter what number is present?  New explanation  param = 'ORIGINAL PARAMS/PARAM.SFO' with open (param, 'rb') as p, open('PATCHED PARAMS/PARAM.SFO', 'wb') as o:         o.write(p.read().replace(b'\x85', b'\xA5'))   I want this to open files in the directory 'ORIGINAL PARAMS' with same names as described above. Then it should edit them, then output them to 'PATCHED PARAMS' with the same names but bytes x85 changed to xA5.  Also @BoboDarph, your code didn't work for me.


A surjective ring homomorphism can map a local ring to a local ring

This question is from Chapter 2 of Lang's Algebra. Let f be a surjective ring homomorphism mapping ring A to ring A', assume A is local and A' is not zero ring. How to show A' is also local?  I am trying to solve this question by directly using the definition of local ring, i.e. the local ring is a commutative ring with only one maximal ideal. However, I don't know how to proceed further..  Thank you so much for your hints!


Is there a way to automatically transpose a matrix written in Latex?

As writing matrices in LaTeX is an extremely time-consuming activity, I was wondering if a software or a site exists that automatically gave the transposed form of a matrix, that is to say, given a matrix:  \begin{bmatrix}    0 & -1 & -1 \\    -1 & -1 & 0 \\    -1 & 0 & 1 \\    1 & 0 & 0 \\    0 & 0 & -1 \\    -1 & 2 & 1  \end{bmatrix}   it will produce a transposed matrix, with the columns in place of the lines and conversely...  It would be particularly time-saving!


16.04: Terminal doesn't open by clicking on icon, ctrl-alt-t, or gnome-terminal in xterm

Hi I am a beginner in using Ubuntu (16.04) and I recently installed new libraries for python3 Tensorflow, pandas, and a couple others. However, I lost the ability to open terminal using Ctrl+Alt+T, clicking icon in applications, or gnome-terminal in xterm. When I do run in xterm I see   import error: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.py)   I can open terminal by right clicking and selecting open terminal. Is it possible to restore the ability to open it the other ways?


Why are my shapes being warped when scaled in Illustrator

When my shape is scaled, it gets jagged and warped. I think it is because I have too many anchor points but removing them changes the shape. How do I keep the exact shape without it warping?


How do I create a depth illusion effect with a spots pattern in Illustrator?

I need help creating such a graphic in illustrator or photoshop using simple tools and maintaining the perspective effect in sharp folds (contrary to wrap tools)  I tried mesh tool but couldn't figure out a way to have the slanted effect.    any ideas?


Do bugs love light bulbs because they resemble the stars or is it the sun? How do they sense the bulb? What is the purpose of this "brightophilia" that has evolved in insects?


When should I use the java 5 method cast of Class?

Looking through some code I came across the following code  trTuDocPackTypdBd.update(TrTuDocPackTypeDto.class.cast(packDto));   and I'd like to know if casting this way has any advantages over   trTuDocPackTypdBd.update((TrTuDocPackTypeDto)packDto);   I've asked the developer responsible and he said he used it because it was new (which doesn't seem like a particularly good reason to me), but I'm intrigued when I would want to use the method.


Removing a DE field when DE is used in a data relationship

I have a Data Extension field I'd like to delete, but that DE is used in an attribute group/set in Contact Builder. So is it really necessary to delete the data relationship first before I can remove the field? Seems too risky if that's the case.


If $\tan(\frac{\pi}{4}+\frac{y}{2})=\tan^3(\frac{\pi}{4}+\frac{x}{2})$,then prove that $\sin y=\frac{\sin x(3+\sin^2 x)}{(1+3\sin^2 x)}$    $\tan(\frac{\pi}{4}+\frac{y}{2})=\tan^3(\frac{\pi}{4}+\frac{x}{2})$ $\frac{1+\tan\frac{y}{2}}{1-\tan\frac{y}{2}}=(\frac{1+\tan\frac{x}{2}}{1-\tan\frac{x}{2}})^3$ Applying componendo and dividendo rule on both sides, $\tan\frac{y}{2}=\frac{\tan\frac{x}{2}(3+\tan^2\frac{x}{2})}{(1+3\tan^2\frac{x}{2})}$ I am stuck here.


I want to basically upload a research preprint to arXiv. I want my paper to exactly look like this paper  including the hyperlinks in the bibliography.   Can someone please tell me how the scratch tex file should look like to achieve this.  Any help is appreciated.


I am creating a 2D game for mobile phones. It's in pixel style. Now I want the player to be able to create his own character based on givin items like: Hair, Eyes, Skin, Clothes, etc. (like in Starbound for example)  What is the best way to achive that. Should I create everything as a single texture with all frames of the animation of it (like a moving hair and clothes) and after the creation of the character, put those together to a single sprite with the giving items and frames? Or do you guys have any better ideas?  I am thankfull for every piece of help!  EDIT  Actually I did not started programming the character generation yet. I am creating a RPG and want the players to be able to create individual characters (also with armor contents). Just kind a like in Starbound.   What I want from you guys are the best ways to realize such a system. With best I mean fast, simple and safe.


In char x[10]="hello" , why cout<<x; doesn't print out the array's address?

As in   int x[3] = {1, 2, 3, 4}; cout<<x;   would print out x address. But if I choose character array, like   char x[10]="Hello";   it prints out the string      Hello   And let's say compiler is smart enough to understand that in case of char array , it is point less to print out address and so it prints out the string instead, then how do I print char array address?  And consider this statement  char *ptr = "hello";   Why is this legal, Aren't pointers supposed to store only address?


Evaluate $$\frac{\sum_{n=1}^{99}\sqrt{10+\sqrt{n}}}{\sum_{n=1}^{99}\sqrt{10-\sqrt{n}}}$$   Both the top and bottom do not telescope and and last and first do not add up to something nice, so I do not know how to proceed. Thanks!


I am facing some issues when i am trying to write sudo command. Ex. If i run $ sudo -i command then i got - This errors : sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin  Please help to solve this errors. Thank you.


How to calculate any logarithm without calculator?

I'm not talking about logarithms like $\log_2 \sqrt{32}$, that's really easy for me. I want to calculate without tables logarithms like $\log 17$ or $\ln 912$. Can you tell me how I can do it, please?


How to creat the symbol `\not\Leftrightarrow`?

I want to type the symbol \not\Leftrightarrow. I tried with  \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \[\begin{cases} A\cdot B \geqslant 0,\\ A \geqslant 0 \end{cases} \not\Leftrightarrow \begin{cases}  B \geqslant 0,\\ A \geqslant 0.\ \end{cases} \] \end{document}     I think, it is not nice. How can I creat that symbol?


Recently, I have answered a few questions that were upvoted by factors more than the accepted answer, but not accepted. , at the time of my writing, has an accepted answer that the asker said was not what he wanted. I don't know why. In the future, when people view this, people might only look at the accepted answer and move on. Would it be possible to have a "community accepted" feature? Maybe only the people at the top can vote to accept it or something. How much rep, if any, should go to that person?


Why does torque point perpendicular to direction of the motion?

I have an intuition problem  calculating torque using the cross product formula.  As for example let the magnitude of the force be 50 lbs and length of the  wrench be one foot and you are exerting force in a clockwise motion and the angle you apply the force 60 degrees.  This is an example so I can ask my question.  Using the right hand rule the torque points  perpendicular to the force you are applying to the bolt. In this case since the sine of 60 degrees is about .86 it would be (.86)(50) foot lbs. How can the bolt turn clockwise if the force is concentrated perpendicular to where it needs to turn?  The cross product formula demands the torque be perpendicular. Obviously my mistake but I don't see where.


How do you acquire the Bronze Badge and Popular Question badge?

Quote from wiki     Bronze Badge - You must have a total score of 100 in at least 20 non-community wiki answers to achieve this badge.    Question  Does this mean you have to have a total score of 100 at each of these questions or is it about the score alltogether?  Quote from wiki     Popular Question - Asked a question with 1,000 views. This badge can be awarded multiple times.   Question  Does this mean that you receive this badge for every 1000 views on a question or for every question that has a 1000 views or more?


Determining Resistor for Heating Element

I am attempting to run a Molybdenum heat coil. The best I can tell it is 0.3-0.4 ohms per rack and I would like to run say two racks at 230V at 3.9KW (so it doesn't trip my 230V 20 amp breaker).  Does that mean, assuming a value for two racks is a total of 0.8 ohms, can I add a ~12.7641 ohm resistor for a total resistance of 13.5641 to run it at 3900 watts at 230 volts?  If not, how is it possible to run these? Do I need a lower voltage supply with more current?


Is -1 followed by a singular or plural noun?

Do we say "-1 thing" or "-1 things"?  I am interested in both      two things minus one thing(s)    and      minus/negative one thing(s)


Why is BJT called as current controlled current source and FET as voltage controlled?

If BJT amplifies only current then why CB configuration has voltage gain but no current gain?


Harmonic mean of precision, recall and specificity

I have a system whose performance was characterized in terms of the amount of true positives (TP), true negatives (TN), false positives (FP) and false negatives (FN). There is a rate that summarizes all this quantities in one, called accuracy, and is defined like so (according to ):  $$ a=\frac{\text{TP}+\text{TN}}{\text{TP}+\text{TN}+\text{FP}+\text{FN}}. $$ How ever, according to this , the F-score is a better choice than accuracy because it works even if I the class distribution is uneven. F-score is the harmonic mean of precision and recall, but it does not include the amount of true negatives (TN):  $$ F = \frac{2\text{TP}}{2\text{TP}+\text{FP}+\text{FN}} = \frac{2}{\frac{1}{p}+\frac{1}{r}}. $$ To consider the amount of TN could I calculate the mean of the precision, recall and specificity like below?  $$ u = \frac{3}{\frac{1}{p}+\frac{1}{r}+\frac{1}{s}} $$ How is that called? And why it haven't been used before?  Note: this question is not the same as the one discussed , because I am asking why F-measure does not include specificity (and if I can include it), not why accuracy is not a good metric for an uneven number of positives and negatives.    Trying to answer my own question I see that: $$ u=\frac{(3\text{TN}\,\text{TP})}{(3\text{TN}\,\text{TP})+\text{TN}\,\text{FN}+\text{TN}\,\text{FP}+\text{TP}\,\text{FP}}, $$ which I do not know how to interpret. Perhaps I should start using the , given that Wikipedia says it is one of the best measurements to describe the confusion matrix (and "can be used even if the classes are of very different sizes"). After all, I was looking to include TP, TN, FP and FN in a single quantity.


Determine if a Letter or a number was pressed - Javascript

So I know that we can find if a key was pressed, and we can know which key was pressed by using javascript.  To determine if a key was down or pressed we can just use jQuery  $( "#some id" ).keydown(function()    or   $( "#m" ).keypress(function()    But this does not work pretty good for me. I am trying to determine if a letter, or a number were pressed.   BUT, to be efficient, I don't want to check with a big if (or a for loop, worse) whether the key pressed was a letter or a character(by comparing and checking the character code)  Is there like a built in javascript function that determines if a number was pressed or a letter was pressed? is there an efficient way of doing this? or I am just overcomplicating things?


Can pmset's ChargeInhibit be used to prevent battery charging?

I've been using my MacBook with AC power a lot lately and I thought that if I could use pmset to run on AC power whenever available and keep my battery at roughly 50% that would extend the life of my battery and AC adapter. I know that it's advisable to  the battery.  I'm running OS X 10.10, Yosemite, on a mid-2012 Macbook Pro. I read that in Mac OS X 10.6 pmset could be used to prevent the battery from charging.  Is there any way to do this other than putting a piece of tape on the charger?


As a dev shop we have a number of ancient ultrasparc systems running Solaris 8 and 9 which we use as build hosts. I'm wondering what it takes to consolidate these machines as legacy containers onto say a used T5140 running Solaris 11. As long as I already have the Solaris 8 and 9 systems, are there any additional license cost for the legacy container functionality?   Can I still run Solaris 11 for free, or will such a setup count as "production" use?


Please give me some link to help me understand this       var obj = {   a: 1 }; (function(obj) {   obj = {     a: 2   }; })(obj); console.log(obj.a);   logs out 1 whereas this   var obj = {   a: 1 }; (function() {   obj = {     a: 2   }; })(); console.log(obj.a);   logs out 2


And as he ate it, she looked at him steadily.   In this sort of grammatical constructions, "she" works as a subject of the sentence with active voice.    Now, consider a sentence which I read in The Hindu:       And as the nation heard and saw him, a sense of India's greatness stirred within it.     Now, in this sentence "a sense" is working as  noun but the part "within it" is making this sentence passive unless there were "was" before "stirred". So, is this sentence correct?


Prove ${y_n}$ is a basis for a Hilbert space $H$.

Let $\{x_n\}$ and $\{y_n\}$ be orthonormal subsets of a Hilbert space $H$. If $\{x_n\}$ is a basis for $H$ and $\sum_{n=1}^{\infty}\|x_n-y_n\|^2<1$, prove $\{y_n\}$ is a basis for a Hilbert space $H$.  For any $z$ in $H$ , suppose $\langle z,y_k\rangle=0$ for all $k$, I want to show $z$ must be the zero vector. Write $z=\sum_{n=1}^{\infty}\langle z,x_n\rangle x_n$, then we have $\sum_{n=1}^{\infty}\langle z,x_n\rangle \langle x_n,y_k\rangle=0$. But I have no idea how to deduce that $\langle z,x_n\rangle=0$ for $n$ so that $z=0$ since $\{x_n\}$ is a basis.


Difference between EXISTS and IN in SQL?

What is the difference between the EXISTS and IN clause in SQL?  When should we use EXISTS, and when should we use IN?


What does it "they like me for me" mean?

What does the following mean?  They like me for me.  I have never seen this expression before.


Groups that are finite unions of cosets of cyclic subgroups

Suppose $G$ is a group and $G = \bigcup_{a \in A} \langle a \rangle B$ for finite sets $A, B \subset G$. Is $G$ virtually cyclic?


Unicode keyboard layout missing on Tamil

After upgrading to Ubuntu 17.04 from 16.10, I've lost the feature of typing in Unicode layout for Tamil language. Also there is no option to select Tamil (India) which was present in the version 16.10; instead it shows only Tamil (Sri Lanka).  I don't know how to get those things back. Currently I'm using IBus for typing in Indian Languages. But I wish it could be there in default keyboard options.


Trying to figure out if two line segments intersect

I have a line segment made of two points p1 and p2, and a second line segment made up of points p3 and p4. I'm trying to figure out if they intersect, and so far, I have had no luck. This is my code so far:  public static double angle(Point p1, Point p2, Point p3) {     double AB = length(p2, p1);     double BC = length(p2, p3);     double AC = length(p3, p1);     return Math.acos((sqr(BC) + sqr(AB) - sqr(AC)) / (2 * BC * AB)) * (180 / Math.PI); }  public static boolean doIntersect(Point p1, Point p2, Point p3, Point p4) {     double a = angle(p4, p3, p2);     double b = angle(p3, p2, p1);     double c = 180 - b - a;      System.out.println("a: " + a + ", b: " + b + ", c:" + c);      if((length(p3, p2) * Math.sin(a)) / Math.sin(c) > length(p2, p1)) return false;     if((length(p3, p2) * Math.sin(b)) / Math.sin(c) > length(p3, p4)) return false;     return true; }  public static double length(Point point1, Point point2) {     return Math.sqrt(sqr(point1.x - point2.x) + sqr(point1.y - point2.y)); }  public static double sqr(double doub) {     return Math.pow(doub, 2); }   But this isn't working. Sometimes, the angle "c" even comes out as negative numbers.  Also, Point is a custom class with two parameters: x and y. Should be fairly self-explanatory.


So I can pronounce friend just fine. But when you add an s to it how do you transition from the d sound to the s (/z/) sound? Do you just ignore the d altogether?


synchronize functions, or lock object in thread?

we can synchronize the functions in a class, or we can lock its object in the thread, to create thread safety on a object.      class DBresource {          synchronized public void dosomething() throws InterruptedException {             ...             ...         }     }   OR  class MyThread extends Thread {      public void run() {         synchronized (r) {             r.dosomething();         } }   Which is advisable and why?  Further, i could lock on the class DBResource too. How would that be different?  OR, use a dedicated Lock object. Is that discouraged or prefered and why?  Thanks.


Why does your reflection suddenly turn upside down while slowly walking away from a curved mirror?

Many people should have realised, when looking into a concave curved mirror (or even a rather reflective spoon in that fact) at a close distance, you will see a slightly distorted reflection. But as you move further away, the image will suddenly become upside-down.  why is this?


Using percentiles as predictors - good idea?

I am thinking about a problem which is to predict log(spend) of a customer using linear regression.  I am considering what features to use as input and wondering if it would be OK to use the percentile of a variable as inputs.  For example I could use the companies revenue as a input. What I'm wondering is whether I could use the company revenue percentile instead.  Another example would be a categorical industry classifier (NAICS) - if I were to look at median spend per NAICS code and then assign each NAICS code to a 'NAICS Percentile', would that be a valid explanatory variable I could use?  Just wondering if there are any issues to be aware of when using percentiles? Is it in some ways equivalent to a type of feature scaling?


I've got a stylesheet that will not, for whatever reason, apply list-style-type to a UL element. I'm using YUI's Grid CSS with their reset-fonts-grid.css file, which I know strips that out as part of the CSS reset.  After calling YUI, I call the stylesheet for the website and in there have a block for UL:  ul {list-style-type: disc;}   I've also tried setting it via list-style but get the same result. I know that the above CSS block is getting read as if I add things like padding or margins those do get applied. The style-type isn't showing up in either Firefox or IE.  The only other CSS I've applied to UL's are in a #nav div but that CSS doesn't touch the list-style-type, it uses the reset that YUI provided, and YUI and the site style sheet are the only two CSS sheets that are called.  I've also got FCKEditor on the admin side of the site and that editor does show the bullet styles so I know it has to be something with the CSS that isn't being filtered by FCKEditor.


How to combine 2 -name conditions in find?

I would like to search for files that would not match 2 -name conditions. I can do it like so :   find /media/d/ -type f -size +50M ! -name "*deb" ! -name "*vmdk"   and this will yield proper result but can I join these 2 condition with OR somehow ?


Windows 8.1 high System process CPU usage due to MmTrimAllSystemPagableMemory, why?

Every once in a while (I can't pin down exactly when, but it seems to be correlated with when the computer is idle for a while), the System process on my Windows 8.1 x64 machine  suddenly starts using 100% of Core 1 of my CPU (8-core, so 12.5% of total CPU time). To fix it, I usually just reboot (the laptop fan noise is annoying) -- although I recently noticed it seems to automatically calm down after 5-10 mins of activity.  I've tried to find the culprit using Process Hacker, and it seems to be the function MmTrimAllSystemPagableMemory as shown in the image below.  I don't remember if this happened on Windows 8.0, but this has never happened to me before, when I've had Windows 7 or earlier. So I'm confused what has changed, because this is a pretty old function.  What might be causing this? Is there some way for me to prevent it?    For what it's worth, it seems this is related somehow to a Task (ResolutionHost?) and relevant APIs include MmScrubMemory and CMemoryDiagnosticHandler:


How can I pass parts of a list to different variables?

Is it possible to pass parts of a list to multiple variables to create new lists? I  have a list with 12 words and I want to take the first 4 words and place them in a new list and so on until I have all the words new lists containing 4 words each.  sample1 = ['d', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o'] print(sample1) row1, row2, row3 = sample1 print(row1) print(row2) print(row3)   I get the error:  ValueError: too many values to unpack (expected 3)   My desired final result would be:  row1 = ['d', 'e', 'f', 'g'] row2 = ['h', 'i', 'j', 'k'] row3 = ['l', 'm', 'n', 'o']


Is it it bad to become a part-time student in my 4th year and do a 5th year in my undergrad if i plan on applying for grad school?

I'm currently a 4th-year student at a university in Ontario, Canada. Due to covid starting last year, I realized I wanted to pursue a master's after my undergrad and planned out the courses I would need. I didn't have many of the prerequisite courses needed for the master's and had too many courses required for my degree left, so I decided I'll do the 5th year (at the beginning of 4th year, I still had 6 courses required for my degree as well as 6 courses required as prereqs for the masters, and many of the prereqs are also prereqs for each other so I would have to do at least 2 extra semesters of school). Sorry, that may sound a little confusing. Now, also due to covid I realized online school and learning through zoom was not helping my case, and I ended up dropping some courses and becoming a part-time student for this year. Due to needing the prereq courses for the master's program I hope to apply to, I ended up needing to complete 4 courses over the summer of 2020, and as of March 2021, I have been in school every semester since September 2019 and began feeling very burnt out. I decided for my mental health and to get better marks in the courses that were necessary for me to complete, it would be a better idea to go part-time. My question is this: do grad schools view part-time studies like this negatively? I want to pursue a master's in Business/Management Analytics, hopefully in Ontario. I reached out to a couple schools who are my top picks, and they told me they have no problem with part-time studies, they just want applicants to have at least a B+/A- GPA in their final 2 years of school. I recently dropped a course that was focused on Business Analytics because I felt very out of my depth. The course covered topics in Stats and Probability (courses I will be taking in my 5th year because I am completing the prerequisites required for them rn) and I felt extremely lost and did terrible on the midterm. The prof wasn't much help because he treated me like I was dumb when I didn't quickly understand the ideas of things like Support Vector Machines and Neural Networks (topics I'd never covered in the past). I've been beating myself up over this decision for a couple days now because I feel like I gave up on a course that introduces me to many things I planned on doing in my Master's, but I felt it was the best decision for my GPA and overall mental health. Are the decisions I'm making good? I feel fed-up with school right now and feel like the good marks I've gotten are only because of my reduced course-load. I feel like a couple years down the line, I won't regret my decisions. But right now, it feels like I'm taking the easy way out when the harder route would result in a horrible GPA.


To make combine the multiple rows into either one row or two rows by comma separator as per the specified length in SQL server


Any ideas how to determine the number of active threads currently running in an ?


Why jQuery's .empty() off all events on the element in it

Duplicate of      Why jQuery's .empty() off all events on the elements who gotten removed?  If I am using vanilla JavaScript, is removing event listeners when elements removed from document should be considered as a good practice? nowadays. That's all.


I go to the orphanage and I try to talk to the lady and she just says "you should not be here and the children are not up for adoption". What do I do?


My background image won't show up in blender 2.79

as you can see there is nothing there even though I am in top view


Can I combine two Internet connections into one PC using only a switch?

Suppose I have two ISPs (Broadband) with two routers (DSL).  Now I have one switch of say four ports.  Is it possible to connect to both ISPs to one PC and combine the two to achieve faster speeds?  Example:   ISP A gives me a speed of 2Mbps ISP B gives me a speed of 1Mbps   Can I connect to both the ISPs at once to get a total speed of 3Mbps?  Is this possible, or will it show me some type of error? I suspect it will say that the default gateway can't be the same.


Counting the number of permutations of a set of n elements with k fixed points

I need to find the probability that a random permutation of n elements has exactly k fixed points but I am confused on how to do so.   I have found this formula but I don't understand how to derive it.  $D_{n,k}= \frac{n!}{k!}\sum_{i=0}^{n-k}\frac{(-1)^i}{i!}$  I know there are $nCk$ choices for the k fixed points but don't know how to calculate the number of derangement's on the remaining $n-k$ elements. I know that the total number of permutations is $n!$ so I will need to divide the above formula by $n!$ to find the total probability.


I have the following ODE:  $$\frac{d y}{d x}=y^2-(A \csc^2 x+B^2 \sin^2 x-C)$$  where $A,B,C$ are constants.  Can one come up with an appropriate integrating factor to make it exact?   I have been trying various ways such as change of variable: $y=z \sqrt{A \csc^2 x + B^2 \sin ^2 x-C}$, but none of them seem to work.  Edit:  As pointed out in the comment, I am sorry to not have linked my duplicate question in MSE in the first place. I had already asked the same question in MSE, and as I was not getting any response I thought of asking here.  Duplicate question in MSE:


Privileges at/after 1K not appearing in Achievements dialog?

Today I exactly reached and then passed 1K reputation on .  Nothing about this was listed in my Achievements Dialogue (upper left corner) as seemed to be the case for other achievements at lower levels on that and other sites.  The change was noted on the . Are notifications not given beyond a certain point, by design? If so, that's fine.  If not, then this is a bug; I mention it for the possibility of the latter.


"There is" or "There are": which is appropriate before "a whole slew of academic articles"?

There are a whole slew of academic articles.   To me, it seems that this sentence should say "There is a whole slew of academic articles," because the agreement should be with "slew." But I'm having a hard time finding which is correct and why after much Googling.


Did the event in Infinity War affect animals?

We know that Thanos      killed half of the universe, but did he only kill advances lifeforms or simpler ones, too?   Is there any evidence or examples where Thanos cut the line between different lifeforms?  I think Thanos is a really consequent character, so it would be reasonable      to disintegrate half of all life.   There was a question (unfortunately I can't find it anymore), if the event affected half of the population of every planet, or the whole universe. So my follow-up question would be:  Did the event affect half of all lifeforms on a planet as a whole or only half of one specific species separately?      Note that on the latter case the chance that all humans die/live can vary much more, because only one litre of water contains millions (or billions) of animals, so the number of humans is insignificant.


Self Collision - Blender Cloth Sim shrinks mesh

I have been searching for days and have not been able to find an answer to this question. I have a simple model.  A thin cube with default collision physics applied and a plain 1x1 with default cloth physics applied.  I checked self collision, leaving this default too. I get the below result only a few frames in.  It is like the mesh shrinks rapidly.  I have relaxed the stiffness. lowered the weight.   Also rendered with out self collision fine....I can not seem to work out why this is happening. I have a sub divide on the plain with 6 steps...!  lowering decrease render time but doesn't help the shrinking.


A CSS way of using  on divs without heights?

I used to add
 at the end of a div, without a height value in CSS, to set it's height.   The divs shrink and grow depending on the content.  Is there a more eloquent way of setting the div heights of all boxes to the height of the tallest box, without using
? Baring in mind the divs change height depending on what is inside them.  Here's an example of the code:

TITLE

Body copy 1

Title 2

Text text text text text text text text

Title 3

Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text


So I am trying to install Ubuntu, I had it before but I removed it because i couldn't re install it, i thought it would work but it didn't. So I cant boot into the install anymore, it says:   SYSLINUX (not sure the number) EDD 4.06-pre7 Copyright (C) 1994-2012 H. Peter Anvin et al  I am trying to boot from a PNY usb flash drive, I know its not the usb because i used this to boot into it brfore also i cant boot into any other linux distro either, so can someone please reply?


A question on the representation of all integers in terms of the sum of other interger cubes

The question is from a book used for transition between high school mathematics and university mathematics, which states: Prove the following statement or give a counterexample      $\forall n \in \mathbb Z, \exists a,b,c,d,e,f,g,h \in \mathbb Z$ such that $n=a^3+b^3+c^3+d^3+e^3+f^3+g^3+h^3$   After several trials I believe the statement is true but find it difficult to prove. Could somebody offer a solution without reference to congruence? I can see that if one choose $a,b,c,d,e,f,g$ equals from $0 \:to\: 1$ each then $n \in {1,2,3,4,5,6,7,8} $ can be represented. For the next eight numbers, by choosing $a=2$ and adjusting the remaining parameters from $0\:to\:1$, can also be achieved. Thus I suspect all numbers can be represented this way, but, having said that, I still feel hard to find a proof.


Will merchants give me better prices if they like me?

I saw  on disposition, it says that NPCs with more positive disposition will be nicer.   Will merchants give better prices to customers they like?


Monotone functions and non-vanishing of derivative

The following result is well known:     If $f$ is continuous on $[a, b]$, differentiable on $(a, b)$ and $f'$ is non-zero on $(a, b)$ then $f$ is strictly monotone on $[a, b]$.   However if the derivative vanishes at a finite number of points in $(a, b)$ and apart from these derivative maintains a constant sign in $(a, b)$ then also the function is strictly monotone on $[a, b]$ (just split the interval into finite number of intervals using these points where derivative vanishes and $f$ is strictly monotone in same direction in each of these intervals).     Let's suppose now that $f$ is strictly monotone and continuous in $[a, b]$ and differentiable in $(a, b)$. What can we say about set of points $$A = \{x \mid x \in (a, b), f'(x) = 0\}$$ Can it be infinite? Can it be uncountable? How large the set $A$ can be?


Spotlight search stopped suggesting my frequently-used app

I use Spotlight Search frequently to launch apps on my Mac, and it works perfectly. I use Telegram Desktop frequently by typing a few letters in Spotlight Search. I just type a few letters and tap enter and it opens. Simple as that.  However, today it started not finding it. Instead, it shows this:    The app is there, launches perfectly manually from Applications folder:    But in Spotlight Search, it's not being suggested. I've got Applications option ticked in Spotlight options from System Preferences (though I haven't touched it anyway) and it suggests other apps from the Applications folder with no problem. I am on macOS 10.12.6.  How can I fix this problem?


How to build an equivalent of littlesnitch or zonealarm under linux?

The question :  asks for a reverse firewall used to monitor, preventing or permitting network access, at the process level, with a GUI. There is two such applications namely  and  but they are no more  maintained.   My question is the following : How can we combine existing tools and libraries to build a similar application under linux with a GUI or a text based interface?


Uncountable chain of subsets of $\mathbb N$

Denote by $\mathbb{N}$ the set of natural numbers and by $2^{\mathbb N}$ the set of all subsets of $\mathbb N$. Let $E$ be some subset of $2^{\mathbb N}$ such that for  every pair of elements in $E$, one is a subset of the other. Clearly, $E$ could be countable by considering $E=\big\{\{1,\cdots, n\}, n\in\mathbb N\big\}$. My question is the following: could we find an example that $E$ is uncountable? Many thanks for the answer!


How does the Cross section of a toy hovercraft affect on the time that it hovers?

My question is about a toy hovercraft - a balloon connected to a CD. I need to know about something. How does cross section of the pipe affect the time that the toy hovercraft hovers above the surface?


Is there any element of order $51$ in the group $U(103)$

Does  there  exist  an  element  of  order  $51$  in  the  multiplicative  group  $U(103)$ ?  Now  if  the  element  exist  say $x$  then  it  satisfies  the  equation $$x^{51}\equiv 1\pmod {103}$$ . Now $103$  being  a  prime  it  is  clear  that  there  is an  element $y$ in  $U(n)$ satisfying  $$y^{102}\equiv 1\pmod {103}$$  So  exactly an  element  of  half  order is  required  to  be  found.  Is  there  any  result  in  number  theory that  might imply  that  $$a^{p-1}\equiv 1\pmod p$$ ensures  the  existence  of  some  $b$  such that $$b^{{p-1}\over {2}}\equiv {1}\pmod p$$  where  $p$  is  a  prime not  dividing  $a$


Tiny navigation buttons and tags on responsive mobile

I know it will be hard for you to tell on desktop because the resolution is so high, but the clickable text in the upper left, the icons on the upper right, and the navigation buttons at the bottom are all tiny. I have to squint to read the tags, I can't reasonably tap any navigation button except for Next without zooming, and selecting the achievements dialog, etc. is all very difficult. It seems to me that this would not be terribly difficult to change, so I am posting this feature request. I'm using a relatively large Samsung phone (Note 8), so I can imagine it would be worse on smaller phones.  Edit: I see from posted images that the responsive design on other phones looks nothing like mine. I'm wondering if it has something to do with the high resolution  where it thinks it is bigger than it is, or it's picking the wrong sizes because it's a tiny bit over some size threshold, in which case this would be a bug.


What is the best position for mudguard in cycle

I have a MTB/Hybrid which I use for exercising and leisure purpose. It have installed MTB style mudguards. But when I get out with these my back is full of mud/water drops.   So what is the best position for these style of mudguards? Specially rear mudguard. I have attached the photo of my bike which shows the position of my mudguard. Can changing these position will improve the effectiveness?


just installed LAMP server and need to use vim editor to edit php.ini  The command sudo apt-get install vim gives me the following error:  Package 'vim' is not available but is refered to by another package. This means the package is missing or is obsolete, or is only avaiable from another source. E: Package 'vim' has no installation candidate   Please advise


rent a movie and got a null pointer exception

public void rentMovie(){            System.out.println("ENter a customer ID: ");            int ID =In.nextInt();            System.out.print("Enter a movie: ");            String name=In.nextInt();            for(Customer customer:customers){            Optional<Movie> movie = catalogue.getMoviesAvailable().stream().filter(b -> b.getTitle().equals(movieName)).findFirst();            if(movie.isPresent()) {               catalogue.getMoviesAvailable().remove(movie.get());               catalogue.getMoviesRented().add(movie.get());               customer.getCurrentlyRented().add(movie);                customer.getRentingHistory().add(movie.get());           }       }}   When I run this code I get a null pointer exception on customer.getCurrentlyRented().add(movie);  and on  customer.getRentingHistory().add(movie.get());  Can you tell me how to rectify this problem?  Customer Class  public class customer{      private List<Movie> currentlyRented;      private List<Movie> rentingHistory;    public Customer(){      }     }   Catalogue Class  public class Catalogue{     private List<Movie> moviesAvailable;     private List<Movie> moviesRented;       public Catalogue(){       moviesAvailable.add(new Movie("Matrix",1999,new Genre("SciFi"),3));       moviesAvailable.add(new Movie("Jurassic Park",1993, new Genre("SciFi"),4));       }      }   While renting a movie it should also update the currently renting and renting history also on the rent movie class.


Printing out element of array, it shows hash code instead of value

Below is the class. The static method findMax returns arr[maxIndex] and when I try to print that out in the main method I get a memory location instead of the value. I thought to print out a value at a certain index of an array.   I would like to print the value, but without changing the existing method (so I have to fix the problem via the main).  public class Problem1   {      public static <AnyType extends Comparable<AnyType>> AnyType findMax(AnyType[] arr)      {         int maxIndex = 0;         for (int i = 1; i < arr.length; i++)             if ( arr[i].compareTo(arr[maxIndex]) > 0 )                maxIndex = i;         return arr[maxIndex];     }      public static void main(String[ ] args)     {         Rectangle rect1 = new Rectangle(1,2);         Rectangle rect2 = new Rectangle(2,2);         Rectangle rect3 = new Rectangle(3,2);         Rectangle rect4 = new Rectangle(4,2);         Rectangle rect5 = new Rectangle(5,3);          Rectangle[ ] rectangles = new Rectangle[5];         rectangles[0] = rect1;         rectangles[1] = rect2;         rectangles[2] = rect3;         rectangles[3] = rect4;         rectangles[4] = rect5;          System.out.println(findMax(rectangles));      }  }


Different masses in free fall towards a massive body

What explanation is given under A. Newtonian gravity and B. General relativity for the fact that in the absence of atmospheric influences, bodies of different mass fall at equal rates. It's so counterintuative and I can't seem to locate an answer!


Find the square roots of: $8-15i.$  Could I get some working out to solve it?  Also what are different methods of doing it?


Please Explain Kuratowski Definition of Ordered Pairs

I've seen this Kuratowski definition for ordered pairs, but can't fathom why it implies an order to $x$ and $y$  $(x,y):=\{\{x\}, \{x,y\}\}$  As I understand sets, $\{\{x\}, \{x,y\}\}$ is also $\{\{x,y\}, \{x\}\}$. Only when I think about the Axiom of Union does $\{\{x\}, \{x,y\}\}$ "collapse down" to $S = \{x, y\}$, but that doesn't give me much either. All I can see is some as yet hidden message in the set saying "I am the set $\{x,y\}$ and my order of $x$ first is indicated by having $\{x\}$ along for the ride."


How do I install Windows 7 alongside a pre-existing Ubuntu installation?

I purchased a PC six months ago for work related tasks. I do 95% of my work on Ubuntu (web development). Now, I want to install Windows on another partition to play a few games on my relax time. Which steps should I follow? Any suggestions? Every guide I found suggest to install Windows and, after that, Ubuntu. Being this my main development machine, I cannot afford the risk of wiping everything.


Show comments while suggesting edits or reviewing first posts

In the first post queue, I see a question where the asker posted important supplemental information in two comments. So I click “edit”, and the comments disappear: all that's left is the standalone editor, with no link to the post, no comments, nothing but the title, body and tag edit boxes.  To get the comment text, I need to open the same URL in a different tab, and copy the comments across tabs. That's not as efficient as it could and should be.  The same issue arises when suggesting an edit from the post itself: the out-of-page editor doesn't show the comments, and doesn't have a link to the page.   Please always show the comments while editing a post.


I have this XML. I know how to read "EDI_DC40" and get values.    <ns0:ORDERS xmlns:ns0="http://Purchasing/GenericPartner">   <EDI_DC40>     <TABNAM>EDI_DC40</TABNAM>     <MANDT>210</MANDT>     <DOCNUM>1498177</DOCNUM>     <DOCREL>700</DOCREL>     <STATUS>30</STATUS>     <DIRECT>1</DIRECT>     <OUTMOD>2</OUTMOD>     <EXPRSS></EXPRSS>     <TEST></TEST>     <IDOCTYP>ORDERS05</IDOCTYP>     <CIMTYP></CIMTYP>     <MESTYP>ORDERS</MESTYP>     <MESCOD></MESCOD>     <MESFCT>GEN</MESFCT>     <STD></STD>     <STDVRS></STDVRS>     <STDMES>ORDERS</STDMES>     <SNDPOR>SAPR3D</SNDPOR>     <SNDPRT>LS</SNDPRT>     <SNDPFC></SNDPFC>     <SNDPRN>R3DCLNT210</SNDPRN>     <SNDSAD></SNDSAD>     <SNDLAD></SNDLAD>     <RCVPOR>BT_EDIPURC</RCVPOR>     <RCVPRT>LI</RCVPRT>     <RCVPFC>BA</RCVPFC>     <RCVPRN>0002000007</RCVPRN>     <RCVSAD></RCVSAD>     <RCVLAD></RCVLAD>     <CREDAT>20101124</CREDAT>     <CRETIM>085946</CRETIM>     <REFINT></REFINT>     <REFGRP></REFGRP>     <REFMES></REFMES>     <ARCKEY></ARCKEY>     <SERIAL>20101116202544</SERIAL>   </EDI_DC40>   <E1EDK01>     <CURCY>EUR</CURCY>     <ZTERM>Z50D</ZTERM>     <BELNR>4600006935</BELNR>   </E1EDK01>   <E1EDK03>     <IDDAT>012</IDDAT>     <DATUM>20101116</DATUM>   </E1EDK03>   <E1EDKA1>     <PARVW>AG</PARVW>     <TELF1>11111</TELF1>     <TELFX>+111</TELFX>     <BNAME>mataz</BNAME>   </E1EDKA1>   <E1EDKA1>     <PARVW>WE</PARVW>     <LIFNR>1000</LIFNR>     <NAME1>skl</NAME1>     <NAME2></NAME2>     <STRAS>ulica skladišča 5</STRAS>     <STRS2></STRS2>     <ORT01>novo</ORT01>     <PSTLZ>1000</PSTLZ>     <LAND1>AU</LAND1>   </E1EDKA1>   <E1EDK17>     <QUALF>001</QUALF>     <LKOND>CIP</LKOND>     <LKTEXT>Novo</LKTEXT>   </E1EDK17>   <E2EDP01008GRP>     <E1EDP01>       <POSEX>00001</POSEX>       <MENGE>100.000</MENGE>       <MENEE>PCE</MENEE>       <VPREI>1.24</VPREI>       <PEINH>100</PEINH>       <NETWR>1.24</NETWR>     </E1EDP01>     <E1EDP20>       <WMENG>100.000</WMENG>       <EDATU>20101126</EDATU>     </E1EDP20>     <E1EDP19>       <QUALF>001</QUALF>       <IDTNR>000000000000201853</IDTNR>       <KTEXT>NA</KTEXT>     </E1EDP19>   </E2EDP01008GRP>   <E2EDP01008GRP>     <E1EDP01>       <POSEX>00001</POSEX>       <MENGE>1000.000</MENGE>       <MENEE>PCE</MENEE>       <VPREI>2.24</VPREI>       <PEINH>200</PEINH>       <NETWR>1.4</NETWR>     </E1EDP01>     <E1EDP20>       <WMENG>200.000</WMENG>       <EDATU>20101126</EDATU>     </E1EDP20>     <E1EDP19>       <QUALF>001</QUALF>       <IDTNR>000000000000201853</IDTNR>       <KTEXT>NA.CIPRINOL TBL A5 RU</KTEXT>     </E1EDP19>   </E2EDP01008GRP>   <E1EDS01>     <SUMID>002</SUMID>     <SUMME>1.24</SUMME>   </E1EDS01> </ns0:ORDERS>   But i don't know how to read "E2EDP01008GRP" and value inside "POSEX", especially if there are two nodes of the same name. Can anyone point me to right direction or show me in code?


tabularx environment error: "Argument of \@argarraycr has an extra }" when starting with bracket

Here is a MWE of creating a table using tabularx:  \documentclass[border=5mm]{standalone} \usepackage{tabularx} \begin{document}  \begin{tabularx}{1.0\linewidth}{X}   header 1 \\   [unit 1) \\ % Does not work.   % (unit 1) \\ % Works. \end{tabularx} \end{document}   which gives me the following error:      ERROR: Argument of \@argarraycr has an extra }.   Here is the complete log:  Running `LaTeX' on `table_line_start' with ``pdflatex  -file-line-error   -interaction=nonstopmode "\input" table_line_start.tex'' This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode LaTeX2e <2017-04-15> Babel <3.16> and hyphenation patterns for 84 language(s) loaded. (./table_line_start.tex (/usr/local/texlive/2017/texmf-dist/tex/latex/standalone/standalone.cls Document Class: standalone 2015/07/15 v1.2 Class to compile TeX sub-files standalone (/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/ifluatex.sty) (/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf.sty) (/usr/local/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkvutils.tex (/usr/local/texlive/2017/texmf-dist/tex/generic/xkeyval/keyval.tex)))) (/usr/local/texlive/2017/texmf-dist/tex/latex/standalone/standalone.cfg) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/local/texlive/2017/texmf-dist/tex/latex/base/size10.clo))) (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/tabularx.sty (/usr/local/texlive/2017/texmf-dist/tex/latex/tools/array.sty)) (./table_line_start.aux) ./table_line_start.tex:10: Argument of \@argarraycr has an extra }. <inserted text>                 \par  l.10 \end{tabularx}  Runaway argument? unit 1) \\ \endtabular  ./table_line_start.tex:10: Paragraph ended before \@argarraycr was complete. <to be read again>                 \par  l.10 \end{tabularx}  ...  (That makes 100 errors; please try again.) ./table_line_start.tex:10:  ==> Fatal error occurred, no output PDF file produced! Transcript written on table_line_start.log.  TeX Output exited abnormally with code 1 at Tue Feb 20 13:50:51   The error disappears when I replace bracket [ in front of unit 1 with a parenthesis(. Writing [header 1 causes no problems. Can anyone confirm that this is a bug?


Performing centrality analysis with sDNA using ArcGIS Pro

I am trying to perform centrality analysis with sDNA with ArcGIS Pro (ver. 2.7.1). However, I have failed to run the Preparation & Integral Analysis in sDNA with the same reason. What is the problem and What should I do?


In Milnor's book Topology from the Differentiable Viewpoint there's the following problem:  Problem $6$ (Brouwer). Show that any map $S^n\to S^n$ with degree different from $(-1)^{n+1}$ must have a fixed point.  My solution: Assume that the map $f:S^n\to S^n$ has no fixed points. Let $a:S^n\to S^n$ denote the antipodal map $a(x)=-x$. Then the map $a\circ f$ is homotopic to the identity as follows:  Since $x$ is never mapped to $-x$ (by assumption), there exist a unique shortest great circle arc from $a(f(x))$ to $x$, simply take the straight line homotopy flowing along such arches to get a homotopy $a\circ f\simeq\operatorname{id}$.  Now we have: $$1=\deg(\operatorname{id})=\deg(a\circ f)=\deg(a)\deg(f)=(-1)^{n+1}\deg(f)$$ and thus $\deg(f)=(-1)^{n+1}$.  My questions:   Is this solution correct? How to show that the homotopy is continuous? It seems intuitively true to me, but I'm not sure about how to proceed to show it. Maybe saying that it is the flow of some good tangent field? Are there other (elegant/short/interesting) proofs for this fact?


How to set up Landscape On-Premises on Ubuntu 16.04 LTS?

As I know that some things are changing with every new release of Canonical Landscape ... I want to find out how to install and use Landscape On-Premises (formerly Landscape Dedicated Server) on Ubuntu 16.04 LTS edition - for which the new current version 16.06 of Landscape is available. I read ->  But for Ubuntu 16.04 - there are differences.


Biblatex APA duplicating editors in reference list

This is my first post here, but long time lurker as they say. Here is my problem: When citing an @incollection in biblatex-apa, I am getting the volume editor's(s') name(s) printed twice in the reference list. MWE:      %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode %TC:incbib \documentclass{article} \usepackage{polyglossia}  \setdefaultlanguage[variant=american]{english} \usepackage{csquotes} \usepackage[style=apa, backend=biber]{biblatex}  \usepackage{filecontents} \begin{filecontents}{mwe.bib} @incollection{Turing1954,     Author = {Turing, Alan},     Booktitle = {The Essential {Turing}: Seminal Writings in Computing, Logic, Philosophy, Artificial Intelligence, and Artificial Life plus The Secrets of Enigma},     Crossref = {Turing2004},     Origdate = {1954},     Pages = {576-595},     Title = {Solvable and Unsolvable Problems}, } @collection{Turing2004,     Date = {2004},     Editor = {Copeland, B. Jack},     Location = {Oxford},     Publisher = {Oxford Univeristy Press},     Shorttitle = {The Essential {T}uring},     Title = {The Essential {T}uring: Seminal Writings in Computing, Logic, Philosophy, Artificial Intelligence, and Artificial Life Plus the Secrets of Enigma},} \end{filecontents}  \addbibresource{mwe.bib}  \begin{document} \nocite{*} \printbibliography \end{document}   This gives me the following result, when compiled with Biber 2.14; XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019); BibLaTeX 3.14; BibLateX-APA 9.2; and csquotes 5.2j. The editor's name given once in brackets and again without brackets:   How can I get rid of the name in the brackets? Any help will be appreciated!


Using the recursion tree i tried solving this: $T(n)=T(n-1)+T(\frac{n}{2})+n$; the tree has two parts (branches) one that of $T(n-1)$ and other branch is of $T(\frac{n}{2})$. But as the term T(n-1) reach higher depth, I solved that part of the tree. Finally it resulted in O$(2^n)$ is it correct or is it $O(n^2)$? How can we solve it by substitution method?


How can I access unregistered account from another computer?

I have an unregistered account on one of the stackexchange domains. The problem is, I only get logged in as that account on the PC I used to ask that question. Is it a possibility to transfer this unregistered account (as a cookie file or I don't know what) to another PC, so I can use it from there?


I'm trying to create a Graph data structure and sort it using Topological Sorting. My code is as below:  public class Node<T> {     // Private member-variables     private T data;     private NodeList<T> neighbors = null;      public Node() { }     public Node(T data) : this(data, null) { }     public Node(T data, NodeList<T> neighbors)     {         this.data = data;         this.neighbors = neighbors;     }      public T Value     {         get         {             return data;         }         set         {             data = value;         }     }      protected NodeList<T> Neighbors     {         get         {             return neighbors;         }         set         {             neighbors = value;         }     } }  public class NodeList<T> : List<Node<T>> {     public NodeList() : base() { }      public Node<T> FindByValue(T value)     {         // search the list for the value         foreach (Node<T> node in this)             if (node.Value.Equals(value))                 return node;          // if we reached here, we didn't find a matching node         return null;     } }  public class GraphNode<T> : Node<T> {     private List<int> costs = null;      public GraphNode() : base()     {     }      public GraphNode(T value) : base(value)     {     }     public GraphNode(T value, NodeList<T> neighbors) : base(value, neighbors)     {     }      new public NodeList<T> Neighbors     {         get         {             if (base.Neighbors == null)                 base.Neighbors = new NodeList<T>();             return base.Neighbors;         }     }      public List<int> Costs     {         get         {             if (costs == null)                 costs = new List<int>();             return costs;         }     } }  public class Graph<T> {      private NodeList<T> nodeSet;      public List<GraphNode<T>> Sort(Graph<T> graph, Func<GraphNode<T>, IEnumerable<GraphNode<T>>> neighBours)     {         var sorted = new List<GraphNode<T>>();         var visited = new Dictionary<GraphNode<T>, bool>();          foreach (var item in graph.Nodes)         {             var _tempItem = item as GraphNode<T>;             Visit(_tempItem, neighBours, sorted, visited);         }          return sorted;     }      public void Visit(GraphNode<T> item, Func<GraphNode<T>, IEnumerable<GraphNode<T>>> neighBours, List<GraphNode<T>> sorted, Dictionary<GraphNode<T>, bool> visited)     {         bool inProcess = false;         var alreadyVisited = visited.TryGetValue(item, out inProcess);          if (alreadyVisited)         {             if (inProcess)             {                 throw new Exception("Cyclic dependency found.");             }         }         else         {             visited[item] = true;              var dependencies = neighBours(item);             if (dependencies != null)             {                 foreach (var dependency in dependencies)                 {                     Visit(dependency, neighBours, sorted, visited);                 }             }              visited[item] = false;             sorted.Add(item);         }     } }   The call to Sort method is made as below:     List<GraphNode<string>> lstSorted = _graph.Sort(_graph, x => x.Neighbors);   But I'm getting below error in the call for x.Neighbors:  Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type  Can someone please tell me how to fix this?


How ask more information about an answer?

Yesterday, I read an interesting answer about drawing histogram in Android application. However, I didn't understand the use of two variables whose one is not initialize. So, I decided to add a comment to know the meaning of both variables. As I'm new on Stack Overflow, I cannot add a comment (I don't have any reputation), so I decided to add an answer but as it was more a question than an answer, it has been deleted.  How can I ask more information about an answer which seems to be incomplete? I have tried to search on Meta Stack Overflow but my English is not perfect, and it is difficult to find right key words.


On the S.E of the the categorical levels

I'm performing a logistic regression and I have one categorical variable as an explanatory variable (Hab). Sometimes I get really big S.E for some levels of the independent factor (as you can see from the attached picture. When I checked the data I found out that the dependent variable has only 1 unique value for all the observations corresponding to the factor that has the issue. I want to know how to remove this problem, do we have to make some conditions about the data in order to ensure that all the time the Y has a mixture between  0 and 1 for all the levels of the independent variables?  I even performed an LRT for the significance of the categorical variables and it still in the regression even all the levels are not significant. )


Since my webhost have updated the php on the server from 5.2 to 5.3 I am unable to update any fields in the database if the text contains an apostrophe.  I have tried using mysql_real_escape_string() with no success.  I have tried....      $id = uniqid();     $case_account = $_POST['case_account'];     $contact = ucwords($_POST['contact']);     $subject = mysqli_real_escape_string(ucfirst($_POST['name']));     $desc = mysqli_real_escape_string(ucfirst($_POST['description']));     $resolution = mysqli_real_escape_string(ucfirst($_POST['resolution']));     $account_name = $_POST['case_account_name'];     $entered_by = $_POST['entered_by'];      $sql="INSERT INTO cases (id, account_id, name, description, resolution, account_name1, created_by, date_entered) VALUES ('$id', '$case_account','$subject', '$desc', '$resolution', '$account_name', '$entered_by', NOW())";     $result = mysqli_query($sql)or die(mysqli_error());   I have also tried using it in the actual query (I only tried round $subject to test).  $sql="INSERT INTO cases (id, account_id, name, description, resolution, account_name1, created_by, date_entered) VALUES ('$id', '$case_account',".mysqli_real_escape_string."('$subject'), '$desc', '$resolution', '$account_name', '$entered_by', NOW())";         $result = mysql_query($sql)or die(mysql_error());   I've also tried changing the field in the database to text from varChar to text and back again but with no success.  I know this should be simple but for some reason I can't make it work.


Remove Windows Defender in new Windows update 5/29/16

The latest update has turned on Windows Defender and disabled my Avast Antivirus. I HATE Windows Defender on many levels.  I've turned it off, but my Avast program still won't load and run. I need Windows Defender and Microsoft's half brained new ideas out of my life.  HELP!


Which of these two is more correct and why?   The sun shines on my little tree. The sun shines upon my little tree.   From what I've read in dictionaries both are acceptable, however I would like to know if there are subtleties that might arise due to, for example, the context.


Adding many more neutrons to a nucleus decreases stability?

If you take any large nucleus and add protons to it, the electrostatic repulsion between them will make the nucleus more unstable, because the electrostatic force between them is more repulsive at a greater distance than the strong force is attractive  So how come if you add more neutrons, which don't have a charge and so there is no electrostatic force, the nucleus still becomes more unstable?  Also why aren't there groups of neutrons bound together, so purely neutron nuclei (because they are neutral, I'm guessing they couldn't form atoms, because of the electrons needed for an atom)


How would I find this limit?  $\lim_{n \to \infty}\ n\ \sin\ (2\pi en!)$, where $e$ is the exponential.


I was reading about full-wave rectifiers and came across the schematics below which the capacitor C can smooth its voltage, but I didn't understand one case:  We know that when the rectifier's voltage begins to falling from its peak, the cap C starts to send its charge to load. Where does the falling current coming from FW rectifiers go? (The current from peak to zero and that one who rises from zero to the point which the cap starts to charge in diagram) Is it blocked, by diode or capacitor? Why?


I can collect grass, wood, and sand but when it comes to things like stone I can break it but I can't collect it after.  What am I doing wrong ? How am I supposed to collect them ?


I have empty space to the right of my Windows partition, but it is to the left of my GRUB and Ubuntu partitions. How can I add this space to my Ubuntu partition?  It looks like in the screenshot:    I think that the bios_grub partition is from a previous, non-EFI attempt to install Ubuntu.


I need help selecting data where the date is in the previous 3 months. (note: I'm not asking for the last 3 months i.e. DATEADD(MONTH, -3, GETDATE()) )  The reason I don't want to use the DATEADD method is that this query could be run in the middle of the month and I don't want it to return data leading up til that point


Photography in public places: Is it allowed or needs permission

So for example in a mall, Can I take pictures of people without their permission? Does that depend on wether they notice I take pictures or not? Also in Cafes and streets...all public places, I am not really sure about this. What are some general rules? What to avoid?  I am located in the United States, Kansas!


The treads on my road bike's 28C tires are almost completely gone—they only persist along the shoulders of the tire.  Do the treads matter?  What is a good indicator of when the tire as a whole needs to be replaced?


When calculating density of states for an electron, some arrive that k (the wavenumber) is $2\pi n x /L $ and some say it is $\pi n x /L$?  Where L is the dimension of the well  I’ve heard vague explanations of “you’re using only one quadrant of k space” but I truly have no idea what they’re talking about.  What is the difference in these two results and why does it occur?


I am looking to create some handwriting drill sheets.  Similar to what can be found here    I also found this question:  But I'd like to be able to simply write a paragraph of text with a known font and have the lines placed behind, perhaps like a watermark.  I have found a git repo with some nice lines in both portrait and landscape here   From the kindergarten example, I would like to overlay "phantom" text (probably a dotted cursive font) over the lines that are generated.  Any thoughts?  \documentclass[10pt,letterpaper]{article}  \usepackage[latin9]{inputenc} \usepackage{geometry} \geometry{verbose,tmargin=1cm,bmargin=1cm,lmargin=1cm,rmargin=1cm} \pagestyle{empty} \usepackage{dashrule} \usepackage{forloop} \makeatother  \setlength{\parindent}{0pt}  \begin{document}  \newcounter{ct} \forloop{ct}{1}{\value{ct} < 13} { \vskip 10pt \rule[1.75ex]{7.5in}{1pt} \\ \hdashrule{7.75in}{1pt}{4mm} \\ \rule[-1.75ex]{7.5in}{1pt} \\ }  \vskip 1cm  \end{document}   *Edit: I also just found this source:    So some combination of these makes sense to me, I'm just not clear on how...  *Edit: Okay, So I've gotten pretty far here.  But it seems like several parameters need to be functions of each other some how.  The line spacing, the font size, etc.  Here is where I am:  \documentclass[10pt,letterpaper,english]{article}  \usepackage{babel}  \usepackage{blindtext}   \usepackage{setspace}  \usepackage[latin9]{inputenc} \usepackage{geometry} \geometry{verbose,tmargin=1cm,bmargin=1cm,lmargin=1cm,rmargin=1cm} \pagestyle{empty} \usepackage{dashrule} \usepackage{forloop} \makeatother  \usepackage{xcolor}  \newcommand{\baselinegrid}{%   \raisebox{0pt}[\height][0pt]{\makebox[0pt][l]{%   \begin{minipage}[t]{\textwidth}%     \begin{color}{red}%     \newcounter{ct}     \forloop{ct}{1}{\value{ct} < 11}     {     %\vskip 15pt     \rule[0.5ex]{7.5in}{1pt}     \\     \hdashrule[0.75ex]{7.75in}{1pt}{4mm}     \\     \rule[1.2ex]{7.5in}{1pt}     \\     }     \end{color}   \end{minipage}% }}}  \begin{document}    \baselinegrid%  \begin{spacing}{2.5}    \usefont{T1}{wela}{m}{n}   \fontsize{30}{15}\selectfont   \setlength{\parskip}{0pt}   \setlength{\parindent}{0pt}    DURING the whole of a dull, dark, and soundless day in the autumn of the year, when the clouds hung oppressively low in the heavens, I had been passing alone, on horseback, through a singularly dreary tract of country; and at length found myself, as the shades of the evening drew on, within view of the melancholy House of Usher.  \end{spacing}  \end{document}


So, from I can tell from the answers I received to my previous questions, if I want to lower the output current from a battery, I could put a resistor in series with my circuit.   But wouldn't that only lower the current by some amount? If the battery output was lower than expected, it would be reduced farther by the resistor. And a greater than expected output would still be higher than the target current?  Another possibility is that I am hopelessly confused by all this, and should go find a nice book on EE.  edit: I should have said that the circuit I am trying to make, requires a fairly steady current flow, with a maximum current and a minimum current. (The minimum current is not super important, but it can't exceed the maximum current.)  edit: I should probably give a few more details. My coil/s should have 0.97232Ω of resistance, should use about 7.263 meters of wire.  edit: Could I use a current mirror?     With the reference current set to what I need my battery output to be?


I have two GPUs: Intel HD 5500 and AMD Radeon R5 M330.  I want to know which video card is being used when I'm watching videos on YouTube or just simply navigating through websites on Chrome.  When does Windows switch between them and how can I find out? I'm not playing games.


I am in the process of trying to delete a folder from C:\Users but when I try and delete it, it tells me the folder cannot be deleted because there is a file name that is too long to go in the recycle bin. The catch is, it doesnt appear like there is anything in the folder. So since I have no idea where the file in question is, I cannot try and shorten the name. The box that pops up says destination path too long and shows a long file name with a bunch of weird symbols mixed in. I have tried opening a command window in this directory and used the DIR /X command but it does not show anything. I am running Windows 10. This has become extremely frustrating! Someone please help!


Could not initialize the package information An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message:  E:Encountered a section with no Package: header,  E:Problem with MergeList /var/lib/apt/lists/dl.google.com_linux_earth_deb_dists_stable_main_i18n_Translation-pt%5fBR,  E:As listas de pacotes ou o ficheiro de status não pôde ser analisado ou aberto.


In a  on how to deal with submitting several papers on similar subjects at the same time, one of the (good) practices suggested by the answers is make sure that they cite each other, and that each result appears as original only in one of them.  One may want to put informative references from one to the other; for example:    paper A "An application of this result is in paper B";  paper B: "We apply this result from paper A".   From the point of view of providing all the relevant context to the reader, this might be the most informative thing to do. However, the other use of citations is for computing metrics, and in this respect this practice could be seen as a dishonest way to improve one's citation count, since you get two (self-)citations instead of the one you'd normally get if the two paper were not written simultaneously.  Hence, the question in the title: Is this practice recommendable and/or acceptable? Or should I decide an implicit temporal order for my simultaneous papers, and only cite older ones from newer ones?


Not getting Rep Notification for new up votes

So just a little while ago i was flipping out because i was 2 rep away from my 10k rep goal    but then all of a sudden it was then 10,008 rep because someone upvoted me. however i didn't get any notification about this +10  [    now as you can see in the screenshots above, over the past 2 days i got 2 upvotes to a question i posted, however the notifications only shows 1 +10 notification. and they system knows i got the upvote because i knew that i now have access to mod tools.  I am on a Windows 10 Laptop using Chrome 78.0.3904.97 (Official Build) (64-bit)


My ISP has started blocking port 25 so I can not send email through my dedicated server any more.   I have several options:   Send email through the SMTP server provided by my ISP. Any problems with this? Setup mu server so that it receives email on another port instead of port 25     No one else sends email through my server so it should be OK. How do I do this on a Linux server? Buy a static client IP - these are not being blocked so far.   Which one is preferable?


Question: Let $z=\cos(2\pi /n)+i\sin(2\pi /n)$ for an integer $n\geq2$. Show that $1+z+z^2+...+z^{n-1}=0$.   Work thus far: My initial idea is was to use euler's formula, but this leads to a sum of exponentials that can't be simplified easily. If I can separate the sum into two sums (one real, one imaginary) which both add to zero then I can show that the equality holds. Using DeMoivre's formula $z^a=\cos(a2\pi /n)+i\sin(a2\pi /n)$. So we get $$1+\cos(2\pi /n)+\cos(4\pi /n)+...+\cos(2n\pi/n)$$ $$i\sin(2\pi /n)+i\sin(4\pi /n)+...+i\sin(2n\pi/n)$$ From there however I do not know how to find the sum of both series.


Handling arguments in specified order in /usr/bin/printf or Bash printf

You know that the printf function written in C allows to do:  printf('%2$s %2$s %1$s %1$s', 'World', 'Hello');   → Hello Hello World World  But in GNU Bash:  printf '%2$s %2$s %1$s %1$s' 'World' 'Hello'   → bash: printf: $': invalid format character  Also for /usr/bin/printf:  /usr/bin/printf '%2$s %2$s %1$s %1$s' 'World' 'Hello'   → /usr/bin/printf: %2$: invalid conversion specification  How to obtain the C behavior in Bash? Thanks.  Edited:  I was curious about this behaviour, I can't accept a workaround that changes the order of the arguments. It should work just playing with the format string.  Edited:  E.g. think about GNU Bash source code internationalization. Very improbable without this feature.


Is a Masters Degree required to pursue a PhD?

I recently heard someone saying that you don't need a Masters to pursue a PhD. Since I have never heard of people who got PhDs without Masters, I wanted to know whether this is true and how common is it for people to get a PhD without Masters?  I would also like to know if this is true for Engineering related fields specifically.  In other words, can someone who has just finished their undergrad apply for a PhD?


How to make php to print xml for this program?


Different effect of Harry's Cruciatus curse at Ministry Skirmish vs Battle of Hogwarts?

In HP & the Order of the Phoenix, Harry chased Bellatrix Lestrange after she murdered Sirius Black. He used cruciatus curse on her but it was not really effective.  As Bellatrix said:     "You need to mean them, Potter! You need to really want to cause   pain... to enjoy it... righteous anger won't hurt me for long... I'll   show you how it is done, shall I? I'll give you a lesson —"   Later when Amycus Carrow spat on Minerva McGonagall, Harry used the curse splendidly.     As Amycus spun around, Harry shouted, "Crucio!"      The Death Eater was lifted off his feet. He writhed through the air   like a drowning man, thrashing and howling in pain, and then, with a   crunch and a shattering of glass, he smashed into the front of a   bookcase and crumpled, insensible, to the floor. "I see what Bellatrix   meant," said Harry, the blood thundering through his brain, "you need   to really mean it."    attributes this to lack of sadistic feeling in Harry.   But still it makes no sense. Harry should have had more desire to cause pain after murder of his godfather but he was only able to knock Bellatrix off her feet. Wikia however also suggests that Bellatrix was probably less affected by the curse due to her lack of conscience and being a sadistic person herself but somehow I don't feel it's quite right.  Only rational explanation that I have been able to give myself is that the war-time environment changed Harry Potter from a young boy he was in HPTOOTP to a grizzled veteran by the time of Battle of Hogwarts & somehow his sense of emotions was also affected by it.   Could it be that Harry liked McGonagall better than Sirius and thus was able to channel his anger better than he did in Ministry skirmish? Is there any better explanation?


I'm working on a 2D game which involves firing projectiles around a solar system and having the path of the projectile change based on the gravitational pull of solar bodies.  I've been trying to find an explanation for how orbital mechanics work, at least in this simplified 2D scenario, but so far haven't found anything other than theoretical high-math documents.  I know that there are some existing games that do this already in 3D space, namely Planetary Annihilation and Interplanetary, but I haven't been able to find any references to how they did it. The Planetary Annihilation devs did a livestream demo of it once, but I haven't been able to find it since, and I don't think it went into much detail.  Whether by explanation or reference, does anyone know how 2D orbital mechanics work for the purpose of a game? How or where can I learn this?


Triggering "On Cast" Effects When Sacrificing

I've been playing Magic 2015 and I noticed an interaction I didn't expect.  I had a  out and cast , sacrificing the Pyromancer. The game triggered Young Pyromancer's effect and put a token onto the battlefield.  I don't understand this. Since the sacrifice is part of the cost of Fling, shouldn't the Pyromancer already be in the graveyard before Fling reaches the state of "having been cast", meaning that the token shouldn't exist?  Is there something I'm missing, or is it a bug in the game?


Why is the energy function not always equal to total energy?

Why is the energy function $h = \dot{q_i}\frac{\partial L}{\partial \dot{q_i}} - L $ not always equal to total energy  $E = T + V$? Here $T$ is Kinetic Energy and $V$ is Potential Energy. I've read that $h$ is not always the same as total energy for any given Lagrangian System, but I do not understand why this is. Under what circumstances is $h$ not equal to $E$? Also, my understanding is that the Hamiltonian $H$ is defined as $H = \dot{q_i}\frac{\partial L}{\partial \dot{q_i}} - L$. Does this mean the energy function $h$ is always the same as the Halmitionain $H$?


How can I get the Float Property displayed in my Addon?

I've created an Addon which create a standard Light Rig with parameters for adjusting light intensity and color. After executing the code, the parameter of color shows in the addon while the one which associated to intensity doesn't display. Before creating the script, I used the python console to help me to create the addon. The code to access/get the color of the light (bpy.context.object.data.color)and that of  (bpy.context.object.data.energy) appear to be similar. So I created the script below to try to create the attributes to change light intensity and color. But it seems it only works for color but not for intensity. I have looked up the documentation and have been thinking about using PointerProperty to get the intensity by bpy.types.AreaLight from bpy.types.Light and bpy.types.Object. But it doesn't work and it's not displayed in my Addon.   import bpy from bpy.props import FloatProperty, FloatVectorProperty   class LightSetPanel(bpy.types.Panel):      bl_label = "Lighting Rig Add-On"     bl_idname = "LIGHT_PT_PANEL"     bl_space_type = "VIEW_3D"     bl_region_type = "UI"     bl_category = "Light Rig"      def draw(self, context):         layout = self.layout         row = layout.row()         row.operator("light.rig_operator")         ob = bpy.context.active_object         da = ob.data         row=layout.row()         row.prop(da,"color")         row= layout.row()         row.prop(da, "intensity")   def updateIntensity(self,context):     obj = bpy.context.active_object     light = obj.data     light.energy = self.intensity     light.color = self.color       class LightParamSet(bpy.types.PropertyGroup):      intensity: FloatProperty(         name="intensity",         subtype="POWER",         min=0, max= 12,         update = updateIntensity)          color : FloatVectorProperty(         name="color",         subtype="COLOR",         update = updateIntensity)  def register():     bpy.utils.register_class(LightSetPanel)     bpy.utils.register_class(LIGHT_RIG)     bpy.utils.register_class(LightParamSet)           def unregister():     bpy.utils.unregister_class(LightSetPanel)     bpy.utils.unregister_class(LIGHT_RIG)     bpy.utils.unregister_class(LightParamSet)         if __name__ == "__main__":     register()  The screenshot of the Addon after executing the Python script.  A big thanks if anyone can help.


Interior of closure of open set in topological space

If $U$ is an open set in a topological space, is it true that $U$ is the interior of the closure of itself?   If $U$ is open, it must be the interior of itself. But is it the interior of the closure of itself? In the closure, we include all points $x$ such that any open set containing $x$ also contains a point in $U$. In the interior of the closure, we take the union of all open sets contained in the closure.


C#, Operator '*' cannot be applied to operands of type 'double' and 'decimal'

This error should be a simple one but I cant seem to make it work. The problem lies in the fact that this very same code works earlier in the program. I don's see any reason for it to be sending an error on this instance and not the four previous ones. Reference the code below, and feel free to provide any criticism you may have as it should make me better. If it matters, I am using Sharp Develop 2.2.  Here is an example of the code that works:  void calc2Click(object sender, EventArgs e) {     if (!String.IsNullOrEmpty(tb2_fla.Text) & String.IsNullOrEmpty(tb2_e.Text) | String.IsNullOrEmpty(tb2_fla.Text) & String.IsNullOrEmpty(tb2_e.Text) | String.IsNullOrEmpty(tb2_e.Text))     {         MessageBox.Show("Enter either kVA and Voltage or FLA and Voltage", "Invalid Data Entry", MessageBoxButtons.OK);     }                 if (!String.IsNullOrEmpty(tb2_kva.Text) & !String.IsNullOrEmpty(tb2_e.Text))     {              decimal x, y, z;             x = decimal.Parse(tb2_kva.Text);                   y = decimal.Parse(tb2_e.Text);             z = (x * 1000) / (1.732050808m * y); //the m at the end of the decimal allows for the multiplication of decimals                 tb2_fla.Text = z.ToString();             tb2_fla.Text = Math.Round(z,2).ToString();     }         else     {         if (!String.IsNullOrEmpty(tb2_fla.Text) & !String.IsNullOrEmpty(tb2_e.Text))     {              decimal x, y, z;             x = decimal.Parse(tb2_fla.Text);                   y = decimal.Parse(tb2_e.Text);             z = (x * y * 1.732050808m) / 1000; //the m at the end of the decimal allows for the multiplication of decimals               tb2_kva.Text = Math.Round(z,2).ToString();      }   Here is the example of the code that sends the error in the subject line of this post:  void Calc4Click(object sender, EventArgs e) {         if (!String.IsNullOrEmpty(tb4_fla.Text) && String.IsNullOrEmpty(tb4_e.Text) || String.IsNullOrEmpty(tb4_kw.Text) & String.IsNullOrEmpty(tb4_e.Text) || String.IsNullOrEmpty(tb4_e.Text))         {   //If values are entered improperly, the following message box will appear         MessageBox.Show("Enter either FLA and Voltage or kW and Voltage", "Invalid Data Entry", MessageBoxButtons.OK);         }              if (!String.IsNullOrEmpty(tb4_fla.Text)&& !String.IsNullOrEmpty(tb4_e.Text)&& String.IsNullOrEmpty(tb4_kw.Text))         {//If the user eneters FLA and Voltage calculate for kW              decimal x, y, z;             x = decimal.Parse(tb4_fla.Text);             y = decimal.Parse(tb4_e.Text);             z = (x*y)*(.8 * 1.732050808m);             tb4_kw.Text = Math.Round(z,0).ToString();          }                         if (!String.IsNullOrEmpty(tb4_kw.Text) && !String.IsNullOrEmpty(tb4_e.Text) && String.IsNullOrEmpty(tb4_fla.Text))         {;//If the user enters kW and Voltage calculate for FLA             decimal x, y, z;             x = decimal.Parse(tb4_kw.Text);             y = decimal.Parse(tb4_e.Text);             z = (1000 * x)/(y * 1.732050808m)* .8;             tb4_fla.Text = Math.Round(z,0).ToString();         }      }   I appreciate any help that I can get.  Thank you.


what is $\int_{|z|=3}\frac{1}{(z-2)^n(z-4)^m}dz$ for $m,n\in\mathbb{N}$?

I saw many examples how to calculate integrals with the residue theorem. But now I'm stuck with this integral: $$\int_{|z|=3}\frac{1}{(z-2)^n(z-4)^m}dz,$$where $m,n\in\mathbb{N}$ and $z=2$ and $z=4$ are the poles. Here we are only interested in $z=2$, because $4$ is not in $B_3(0)$.   For n=1 it is $2\pi if(z_0)=\int_{|z|=3}\frac{\frac{1}{(z-4)^m}}{(z-2)^1}dz$ with $f(z)=\frac{1}{(z-4)^m}$ and $z_0=2$ I would say, i.e. the integral is $2\pi i\frac{1}{(-2)^m}$ for $n=1$. But in genereal case I don't know what to do here, how to prove it ith the residue theorem.  I appreciate your help.


SQL Server & Storage Question - What's the right choice?

I am a young DBA from Germany and I am the administrator for our customers SQL Servers. I have a question and I really hope that I can explain this in English words. 😃 At the moment I am reading Breant Ozwar's eBook SQL Server Setup Checklist and there is one thing that I am confused about. I mean this one: 2.5.Provision storage for the OS and for SQL Server We don’t want to pile everything on the C drive, so create other volumes for SQL Server to spread across. Ideally, we’ll have separate logical drives for: • SQL Server application folders – D: • SQL Server databases data ﬁles – G: • SQL Server database log ﬁles (including TempDB) – L: • TempDB data ﬁle(s) – T: • Backups – H: I’ve learned /and it’s an advice from Microsoft two) to use separate drives for DB, Logs etc. BUT I’m asking myself if this makes only sense when we have a physical server with e.g 5 drives, because every disk has different IOPS. But when the Server got disks from a big storage (that’s managed by a Storage Controller) do we really need different disks for DB, Log etc.? I mean the Storage Controller controls the IOPS. So if you have one drive and put DB, Log etc. just in different folders then they got the same IOPS when they are on different disks. Or is this wrong? I hope you understand what I mean. But the main question is: Does is make sense to put DB, Log, Temp on different drives when the Server get his drives from a Storage? Or does it make only sense when we have a physical server with physical disks? Hopefully you can help me with this one, because I am not sure how to configure future Cluster systems (we don’t have much hardware servers). Thanks in advance for reply and I hope your your doing all good. Melissa


Show that any subring $R\subseteq L$ is a field if $K\subseteq L$ is module-finite field extension and $K\subseteq R$..

This is Exercise 1.50b in Fulton's Algebraic Curves. It's a follow up to showing that algebraic elements form a subfield. I found similar questions MSE, but with stronger hypothesis. By module-finite extension we mean that $L$ is finitely-generated as a $K$-module. My attempt: take $r\in R$ and let $\rho\in L$ be its inverse in the field $L$. I tried to show that $\rho \in R$, since we know that will happen. By $K\subset L$ a finitely generated extension we mean that there are $l_1,\dots l_n$ in $L$ such that $r\in R$ can written as $r = l_1k_1+\dots+l_n k_n$. When $r = l_jk_j$ we have $l_j = rk_j^{-1}\in L$, so $\rho = k_j^{-1}l_j^{-1}\in R$. This strategy blowed off really hard when the above equation for $r$ had two or more terms.


If Checking Account's and Saving Account's interest rates are the same, what is the point of having a Savings Account?

In this question I am using Wells Fargo as an example.    You will see that the interest rate for a checking account is the same as for a savings account for amounts under 250,000$ (most people). Disregarding the fact that both interest rates are paltry and significantly less than inflation, what would be the point of having a savings account instead of a checking account given that savings accounts have additional limitations, like 6 withdrawals per month, and fines if you go over?  If you got fined even once it would offset any gains you would have made through out the year, (the interest rate is 0.01%). Am I misunderstanding something, or is it clearly a bad idea to put your money into Savings in this kind of scenario?


I need to make a simulation with stone thrown through a glass window. How can I accomplish that?  I mean, I was thinking about making a 3D model of a stone and glass in 3D Studio Max 2012, shatter the glass and export both to XNA 4.0 as .x models. Then in XNA make the animation - writing my own physics engine. Is it possible that way? Is it possible to destroy the glass in XNA after impact or should I do it in 3DS Max? By 'destroying the glass' I mean disconnect some previously shattered glass bits from each others, because depending on the start-speed and weight of the stone and resistance (hardness?) of the glass (all user-defined) the bits will disconnect from each other in different ways.


What's the meaning of 90-plus? More than 90? If so, please tell me more ways to say "more than 90". Thank you!


I was wondering how to make a hybrid USB stick. That means a USB stick that runs under Mac and Windows and displays specific content.  Example:   Plug in on Windows:  index.html opens. Mac OS X files are invisible. Plug in on Mac:  indexMac.html opens. Windows files are invisible.   I know that every USB stick can be read by both platforms. The Apple Mac OS X CD is something which inspired me.


7 month old wants to sleep on its belly -- is it safe?

We have two 7 month olds (10 month premies). One of the girls wants to turn on her belly during the night. She seems to like that better than sleeping on her back.   However, we heard that sudden infant deaths usually occur when babies are sleeping on their belly. So what should we do?  Both kids can turn themselves and are starting to crawl on all fours.