lualatex: too little space inside f\Bigl(

Consider the following example:  \documentclass{standalone} \usepackage{unicode-math} \setmathfont{TeX Gyre Termes Math} \begin{document} \(f\Bigl(\Bigr)\) \end{document}   If you compile it with xelatex, you get    But if you compile it with lualatex, you get a narrower    Definitely, the results differ, so at least one of the engines or unicode-math is wrong about the spacing between f and the left parenthesis.  Subjectively, the  output of xelatex is more pleasant than that of lualatex, so, I presume, lualatex (or the code inside unicode-math run by lualatex only) is the culprit. But, I'm unaware of the "official" specification of how it should be, so, all bets are off.     How large is the distance between f and ( supposed to be for the most pleasant reading? Who is the culprit? (I.e., who deviates from the way it is supposed to be?) Is there any way to repair the culprit or at least to achieve independency of the engine used for compilation more or less automatically?   Weakly related:  . However, there, Ulrike said in her answer that "you are at the end of the math and luatex doesn't insert the italic correction at the boundary between math and text."  Here, on the contrary, we are still inside math. If you insert \Uchar"200B or 🦆 right after f, you get more space for both engines, and the discrepancy remains. Moreover, it's far from automatic even if the discrepancy would have gone away.  EDIT: Concerning     This question already has an answer here:   Change bounding box of math glyphs in LuaTeX   It doesn't. The answer from there doesn't fit here. Feel free to test it.  Crosspost:


If have the following file /tmp/f1.txt file coming from the stdout redirection of the result of a PostgreSQL bash script execution :   id   -----  517  518  519  520  521  522 (6 rows)  INSERT 0 6   I wish I could iterate over those ids to perform other actions.  For now, I am able to retrieve the desired ids as follows (i'll always get 5 values ) :  cat /tmp/f1.txt | tail -n +3 | head -n5 -   This returns :  517 518 519 520 521   Which is exactly what I want.  So, the next step would be to read every single line. So in my case I'd store the result in a variable, and then read line by line :  LINES_UPDATED_CNT=$(cat /tmp/f1.txt | tail -n +3 | head -n${LINES} -) echo -e $LINES_UPDATED_CNT   My issue here is that this command yields the following result :  517 518 519 520 521 522   The newlines are lost, can't understand why. What would be the optimal way to do this, without wirting the cat/tail/head result into another file and reading it in a while ?  Thank you !


I cannot reset the password. A box comes showing various commands like   -a, --all -r,--repository REPOSITORY -d --delete   and a line at the top of the box is also present       usage:passwd [options] login   and I dont know how to write the command.


Does Cycling Cause Erectile Dysfunction and Sterility

While some of my friends argue that cycling causes erectile dysfunction and sterility (because the testicles are held tightly  close to the body by the padded shorts and because of the constant rubbing of the testicles against the saddle) others contend that it improves sexual performance and enhanced control over premature ejaculation  through strengthening of the pelvic floor muscles.   I'm confused by the diametrically opposite views.   What is the scientific position?   Thank you for your help in advance.


Why the gamma matrices are taken 2 by 2 (Pauli matrices) in 3 dimensional Clifford Algebra. As in 4D Clifford Algebra the matrices are 4 by 4, in 3D Algebra why are they not 3 by 3 matrices? The question can be asked another way that should we use the representation according to the components of Dirac spinor?


Change Python process and thread title under Linux

I am looking for an easy solution to change the title of a python process and the of individual python threads as displayed by top, htop or ps at runtime.  I want to avoid package dependencies but I do not have the requirement for the solution to be portable. It should run on a Gentoo system with Kernel version 4.4.38 and above.   I tried the following which unfortunately did not work on my system.  if sys.platform == 'linux2':     import ctypes     libc = ctypes.cdll.LoadLibrary('libc.so.6')     libc.prctl(15, 'Another Name', 0, 0, 0)


Why was kernel 4.9.77 released but not kernel 4.14.14?

Spectre protection () was released for Kernel 4.9.77 and 4.14.14 by the Linux Kernel team on January 15, 2018. The Ubuntu Kernel team only released  on January 17, 2018 and have not published kernel version 4.14.14. For the Meltdown patches (KPTI->KAISER->KASLR) the Ubuntu Kernel team released the  updates at the same time for 4.9 and 14.14 but the Spectre patch is missing in 4.14:  4.9.74 Jan 2nd 9:10pm ....... 4.14.11 Jan 2nd 10:40pm 4.9.75 Jan 5th 4:20pm ........ 4.14.12 Jan 5th 5:40pm 4.9.76 Jan 10th 10:20am .... 4.14.13 Jan 10th 10:50am 4.9.77 Jan 17th 10:20am .... 4.14.14 Missing  Mainline/Stable Ubuntu Kernel version 4.14.14 is still missing as of Jan 20th 5:46pm. Three days late and counting... I like to test the latest stable kernels and this is even more important now with the Spectre security hole. I've googled for reasons but came up empty handed. Is there a newsletter or something that would explain why? Or is it as simple as someone forgot to push a button? NOTE: Spectre protection is not being provided for LTS Kernels 4.4 and 3.18 by the Linux Kernel team however they have updated sysfs to indicate Spectre vulnerability. So far the only LTS Kernel versions offering Spectre protection are 4.9 and 4.14. Current Release Candidate (experimental kernel) 4.15 will soon have Spectre protection. Ubuntu 18.04 (Bionic Beaver) will be based upon 4.15 in April when it is no longer a Release Candidate and becomes a Mainline/Stable Kernel.  End of Story Thanks to Thomas Ward's help I got in touch with the Ubuntu Kernel Team and Mainline/Stable Ubuntu Kernel version 4.14.14 was published January 20, 2018 at 1:10pm.


Binary and continuous variables in the same regression?

How do you go about conducting a regression when you have 5 continuous and 3 binary variables?   Can you do it in one operation?


Migrating 2 domain controllers from server 2003 to 2012

Company has domain that they need to migrate from (dobbde.com) into (dobbde123.com).   They have a 2003 file server in dobbde.com and we want to deploy a 2012 file server in dobbde123.com. They have two domain controllers in dobbde.com (2003) and we have two domain controllers in dobbde123.com (2012).  Any pointers on the best way to go about this? Is there a way to do it DC at a time?  Would it be best to use robocopy or something equivalent to this for the file servers?


I have a string (())(("I am) a(. text"(((( I need to break it down to three parts:  The first group should include anything that is not a \w or \d or " or '. BUT ALSO should be at the start of the string.  The second group should be literally any characters before group 3  The third group should be as the first group but AT THE END of the string  So the groups of the string above should look like this:  1. (())((  2. "I am) a(. text"  3. ((((  I have tried to do it like this: ^([^\w\d'\"]*)(.+)([^\w\d'\"]*)$ But the thing is (.+) just eates everything...  I understand that my regex is wrong, but I have no idea how to do what I want to do


The villagers advised him to run uphill if he 'were' / was ever unfortunate enough to be chased by a bear. Which out of the two is correct? Was or were?  The word 'if' makes the sentence a conditional clause ... but some people say that 'was' is correct.


what does operator"" overloading mean in C++?

In codeproject, i found a interesting program which implements a meaning of unit ,like  unsigned long long operator"" s(unsigned long long n) {     return n + 1; } int main() {     int x = 16s; }   x will be 17, so interesting. can someone tell me what magic this is?


How can I give an idea to the ubuntu team?

Sorry for my simple question but it is important . I have many ideas for ubuntu . How can I give them all to ubuntu team . Is there Any webpage for that Or just an email ?


How to use cheap nut and bolt bike with a smart trainer

I have a cheap bike (CCM Capri bike link: ). I want to use this bike with Tacx Bushido smart trainer. This bike has nut and bolt for the rear wheel. No through axle or quick release.  I have below questions:   As the tire on this bike has a tread pattern on it. I want to replace it with an indoor trainer tire. Can you please recommend which tire size I should buy. Currently, I have 700x38C tire (as shown in the pic below). I am looking at something like the ones shown in this link:   How should I use the device provided by the smart trainer (shown in the green pic) on my tire? Do I remove the rod by unscrewing the nut and bolt and use this device provided by the smart trainer?  Is there a way to convert this nut and bolt configuration to through axle?   I have already checked this link and did not find it useful for my case:    Bike tire right side:   Bike tire left side:   Tacx Smart trainer rod to be used with the tire:   Tire information:


TypeError: '<' not supported between instances of 'node' and 'node'

I am using Python 3.8. I have below list: [['Bangalore', 116.0], ['Mumbai', 132.0], ['Kolkata', 234.0]]  then I have created as a node & added in successors list like this: successors = [<__main__.Node object at 0x7f89582eb7c0>, <__main__.Node object at 0x7f89582eb790>, <__main__.Node object at 0x7f89582eb7f0>]  I have created a fringe list & adding each successor node. After than sorting it based on distance value. I am getting error - '<' not supported between instances of 'node' and 'node' for succ_node in successors:     fringe.append(succ_node) fringe.sort() <- Error Here  This is my node class: class Node:     def __init__(self, parent, name, g):         self.parent = parent         self.name = name         self.g = g  What am I doing wrong?


Mesh changes its position when adding armature modifier

I have a rigged body and I want to put some clothes on it. I fit it to the body mesh, then transfer weights from the body to the clothing item. But when I add the armature modifier to it and choose the body skeleton, the mesh changes its position and slightly deforms. Could you please help me with the direction where I should look?


Will water waves diffract through a gap smaller than their wavelength?

I was wondering what happens when a water wave passes through a gap smaller than its wavelength, does diffraction occur?


Is $\bigcup_{n\geq 1}\left(q_n-\frac{1}{n},q_n+\frac{1}{n}\right)=\mathbb{R}$?. Here $\{q_n\}_n$ is the enumeration of rational numbers.


For $n \in \mathbb{N}$ $\lfloor{\sqrt{n} + \sqrt{n+1}\rfloor} = \lfloor{\sqrt{4n+2}\rfloor}$

This is  from Apostol's book. Many of them seem tough and here is one of them which I am struggling with.   For $n \in \mathbb{N}$, prove that this identity is true: $$\Bigl\lfloor{\sqrt{n} + \sqrt{n+1}\Bigl\rfloor} = \Bigl\lfloor{\sqrt{4n+2}\Bigl\rfloor}$$


How this sentence "The weather being very bad, we did not start the journey" is reduced? I cannot understand what structure is applied for the clause "the weather being very bad".


Having Trouble Understanding Why Return Value Won't Update Value

I'm trying to write a simple program that takes input in minutes then converts that input to seconds through a function then returns the updated value.  I've tried to do a debugging and trace the values, but everything seems to be working. The problem is when I run the program in the console.  #include <iostream> using namespace std;  int convert(int minutes);  int main() {     //obj: write a function that takes in integer minutes and converts to secs      // inital values     int min = 0;      //only allow correct input     do {          cout << "\t\nPlease enter a number of minutes: ";         cin >> min;     } while (min < 0);      cout << "\t\nYou entered " << min << " minutes";      //conversion     convert(min);      cout << ", and that is " << min << " in seconds.\n";      system("PAUSE");     return 0; }  int convert(int minutes) {     return minutes * 60; }   For example, the user enters 5. convert(5)  I expected to get 300 back, but when the next cout runs I get:  "You entered 5 minutes, and that is 5 in seconds."  EDIT: Thank you for the help guys. I'm trying to teach myself C++ (doing these programming challenges) before I go off to school, and am very very new.  #include <iostream> using namespace std;  int convert_Min_to_Secs(int& minutes);  int main() {     //obj: write a function that takes in integer minutes and converts to secs      // inital values     int min = 0;      //only allow correct input     do {          cout << "\t\nPlease enter a number of minutes: ";         cin >> min;     } while (min < 0);      cout << "\t\nYou entered " << min << " minutes";      //conversion     int sec = convert_Min_to_Secs(min);      cout << ", and that is " << sec << " in seconds.\n";      system("PAUSE");     return 0; }  int convert_Min_to_Secs(int& minutes) {     return minutes * 60; }   Fixed the code with your suggestions, but I want to understand. When I initialize a primitive int min = 0. Then I allow a user to input say '2'. Then min has '4' inside of it.  When it it passed by the convert function it makes another min inside of convert? or what is happening exactly.


Hello...I don't know the technical term for the above braces and so unable to find anything online.  I would be grateful if someone can tell me what they're called.  Thanks,  HP


What is the dimension of the Euclidean motion groups?

The group of Euclidean motions of $\mathbb R^n$ is the semi-direct product $G=\mathbb R^n\rtimes K$  with $K=SO(n, \mathbb R^n)$. Elements of G are written as pairs $g=(x,k)$.  I would like to know what is the dimension of $G$ ? Thank you in advance


Two types of footnotes, context sensitive

I would like to use two types of footnotes. The first are standard footnotes used throughout the body of the text and which are numbered sequentially. The second are footnotes used in a few chapter titles, which I want to have a single static symbol (e.g. *), these should not increment and should not interact with nor affect the bodytext footnotes.  If possible, and a simple method exists, I would like to avoid using another package.  I had thought of using \footnotemark and \footnotetext, but I am not sure how. Any suggestions?


Let $\{X_n\}_{n\geq 1}$ be a sequence of random variables s.t $X_n \to a$ in probability, where $a>0$ is a fixed constant. I'm trying to show the following: $$\sqrt{X_n} \to \sqrt{a}$$ and $$\frac{a}{X_n}\to 1$$ both in probability. I'm here to see if my logic was sound. Here's my work     ATTEMPT      For the first part, we have   $$|\sqrt{X_n}-\sqrt{a}|<\epsilon \impliedby |X_n-a|<\epsilon|\sqrt{X_n}+\sqrt{a}|=\epsilon|(\sqrt{X_n}-sqrt{a})+2\sqrt{a}|$$   $$\leq \epsilon|\sqrt{X_n}-\sqrt{a}|+2\epsilon\sqrt{a}<\epsilon^2+2\epsilon\sqrt{a}$$   Notice that    $$\epsilon^2+2\epsilon\sqrt{a}>\epsilon\sqrt{a}$$   It follows then that   $$P(|\sqrt{X_n}-\sqrt{a}|\leq \epsilon)\geq P(|X_n-a|\leq \epsilon\sqrt{a})\to 1 \;\;as\;n\to\infty$$   $$\implies \sqrt{X_n}\to\sqrt{a} \;\;in\;probability$$      For the second part, we have   $$|\frac{a}{X_n}-1|=|\frac{X_n-a}{X_n}|<\epsilon \impliedby |X_n-a|<\epsilon|X_n|$$   Now, since $X_n \to a$ as $n \to \infty$, we have that $X_n$ is a bounded sequence. In other words, there exists a real number $M<\infty$ s.t $|X_n|\leq M$. Thus,   $$|X_n-a|<\epsilon|X_n|\impliedby |X_n-a|<\epsilon M$$   Looking at it in probability, we have   $$P(|\frac{a}{X_n}-1|>\epsilon)=P(|X_n-a|>\epsilon|X_n|)\leq P(|X_n-a|>\epsilon M)\to 0 \;\;as\;n\to\infty$$   I'm pretty confident in the first one, but am pretty iffy on the second. Was my logic sound?


Marking intersection of two lines with a semicircle with no fill

I am trying to create a process flow diagram of my rig using LaTex but I am stuck at trying to figure out how to create a semicircular jump at the intersection of two independent lines in the drawing. My current code and output are as follows.  \documentclass[11pt]{standalone} \usepackage{lmodern} \renewcommand*{\familydefault}{\sfdefault} \usepackage{sfmath} \usepackage[version=4]{mhchem} \usepackage{tikz}  \usetikzlibrary{arrows.meta,fit,positioning,intersections,shapes.geometric, decorations,patterns,decorations.markings} \tikzset{ every path/.style={thick}, every node/.style={     font={\normalsize},     align=center,     transform shape     }, } \begin{document} \begin{tikzpicture}[node distance=0.75cm]     \tikzset{         sv/.pic={             \def \x {0.43}             \node[draw,isosceles triangle,fill=none] (a) at (-\x,0) {};             \node[draw,isosceles triangle,shape border rotate=180,fill=none] at (\x,0){};             \draw[fill=none] (0,0) circle (0.22);            },%shutoff valve         lifwv/.pic={             \def \x {1pt}             \node[draw,circle,minimum size=0.6cm] (a) at (0,0){};             \node[circle,minimum size=0.4cm] (b) at (0.1,0){};             \fill (b.90) circle (\x) (b.0) circle (\x) (b.180) circle (\x) (b.270) circle (\x);             \draw[->] (a.90) -- ++(0,0.5) -- ++(0.5,0) node[right,ellipse,draw,inner sep=0.5pt](mv){M.V.};             \draw[->] (a.270) --  ++(0,-0.5) -- node[pos=0.5,nosep] (evap){} ++(1,0) -- ++(0,0.815) -- (a.0);             \node[below right = of evap,draw,yshift=0.25cm] (syp){Pump};             \draw[->] (syp) -|(evap);                    },%liquid injection right 4-way valve         pt/.pic={             \draw (0,0) -- ++(0.25,0) node[right,draw,circle,minimum size=0.5cm,font=\small,inner sep=0pt](a){P};         },%pressure transducer         jump/.pic={             \filldraw[draw=black,fill=white] (0.15,0) arc (0:180:0.15);             \draw[red,dashed] (0,0) circle (0.5);         },         mfc/.style={             draw,minimum width=1.75cm,minimum height=0.9cm,             text height=1.5ex         },         nosep/.style={             inner sep=0pt,             outer sep=0pt,           },%meeting-point     }     \node[mfc] (mfc1) {a};     \node[below = of mfc1,mfc] (mfc2) {\ce{b}};     \node[below = of mfc2,mfc] (mfc3) {\ce{c}};     \node[below = of mfc3,mfc] (mfc4) {\ce{d}};     \node[below = of mfc4,mfc] (mfc5) {\ce{e}};     \node[below = of mfc5,mfc] (mfc6) {\ce{f}};     \foreach \y in {1,2,...,6}{         \draw[->] (mfc\y.east) --++(0.5,0) node[right=12pt] (svmfcc\y){} node[right=24pt](svmfcr\y){};         \pic at (svmfcc\y){sv};      };     %line-1     \draw[->] (svmfcr1) -- node[pos=0.45,nosep](mpl1){} ++(1.5,0) -- pic[pos=0.4,-]{pt}++(0,0.75) -- ++(2,0) pic[right]{lifwv} node[right](l1){};     \foreach \y in {3,5,6} {         \draw[->] (svmfcr\y) -- ++(0.75,0);      };     \draw[->] (svmfcr6) ++(0.75,0) -- (mpl1);     %line-2     \draw[->] (svmfcr2) -- node[pos=0.75,nosep] (mpl2){} ++(1.5,0) -- pic[-,pos=0.4]{pt}++(0,-0.75) -- ++(2,0) pic[right]{lifwv} node[right](l2){};     \draw[->] (svmfcr4) -- ++(1.16,0) -- (mpl2); \draw[->] (svmfcr4) -- pic[pos=0.6,-]{jump} ++(1.16,0) -- (mpl2); \end{tikzpicture}    \end{document}      I know one way is to define a semicircular pic with a white fill and overlay it at the intersection (as implemented in the current code and highlighted with a red dashed circle). But ideally, I would like to implement a jump with no fill and define it as a marking decoration on the line, just like an arrow decoration that can be defined using decorations.markings library. Is there a way to implement this?


Wrong wording of close message when question is closed as duplicate of more than one

Take for example . It was closed as a duplicate of two other questions. However, the close message says:        Or, in words:     This question was marked as an exact duplicate of an existing question.   (emphasis mine)  In case of more than one duplicate target, think the message better say:     This question was marked as an exact duplicate of existing questions.


How to show that a prime ideal of height 2 can’t necessarily be generated by 2 elements? (Hartshorne exercise I.1.11)

In Hartshorne section 1.1 he gives a problem (ex 1.11) which says that,   Let $Y \subset \mathbb A^3$ be the curve given parametrically by $x=t^3, y=t^4, z=t^5$. Show that $I(Y)\subset k[x,y,z]=A$ is a prime ideal of height 2 which cannot be generated by two elements.  Firstly, my question is that how can I check whether $Y$ is Zariski closed or not. Is it always the case that, a subset given by $x=f(t), y=g(t), z=h(t); f,g,h \in k[t]$ is always Zariski closed ?  My attempt was to prove that $A/I(Y) \cong k[t^3,t^4,t^5]$ to show $I(Y)$ is prime. And then I wanted to show the map $ \mathbb A^1 \rightarrow \mathbb A^3$ sending $t \rightarrow (t^3,t^4,t^5)$ is a topological embedding. I am stuck in proving that the map is continuous.   After proving this I could have said $Y$ (having proved that it is Zariski closed) is a variety of dimension 1, hence $I(Y)$ has height 2. I don’t know how to determine the least number of generators. Any help from basic algebraic results would be helpful.  I am a beginner in algebraic geometry so I don’t know many things, please keep it as basic as possible.


Does JavaScript pass by references or pass by values? Here is an example from . I am very confused about the my parameter for the rectangle function. It is actually undefined, and redefined inside the function. There are no original reference. If I remove it from the function parameter, the inside area function is not able to access it. Is it a closure? But no function is returned. var shape = function (config) {     var that = {};     that.name = config.name || "";     that.area = function () {         return 0;     };     return that; };  var rectangle = function (config, my) {     my = my || {};     my.l = config.length || 1;     my.w = config.width || 1;     var that = shape(config);     that.area = function () {         return my.l * my.w;     };     return that; };  myShape = shape({     name: "Unhnown" });  myRec = rectangle({     name: "Rectangle",     length: 4,     width: 6 });  console.log(myShape.name + " area is " + myShape.area() + " " + myRec.name + " area is " + myRec.area());


Does the Tenacious badge ever get removed?

I'm very happy to have been awarded the Tenacious badge and, as with many other users, have struggled to understand why I got it. After reading a number of related posts, I understand that now but I'm wondering if I still keep the badge if any of my existing zero-score answers get upvoted in future.  Can anyone clarify?


How to save complex expressions in QGIS Field Calculator?

I have been debugging some long case expressions in the field calculator and getting frustrated because I have to remember to copy the expression before I test it otherwise I end up having to reenter the expression again, fix the typos, ...  Is there a more efficient way of doing this?  Things like the SQL pane of the the database plugin store past queries.


Strange floating-point behaviour in a Java program


Suppose:    $B_i \in \mathbb{C}^{n \times n}$, $0<w_i\in \mathbb{R}$ $(i = 0,1,2,\ldots,m)$ ${\rm P}(x) ={\rm{B}_m} x ^m + \cdots + B_1 x  + A_0$ is a matrix polynomial,  and $x $ is a complex variable. ${\rm q}(x) =\rm{w}_m x^m + \cdots +w_1 x + w_0$ $U= \left\{ {x  \in \mathbb{C}:\left\| P(x)^{-1} \right\| \ge (\varepsilon q(|x|))}^{-1} \right\}$, where $\left\| \cdot \right\|$ is any subordinate matrix norm.   Why can the boundary of $U$ be written in the form $S = \left\{ x  \in \mathbb{C}:\left\| P(x )^{-1} \right\| = (\varepsilon q(|x|))^{-1} \right\}$?


How does a Silicon-Controlled Rectifier (SCRs) work?

I know that when in a SCR the anode is made more positive with respect to cathode the two outermost p-n junction get forward-biased but the middle one is still reverse-biased  so no current flows through it but when a small gate current is applied to it the middle junction also get forward-biased and allows a huge amount of current to flow through it but in my text book it is not described at the atomic level what happens it is only it's working stated. Can anyone give an explanation of what is going on the atomic level.  Thanks   Akash


Let $g:[0,1] \rightarrow \mathbb R$ be a continuous function and assume that    $$ \int_{0}^{1} g(x) \phi'(x) dx = 0 $$   for all continuously differentiable functions $\phi: [0,1] \rightarrow \mathbb R$, where $\phi (0) = \phi(1) = 0$. Show that $g(x) = c$ for all $x \in [0,1]$ for some constant $c \in \mathbb R$.    My thoughts are applying integration by parts with $G(t) = \int_{0}^{t} g(x) dx $, since now we get  $$ 0 = \int_{0}^{1} G(t) \phi'(t) dt  + \int_{0}^{1} g(t) \phi (t) dt $$  which doesn't really go far. The second thought was applying MVT for definite integrals, which doesn't go far either as the conditions are hardly satisfied.   Any hints?


"I am yet to see" versus "I have yet to see"

What is the difference between     I am yet to see X   and     I have yet to see X   and in which situations would each be preferred?


"The antipodal map of $S^2$ is the isometry $\bar m$ sending each point $P$ to its opposite point $-P$" (from textbook)  Show that antipodal points remain antipodal under any isometry of $S^2$. In other words, for each isometry f of $S^2$, if $P$ and $P'$ are antipodal, then so are $f(P)$ and $f(P')$  I am unsure how I can define the $P$ and $P'$ so that they are opposites of each other in the antipodal map, and am I supposed to apply the traditional isometries (translation, reflection and rotation) to the points? I don't understand this problem.


How to cycle through an enum indefinitely but NOT in a for loop?

I'm using the .NET System.Windows.Forms.DataVisualization.Charting types and want to assign a MarkerStyle to each Series I create preferably skipping MarkerStyle.None, but getting the next one each time and cycling around to the beginning again.  private MarkerStyle markers = new MarkerStyle();  public Series CreateSeries(string name) {     var s = chart1.Series.Add(name);     s.ChartType = SeriesChartType.Point;     s.MarkerSize = 7;     s.MarkerStyle = Cycle(markers ,MarkerStyle.None); // get next marker style     s.XValueType = ChartValueType.DateTime;     return s; }   I tried variations of the following code I found, all of which don't compile:  public static IEnumerable<T>Cycle<T>(IEnumerable<T> iterable,<T> skip) {     while (true)      {         foreach (T t in iterable)         {             if(t == skip)             continue;             yield return t;         }     } }   Gives error      CS0411. The type arguments for method   'MyClass.Cycle(System.Collections.Generic.IEnumerable)' cannot   be inferred from the usage. Try specifying the type arguments   explicitly.   Although I have a specific use it would be nice for a generic answer.  Edit: Having looked at the code above more closely and I see it was never going to work outside a foreach loop. Ho hum. Time to write a hack:  private int _markerIter = 0; private readonly int _markerCount = Enum.GetValues(typeof(MarkerStyle)).Length;  public MarkerStyle Cycle() {     if (_markerIter + 1 == _markerCount)     {         _markerIter = 1; //skips MarkerStyle.None which is == 0     }     else     {         _markerIter++;     }      return (MarkerStyle) _markerIter; }


A reputation change isn't being displayed on my profile

Yesterday I had 3,606 reputation but today I have 3,592.  My profile shows that I lost 6 reputation when a user was removed, but that would put me on 3,600 - 8 reputation has magically disappeared.  Adding up all of my reputation does work out at 3,591 (I'm assuming by default new users have 1 rep, so that would make sense).  Somewhere a reputation change since yesterday isn't being displayed. I don't know what this would be for, but -8 would lead me to believe that someone removed their up-vote on an answer I'd posted which already had a down-vote (could it be from that deleted user?).  I don't know if this is a bug or if there is simply a delay between reputation updating, but I figured it was worth reporting.    Sadly I cannot prove that I had 3,606 reputation yesterday.


If temperature is amount of kinetic energy of particles, then how can there be a cold breeze?

When we put hands on A/C it gives cold winds. These winds have high kinetic energy but low temperature. How ? *don't confuse with A/C being heat pump , just an example, take antarctic blizzards. I can't understand the paradox of low temperature winds. Temperature is something defined by kinetic energy


My circuit doesn't respond properly to the duty cycle

my circuit is shown on the picture. the problem is the output of the mosfet does't work as desired. For example, If I use Vin=100V and the duty cycle is 50%, the output is Vout=19V.  Anyway, the output is not even near to the desired value. can you help, please?


Can I gain entry to the US with a damaged ePassport chip, under the new rules (post-April 2016)?

As per the title really. I am travelling to the US on Saturday (I know, a little late to be asking this!) and I am concerned that I will have problems on arrival due to my passport chip not working.  As I have an ePassport I can apply for an ESTA, and I have read other comments regarding the fact that the ESTA requirements only state that the passport needs a chip, not that it has to be working, but these don't seem to be related to experience with the new system implemented in April 2016. Does anyone have specific experience with the post-April 2016 system?  I am travelling to Miami International.


In the following MWE example:  \documentclass{article} \newenvironment{myitem}{\item}{}%  \begin{document} \begin{enumerate}   \begin{myitem}     Item \hfill\textbf{(Text)}   \end{myitem}    \begin{myitem}     Item \hfill{\textbf{(Text)}}   \end{myitem}    \item Item \hfill{\textbf{(Text)}}    \item Item \hfill{\textbf{(Text)}} \end{enumerate} \end{document}   The output looks like this   Notice that for my environment myitem, the spacing is not quite right. I can fix this by requiring the user of myitem to add % right after \end{myitem}.  Why is the environment behaving differently from the the command \item? Also, is there a way to change the definition of myitem so that adding % is not needed?


Points that fall outside a polygon in QGIS

I need to figure out how many points, and which ones (with labels) fall outside the boundary of a particular polygon in QGIS.


Suppose we have a measure $\mu$ and a space $X$ such that $\mu(X)=1$, and a function $f \in L^r$ for some $r > 0$, where $L^r$ is defined in the usual way even for numbers less than $1$.   Show that $lim_{p \to 0} ||f||_p =$ exp$(\int $log$|f|d\mu)$, where we note that exp(-$\infty)=0$ by convention.  Stuck on this one. Trying to use Holder's! Thoughts?


How to get the Nambu-Goto action from the Polyakov action by lagrangian multiplier?

I consulted some textbooks about string theory, but they only told me that the Nambu-Goto action and the Polyakov action is equivalent. So I searched relevant questions here and got some ways of derivation however I want to know relation between the two actions and lagrangian multiplier.


Why is a weakened AES is easy to crack with KPA?

I started to study a cryptographic course and I got stuck on a question about AES: If we take the AES algorithem and only perform mixColumns and addRoundKey operations as well as only using one key instead of a round key. (so all keys are the initial key) describe a "Known Plaintext Attack" on this circumstance. What I know: -That only by using the same key every bit is connected to the cypher text by the second round, even if we didn't take the first 2 operations of the AES. -I need to find the number of operations required to brute force the code with this weakened algorithm. My question: How "mixColumns" and the key works exactly to conceal the cypher, and how many operations it would take to brute force it if I had a message and a matching cypher.


I thought the following rule was set in stone: don't use 'and' between a pair of adjectives preceding a noun:  However, someone in the comments on the following question disagrees, saying: it's not a hard rule, it's a matter of style, and here are some examples to back it up.  I thought to get confirmation and a second opinion.  EDIT 1 It can probably be generalized to a list   EDIT 2 Thanks for confirming what @Lambie said. I have to admit that It involves a technological, theoretical challenge didn't sound so good, or at least It involves a technological and theoretical challenge sounded better (in the first place). Moreover, the link that I supplied does say in the beginning that there are exceptions such as a black and white shirt.  EDIT 3 Regarding the suggested link  It suggests a test for coordinate adjectives. First, the test of replacing the comma with an 'and' doesn't clearly say (like @Anton confirmed) that it's a correct option that can be used (until @Lambie corrected me, I thought you can't use 'and' at all). In both cases, it says you shouldn't. Moreover, according to the test, both of my examples  It involves a technological and theoretical challenge. He wore a black and white shirt.  fulfill the coordinate adjective test, and the link says that comma should be used instead of 'and'. I believe this to be incorrect. If I had to guess, I think the rule might be related to the order of adjectives:  If the adjectives belong to the same category, then they would naturally pass the coordinate adjective test. However, since they belong to the same category, 'and' should be used instead of a comma. At least I think it applies to my two examples above. A link on the subject that might be useful:


Show that for the circulant matrix      $$C =  \begin{bmatrix} c_0     & c_{n-1} & \dots  & c_{2} & c_{1}  \\ c_{1} & c_0    & c_{n-1} &         & c_{2}  \\ \vdots  & c_{1}& c_0    & \ddots  & \vdots   \\ c_{n-2}  &        & \ddots & \ddots  & c_{n-1}   \\ c_{n-1}  & c_{n-2} & \dots  & c_{1} & c_0 \\ \end{bmatrix}$$      the eigenvectors are      $$v_j = \left(1,w_j,w_j^2,...w_j^{n-1}\right), \qquad j=0,1,..,n-1,$$      where $$w_j = \exp\left(2\pi i j/n\right)$$ is the $n$-th root of unity. Show that the $\left(v_j\right)$ are linearly independent.   To show that the $v_j$ are eigenvector the only way I know is to solve the difference equation associated to the characteristic polynomial of $C$ to get a unique eigenvalue $\lambda$. Then find $\text{ker}\left(C-\lambda I\right)$. Is there an another way?    As for linear independence, I don't see how to reduce the matrix $\{v_j\}$ whose column are the eigenvector $v_j$.


Stack Exchange site for discussing international standards

I'm interesting is discussing and asking questions relating to various international and national standards. Is there currently, or is there any plan to create, a Stack Exchange site for standards?  Defined  Standards are conventions, whether formalised or not, for interoperation in trade, technology and other areas of human activity involving multiple people across heterogeneous environments.  Most people have heard of international standards such as the ISO 9001 Quality Assurance standard, or ISO 3166 Country and Subdivision codes. These are examples of standards published by ISO, the International Organisation for Standardisation.  Many other organisations, both public and private, also publish standards, such as the IEEE (Institute of Electrical and Electronics Engineers), the W3C (World Wide Web Consortium), and so forth.  In addition, most countries have national standards organisations, such as Standards Australia which publishes Australian national standards, and so on.  Relevance  Standards are an important part of life in technology, trade, commerce, finance, and many other areas of human activity.  The purpose of a relevant Stack Exchange community would be for members to ask questions about the existence, meaning, interpretation and implementation of specific standards which can then be answered by experts on those standards.  I believe this would be an extremely useful resource and lends itself well to the Stack Exchange community-rated question and answer format.


How could I catch an exception from the default initialization of members in a constructor?

In my constructor, I have to initialize the _socket. But initializing the socket can throw an exception. How can I catch and process the exception ?  Thanks ! Here my code:   tftp_server::tftp_server(unsigned short port_number) : _socket(_io_service, udp::endpoint(udp::v4(), port_number)) {         //... }


Install Desktop Environments or use different distributions

For you that have tested this, should we use Ubuntu and install different Desktop Environments (KDE/XFCE...) or we should install different distributions (Kubuntu/Xubuntu...). Are there any notable issues in performance / CPU consumption?  PS:  I know how to install them (already did), I wanted to know if anyone has any problems regarding the performance and what is better to install the desktop or to use the ditribution


Why is there something instead of nothing?

A simple but fundamental question.    The "something" means the whole Universe (known and unknown), it could be represented as the reality version of the set of all sets, which is itself . It includes all the  and such.  A better version of the whole Universe could be described with a .  The "nothing" means an absence of the whole Universe, not a particular void or emptiness in the whole Universe but a nonexistent whole Universe.


Advanced Potion-Making (by Libatius Borage!) was used for sixth year Potions classes. Canon does not make clear whether it was also used for seventh year Potions, so I'm going to presume it was only the sixth years' textbook. Slughorn passes out two battered copies of Advanced Potion-Making to Harry and Ron, and Harry ends up with Snape's old textbook, as we know. A few relevant passages from Half-Blood Prince and Deathly Hallows:     Harry bent low to retrieve the book and, as he did so, he saw something scribbled along   the bottom of the back cover in the same small, cramped handwriting as the instructions that had won him his bottle of Felix Felicis, now safely hidden inside a pair of socks in his trunk upstairs.   This Book is the Property of the Half-Blood Prince   Half-Blood Prince - page 183 - Bloomsbury - chapter nine, The Half-Blood Prince   ‘SECTUMSEMPRA!’ bellowed Harry from the floor, waving his wand wildly.   Blood spurted from Malfoy’s face and chest as though he had been slashed with an invisible sword. He staggered backwards and collapsed on to the waterlogged floor with a great splash, his wand falling from his limp right hand.   Half-Blood Prince - page 489 - Bloomsbury - chapter twenty-four, Sectumsempra   ‘You dare use my own spells against me, Potter? It was I who invented them – I, the Half-Blood Prince! And you’d turn my inventions on me, like your filthy father, would you? I   don’t think so ... no!’   Half-Blood Prince - page 563 - Bloomsbury - chapter twenty-eight, The Flight of the Prince   ‘Snape?’ shouted Harry. ‘You didn’t say –’   ‘He lost his hood during the chase. Sectumsempra was always a speciality of Snape’s. I wish I could say I’d paid him back in kind, but it was all I could do to keep George on the broom after he was injured, he was losing so much blood.’   Deathly Hallows - page 66 - Bloomsbury - chapter five, Fallen Warrior   There is no question Snape is the Half-Blood Prince, or that Harry got hold of Snape's former textbook; as well as useful potion-making information, it also contained rather questionable (Levicorpus) and downright dangerous original spells (Sectumsempra).  Not only did Snape have the opportunity to secure his copy of Advanced Potions Making at the end of his sixth year, I'm guessing he had all of his seventh year to destroy, hide, or keep the book as well. Also, he had at least five years as Hogwarts' known Potions master to ensure the book was kept away from the students.   As Potions master, Snape would have had access to all inventory relating to the Potions classes, including Hogwarts' copies of any potions textbooks. It would seem likely, while arranging or cleaning his classroom and stores, Snape would have come across his old textbook at some point. I personally think he would've recognized it. So, to ensure the book didn't fall into students' hands:  Why didn't Snape keep or secure his copy of Advanced Potion-Making?   (Or did Snape want a student to find it for boastful personal reasons, just as Tom Riddle used the diary Horcrux to take credit for the Basilisk and being the Heir of Slytherin?)


If $f'(x)\le g'(x)$, prove $f(x)\le g(x)$

I have to do the following exercise:     Let $f$ and $g$ two differentiable functions such that $f(0)=g(0)$ and $f'(x)\leq g'(x)$ for all $x$ in $\mathbb{R}$. Prove that $f(x)\leq g(x)$ for any $x\geq0$.   Now, I know this is true because the first derivative of a function is the angular coefficient of the function in a point $x$. So, $f'(x)\leq g'(x)$ means, in other words, that the function $g(x)$ grows faster than $f(x)$. I think this is the base for a more formal proof, could someone help me to figure out a more formal proof?


Equivalent for the Russian idiom "to write into the drawer"

There is following idiom in Russian "to write into the drawer" which is being used to describe situation when writer or scientist writes (sometimes prolifically) without publishing anything. Are there direct equivalent or some other idiom/expression which conveys the same idea in English?


How to Use slideDown (or show) function on a table row?

I'm trying to add a row to a table and have that row slide into view, however the slidedown function seems to be adding a display:block style to the table row which messes up the layout.  Any ideas how to work around this?  Here's the code:  $.get('/some_url',    { 'val1': id },    function (data) {     var row = $('#detailed_edit_row');     row.hide();     row.html(data);     row.slideDown(1000);   } );


Getting rid of New Game+ (or +2) in Rogue Legacy

I beat Rogue Legacy twice recently and I'm now at New Game +2, however, I don't like it. It's too difficult for me. Is there a way to go back to New Game+ without re-doing everything? I have located the save files but opening in notepad doesn't really tell me anything. Is there a way to edit the save files, or even an in-game option?


If $x|yz$ and $\gcd(x, y)$ = 1 then $x|z, x, y, z \in \mathbb{Z}$

If $x|yz$ and gcd$(x, y) = 1$ then $x|z $  $ ,  x, y, z \in \mathbb{Z}$  My thoughts:  $yz= dx$ and $mx +ny = \gcd(x, y)= 1$ where $d, m, n \in \mathbb{Z} \implies z =dx/y \text{ and } y = (mx-1)/n$  but I cannot prove it.


Evaluate the limit containing $\arctan{x}$ and $\arcsin{x}$

Evaluate:  $$\lim_{x\to{0}}\bigg(\frac{2}{x^3}.(\arcsin{x}-\arctan{x})\bigg)^{2/x^2}$$  I can just expand $\arcsin{x}$ and $\arctan{x}$ using their taylor expansions, but is there any other method?


Proving multivariable limit exists where $\frac{a}{c} + \frac{b}{d} \gt 1$

Given that $\frac{a}{c} + \frac{b}{d} > 1$, I am attempting to show that  $$\lim_{(x,y)\rightarrow(0,0)} \frac{|x|^{a}|y|^{b}}{|x|^{c} + |y|^{d}} = 0$$  My attempt at a solution:  Let's assume the limit is in fact zero, and prove it with the Squeeze Theorem.  We have that  \begin{align*} \Bigg|\frac{|x|^{a}|y|^{b}}{|x|^{c} + |y|^{d}}\Bigg| &= \frac{|x|^{a}|y|^{b}}{|x|^{c} + |y|^{d}} \\ &\leq \frac{1}{2}|x|^{a-\frac{c}{2}}|y|^{b-\frac{d}{2}} && \text{using the fact that } a^{2} + b^{2} > 2ab \end{align*}  But I'm not quite sure how to proceed from here to apply the inequality given and find a limiting function, if I am even on the right track with the inequality I applied. This isn't homework ( a practice question I found ), any help would be greatly appreciated.


I am making a poster using the beamer document class. What I have done is that I divided the poster in two columns. In each column I do have a few blocks with content. What I want to do is to continue a block's body in the next column in case that it doesn't fit in the first one. Is that possible somehow?  Below I provide a minimum example of how my configuration is.  \documentclass{beamer} \usepackage{lipsum}  \newlength{\columnheight} \setlength{\columnheight}{25cm}  \begin{document}  \begin{frame}[fragile] \begin{columns}     % ---------------------------------------------------------%     % Set up a column      \begin{column}{.49\textwidth}         \begin{beamercolorbox}[center,wd=\textwidth]{postercolumn}             \begin{minipage}[T]{.95\textwidth}                 \parbox[t][\columnheight]{\textwidth}{                     \begin{block}                         \lipsum[1-2]                     \end{block}                 }             \end{minipage}         \end{beamercolorbox}     \end{column}     \begin{column}{.49\textwidth}         \begin{beamercolorbox}[center,wd=\textwidth]{postercolumn}             \begin{minipage}[T]{.95\textwidth}                 \parbox[t][\columnheight]{\textwidth}{                 }             \end{minipage}         \end{beamercolorbox}     \end{column} \end{columns} \end{frame}  \end{document}


I'm running into trouble trying to mount a large iso:  dev@dev-OptiPlex-745:~$ sudo mount -o loop /home/dev/Hämtningar/matlab2011a_64.iso /cdrom mount: warning: /cdrom seems to be mounted read-only. dev@dev-OptiPlex-745:~$    Can you tell me how I should do it?


I can not add all the images because the account is new and I don't have enough reputation.  I have an object (a tube of a cream) with three diferent materials, the base "plastic" material and I have created two separated materials to add the front and black labels to the tube.  The front and back label materials is the same as the "base material" but I'm trying to overlay the PNG image on top of it.  For doing that I have unwraped the parts of the object where the labels should go and placed the islands on top of the image.  I have created separated UV Maps for that purpose.     On the viewport view everything seems ok: As you can see the texture is correctly placed.   Render / Rendered view unexpected output: When rendering or in the rendered mode of the viewport the material with the UV Map appears as black.   Material nodes: For further info in case it's needed here are the screencaps of the material of the front label:        How can I solve this? Thank you!


I have tracked down the code that is missing the alt tag not sure how to add it or where to add the code. All of the images have the tags just not showing up.

Sydney Boat Hire

Home  Sydney Boat Hire

 ****

Zephyr

Total Capacity: 30

Price P/H From: $550

 See More

   Many thanks  Danny


disco Release' no longer has a Release file

I used this command: sudo apt update  to update my packages on Ubuntu, but it shows the errors below: Err:13 http://archive.ubuntu.com/ubuntu disco Release  404  Not Found [IP: 91.189.91.38 80] Err:14 http://archive.ubuntu.com/ubuntu disco-updates Release   404  Not Found [IP: 91.189.91.38 80] Err:15 http://archive.ubuntu.com/ubuntu disco-backports Release   404  Not Found [IP: 91.189.91.38 80] Err:16 http://archive.ubuntu.com/ubuntu disco-security Release   404  Not Found [IP: 91.189.91.38 80] Reading package lists... Done  Here is the screenshot:


Characterizing spectral radius using invertible elements in unital $C^*$ algebra

Consider $A$ a unital $C^*$ algebra, I want to show that the spectral radius  $r(a)$ satisfies the following: $$r(a) = \inf_{b\in \operatorname{Inv}(A)}\|bab^{-1}\|$$ where $\operatorname{Inv}(A)$ is the set of invertible elements in $A$.  So far I can only see one direction, namely $r(a) \leq  \inf_{b\in \operatorname{Inv}(A)}\|bab^{-1}\|$. I wondering how to prove the other direction.   Thank you very much for the help.


What is happening with the sizeof this struct?

I was looking into structs in C when I noticed this oddity.  #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h>  struct vulnStruct {     char start[20];     char overflow[10];     char *controlledPointer; };  int main(int argc, char *argv[]){     struct vulnStruct *test = malloc(sizeof(struct vulnStruct));     printf("Sizeof vulnStruct: %d\r\n", sizeof(struct vulnStruct));     printf("Sizeof start: %d\r\n", sizeof(test->start));     printf("Sizeof overflow: %d\r\n", sizeof(test->overflow));     printf("Sizeof controlledPointer: %d\n\r", sizeof(test->controlledPointer));     free(test);     return 0; }   When compiled this program should output the sizeof the vulnStruct and its elements. Manually adding up the struct shows that it should be 38 bytes long however when this program is run it shows that the struct's size is instead 40 bytes long. At first I thought it was just padding for the struct as answered here () however, when I add a 2 byte field (uint16_t) to the end of the struct in an attempt to fill the padding it just increases the struct by 2 bytes. Is this because the controlledPointer is being padded to 10 bytes by the compiler and won't let anything else use that space or is there something like a canary at the end that is taking up the space. If it is just padding is there anyway to arrange the elements so that the padding can be used by another field?  EDIT: It would probably help if I get the output of the program as well  Sizeof vulnStruct: 40 Sizeof start: 20 Sizeof overflow: 10 Sizeof controlledPointer: 8   Thanks in advance!


Scifi novel from 90's with AI, robots, and a holodeck-like room

Can't recall what any of the title would be or who the author was. But the book involved the main character meeting a rich genius with a private island. He has an AI as his central computer, and it acted more like a teenage girl. His robots were emotional AIs too. And i remember a scene where part of their education was them in a room with a cow, they end up killing the cow and they learn how to control their robot bodies. Also the main character ends up learning about the rich guys' plan for mining an asteroid as she is in a holodeck type room. Seems like it should be easy to google this but my keyword combinations are coming up empty. EDIT: OK someone else must have read this book. Let me summarize some more information I remember and see if that helps jog anyone's memory about reading this book.  It is a full size novel, forgot the number of pages but definitely more than 100. It takes place in "the current day" or at least the near future, and on earth. Not sure if it was published in the 90s but i remember reading the paperback then. 94ish... The main character I think is a reporter, but maybe a graduate student. I remember the main character falling in love with the eccentric rich guy. The AI in the book is allowed to choose a gender. There are a large number of the robots I've mentioned living on the island. One of the robots runs out of power,that is sort of like death for them. But when they bring it back online it has some of its memories but it is a different personality. The rich guy is launching things into orbit from his island, part in the book where the main character gets too close to the launch site and is almost killed. The "holodeck" like room is more like current day VR. I remember the room changed shape and maybe had treadmill like properties to allow the person to move around and interact with objects. The end of the book or near the end has one of the robots observing the humans and thinking that they are different. Almost implying that different is bad or something. AKA robot uprising.  I'll keep updating this post with more information as I remember. But the critical pieces like character names I just can't recall.   adds:  The female protagonist has some sort of psychology background and has caught the attention of the wealthy genius telco/data magnate mentioned above.  He has an AI controlling his systems/satellites which is having some problems and needs a little 'help'. You're bang on with the holo deck and mining of an iron asteroid that he has towed in from the asteroid belt as iron in space in FAR more valuable than gold. If any of this helps please let me know the authors name and or the ISBN of the book.   adds:  I do remember the rich guy was wondering if someone with a psychology background (the female main character, who jumped into this assignment because of something that happened in her professional of personal environment) could help his robots to overcome some mental problems. She doesn't know upfront what she's stepping into, and has to discover for herself what's really happening on the island, namely robots who procreates themselves, and learn by trial and error. I remember the book giving examples as how a human would not calculate exactly how much coffee he can put in a cup without spilling it while walking around with it, we learn by trial and error, sort of "fuzzy logic" (don't know if that term is used in the book).


Why is there a null pointer exception error in my code?

Why is there a null pointer exception error where prev.value.compareTo(v)<0 and if(cur.value.compareTo(v)<0 ?  public void insert (T v) {         Node prev = head, cur = head.next;           if(prev==null)             {             prev=head;              }          else if(prev.value.compareTo(v)<0)  //v belongs in the front         {             prev.value=v;             prev=prev.next;         }          else         {              //iterate through the list             prev=prev.next;             cur=cur.next;             while(cur!=null)             {                 if(cur.value.compareTo(v)<0)                  {                     prev=cur;                     cur=cur.next;                 }              }          } }


Unity hotkey for minimizing current window?

What are the hotkeys for switching the current window between maximized, normal, and minimized states? If some of these don't exist, can I set them somewhere?


How to prove: if $\forall a,b,c$, $ab=ac\Rightarrow b=c$ and $ba=ca\Rightarrow b=c$ then $(G,\circ)$ is a group

I'm reading basic algebra notes and met this exercise:  Let $\circ$ be an operator defined on $G$, if $\forall a,b,c$, $$ab=ac\Rightarrow b=c$$ and $$ba=ca\Rightarrow b=c$$ then $(G,\circ)$ is a group.  I couldn't figure this out. Could you pls give me some hint?


How can I convert 14/Jul/2015 into 14-08-2015?   It is saying invalid date format because of the Jul element, but if I put 07 then it works fine.  I have tried this:  echo "Please enter the date: " read X (here X is 14/Jul/2015) a= date --date=$X '+%d-%b-%y' echo "$a"


in python's pexpect, how to cancel the print "TERM environment variable not set"

I'm using python's pxssh, which inherits from pexpect and specializes in ssh. my program writes commands to  a linux shell , and prints the output to a file.  Once in a while, I get a weird print: "TERM environment variable not set."  How can I cancel it, or what does it mean?  I'll attach code if needed.


Checks to be done, before/after changing the windows login password?

Here we have a scenario where a Service account , added under security as sysadmins for windows login, going to have its password change as per windows policy.  Since windows team, server admins are going to change the password, where should i check or what pre-activity should i consider before the password is changed.  This account (windows domain) is running the SQL services as well.


It's working fine from TERMINAL mode but when i change terminal mode to GUI mode in ubuntu, and enter password for user name it'l again logout, my password is correct. But always redirect to again logout.


I'm using WHM on a VPS and am trying to work out whether or not I need to upgrade the hardware.  I've currently got 4GB of memory. When I look at the daily process log it seems I have a site averaging around 30% memory usage and another averaging around 15% on the same server. So that's an average of 45% across the day (there are a couple of smaller sites, too), which I suspect means it'll be spiking a lot higher than that? I am experiencing slow loading sites on that server occasionally, hence my interest.  What would be a good % total average memory used for all the sites on a server? As a rule of thumb?


C# Syntax Question on Question Mark and Colon

There are several statements in an existing project that includes ? and :.  I would like to understand what do they mean, and in the following statements, if they can be explained.  loginID = rawLoginID.Contains("\\") ? rawLoginID : domain + "\\" + rawLoginID;  string orgUnitCode = row[ORG_UNIT_CODE] != null                      ? row[ORG_UNIT_CODE].ToString()                      : string.Empty;  loginID = loginID.Contains("\\") ? loginID : domain + "\\" + loginID;   The syntax that I am not sure are ? :  Thank you.


Is there a sandbox to play with Stack Overflow API?

Just trying to figure it out without spamming the website. There really should be something to allow people to learn the API.


Is there a term for switching syllables of words?

Primary question: A common speaking mistake is to exchange syllables of words, saying "It's trace rhyme!" instead of saying "It's race time!", or pronouncing "kickin' chackatory" instead of "chicken cacciatore." Is there an existing name in poetry, linguistics, or English studies for switching syllables of (quasi-)consecutive words? I am not especially interested in the case when switching syllables results in interpretable homonyms or portmanteaus, like in the first example.  Secondary question: if not, what would you call it?  Tertiary question: is there somewhere a (playful?) taxonomy of fruitful or unfruitful lingual aberrations?


Super+D key shortcut does not show desktop

I recently installed Saucy Salamander on my computer. Previously in Ringtail, Super+D used to show the desktop. However for this release, the Super+D does not seem to work properly... Is it a bug?


How to connect to CheckPoint VPN on Ubuntu 18.04LTS?

I need to connect to Checkpoint VPN (using login & pass authentication method). For Windows I'm able to connect, using their client, CheckPoint Endpoint Connect. But i was not able to find the above client for linux too (not available). Is there another way to connect to this VPN, rather than having to switch on Windows?


Term for word created after observing something new that is now outdated?

Astronomy is full of terms that were developed phenomenologically without a real understanding of the physical processes behind the phenomena.  Science marches on though, and many of these terms are now outdated as we've developed a better understanding of the physics behind the phenomenology.  Unfortunately, these outdated terms are still used rather than being replaced with new terms that better represent what is actually happening.  An example will help clarify what I mean.  Galaxies come it two main types: elliptical galaxies and spiral galaxies.  Elliptical galaxies are often called "early-type galaxies" and spiral galaxies are often called "late-type galaxies" because many decades ago it was believed that elliptical "early-type" galaxies gradually change into spiral "late-type" galaxies.  However, there is a large body of evidence that now shows that the evolutionary picture of a galaxy is not so simple, and if anything it is the "late-type" galaxies that change into "early-type" galaxies.  The terms "early type" and "late type" have far outlived their usefulness, yet they are still used by astronomers today.  I am wondering:   What is a good word to describe terms that are now outdated and no longer accurate/useful?  Example sentence:  "Terms like early type and late type are ..." What is a good word to describe the phenomenon of such words still being used, even though everybody knows the terminology is unnecessarily confusing and inaccurate?  Example sentence: " ... in astronomy confuses many inexperienced young astronomers."


Why should field operators satisfy the classical equations of motion?

To quantize a scalar field theory with the action:  $$S=\int \mathrm d^Dx\mathscr{L}(\phi,\partial_\mu\phi)=\int \mathrm dx^0L(\phi,\partial_0\phi)$$  we promote $\phi(\vec{x})$ and $\pi=\frac{\delta L}{\delta(\partial_0\phi)}=\pi(\vec{x})$ to be field operator at fixed time $x^0$ (with the canonical commutation relation $[\phi(\vec{x}),\pi(\vec{y})]=\delta^{D-1}(\vec{x}-\vec{y})$), then we use the classical equation of motion to find $\phi$ and $\pi$ at all time.  What principles lie behind this? Why can we assume that the field operators satisfy the classical equation of motion?    By example if we have a classical theory with $S=\int \,\mathrm dtL(\phi,\partial_t\phi)$, momentum $\pi=\frac{\delta L}{\delta(\partial_t\phi)}$ hamiltonian $H=\pi\phi-L$, the classical equation of motion is:  $$\frac{\mathrm d\phi}{\mathrm dt}=\frac{\delta L}{\delta(\partial_t\phi)}$$  When we do the canonical quantization, we promote $[\phi,\pi]=\delta(\vec{x}-\vec{y})$ and the equation of motion for $\phi$ is $$\frac{\mathrm d\phi}{\mathrm dt}=i[H,\phi]$$  Why should $i[H,\phi]$ has the same form as $\frac{\delta L}{\delta(\partial_t\phi)}$? This fact comes from where?


How to find out what's accessing a particular hard drive on Windows?

Possible Duplicate:          My HDD on a dock just started making noises like it's being accessed but I don't see any program accessing it.  Is there a program that shows which HDD is accessed by which program in percentages similar to how the task manager shows which programs use the most CPU?


I trying to install wine with   sudo apt-get install wine1.6   and Terminal showing this   Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  wine1.6 : Depends: wine1.6-i386 (= 1:1.6.2-0ubuntu4) but it is not installable            Recommends: cups-bsd but it is not going to be installed            Recommends: gnome-exe-thumbnailer but it is not going to be installed or                        kde-runtime but it is not going to be installed            Recommends: fonts-droid but it is not going to be installed            Recommends: fonts-liberation but it is not going to be installed            Recommends: ttf-mscorefonts-installer but it is not installable            Recommends: fonts-horai-umefont but it is not going to be installed            Recommends: fonts-unfonts-core but it is not going to be installed            Recommends: ttf-wqy-microhei            Recommends: winbind but it is not going to be installed E: Unable to correct problems, you have held broken packages.


\bibentry problem with chapterbib package

In my document I want to create a separate bibliography for each chapter. This works fine by using the chapterbib package. However, \bibentry does not work anymore in included files when invoking the chapterbib package. The MWE shows that the full cite is present in the main document, but does not show in the chapter.  \begin{filecontents}{mytestbib.bib} @Article{einstein1911,  author        = "Albert Einstein",  title         = "On The influence of gravitation on the propagation of light",  journal       = "Annalen Phys.",  volume        = "35",  pages         = "898-908",  year          = "1911"} \end{filecontents}  \begin{filecontents}{testchap.tex} \chapter{light} A full in-text cite of \bibentry{einstein1911}.\\ A regular citation: \citep{einstein1911}. \bibliographystyle{apalike} \bibliography{mytestbib} \end{filecontents}  \documentclass{scrbook} \usepackage{filecontents} \usepackage{natbib} \usepackage{bibentry} \usepackage[sectionbib]{chapterbib} \nobibliography*  \begin{document} A full in-text cite of \bibentry{einstein1911}.\\ A regular citation: \citep{einstein1911}.  \include{testchap}  \bibliographystyle{apalike} \bibliography{mytestbib} \end{document}


I recently downloaded Ubuntu from the microsoft store, and I am looking to install fdupes to get rid of a bunch of duplicate files I have. When i try to install, i'm met with:  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package fdupes   I have looked around but I have no clue how to download the package or any basic Ubuntu options, I am completely new to this. I also only have the terminal window downloaded from the microsoft store. Additionally, if i try to update, i get the error that it cannot reach the archive or security URLs listed.  Please Help


Could you recommend a GUI application with powerful log watching capabilities?  Generally it would work as tail -f in GUI, but on top of that following features would be very useful:   filtering out some lines based on (regular) expressions  coloring some lines based on (regular) expressions interactive search saveable configuration easily applicable to different files notifications based on (regular) expressions   A similar tool on Windows is  and its paid version -


"I've lived in __ two years" vs "I lived in __ two years"

There is a question that's confused me for a long time.  Let's say I'm in Korea right now and I get asked  "How did you get the American accent" while talking to a stranger at a pub, can I say either:      "I lived in California for 2 years"   or   "I've lived in California for 2 years"?   I suppose the former one is only acceptable since the latter is implied that I still live in California and now I am in California.  Am I right here?


fontspec and/or xdvipdfmx can't find certain fonts

This morning, I updated my MacTeX installation to the 2015 install. Unfortunately, something is now having some trouble with the font (Century/Century Schoolbook) that I use most [edit: everything worked fine before]. I'm a relative amateur with TeX and couldn't fix the issue with a couple hours of Googling, so here I am. Help!  The issue appears to be that fontspec and/or xdvipdfmx (whatever that is) are having trouble finding certain fonts on the computer. So some fonts work, others just don't. My investigations suggest that the fonts that are having trouble appear to be ones that came with MS Word—all of the offenders so far were originally located in /Library/Fonts/Windows. I moved them to the main folder but that didn't help, so I don't know what it is that's making these specific fonts invisible or uncooperative.  I've seen two similar errors. First, e.g., with the Century font. This code:  \documentclass[12pt]{article}  \usepackage{fontspec} \setromanfont{Century}  \begin{document} This is a test. \end{document}   Produces this error and refuses to compile/typeset:  xdvipdfmx:fatal: Cannot proceed without the font: /Library/Fonts/Century   But with other fonts, e.g. Colonna, I get something slightly different. This code:  \documentclass[12pt]{article}  \usepackage{fontspec} \setromanfont{Colonna}  \begin{document} This is a test. \end{document}   Produces this error and refuses to compile/typeset:  /Test.tex:5: fontspec error: "font-not-found"  !  ! The font "Colonna" cannot be found.


What happens if I connect 24V to 5V push switch?

In this circuit I am using a push button rated 5V.  I am planning to connect a voltage source having 24V.  What will happen?  Circuit diagram of the switch.   Partnumber: SPVR110102


I have a directory named dir1, owned by root, with permissions 777. I have a file named file1 inside of dir1, owned by root, with permissions 644. I'm logged in as a normal user named user1.  Why is it that if I edit file1 inside vim, which states that it is a readonly file, I can save it via wq!? My expectation is that unless I sudo in, I ought to be denied write access.  I have noticed that following the edit, the ownership of file1 has changed from root to user1. I also noticed, if I change dir1 permission to 775, my expectations are met. That is, I am denied write access.


iOS 8.4 Apple Music App: How to shuffle all songs by an artist?

With the complete redesign featuring the new streaming mixin (which I don't use), it seems that when listening to music from my library (stored on my device) I can only shuffle songs within a single album for an artist.   This is not a dupe of , in that I'm not asking how to shuffle all songs in the library.


I have to find a limit (or prove it doesn't exist) for the following recurrence sequence.  $a_1 = 2; a_{n+1} = \frac{1}{2}(a_n + \frac{2}{a_n})$  Now I know, in order to find the limit, I first need to prove that the sequence is monotonic and bounded. I've made a partial table of values and concluded that the sequence is decreasing, thus to prove monotonicity, I've written down:  $ a_{n+1} < a_n  \rightarrow a_n > \sqrt{2} $  And that's all I could think of. I don't think the inequality above proves anything so I don't know how to continue. I tried to calculate limit of the sequence by using limits of elements as follows:  $ \lim a_{n+1} = \frac{1}{2}(\lim a_n + \lim \frac{2}{a_n}) = a\Rightarrow a = \sqrt{2}$  But without proving monotonicity and bounding, there's no proof the limit exists at all.  Thank you for any help in advance.


I am trying to install Text::CSV, because can't install using cpan Text::CSV it's therefore need to install CSV.pm manually for my server. The error is below.  Can't locate Text/CSV.pm in @INC (you may need to install the Text::CSV module)  so I would like to download that full source file manually does anyone know where can I download that file?


First, I tried installing the latest emacs-nox, but that did not work.  Then, I added -nw to my ~/.bash_aliases, which works in most cases, except when I need to run sudo emacs [file] I still get emacs with X. Furthermore, when I set my git editor to emacs, and run git commit -a, emacs with X pops up. How do I disable X globally, so I don't have to go around adding -nw to every possible configuration?


Good tires for road riding in winter weather?

What are some good tires to install for riding the roads in snow, ice, other winter conditions? Besides letting some pressure out for better traction, what tires should I use?


Showing that two definitions of $\limsup$ are equivalent

In Rudin, $\limsup$ is defined as follows:     Let $S$ be the set of subsequential limits of $\{s_n\}$. Then   $$\limsup s_n = \sup S. \tag{1}$$   However, our real analysis instructor defined $\limsup$ in a different manner:     $$\limsup s_n = \lim_{n \to \infty} \sup_{m \ge n} s_m. \tag{2}$$   I am having trouble understanding how these two definitions are equivalent. It would be very helpful to me if somebody could provide a proof with some explanation.  My thoughts on the problem:  I have noticed that the usual trend with these sort of proofs is to prove the upper bound $(1) \le (2)$ and then the lower bound $(1) \ge (2)$ to get the desired conclusion. However, I am unsure how to even begin.


During upgrade from 12.04 to 12.10 there was a power failure.  computer boots to desktop but without tools and menus to navigate.  files that can be open cannot be closed.  sidebar menu does not exist.  there is no function of the DVD drive, the USB drive nor the internet.  Possible to open GRUB but I am not familiar with it's function.  Please help.


We know that a cardinal $k > \omega$ is measurable if there is a measure function $\mu :2^k\mapsto \{0, 1\}$  that satisfies the following 3 conditions:  1.$&ltk$ -additive: for every set I of indices with card(I) < k, and for every family of pairwise disjoint sets $z_i$, where $i\in I$, we have $\displaystyle \mu(\bigcup_{i\in I} z_i)=\sum_{i\in I} \mu(z_i)$.  2.$\mu(k)=1$  3.$\mu (s)=0$ for every singleton.  Ok, now what if there exists a cardinal $k>\omega$, and a measure function $\mu :2^k\mapsto \{0, 1\}$ that satisfies conditions 2 and 3 above, but is only $ &lt\omega_1$ -additive ? How can we show that this weaker condition still implies the existence of a measurable cardinal?  Thanks a lot!


Why didn't the Fellowship throw the One Ring into some other volcano?

As I understand it, there were two things that could hypothetically destroy the One Ring: dragonfire and lava in a volcano. Unfortunately, the last dragon was killed before the events of Lord of the Rings, so that option wasn't available.  However, surely there were other volcanoes in Middle Earth, even if they may have been much further away than Mt. Doom. Moreover, there were also probably plenty of places where the dwarves had dug deep enough to hit lava, which could have served the purpose equally well. Neither of these options would have been without danger, but surely almost anything would be better than, you know, sending a pair of hobbits deep into the heart of the enemy's territory.  So why didn't the Fellowship just hike to some volcano on the far side of Harad, or get a dwarven guide to take them deep under some mountains, and cast the One Ring into the lava there?


I'm trying to save filled raster object to geo database by my specified filename.  import arcpy from arcpy import env from arcpy.sa import *  env.workspace = r"C:\GIS Data\Cameron_Run\Topo_NED\Projected"  # Set local variables surfaceRaster = "raw_10m_dem"  # Check out the ArcGIS Spatial Analyst extension license arcpy.CheckOutExtension("Spatial")  # Execute FlowDirection fillRaster = Fill(surfaceRaster) arcpy.RasterToGeodatabase_conversion(fillRaster, r"C:\GIS Data\Cameron_Run\Topo_NED \Projected\fillRasterGDB.gdb")   But this code is saving raster file by its own specified name, for this case Fill_raw_10m1 is the default name of saved raster file.  Is there any way so that I can specify the name of saved raster file?


If $T_1,T_2$ and $T_3$ be topologies on a set $X$ such that $T_1 \subset T_2 \subset T_3$ and  $(X,T_2)$ is a compact Hausdorff space.then   $T_1=T_2$, if $(X,T_1)$ is a Hausdorff space  $T_1=T_2$, if $(X,T_1)$ is a compact space  $T_2=T_3$, if$(X,T_3)$ is a Hausdorff space $T_2=T_3$, if $(X,T_3)$ is a compact space   I know that  a topological space is said to be compact if every open cover has a finite subcover and Hausdorff means distinct elements have disjoint open neighborhoods.  I can't understand how shall I solve it? Please help me. Thanks.


Which is the best way to list all blogs a user can admin in a wordpress network?  Thanks in advance.


Viewing node-editor-created project on 3D view

I created a blend file which is sun lens flare created in Cycles render. I can access the lens flare in node editor but not in the 3D view's rendered mode. Can anyone tell me how to view it on 3D view mode? Or if it's just created in node editor so it can only be viewed in node editor? Thanks!


Quitting an app makes the control move to MAMP

I've suffered a bit from this issue - when I quit MAMP, and then restart the app again, everything works just fine. However, when I quit all the other applications except MAMP, then the control immediately moves to MAMP (, which I opened in another window(Desktop) by the way). So for example, when I use TextEditor and quit it, the app is quit and the window moves to another one since MAMP is located in the window...  So the question is,    Why does this happen? And why does this ONLY happen on MAMP? I quit other applications numerous times but this issue doesn't occur in those applications other than MAMP. Finally, why does this ONLY happen when I quit MAMP once and restart it, but does NOT happen when I keep using MAMP from the time of the system login (i.e. no quit and restart since system login)   I use OS X 10.9 Mavericks, and I think this occurred also on Mountain Lion if I remember it correctly.  Thanks.  [update]  I just found , and OP and others there stated that they experienced the issue only after upgrading to Mavericks. And I just found that the issue also happens on Xcode, but it's only when I don't run MAMP.


How did Hagrid, Sirius and Severus find Harry?

So we know that the Fidelius charm was cast to protect the Potter's location. I think in the third book it is mentioned somewhere that the location was hidden not the Potter's themselves. And I guess this would make sense as, as soon as you demonstrate what the Fidelius charm should hide it becomes useless. Therefore the Potter's would be restricted to stay hidden and every time they do something, which is typical for them the charm would be lifted. So I guess it is easier and much safer to just enchant their home like they presumably did.   And we know that only Peter knew about this location and told Tom about it. I guess in order to keep the attack a secret neither Peter nor Tom told anyone else so the Fidelius charm still remained intact even though more people knew about it. Therefore, when Tom entered the building and killed this should not have lifted the charm. Why would it? One of three was still alive. And I don't believe someone in Hogwarts or in the Order of Phoenix could have felt their death somehow as this protective spell should render all ways of finding whatever is hidden useless.   Still, shortly after the incident Hagrid, Snape, and Sirius appeared out of nowhere and immediately knew that this was the house the Potter's lived in...which should not work. I guess they were not the only ones who knew where their house was. If you could still remember that after the Fidelius had been used it wouldn't have been protective at all. And just because there was an explosion somewhere you wouldn't lift that super important protection just to check whether they are alright. I guess if this was the time where Voldemort was at full power cases like that happened every week.   So how could they remember their location and find them so shortly after their death?


Splitting a JavaScript string when any one if given delimitters occur

I used String.split(a) method. It breaks the string into some parts when a ooccurs as substring. But what I want is I will give a list of delimitters and string will be broken into pieces when any one of those delimitters occur. How would I do this?


Can you get a Windows (AD) username in PHP?

I have a PHP web application on an intranet that can extract the IP and host name of the current user on that page, but I was wondering if there is a way to get/extract their Active Directory/Windows username as well. Is this possible?


How does one create the Dave Hill effect for portraits/action shots?

Inspired by the question  by , and the response to the subsequent . I would like to ask how to achieve a specific photo effect.  There may be more photographers that pull this off, but I know of two specific ones. The first is the wonderful photographer, . I know that he does lots of post processing, and his talent goes beyond a short list of tips that I can learn from a website, but I think there is something that I can hope to understand.     What is the Dave Hill effect? I have heard people talk about it, but what is it actually and how does one achieve it?   and     On his webpage, the "Nerd ad", "Allen Robinson", and "Jon Heder" shots give the subjects a specific skin tone/saturation. In general, his portrait shots are amazing. The detail and texture mystifies me. How can I pull this eerie feeling off?   Now the second photographer is  from flikr. His shots are also extremely impressive.      Again, he is using some black magic to make skin tone amazing. His subjects look beyond real, and I love it. Three specific examples are , , . Looking at energy, beyond the absolutely phenomenal idea for the shot and execution, and just focusing on the subject, he has this plaster/grey look, and his skin looks wonderful. Similar things are true for those other shots I linked.   Some ideas I have had that might contribute to this are HDR or possibly just phenomenal lighting setups. I have watched the videos on Dave Hill's website, but they just make me think more-so that he sold his soul to Mephistopheles.   I would appreciate any suggestions on how to achieve these results, or even some direction to go in this direction.   Thanks so much!


I have written a class to calculate business hours for Case age in business hours.  The class works great my issue is when trying to write decent test code for the class.  In following testing best practices, I want to create all my own test data and not rely on existing data (seeAllDate=true).  I would assume that in order to test my different scenarios I would need to create and insert new business hours.  Normally, I would use something like the snippet below  BusinessHours newHours = new BusinessHours(     MondayStartTime = Time.newInstance(9, 0, 0, 0),     MondayEndTime = Time.newInstance(17, 0, 0, 0),     TuesdayStartTime = Time.newInstance(9, 0, 0, 0),     TuesdayEndTime = Time.newInstance(17, 0, 0, 0),     WednesdayStartTime = Time.newInstance(9, 0, 0, 0),     WednesdayEndTime = Time.newInstance(17, 0, 0, 0),     ThursdayStartTime = Time.newInstance(9, 0, 0, 0),     ThursdayEndTime = Time.newInstance(17, 0, 0, 0),     FridayStartTime = Time.newInstance(9, 0, 0, 0),     FridayEndTime = Time.newInstance(17, 0, 0, 0),     IsActive = true,     IsDefault = true ); insert newHours;   However, you cannot perform DML on business hours.  Is there a way to do this without having to use seeAllData=true?  I have searched and searched but can;t find much info on using the business hours class in test code.  Any help is much appreciated.


Search for a flight with a layover in a specific place

I was looking on skyscanner and kayak one week ago for flights.  I want to go from Buenos Aires to El Calafate around 8 January 2019 (+-2 days) and come back around 12 January (+-2days).  Usually the flights cost around 150 EUR which I would say it's a decent price. The problem is that now I find only direct flights.  I know, sounds weird that I don't like this. But last week I was getting a lot of result having a pretty long layover (more than 10h) in Ushuaia, the price was similar.  I would like to spend half a day(or maximum a full day) in Ushuaia too.  But I don't find any flights with a layover there anymore.  Is it possible to search for a flight from A to B with a connection in C? (in this case from Buenos Aires to El Calafate with a long layover in Ushuaia)    I was trying multicity Buenos Aires - El Calafate, El Calafate-Ushuaia, Ushuaia-Buenos Aires but I was getting only fares about 450 EUR


Is there any benefit from declaring the type of var to be assigned  List<myType> example1 = methodToGetMyTypeList();   over using var for the same efect  var example2 = methodToGetMyTypeList();   besides the fact that if by some mistake i'm assigning the wrong type i'll get an error and it's best suited for readability and maintenance? In terms of performance.


What is oflag for in the dd command?   What are the options oflag=?  Currently I am doing dd if=/dev/zero of=/dev/sdb bs=4096  To wipe out a disk.


Ubuntu running on command line due to insufficient graphics

My problem is that when I was trying to install Nvidia drivers (some 301 version) on Ubuntu 13.04, it evoked a message     Ubuntu is running on low graphics    After the installation (I am repenting of that installation a lot :(), whenever I reboot my laptop it shows only command line version of Ubuntu 13.04. I could reinstall Ubuntu using usb-stick, but it could cost me loss of important data. I tried to copy my home directory using live Ubuntu through usb-stick, but I get a permissions error.  My problem could have multiple solutions such as   I can reinstall Nvidia or integrated Intel graphics driver so that I can continue with my previous installation and data. I can copy the data to an external harddisk through commands (which I don't know how to do) and reinstall Ubuntu (which I know how to do :)) I can copy the data though live Ubuntu run through usb-stick to an external hard disk.


It shouldn't be possible to improve a suggested edit without changing anything

I encountered a bug while reviewing Suggested Edits. I clicked Improve to improve the edit and then I accidentally clicked Save Edits before I changed anything. To my surprise, I got no error message and Community♦ approved the edit and it said that I edited it (although I didn't make any changes, I just clicked the Save Edits button):    However, since I didn't make any actual edit, it's not visible that I made an empty edit, it only says that the user who suggested the edit edited the post:    I also tested to see if it did the same thing with Reject and Edit, so I tried to review a bad suggested edit as Reject and Edit and then click Save Edits without changing anything. That worked as it should, so I got an error message when trying to submit the empty edit:    I think that it would be good if such an error message also shows up when a user tries to submit an empty edit after clicking Improve.


How to Closely fake PBR in non-PBR using blender?

I'm using blender since few months. I've been seriously impressed with Blender. I want to achieve realism. But unfortunately, my game engine doesn't support PBR. It works on OpenGL 2, gltf.   So, I'm unable to use cycles renderer in the blender for my game engine. Can I get realism without PBR on Blender Internal? Can I use cycles in my engine (baking or other methods?) How to fake PBR in my game engine, Godot 2? Are Diffuse, Displacement, Normal, Specular and AO enough for Realism?   If I'm missing something, or some tricks, please do tell.   any help will be appreciated. Thanks in advance.


How to find flights with a specific layover?

I live in ATL and would like to find flights that have a layover in SLC (where we can leave kids with grandparents). Flexible on dates and potential destinations.   Although would also be nice to be able to specific destination/duration/etc... example: ATL - SLC - HNL in December. Are there any search engines out there that provide this?


SQL query to fetch a column where count is greater than 1 in the same table

I am facing an issue with where the table structure is as below  SHIPMENT_GID || COST_TYPE || COST 12233        ||B          ||1180 12234        ||B          ||1300 12235        ||B          ||1100 12236        ||B          ||1400 12233        ||B          ||200 12233        ||A          ||300   Here I want is the SQL query should fetch me unique shipment Id that has Count(cost_type  = B) >1   I had the following query but it is not working   select * from shipment_cost where shipment_gid = (select SHIPMENT_GID                                                    from shipment_cost                                                    where (count(COST_TYPE = 'B')>1)


Our remote control works on infrared ray. What I had done is placing the diode towards the mouth of the camera and pressed the remote control. I saw a purple light blinked less than one second.   Some questions regarding this phenomena are:   How could a camera sense the existence of infrared ray? Why does it appear to be in purple and not other color?


Virtualbox Guest can't ping host, host can't connect to guest, other guests can ping/connect to guest

My setup is as follows:   Windows 10 Pro with one real (integrated) NIC enabled. The latest available Bonjour for Windows is installed Two virtual machines running Linux  One other Windows laptop on the network   Let's call the Linux VMs A and B, and the two Windows devices X and Y. X is the VM host.  A can ping and connect to B, B can ping and connect to A.  X cannot connect to A or B, neither A or B can ping or connect to X. Y can connect to A and B and vice-versa.  This  is not a firewall issue as nothing changes when the Windows Firewall is completely disabled on X.


Entry into Canada for Candian citizens during COVID-19 period

I am a Canadian citizen and a permanent resident of the US.   Would I be allowed entry into Canada to visit my elderly and ailing father during COVID-19 border restrictions?


Bank statement for UK visa if I am unemployed

Can I use the bank statement of my sponsor i.e. my aunt for UK standard visitor visa? I am currently unemployed so do I still need to create a bank account and she put money in it for me?    This aunt has been my guardian since I was 14, I am now 27. My situation is that I am awaiting a job by July and I wish to pass PLAB1 by June, 2017.


So I'm fairly new to wine, and I'm having a problem with a few programs that don't want to run in fullscreen. The menu bar remains, the mouse doesn't move all the way to the left and the gray bar at the top of the screen remains as well.    Also, the screen will scroll. Is there any way to remedy this?  I'm using wine 1.6.2, and ubuntu 14.04


How does a web browser parse an IP address in a URL?

If I use a name like "www.example.com" to go to a web page, the browser will start from right to left, looking at the TLD to find the domain and then proceed further. If I enter the IP address of that host, how will the browser parse it?


Best placement for Power Supply Unit in a full ATX case?

I've read a few dozen tech articles about Power Supply Units and which may be best for inside a PC case, whether if it's sucking fresh air in, or blowing hot air out to keep it cool. But thing is that hot air rises, so it puts me to asking this question in particular, and what kind of PC cases I should be looking for to best suit for maximum efficient cooling as possible for the PSU for the rest of the components inside it.  The question is; What is the best placement to put the PSU? would it be better if it's at the top of the case or the bottom of the case? and I'm talking for PC cases that are full tower ATX cases that can stand up. I've been trying to look around for a decent full tower ATX case where it lets you choose where to put the PSU. would it really matter that much if the PSU sits on the bottom or at the top at all? My most likely guess is that if it's sitting on the bottom the heat will rise from the PSU if it sat at the bottom of the case, and causing everything else to heat up more inside the case.  I guess this question is basically asking, What kind of full tower ATX case and PSU would be beneficial for maximum cooling efficiency that minimizes heat. I've looked at open full tower ATX cases, but I can see already a downside to that, because dust will collect more easily on everything inside it since it's more openly vented and everythings more exposed, this just makes me really unsure what kind of case I SHOULD be looking for when it comes to PC building. I'm trying to put together ideas for a future gaming PC build that would work best, that has plenty room as well as efficient cooling.


WD HDD physically damaged, what can I use to recover the data on OSX?

I have a physically damaged HDD that can still be detected by disk utility, but I cannot access the files inside. I tried using Data Rescue 3 but the UI was very clunky and I always end up having to restart the computer for it to work. It did manage to scan it once and recover many files, but not some specific file types I was looking for. But due to the clunky UI I couldn't scan it again.  Any programs that are reliable and known to recover files from damaged hard drives ?   Note :    It is connected externally via USB. The HDD was on a Windows Desktop, but using the mac to read it


How can I prove $\lim_{n \to \infty} \frac{n^2}{2^n}=0$  I tried to use $\mid \frac{n^2}{2^n} - 0 \mid <\epsilon $ However, because of $n^2$ I cannot use it. Also, I tried to use ratio test and I got $\lim_{n->\infty}\frac{(n+1)^2}{2}\frac{1}{n^2}$, but after that one, I dont know how to get limit < 0  I have no idea to solve this problem.   I can also use a squeez lemma, but dont know how to apply to this question.


JavaScript array - push multi dimensional array

I have an array like this:  message_list = [     {         "Main_body": "test msg",         "emp_name": "test",         "emp_salary": "5000 USD"     } ]   Its length (e.g., message_list.length) is 1.  Now I have another array like this:   added_user_data = [     {         "PostSharedLog": {             userids: "2,4,5"         },         "created": "2123123"     },      {         "PostSharedLog": {             userids: "3,1"         },         "created": "2123147"     } ]   Its length (added_user_data.length) is 2.  I want to push the above array added_user_data into message_list.   I tried doing it inside a for loop, now since the length of message_list is 1, for the second iteration, the values do not get pushed since message_list[1] does not exist and is undefined. But I still want to create message_list[1] even if it does not exist.  if i do the below :   for(var k =0;<count(added_user_data.length);k++) {       message_list[k].PostSharedLog = added_user_data[k].PostSharedLog ;  }   It only appends the first row from the array added_user_data  and gives an output like this when i print out message_list :  [{          "Main_body": "test msg",         "emp_name": "test",         "emp_salary": "5000 USD",          "PostSharedLog": {             userids: "2,4,5"         } }]   The second iteration does not append anything at all .   I would like to see the below :   [{              "Main_body": "test msg",             "emp_name": "test",             "emp_salary": "5000 USD",              "PostSharedLog": {                 userids: "2,4,5"             },             "PostSharedLog": {                 userids: "3,1"             }    }]


Why can't I update my repository updates in 12.04?

I tried to install updates via the update manager, so then I used terminal and got   dpkg: error: parsing file '/var/lib/dpkg/available' near line 0: field name `../../../../java-7-openjdk-common/jre/lib/ext/sunjce_provider.jar' must be followed by colon E: Sub-process /usr/bin/dpkg returned an error code (2)   so if anyone could help me i would appreciate that thank you


How can I find the sum of this column from a file named cars?  73 60 45 102 15 50 115 30 10 180 85 25   How can I add these numbers up (using the command line)? I showed this list typing  awk '{ print $4 }' cars


I would like to connect an electric toothbrush motor (Braun Oral-B Type 4729) directly to external power supply. So far I have been trying at least 3 different DC power supply unit with appropriate voltage (1-5 V) but nothing happened. However motor works perfectly fine when connected just to a regular battery (AA, 1.5V)...what is happening? The only guess I have is some impedance mismatch between the source and the motor...can anyone confirm this and/or provide any solution how to connect this motor to regular DC power unit? Thank you very much!


What is the meaning behind the * symbol used particularly to iterate over a generator object?

The code below represents one method of writing the program  using list comprehension and generators. comp = (num for num in range(2000, 3201) if num % 7 == 0 and num % 5 != 0)  print(comp) for item in comp:     print(item, end =", ")  This is another way of doing it, using again both list comprehension and generators, however this time, the code makes use of the * symbol inside of the print function. print(* (i for i in range(2000, 3201) if i % 7 == 0 and i % 5 != 0), sep=", ")  What is the reasoning behind * being used here, given that without it, iterating over the generator would be impossible.


Undefined reference to static const class member while using std::min on GCC 4.8.4

When I try to compile following code (using g++ 4.8.4 with -std=c++11) :  #include <algorithm>  class A {     public:         static const unsigned a = 1;         //static const unsigned a; };  // const unsigned A::a = 1;  int main() {     unsigned b = 2;     std::min(/*(unsigned)*/A::a, b); }   I've got linking error:     undefined reference to A::a   If I define A::a outside of class A or cast A::a to unsigned while executing std::min problem does not exist.  Is it GCC bug? If not what's the root cause of such behavior?


The following code uses a command \unit which is defined as:  \newcommand{\unit}[1]{\pagebreak \section{Unit: #1}}   A unit is therefore just a section that starts on a new page.  \unit{How to use a Breadboard: Best Practices} A breadboard, or solderless breadboard, is a way to quickly connect ...   The title of the unit does appear at the top of the page, then:    Why is there the big gap before the text?  The same thing happens for an itemized list.  We want the text to be at the top, but if there is extra space on the page LaTeX moves the bullet list down to equally space them.


Java updating method parameter - will it loose scope?

If I update a method parameter to a new object will this be available for the entirety of the JVM life?  For example:  Class 1:  Pojo p = new Pojo("A");  class2.method2(p)  Class 2:  public void method2(Pojo p) {   p = new Pojo("B"); }   I know this is a bit of a silly example and the new object should be returned instead of updated like this but curious to know what the behavior will be in terms of scopes / garbage collection.


how to add different data frames in QGIS?

How can I add different data frames in QGIS and show all data frames in single map like we add different data frames in ArcGIS and in single map we show these data frames?


Different colors for different types of blocks in beamer

In a beamer presentation, I’d like to set up different colors for normal blocks, definition blocks, theorem blocks, proof blocks, example blocks…  Ideally I’d set those up using \usebeamercolor commands. I can do it for example blocks, and for all other kinds of blocks at once, as illustrated in the sample below (compiled using XeLaTeX). But I can’t find how to do it for specific, non-example, types of blocks.  I suppose “” points towards some solution, but I’d prefer (somehow) inheriting from the existing special block environment definitions rather than define new environments from scratch.  \documentclass{beamer} \usepackage{fontspec}  \useinnertheme[shadow=true]{rounded}  \setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!20!bg} \setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg}  \setbeamercolor{block title example}{use=example text,fg=example text.fg,bg=example text.fg!20!bg} \setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!50!bg}  \begin{document} \begin{frame}     \begin{block}{My block}         A block.     \end{block}     \begin{definition}[My definition]         A definition.     \end{definition}     \begin{theorem}[My theorem]         A theorem.     \end{theorem}     \begin{proof}[My proof]         A proof.     \end{proof}     \begin{example}[My example]         An example.     \end{example} \end{frame} \end{document}


h264 video does not play in Opera with Ubuntu 19.10

I can't watch h.264 video mp4 format in Opera browser. Ubuntu version 19.10. It was working in 19.04.