I have this folder structure:  ├── foo1 │   ├── bar1.txt │   └── bar2.txt ├── foo2 │   ├── bar3.txt │   └── bar4 with a space.txt └── foo3     └── qux1         ├── bar5.txt         └── bar6.txt   that I would like to flatten into this, with an underscore between each folder level:  ├── foo1_bar1.txt ├── foo1_bar2.txt ├── foo2_bar3.txt ├── foo2_bar4 with a space.txt ├── foo3_qux1.bar6.txt └── foo3_qux1_bar5.txt   I've looked around and I haven't found any solution that work, mostly I think because my problem has two particularities: there might be more than one folder level inside the root one and also because some files might have spaces.  Any idea how to accomplish this in bash? Thanks!  Edit: Running gleen jackman proposed answer I get this:    There are two underscores for the first level folder. Any idea how to either avoid this or just rename it so that is just one underscore? Thanks.


Which one is more damaging? overvoltage or undervoltage?

It is not easy to get the exact supply voltage required by loads. The supply is usually either a little bit higher or lower than desired.   It is known that both over & under voltage can potentially damage the device. I was working on supplying 120 V 15 LED fixtures. I had the voltage drop calculations and here I was thinking what if for any reason the voltage drops below 120, or if the voltage gets higher than 120 V, then I thought that the design should be based on avoiding the worst case scenario. If one of them was the worst, then I should add/subtract marginally in the calculations.   So, which one can be more damaging than the other? overvoltage or undervoltage?    Note that the question is applicable to be general although my intention is to ask on long-term design need basis but not on what could happen outside the circuit on short-term (for example, spikes or transients in voltage supply).


Does being granted a B1/B2 visa for the US and not going have any consequences?

I've been granted a 3-month B1/B2 visa for the US and now I can't go. Will having an unused visa in my travel passport have any consequences like future visas refusal? Do I need to do anything special?


I have been given a Table with ~50 columns. Obviously I could select them all with:-  SELECT * FROM...   However for confidentiality  three columns must not be selected. Many of the columns use long identifiers. Is there a way of selecting all columns by excluding nominated ones rather than selecting all ~47?


(First of all, I know that \[ \] should be used instead of $$ $$ and I do it.)  I'd like to know about the vertical spacing around math display blocks.  According to texdef -t latex \[ we have   \[: macro:->\relax \ifmmode \@badmath \else \ifvmode \nointerlineskip \makebox [.6\linewidth ]{}\fi $$\fi    and texdef -t latex \] returns  \]: macro:->\relax \ifmmode \ifinner \@badmath \else $$\fi \else \@badmath \fi \ignorespaces    So I didn't see any command for vertical spacing.   Since the command $$ appears in the code above I tried also texdef -t tex $$ and texdef -t latex $$ with no success.  If I'm not wrong I remember something related with \abovedisplayskip or something similar.   Well, my question is: Are the vertical spaces above and below the command \[ \] the same as the ones inserted by \begin{equation}\end{equation} (and its stared versions)? How to check this reading the macros and codes?


how to reassemble mountain bike rear wheel hub and bearings

So I thought I would sort out my wheel bearings (after asking a few questions here first).  Did the front without much of a problem, (reused the existing bearings at the moment, had not got round to going to the LBS to get new ones).  I tried to do the rear wheel tonight.   So I got the wheel off, took the quick release out.  undid one side of the axle (disk brake side I believe), took out the bearings etc.  I noticed that a few of the bearings from the cassette side had fallen out while taking the other side off. I then used the chain whip and other bit thing (who's name I can not remember) to eventually undo the cassette (was on real tight).  Took everything apart (trying to remember the order, even placing things in rows of where it came from) and cleaned it all up.  Went to put it back together again and I can not figure out at all (not with any confidence) how the bearings go into the cassette side under the locking nut (think its called that, the bit that comes off with the chain whip and tool).  Here are all the bits and the wheel.  Think I may have to admit defeat and go the LBS to get it sorted but they had a 5 or so day wait.  I am hoping someone might be able to guide me in the right direction to get this working again please.  Thanks      If anyone else has this problem here is a picture of the final way I assembled it:


I was on the Stack Overflow Blog and came across a . I thought let me just mark it as spam. But, hmm, where's the spam button? Came here, was writing the title and saw the  about it. But, do you expect a user to send an email everytime they see a spam? Seriously? Why not add a 'flag' button instead?


Create a Gmail filter for Calendar Notifications

I'd like to create a Gmail filter to filter all of my Google Calendar notifications into a separate folder.  Google Calendar notifications have headers that look like the following:  Reply-To: Helen Seu <h...@g...com> Sender: Google Calendar <calendar-notification@google.com> Auto-Submitted: auto-generated Date: Thu, 01 May 2014 05:25:28 +0000 Subject: Updated Invitation: Mobile design review @  Fri May 9, 2014 3pm - 4pm From: Helen Seu <h..@g...com> To: "Mike Burton" <m...@g...com>,    In particular, the email Reply-To is the user who created the meeting, and the Sender is calendar-notification@google.com.  For some reason, Gmail does not seem to allow you to filter on the Sender field of an email. Is there another clever way to filter Google Calendar notifications to a separate folder?


Has any Dark Force user/ally ever said "May the Force be with you"?

This saying/blessing seems to me just as applicable for someone allied with the Dark Force as a Light Force ally as the statement appears to be Force-neutral. By Dark Force user, I mean it (or similar words) being said in the business of Dark Force-leaning activity, not someone who may have said it as a Light Force user and then went to the Dark Side (and never said afterwards).   Either Canon or Legends examples are acceptable.


What taxes are assessed on distributions of an inherited IRA?

I inherited my mother's $200k IRA in 2011.  I'm now 60.  I've been buying and selling mutual funds within the IRA, making a little profit, and also buying a specific stock.  How is it taxed if I take out any amount right now?


In .NET, which loop runs faster, 'for' or 'foreach'?

In C#/VB.NET/.NET, which loop runs faster, for or foreach?  Ever since I read that a for loop works faster than a foreach loop a  I assumed it stood true for all collections, generic collections, all arrays, etc.  I scoured Google and found a few articles, but most of them are inconclusive (read comments on the articles) and open ended.  What would be ideal is to have each scenario listed and the best solution for the same.  For example (just an example of how it should be):   for iterating an array of 1000+ strings - for is better than foreach for iterating over IList (non generic) strings - foreach is better than for   A few references found on the web for the same:               [Edit]  Apart from the readability aspect of it, I am really interested in facts and figures. There are applications where the last mile of performance optimization squeezed do matter.


MacBook 2017 (USB-C) to Apple Cinema Display 30"

I've seen many of the solutions on the topic, all posted in this site. But I haven't seen any of them mentioning Apple's adapter,   I have that, which was used to connect to my old MacBook Pro 2013.   Now, I'm assuming that all I need is to connect the Mini DisplayPort to an adapter, such as  (as mentioned in one of the posts) and the USB cable to a USB-C adaptor.   Is this correct?


I'm not good in English, so sorry if something is wrong. How to prove this? If $\operatorname{gcd}(a,b)=1$ ,then \begin{align*} (1) &~ \operatorname{gcd}((a＋b)^m,(a-b)^m≦2^m, \\ (2) & ~\operatorname{gcd}(a^m＋b^m, a^m-b^m)≦2. \end{align*}


I have a Parse program that parsing arithmetic expressions in the expression class there is a function parse here is it; //function parse void express::parse(){     char ch;     char lastVal;     char lastop;      for(int j=0;j<len;j+=1){         ch = pStr[j];          if(ch>= '0' && ch <= '9'){             s.push(ch - '0');         }else if(ch =='+' || ch == '-' || ch == '/' || ch == '*'){             if(s.getTop() == 1){                 s.push(ch);             }else{                 lastVal = s.pop(); // number                 lastop = s.pop(); // operator                 //if ch is * or /  && lastop + or -                 if((ch == '*' || ch == '/') && (lastop == '+' || lastop == '-')){                     s.push(lastop);                     s.push(lastVal);                                  }else{                     switch(lastop){                     case '+': s.push(s.pop() + lastVal);break;                     case '-': s.push(s.pop() - lastVal);break;                     case '*': s.push(s.pop() * lastVal);break;                     case '/': s.push(s.pop() / lastVal);break;                     default: cout << "Unkowen Number"; exit(1);break;                     }//end switch                 }//end if                 s.push(ch);             }//end if          }//end if     }//end for };  and the s.pop() that is a stack class to hold the character whether it a number or an operator and to help me make the operation first of the '*' , '/' so I need to know what is the that statement means s.push(ch - '0');? is it about the ASCII code or what i don't know but when I erase it the result change.


Image uploader shouldn't remove unused link references

When editing a post and using the image uploader, any unused link references are completely removed.  For example, this post has three image references, only one of which is used ([3]) in the body of the post:        After uploading a fourth image, references [1] and [2] are completely removed (and the remaining references are renumbered to become [1] and [2]):        I sometimes write link references before using them in the body of the post and sometimes remove images temporarily before reinserting them elsewhere in the post so this is inconvenient.  (Note: this also applies for the iOS app, having the same behavior)


Should middle school students/high school students be able to choose their own bedtime?

Sleeping is important, but do students have the right to choose when they do so? Or should they let their parents decide the bedtime? Students above the age 12 need over 8 hours of sleep. It's important or you'll be drowsy, moody, upset angry etc. You will also be refreshed every morning, and have the ability to stay up longer without a proper amount.   If a student above that age has the right to choose their own bed time, they can choose when they feel is right when to go to bed or wake up. They may not get this right at first, but students need their own arrangement to take breaks, do school work, and other. Though an arranged bedtime by your parents may be difficult to follow, maybe by 9 p.m. This may not give you enough time to complete the tasks you've been thinking about doing.   The bedtime we can make ourselves may be 10, 11, or a bad time, 12. We'll learn from these mistakes and should be able to choose when we should sleep and wake up. Parents and or guardians shouldn't have to make a time or watch over us when. What do you think?


Mix colors from different objects at collision (Rigid Bodies and Particles)

This will be a pretty complex question, many areas will be connected to it but it is for sure focused on one main problem. I'm not sure is it possible without heavy scripting and I didn't found anything on this topic elsewhere. So off we go.  Abstract:  I want to mix colors from different objects on collision.  Example. One cube is blue, second is yellow. Boom! Both are green.  I've made this little simulation:    Going deeper:  I think that the best option would be making material with RGB node, then, after taking color from another object mix them with MixRGB as below:    As you can see first problem is that Blender isn't mixing colors as it should, but let say it's close enough and leave it for now as is.  Second one is scenario with many objects. Using same approach will give us enormous amount of nodes - by adding another Mix and RGB. Replacing one color on the other hand doesn't give us proper mixing.   Solution for second problem could be making one RGB node from mixed values and waiting for another hit.  Wrap this up:  If there is any logic behind it, it could probably works like that:   Get RGB values of both objects. Detect collision. Mix values and replace existing RGB node value with new one. Wait for another hit.   Advanced usage:  You may ask: "What you want to do with this dummy?" and my answer is:     from Pyroevil.  In this script there is collision system so (as far as I know about Python scripting like Jon Snow) it will be matter of adding color change thingy to this. Or I'm just delusional.   It will be great thing to mix particle collision systems colors. It could open new way to simulate fluids. If it's possible to transfer particle color values to IsoSurface in CubeSurfer or any other mesher possibilities will be endless (nooo, it's just for pouring blood to milk).  Blend file:  Here is my blend file if somebody wants to play with it (Molecular Script needed).


Colon after volume IF booktype and series following volume directly

I am currently trying to figure out how to replace the dot by a colon after volume if * the bibliography entry is a book AND * the volume nr is directly followed by series  So instead of      Bd. 10.   I'd like it to be     Bd. 10:   In case the entry holds no series, it should still show the dot instead of a colon (like it is currently).  In case of articles it should stay as it is (see Hijiya-Kirschnereit).  MWE  \documentclass{scrreprt} \usepackage[onehalfspacing]{setspace} \usepackage[main=ngerman, english]{babel} %---------------------------------------------------------------------------- %   BIB %----------------------------------------------------------------------------   \usepackage[     backend=biber,     style=authoryear,     sorting=nyvt   ]{biblatex} \renewcommand{\mkbibnamefamily}[1]{\textsc{#1}} \renewcommand{\labelnamepunct}{\addcolon\space} \DeclareFieldFormat{postnote}{#1} \DeclareFieldFormat{multipostnote}{#1} \renewcommand\postnotedelim{\addcolon\addspace} \DeclareFieldFormat   [article,inbook,incollection,inproceedings,patent,thesis,unpublished]   {title}{#1\isdot} % sets Volume, Number, Id \newcommand*{\volnumdelim}{\addcomma\space} \renewbibmacro*{volume+number+eid}{%   \printfield{volume}%   \setunit*{\volnumdelim}%   \printfield{number}%   \setunit{\addcomma\space}%   \printfield{eid}} \renewcommand\postnotedelim{\addcolon\space} \DeclareFieldFormat{postnote}{#1} \DeclareFieldFormat{multipostnote}{#1} \usepackage{url} \urlstyle{same}  % italic series \DeclareFieldFormat[book,inbook,incollection,collection]{series}{\mkbibemph{#1}} \renewbibmacro*{series+number}{%   \ifboolexpr{not test {\iffieldundef{series}} and not test {\iffieldundef{number}}}     {\printtext[parens]{%       \printtext{=\addspace}%       \printfield{series}%       \setunit*{\addcomma\space}%       \printfield{number}%       \printtext{\addperiod}}       \nopunct}     {\printfield{series}%      \setunit*{\addcomma\space}%      \printfield{number}      \newunit}}  \begin{filecontents*}{\jobname.bib}  @book{Doi.1978,     author = {Doi, Yutaka and Sano, Tetsuji and Tanaka, Itsuo},     year = {1978},     title = {Senkyo seido},     titleaddon = {Das Wahlsystem},     keywords = {Election law;Local elections},     volume = {10},     publisher = {Gy{\^o}sei},     location = {T{\^o}ky{\^o}},     series = {Gendai chih{\^o} jichi zensh{\^u}},     abstract = {}, }  @article{HijiyaKirschnereit.2009,  author = {Hijiya-Kirschnereit, Irmela},  year = {2009},  title = {Rezension: Reading Food in Modern Japanese Literature.},  journaltitle= {Monumenta Nipponica},  pages = {415--418},  pagination = {page},  volume = {64},  subtitle = {By Tomoko Aoyama},  number = {2},  abstract = {}, }     @book{Ito.1978,     author = {Itō, Masami},     year = {1978},     title = {Broadcasting in Japan},     keywords = {Broadcasting   Japan},     volume = {7},     publisher = {{Routledge and Kegan Paul [for] the International Institute of Communications}},     location = {London},     series = {Case studies on broadcasting systems},     abstract = {} }  \end{filecontents*} \addbibresource{\jobname.bib} %---------------------------------------------------------------------------- %   MAIN %---------------------------------------------------------------------------- \begin{document} \nocite{*} \printbibliography[heading=bibintoc,title={Literaturverzeichnis}]  \end{document}   Hope someone might have an idea :) Best!


How can I show the existence of a injection $\phi:\{x|x \subset \omega \} \rightarrow \{f|f:\omega \rightarrow \omega$ is bijective$\} $?


I'm trying to show that $\lim_{n \to \infty}\Big(\frac{x^{n}}{n^{k}}\Big) \rightarrow \infty, x > 0, k =1,2,\dots$ By the ratio test we have $\frac{x^{n+1}}{(n+1)^{k}} \frac{n^{k}}{x^{n}} = x\Big(\frac{n}{n+1}\Big)^{k} \rightarrow x$. For $ x > 1$ but then I am not seeing how to proceed. Also, I presume I'd need to consider the case $ 0 < x \leq 1$ separately since then the numerator would tend to $0$. Thanks


I couldn't get the difference between these?   give me a two hour leave  give me two hours leave    What is more, when it comes to using the latter, which one would you rather use? two hours' leave two hour leave


I want to delete my post with a bad reputation and I am getting warnings about being blocked. Here's a link to it


I have tried many link and none of them works for me. I have internet access in my college through a proxy 172.16.24.4 with port 3128 and the proxy type is either http or https. I want to use apt-get to install softwares on ubuntu. Please help me. Please explain in detail as I am fairly new to ubuntu.  Thanks


Is there a direct download link with a raw data dump of Stack Overflow? (not a torrent)

I would like to create a local MySQL copy of Stack Overflow for academic purposes (school project). As far as I know, the database dump of the  database is available only in an XML format that I will have to convert to SQL on my own with some tool.  Most of direct download links I found were broken (404). The only non-torrent source that I have found and that is still alive is  but the latest Stack Overflow dump there is from October 2009, content of which looks like this:    Where could I find a direct download link with the Stack Overflow dump?    Note: I am not able to use torrents due to network policies, yet for the completeness of this question, here's the link that might help someone:    Other related questions / links that haven't helped me:     ~ all links there give 404  ~ from September '09 with another broken link  ~ from about a year ago with a clearbits.net link  ~ also not working anymore


proof by induction: $7^{2n} - 2^n$ is always divisible by $47$

as per the title, i need to prove by induction that the expression "$7^{2n} - 2^n$" is always divisible by $47$.    base case is fine: $7^{2*1} - 2^1 = 47$.   Induction step gets lost quickly, any ideas?  step 1: $7^{2(n+1)} - 2^{(n+1)}$   step 2:  $7^2 * 7^{2n} - 2^1 * 2^{n}$   step 3: ???  step 4: profit.


I came across an N20 motor, and couldn't find anywhere what N20 actually tells us about the motor, and where the designation comes from.


Underfull \vbox in each longtable... can it be fixed or must it be ignored?

I got some strange "underfull \vbox (badness 10000) detected at line ..." warnings, obviously at each of my "longtable"s. Is there a way to fix them (I actually don't see the cause) or do I have to ignore them?  Minimal working example (PdfLaTeX tells these warnings triply for each run on compiling with longtable [2000/10/22 v4.10 Multi-page Table package (DPC)]; each \demounderfullvbox might be replaced by the full example code or the source may be reduced to one longtable, what doesn't change behavior):  \documentclass[english,11pt,a4paper]{article} \usepackage{longtable}  \newcommand{\demounderfullvbox}{%     \begin{longtable}{|l|p{2in}|}     %     \endfirsthead     %     \hline\multicolumn{2}{|l|}{\textsl{\ldots continued from previous page}}\\*     \endhead     %     \multicolumn{2}{|l|}{\textsl{will be continued on next page\ldots}}\\*     \hline     \endfoot     %     \hline     \endlastfoot     %     \hline%     aa: & 4711\\     \hline%     aaa: & 2\\     \hline%     aaaa: & 4711-2\\     \end{longtable} }  \begin{document} \newpage % \demounderfullvbox \demounderfullvbox \demounderfullvbox  \end{document}   If tabular is used instead of longtable, no warnings occur, but that doesn't solve the problem, as much more rows can be placed in the tables.  Removing the trailing \\ in the aaaa: line has no effect either.  The "underfull \vbox" warnings seem to specify a source line that looks ok to me (this is more clearly when \demounderfullvbox is replaced by the example code), think the warning is provocated on computation of first LTchunk?  Thanks for help and suggestions in advance!


diagonalisability of matrix few properties

What are the most important things one should remember to check the diagonalisability of a matrix?  Please help, I have exams on next week. Say some best and easy methods,time efficient.


I installed ubuntu 20.04 to my external USB drive, and now whenever I try to boot my pc (ubuntu 20.04 is also installed in my SSD) computer doesn't start up if the USB isn't plugged but when I plug it and reboot it loads up the dual boot screen. I don't want to use this USB to log into my computer. How can make ubuntu on SSD my primary ubuntu os?


Difference in elliptic curve order and finite field size

Must the prime finite field, Fp, an elliptic curve is defined over always have a greater number of elements than the cardinality of an elliptic curve.   For example, If I have Elliptic Curve defined by y^2 = x^3 + x + 1 and I can calculate that the  E.cardinality() = 14. Must the prime field I chose be >14? Would there be any loss in security if I chose 11 as the prime field?   Would this be different if I chose the prime field beforehand?


Community User deleted a question I answered

The Community user deleted a question I had an accepted answer on. If it was a low quality post, I would have expected a close reason and then the delete votes. That didn't happen here, though.  Why was this question deleted?


Can a program continue to work on an opened file after it is moved by another program?

When a program opens a file, and another program moves the file so that it has a different pathname/filename, can the first program still  work on the file, for example, modify the file's content or attributes and save changes to the file?  I guess yes.   When a file is moved, it has a different pathname/filename, but it still has the same inode and data blocks.  When a program opens a file, the pathname/filename of the file is used to look up its inode and data blocks, and the program holds directly or indirectly the pointers to the  data structures of the inode and data blocks of the file. I am not sure if the pathname/filename is still useful after the lookup.   If the answer is yes, what  behaviours are expected from programs, suppose you are to create such programs?   shall they silently work on the moved file, shall they notify the user of the moving and ask if they want to continue to work on the moved file?   I often keep   files open in some programs (emacs, some pdf software) as long as possible, long enough that I may likely use other programs (mv) to move/rename them at some point in the mean time. Emacs warns me about the fies having been moved, and I don't know if Emacs can continue to work on the moved file, so I usually have to close the buffer and reopen the moved file in a new buffer, which is inconvenient IMO.  Thanks.


A natural problem in $\textrm{S}_2^\textrm{P}$?

The complexity class $\textrm{S}_2^\textrm{P}$ is defined as follows (from ):     A language $L$ is in $S_2^P$ if there exists a polynomial-time predicate $P$ such that         If $x \in L$, then there exists a $y$ such that for all $z$, $P(x,y,z)=1$   If $x \notin L$, then there exists a $z$ such that for all $y$, $P(x,y,z)=0$         where the size of both $y$ and $z$ must be polynomial in the size of $x$.   Also see  and the  for more informal explanations and discussions.  While this class seems reasonably natural, I can't find an example of a problem that's in $\textrm{S}_2^\textrm{P}$ for a non-trivial reason (i.e., not just because it is in NP or MA or some class contained in $\textrm{S}_2^\textrm{P}$). Does anyone know a problem that fits this description?  If no one can think of a problem like that, I wouldn't mind a problem that's in a sub-class of $\textrm{S}_2^\textrm{P}$, but it's non-trivial to show this, whereas the problem is obviously in $\textrm{S}_2^\textrm{P}$.


Clarification on 4e Raise Dead's 'part of the corpse'

In 4th ed, the Raise Dead ritual specifies that "you must have a part of the corpse of a creature." Is a part removed from a living body considered a part of the corpse once the original body has died? Or does it have to be a part removed once the person is a corpse?    For what it's worth I've already made a ruling in my own game.  That ruling is "maybe."  Because it's a tenuous use of the spell it sometimes works and sometimes doesn't. In the case of a removed finger providing resurrection insurance, I'm going with the caster making a religion check. That value is the percentage of a chance that it'll work. This rewards higher level casters (which is important because it means the players will always be seeking out a better insurance policy), but it's never a sure thing.


What is the order of convergence of modified Newton's? $$x_{n+1}=x_n-m\frac{f(x_n)}{f'(x_n)},$$  where $m$ is the multiplicity. I know it is $2$, but can someone explain it briefly?


I created a custom lookup field, but when I add the visualforce page (the lookup) to my object page, he stays editable in the details page. I want he stays read only at details page and editable on new/edit object page. I already googled it but cant find anything similiar. Here is how he is now:    Any ideia how I can put this read only (like the date, for example)?


When I got on today, the top left header menus were gone.  The places they should be seem to still be functional, but it looks like just a black bar.  Browser is Firefox 27, OS is Windows 7.    Here is a screenshot of main SO    Just so we are clear, this is only the 3 menus in the top left.  The user image and badges are still fine.    When new activity happens, it puts up the red background with the number in it.


If $A^m = 0$, then $\mbox{rank}(A) \leq \frac{m-1}{m}{n}$

Let $A$ be a $n \times n$ real matrix. Show that if $A^m = 0$, then $\mbox{rank}(A) \leq \frac{m-1}{m}{n}$  My attempt: If $m=1$, then $A=0$ so $\mbox{rank}(A)=0$. If $m=2$, we have $\mbox{im}(A) \subset \ker(A)$ so $2\operatorname{rank}(A) \leq \dim \mbox{im}(A) + \dim \ker(A)=n$ For arbitrary $m$, I want to use induction. $B=A|_{\mbox{im}(A)}$ satisfies $B^{m-1}=0$ so $\mbox{rank}(B) \leq \frac{m-2}{m-1}\mbox{rank}(A)$. Thus $\dim \ker B \geq \mbox{rank}(A)- \frac{m-2}{m-1}\mbox{rank}(A) =\frac{1}{m-1}\mbox{rank}(A)$ by rank-nullity theorem. Thus $n=\dim \ker A + \mbox{rank}(A) \geq  \dim \ker B +\mbox{rank}(A)\geq \frac m {m-1}\mbox{rank}(A)$ Is this ok?


I have a samsung note 2 but I have a problem 1GB ram is always used even if I don't use any app and that drain his battery he have 4.3 android (I tried update but I can't find new one) is this normal ?


\newcommand not working ("verbatim" use case)

I'm lazy and I want to save on typing.  So I have  \newcommand{\bv}{\begin{verbatim}} \newcommand{\ev}{\end{verbatim}}  \bv Hi, this should be verbatim \ev   in my document, but this produces an error:  Runaway argument? ^^MHi, this should be verbatim^^M\ev^^M^^M\end{document}^^M ! File ended while scanning use of \@xverbatim.   What's the matter here?


How can I invert touchpad scroll direction on Windows 10?

I just switched to Windows 10 on my  and installed related drivers from the support page of ASUS. The touchpad works great, but for some reason the direction of scrolling on touchpad is inverted. I couldn't figure out how to change the direction of the scroll on touch pad, how can I do it?


I want to know how to prove that there exists a group of base . these base make the matrix of this map is a matrix whose Principal diagonal element is all zero.


An illegal choice has been detected. Please contact the site administrator in views exposed filters

I am using filter criteria in views for displaying data based on the input selected by the user. Actually the drop down values in filters are node values of two content types.When I add content to those respective content types the drop down values are updating but in filter criteria configuration the newly added node values are not being checked as shown below diagram    Even though the above node value is not being checked, the same value is being added to particular drop down as shown below.    If I check all values individually and manually and check the option Limit list to selected items the error not displaying but the problem is when I am adding another node value (for example LOS3) the drop down values are not updating.  I have googled it for this error and I have applied some patches which worked for some of them but no result.  How to overcome this issue?


Georeferencing vector layer with control points using QGIS?

I have a non-georeferenced vector layer that I need to be georeferenced. With raster layers the task is easy and straightforward, but I have no idea what should I do with my vector layer. I have a few control points with known coordinates which should provide some basis to transformation. So, let's say I know points with id-s of 1, 2 and 3 should have the coordinates of x1,y1 ; x2,y2 ; x3,y3. There might be some rotation and scale transformation in addition to simple shifting.   Any ideas?


I worked a file to be printed on a 4 x 10 feet banner. I set up the file size to 48 inches x 120 inches, at 300PPI.  My file was really large (7g), and it was smooth, no apparent pixel when zoomed to print size. Although, when I received the banner, it was ugly and we can see all pixels and the printer said we were bad graphic designers. Can somebody explain if I really did something wrong?   I don't think it should have been printed with a that bad resolution looks.


I have installed Ubuntu 16.10 and I tried to start a session with the both options (default and unity8) and after I enter my password and hit enter the screen turns black and then it returns to the login screen again. I can't access the desktop, the system does not leave the login screen.  This same Ubuntu works perfectly when we running it live(directly from the usb drive).  the result of sudo lshw -c video:    *-display                       descrição: VGA compatible controller        produto: C61 [GeForce 6150SE nForce 430]        fabricante: NVIDIA Corporation        ID físico: d        informações do barramento: pci@0000:00:0d.0        versão: a2        largura: 64 bits        clock: 66MHz        capacidades: pm msi vga_controller bus_master cap_list rom        configuração: driver=nouveau latency=0        recursos: irq:22 memória:fc000000-fcffffff memória:d0000000-dfffffff memória:fb000000-fbffffff memória:c0000-dffff


Unable to post questions after reviewing

I was new to StackOverflow. All I did was ask a question as other newbies. My reputation deteriorated to "3" and I was unable to post questions anymore.  After reading all the FAQ I realized the concept of StackOverflow.  So, I reviewed all my question/answers, also answered others' questions and gained a reputation of "22". I'm now able to chat. But still, I cannot "Ask Question" on StackOverflow.   Any help?


Running command on each line of output immediately

I found out that when I run a command which executes a software that has continuous output lines e.g. traffic monitor like tcpdump or tshark the command keeps counting numbers on screen like 4, 8, 12 ... and so on.  command... | awk -F ' ' '{ANY COMMAND}'   I want my bash script to do actions after every single line of output and not every one thousands of lines. How can I achieve that?  There's a good example when running a software generating a lot of output and you place pipe operator like this:  command... | awk -F ' ' '{print $1}'   It will count numbers from 0 to 1000+ and then it simply prints out all correct information once, but not immediately on script execute.  If I put output into file using:  command... > file.txt   ... then data is there immediately when command provides any output. I'm wondering what is causing the delay when using a pipe operator?


Finding the area of the shaded square inside a square created by connecting point-opposite midpoint

If the lines intersect the vertices of the square. The area of the square is $1$ and the lines also intersect the midpoints of the square lines. How to find the area of shaded region?


How to interpret coefficients of $x$ and $x^2$ in same regression

If I have the below functional form for an OLS regression, how do I interpret the $x$ and $x^2$? I cannot interpret them separately, correct? Do I interpret them as a summation of the two coefficients, so the effect of a one unit change of $x$ on $y$ is $0.5 + 0.3 = 0.8$?  $$ y = a + 0.5x + 0.3x^2 + e  $$    Update: Now with 2 squared terms, and one that is an interaction term with the other and a binary variable, is there no rule for how to interpret the coefficients for all values of $x$? Or does it depend on the value of $x$? \begin{align} y = 0.04\; &+\; 0.05\times {\rm drop}\; +\; 0.008\times {\rm season}\; -\; 0.0004\times {\rm season}^2    \\          &+\; 0.002\times {\rm dropseason}\; -\; 0.0003\times {\rm dropseason}^2\; -\; 0.029\times p   \\          &-\; 0.01\times r_1\; +\; 0.003\times r_2\; +\; 0.01\times r_3\; +\; 0.003\times v_5\; +\; e \end{align}


How can i turn off charging when my phone connected to my computer?

I have Android device Samsung S4.  Is that possible to turn off Battery Charging when my phone connected to my Computer via USB Cable.  Any ways to turn off or disable it from settings?


How do I select parents and children together in the outliner?

So for example I have a model chair which includes the arms, piston (that type of chair), base etc. How do I select all parts including the parent item for duplicating the model? Shift+G only allows me to select the children but not parent. I'm fairly beginner with Blender.  Thanks


I left fully cooked lasagna out all night

I left fully cooked lasagna out on the counter all night. My house is 72 degrees Fahrenheit (22 degrees Celsius). Is it safe to reheat and eat?


Allow inviting people with rep < 20 to private chat?

Quite often I have run into situations where I had an extensive talk with a newbie (about SO and/or programming itself) using the comments. Since you shouldn't use the comments to further discuss things (which are often off topic from the original question), I'd like to use the chat for those discussions.  As a matter of fact if you do use the comments to discuss something, you get a notification which tells you to move the discussion to a chat-room.  Unfortunately, most of those users don't have the required 20 reputations to talk in chat, so you also get this fancy orange box telling you that you can't move the discussion. This normally leads to using the comments again.  Don't get me wrong at this point, I'm NOT asking you to change this (I actually think it's a good thing).  My idea would be, that a user who has enough reps to talk in the Chat should be able to invite a user who doesn't have enough reps into a private Chat-room (just for the two of them).  The user with the <20 reps would only be able to talk in this very room, e.g. would receive a "temporary privilege".  Edit As  pointed out, this is already possible but you need to be Moderator and it requires multiple steps. This gave me the impression that it shouldn't be that difficult to realize.


Make a file run every time before shutdown

As far as we know, we can make a file run every time after turning on the windows, by putting it in Startup folder or make a key in registry with its path in the value!  Now I want to now, is there any way to make a file run right before Windows shutdown?


When I see comic book questions, or questions on characters from comic books, they're invariably qualified with a "this canon" or a "that canon" only notice, which given certain characters is a fairly reasonable thing to do.  And of all the characters that exist, Batman by far seems to have the greatest number of intertwining canons.    Just how many different canons are there for Batman?  And to be clear, I'm counting all comic book canons, running and cancelled (but not 'planned but never released' canons), different movie canons, and TV canons.  I know there's at least two separate TV canons for Justice League and B:TAS (though not if those two are one in the same, or directly tied together with Batman Beyond).  And I know there's at least 3 different Batman Movie Canons (I think?) but I'm at a total loss on comic book canon.


How to force jQuery.text() working even after manual updating the TEXTAREA value?

I've just noticed, that the jQuery  method only sets the content of a TEXTAREA, if if has not been updated manually. For example (also on ):    $('#myButton').click(function() {    $('#myText').text(Date.now);  }); <textarea id="myText"></textarea> <button id="myButton">Go!</button>  <script src="//code.jquery.com/jquery-2.1.0.js"></script>     Now when I click on Go!, the content of the TEXTAREA gets updated with the current timestamp. I also can do it multiple times. Working. But if I manually change the text (e.g. by deleting or adding a character), it stops working.  I also tried out the val(...) method. It works as expected, regardless of manual changes on the text field.  How to get jQuery.text(...) working after manual changes?


Changing the first created username in Windows 10

At startup of my new Windows 10 PC I created a local administrator account (not a Microsoft account as I wasn't connected to the internet). Unfortunately when asked who was going to use this computer I typed "Just me". I have since changed this account to my name in user accounts but it remains "Just me" in windows explorer etc. Is there a specific system/registry location where this username change can be made? I believe there has to be as upon creation the initial username propagates to hundreds of registry keys within seconds of creating it. What about creating another administrator account and deleting the initial one altogether? I could do this with little inconvenience as I have not loaded any software or files of note. Any solutions which are guaranteed to work (if performed correctly) are appreciated. EDIT: I just found this previous question which seems to have many valid answers. Now the task is working out the cleanest method.   EDIT: So I have successfully changed the username without breaking anything and maintaining the same user profile settings as before. These are the steps I took although I'm not sure all are necessary. I also did this with the internet disconnected.  Rename the account in Control Panel/User Accounts - this I had previously done and probably has no bearing on the result.  Navigate to Settings/Accounts/Family & other users/Add someone else to this PC/ and create a second local administrator account. Shut down and log back in using the new account. Shutting down rather than just switching users is needed for the next step.  Navigate to C:\Users and rename the original account to your preferred name.  Open Registry Editor and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Find the original account and edit the name to your preferred name. Save the edit.  Now shut down and restart using the original account with the updated name.   Everything works exactly as before, although I have no idea what effect this has on OneDrive or a Microsoft account - I disabled OneDrive previously and I don't have a Microsoft account. EDIT: So since I changed the name I have discovered some inherent problems with changing the name and this is consistent with LPChip's answer below. The problems are:  The new name change does not change in some non-Windows programs in the registry. For me this resulted in having to completely re-install factory software for the AMD graphics control (it couldn't find drivers).  The new name change results in hundreds of obsolete and/or broken registry entries.   This was a deal breaker for me and in my opinion there are three much better options, one being the solution offered below by LPChip (below), a second being leave the name as is, and a third being a factory reset. I chose the third as I had not loaded any software or files which were not easily re-installed.


How to create a file and parent directories in one command?

Is there a flag/option for touch, mkdir, >, or some other command that will allow me to create a file and any non-existent parent directories at the same time?  For instance, let's say I'm in an empty folder. Now I can create parent directories if they don't exist when creating a folder  mkdir -p nested/folder   I can create files in existing directories  touch nested/folder/something.txt   But I can't create a file in a directory that doesn't exist yet  touch nested/folder/deep/more.txt      touch: cannot touch ‘nested/folder/deep/more.txt’: No such file or directory   How would I create that deep folder at the same time I create more.txt ?


Opt-ins versus opt-outs in forms - does nobody else care?

Whilst filling out a form on the Royal Mail site this morning, I came across this heresy of form design: the self-negating checkbox...    This required careful (re)reading to ensure that:   I was actually opting out of the first set of marketing questions I did not have to tick the second group of boxes as these were default opt-out ... I was not actually going crazy   The mixed metaphor is confusing enough to me, but I was under the impression that (in EU countries at least) the legal requirement was for all marketing preference questions to now be opt-in by default, not opt-out?  Has any notable comparative research been done into opt-in versus opt-out options on forms to see which are more annoying / easier to understand? The inconsistency across sites just from one country is mindboggling, never mind an apparent lack of international standard. Is it just me failing to wrap my head around things still being opt-out by default or does nobody else actually care?


I made a 3 by 3 portal with End Portal blocks and eye of the Ender in each block but it doesn’t work. I did this many times in Creative mode, with and without a friend


Proving |f(z)| is constant on the boundary of a connected compact subset implies f has a zero or is a constant function

I have a problem with an exercise regarding an application of the open mapping theorem.      Let $U$ be a domain and $f: U \to \mathbb{C}$. Let $K \subset U$  be a connected compact set with non-empty-interior, such that $|f(z)|$ is constant along $\partial K$. Show that $f$ either has a zero in int($K$) or is constant.     I tried to solve this by contradiction. Suppose that the claim is false. Then $f$ has no zeros in int($K$) and is not constant. Because $K$ is compact it is bounded. If I can show that $K$ is open then $K$ is a domain and I can conclude that $|f|$  attains its maximum and minimum on $\partial K$. Because $f$ is constant on $\partial K$ it follows that $f$ is constant on the whole of $K$. This implies that $f(K)$ lies in the interior of a circle. Because $K$ is a domain and $f$ is holomorphic and not constant it follows from the open mapping theorem that $f(K)$ is a domain and therefore open in $\mathbb{C}$. But the interior of the circle containing $f(K)$ is empty so we get a contradiction.   The issue is that this argument rests on the idea that $K$ is a domain. In order for this to be true I have to show that $K$ is open in $\mathbb{C}$. Unfortunately I don’t see how to prove this.


It is known that DES has the key-complementation property. That is, given any key $k$ and any message $m\in\{0,1\}^{64}$ $$\operatorname{DES}_k(m)=\overline{\operatorname{DES}_\overline k(\overline m)}$$  By using this property, show that the key search of DES can be sped up by a factor of two.


If I have e.g. 20 lines of text, e.g.
Cheese

Water

Earth

Helicopter

Rabbit
   I wondered if anyone might be able to advise please, how I might be able to have a button on the page which a user can click, which copies the text values to the clipboard, so that all the user gets in their clipboard are the p innerHTML values in a list split by line breaks, e.g.  Cheese Water Earth Helicopter Rabbit   The example above is just a simple example, rather than the finished product I'l be working with, just something to use as an example to demonstrate the point.  I was thinking it might be possible using Javascript / jQuery / accessing the DOM, but I don't know how one would do it.


Who is responsible for onward travel after being denied entry to a country?

I was booked with Qatar Airlines from Muscat to Bangkok, via Doha.  When checking in at Muscat Qatar ground staff checked my documentation for my flight to Bangkok.  I had the ‘fit to fly medical’, the required insurance but I did not have a work permit, instead I had an official document stating I was in a domestic relationship in Thailand and a hospital appointment for the birth of my Son.  I was asked if I had a work permit and I told Qatar staff I did not.  Discussions were made between staff and I was checked in and handed boarding cards to Doha and for Bangkok.  Again, at the boarding gate in Doha for the Bangkok flight, I was asked again if I had a work permit to which I replied “no” and I produced my documents again and was allowed to board the Bangkok flight.  Upon arrival in Bangkok, I was denied entry into the Kingdom of Thailand as I do not hold a work permit.  I was escorted to the immigration office and told by Qatar staff that I had to pay for my own flight to the UK.  This was all very upsetting and degrading for me as I can not be there for the birth of my son and I was treated like I criminal as I was deemed to be a security risk.  Qatar stat refused to give me my passport back until my final destination.  I was forced to sit at the back of the plane on both flights and accompanied to the boarding gate by Qatar ground staff.  The staff in Doha were not discreet!  As he was stood in the que with a document stating I was a deportee for everyone to see.  On top of this, I had to spend 2/3 hours in Doha, I could not get any food or water as I was refused my boarding card!  I requested to be escorted to a restaurant but this was denied as it seemed the staff member was too busy sitting relaxing in an office!    I found the manager at the boarding gate in Bangkok to be very rude, she refused to give me her name!  There was no compassion shown to me as I was going to be with my newborn son and partner.    I would like to know why I was allowed to board 2 separate flights with no work permit.  Had I known this was required I would not have attempted to travel to Thailand!  As soon as I returned to UK I checked both CAAT & IATA and they both state Work Permit was required!    Also why did I have to pay for an onward flight to the UK when Qatar failed in their ‘Duty of Care’ by allowing me to travel with insufficient documents.  The responsibility for the cost of my onward travel surely lies with Qatar?  Regards  Barry Mutch


Exception in thread "main" java.lang.OutOfMemoryError: Java heap space if i'm scann many folder

I am trying to perform a scan of the project containing the word stub for searching files in it. Files in UTF-16 encoding. However, when the parser comes to 1017 files, all with the error:     Exception in thread "main" java.lang.OutOfMemoryError: Java heap space.   How I can fix it?  import java.io.*; import java.util.Scanner;  public class FolderScanerV2 {      public static void FolderScaner(File file) throws Exception {         if (file.isDirectory()) {             File[] directory = file.listFiles();             for (File enter : directory) {                 if ((enter.isFile() & enter.getCanonicalPath().contains("txt"))) {                     FileScaner(enter);                 } else {                     FolderScaner(enter);                 }             }         }     }      public static void FileScaner(File file) throws Exception {         BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file.getAbsolutePath()), "UTF-16"));         Scanner text = new Scanner(in);         while (text.hasNext()) {             if(text.next().contains("Cap")) {                 System.out.println("Cap" + " " + file.getCanonicalPath());             }         }         text.close();         in.close();     }      public static void main(String[] args) {         String path = new String();         Scanner inpunt = new Scanner(System.in);         System.out.println("Input path");         path = inpunt.nextLine(); //           File dir = new File(path);         path.close();         try {             FolderScaner(dir);         } catch (Exception e) {             e.printStackTrace();         }     } }


A problem with a proof about formal series in Lang's Algebra

Theorem in question is:     Let $\mathfrak o$ be a complete local ring with maximal ideal $\mathfrak m$. Let $$ f(X) = \sum_{i = 0} a_iX^i $$be a power series in $\mathfrak o [[X]]$ such that not all $a_i$ lie in $\mathfrak m$.   Let $a_0, \ldots, a_{n-1} \in \mathfrak m$ and $a_n \in \mathfrak o^\times$ is a unit.   Given $g \in \mathfrak o [[X]]$ we can solve the equation   $$g = qf + r$$   uniquely with $q \in \mathfrak o [[X]], r \in \mathfrak o [X], \deg r < n$.   For those who have access to book, this is chapter IV (Polynomials), subchapter 9 (Power series). For those without a book, I'll transcribe Lang's proof:  Let $\alpha$ and $\tau$ be projections on the beginning and tail end of the series, given by: $$ \alpha : \sum b_i X^i \to b_0 + b_1 X + \ldots b_{n-1}X^{n-1},$$ $$ \tau : \sum b_i X^i \to b_n + b_{n+1} X + b_{n+2}X^2 + \ldots .$$  Notice:   $\tau(X^n h) = h$ for all $h \in \mathfrak o[[X]]$. $h$ is a polynomial of $< n$ if and only if $\tau(h) = 0$.   The existence of $q, r$ is equivalent with a condition that there exists $q$ such that $$ \tau(g) = \tau(qf).$$  We can write $f = \alpha(f) + X^n \tau(f)$, hence our problem is  equivalent with solving $$ \tau(g) = \tau(qf) = \tau(q\alpha(f)) + \tau(q X^n \tau(f))  = \tau(q \alpha(f)) + q\tau(f),$$ by using (1) in the last equality.  Notice that $\tau(f)$ is invertible. Writing $Z = q\tau(f)$, the equation above is equivalent with:  $$ \tau(g) = \tau \left(Z \frac{\alpha(f)}{\tau(f)}\right) + Z = \left(I + \tau \circ \frac{\alpha(f)}{\tau(f)}\right)Z$$  Here comes my issue with this proof.  Note that $\alpha(f) \in \mathfrak m[[X]]$, so that image of $\tau \circ \frac{\alpha(f)}{\tau(f)}$ is in $\mathfrak m[[X]]$.  We can therefore invert to find $Z$, namely $$ Z = \left(I + \tau \circ \frac{\alpha(f)}{\tau(f)}\right)^{-1}\tau(g).$$    It is not at all clear to me why this remark about image of $\tau \circ \frac{\alpha(f)}{\tau(f)}$ implies invertibility of the function $\bigl(I + \tau \circ \frac{\alpha(f)}{\tau(f)}\bigr)$. Could we write the inverse in a more concrete way?


How to replace a number with another one?

I want to replace a number with another number which is stored in a variable. How can this be done? Thanks in advance.


How they make ground dust formation in shooting scenes?

I watching a war movie, soldiers firing on people,   Bullets are hitting on the ground & dust is coming from the ground.    I know they don't use any real bullets & then what is hitting the ground to form dust ?


What kind of rice is used in Chinese cooking?

I love the Chinese food we get from takeaway shops, and often to save on the cost we will cook our own rice at home. This is good, but the rice never seems to have the same texture as takeaway rice - it's less sticky, and much harder to eat with chopsticks. I usually use plain long grain rice as that's what I have in the cupboard. Does anyone know what kind they would use in a Chinese restaurant or takeaway?  Also, out of interest, what kind is used in authentic Chinese cooking? (I am well aware that this is vastly different from what we eat as "Chinese food" in the West!)


Combinatorial proof of Stirling Number Identity (First Kind)

For $m,n\ge 0$,   $$\sum^m_{k=0} (n+k)\left[{n+k}\atop{k}\right]={{m+n+1}\brack m}\;.$$  I need to prove this combinatorially. I know the RHS counts the number of $m+n+1$ permutations with $m$ cycles. I'm stuck on how to show the LHS does so too.


Relation between a tautology and a theorem

I am reading about Gödel's incompleteness theorem and I wanted to clarify something. What is the relation between a tautology and a theorem? If a formula $F$ is a theorem in a consistent axiom system, does that imply that this formula is a tautology, and not all tautologies are theorems?  Or does there exist an equivalence relation between a theorem and a tautology, I am really confused?


Upgrade Spotify (spotify-client) on ubuntu 14.04

I have Spotify for Linux on ubuntu 14.04 and I would like to update to access the latest features. I have looked online and found nothing. Would this do?:  sudo apt-get upgrade spotify-client   Thanks.


I have white blank on the posts.    App Version: 1.0.89 Device Manufacturer: Meizu Device Model: m2   OS Version: 5.1 (1464689330)    I can't see the questions and the answers and the comments.  I saw that it's a common issue..  Does it have a fix?   EDIT -  I saw  answer. This answer is ~2 years old. It says that it will fix in the next update.  His version is 1.0.59 - mine is 1.0.89. Huge different.   The problem is still exists!


AnyDesk was running great for me on Ubuntu 19.04. Then I upgraded to 19.10, now it won't start. I installed from the anydesk repository and have version 5.4.0. I've uninstalled & reinstalled already.  When I run from the cli all I get is: (anydesk:18303): GdkGLExt-WARNING **: 07:23:14.100: Window system doesn't support OpenGL.  syslog contains lots of lines like this afterwards:  Oct 25 07:27:21 mrh-laptop gnome-shell[1660]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10). Oct 25 07:27:21 mrh-laptop gnome-shell[1660]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11). Oct 25 07:27:21 mrh-laptop gnome-shell[1660]: _clutter_stage_queue_event: assertion 'CLUTTER_IS_STAGE (stage)' failed   Any suggestions?


Finding the rows with the minimum value per group

How do I get the min timestamp value of the same Id number with its corresponding Value using SQL?  Would anybody help me with this problem? (Please see attached image below)  Sample Table    Sample Table of what should be the result


What is the full official name Doctor Noonien Soong gave to his android (known in ST: TNG as "Data")?   Is the entire name simply Data, or is it an acronym?


Sorting of "All Sites" list in Stack Exchange pulldown menu

I think it would be useful if this listed sites I had accounts on first so I can quickly jump between them.  Even better, it could sort them by my rep on each site so that the sites I use the most are at the top.  What is the current sorting method anyway?  Seems random to me.


Text not very readable on different image backgrounds

I've come here seeking for a bit of design help or advice on how I could possibly improve the following:  Like the title says, I'm having a website banner with multiple text displayed on different images as backgrounds. Now, since most of the images are dark, I've set the font color as white. But even then, some of the text is not very readable on a couple of images like:    Since I'm working with CSS, I've tried different options such as:  Adding Text Shadows:    CSS:  text-shadow: 3px 3px 0px #000;  Also tried, creating a semi-transparent box around the text:      I feel the box one looks out of place.  I've created a  for anyone who knows CSS. If not, please feel free to advice me based on your imagination alone.  PS: You could also advice on using a different font if that would help it stand out better.


Not to Mention ≈ [Let Alone ≈ Much Less ≈ Still Less]

For brevity, I symbolise synonymity with ≈.  So  X ≈ Y  means  X and Y are synonyms.  From : let alone ≈ not to mention  From :  let alone ≈ much less ≈ still less.  Are these all synonyms? What are the similarities and differences between each?


Converting float to double loses precision C#

I have the following code      double temp3 = 61.01;      //This can actually be various other types, but float is the one that causes problems     dynamic temp = 61.01f;     double temp2 = (double)Convert.ChangeType(temp, typeof(double));      double newValue = temp2 - temp3;      //newValue should == 0 but it does not      Console.WriteLine(String.Format("  {0:F20}", temp));     Console.WriteLine(String.Format("  {0:F20}", temp2));     Console.WriteLine(String.Format("  {0:F20}", temp3));     Console.WriteLine(String.Format("  {0:F20}", newValue));   Which produces   61.01000000000000000000  61.00999832153320000000  61.01000000000000000000    -0.00000167846679488548  Why is Convert.ChangeType losing precision?  We are using Convert.ChangeType because of the use of a dynamic variable which can be byte/uint/float/double etc


Are all SATA cables compatible with SATA 3?

I have a HP Compaq de5700 Small Form Factor desktop computer, and I am looking to upgrade it's hard drive.  When I open up the box, it clearly has available SATA connectors on the motherboard, but no indication as to which SATA version (1, 2, or 3).  The hard drive I am considering is a  SATA 3.  My concern is that if the motherboard also supports SATA 3 and I use an old SATA cable (v1 or v2), might there be problems?  This is a bare drive, so I don't expect that a cable will come with it, and I have not been able to find the manual for this machine.  Thanks.


Looking for a shapefile of the US Southwest Border Sectors

I'm looking for a shapefile similar to the following image:    I'd just like the outlines of the sectors. I'm only concentrating on the southwest border which is San Diego all the way to Rio Grande Valley, but I'm ok with data on all of the sectors.  Does anyone know where I can find something like this?


Getting a ConcurrentModificationException thrown when removing an element from a java.util.List during list iteration?

@Test public void testListCur(){     List<String> li=new ArrayList<String>();     for(int i=0;i<10;i++){         li.add("str"+i);     }      for(String st:li){         if(st.equalsIgnoreCase("str3"))             li.remove("str3");     }     System.out.println(li); }   When I run this code,I will throw a ConcurrentModificationException.  It looks as though when I remove the specified element from the list, the list does not know its size have been changed.  I'm wondering if this is a common problem with collections and removing elements?


Why is my homemade bread molding after 2 days?

I sell bread at farmers markets. It gets moldy very fast. How can I get them to last longer?


Camera can't see object, it only renders the background

I've got a problem while trying to create a smoke simulation in blender 2.79 (internal render). I have already made a simulation which is appearing in the render mode, but when I'm trying to render it with the camera, the smoke is not visible. I'm very new to blender.   Rendered mode:  Camera Render Result:  .blend:    Thanks in advance.


Representation theory's usability after one course

What are the things one can expect to understand after studying the representation of a group? I have seen many answers on pages regarding the importance and philosophy of representation theory but I am unable to understand what good it will do as a short term goal (meaning I'm not interesting in things it will enable me to study later).   Suppose I have studied the representation of $SO(n)$ or $SU(n)$. What are the questions I will be able to answer about it that I can't (or not easily) without the knowledge of representation theory?  Edit: I don't understand why even after explaining that what I'm looking for is not available on that page, this question is marked as duplicate.   To quote, it says now that "This question was marked as an exact duplicate of an existing question." which according to me is rather absurd. I'd argue that this is much more specific and will benefit a lot of people getting introduced to the subject.


Suppose we have a sequence of functions $f_n(x)$ that converge to a limiting function $f(x) = \lim_{n \to \infty} f_n(x)$ for $\forall x \in [a,b]$. I was wondering under what conditions the following holds? \begin{equation*} \lim_{n \to \infty} \inf_{x \in [a,b]} f_n(x) = \inf_{x \in [a,b]} f(x). \end{equation*}


A large part of the justification for Darth Vader’s redemption is his appearance as a force ghost. Even though the new movie is not released yet, would it be possible for Palpatine to appear as a force ghost or can only Jedi do this?  Is there any support in the canon books/comics for this? One thing I can think of is Yoda’s reference to Obi Wan’s master in Phantom Menace, but I’m not sure who he is talking about and if it refers to Palpatine’s master or a Jedi?


Is it possible to find the physical address of a file in disk?

Is there any way to find the physical address of a file if the path is provided?


The image do not use the class like text

I have a logo_png class,  and if I use a text, it will works fine.  but if I use a image of the class, it will goes wrong:    you see the logo img is on top of the background image.  I want the image is like first snapshot, overlap the background image.    this is the code, the annotation is the logo.

口耳教育

   the class code:  .logo_png {     position: absolute;     z-index: 9999; }   the background image code is bellow:

       .....   its code is like this:  nav.navbar.navbar-default {     background: transparent;     border: none;     top: 48px;     position: absolute;     z-index: 9999;     right: 98px; }


Text appears at the bottom of row when image is image inserted in the next column

I want to use latex to make PDF for all figures. Please see the code. The image is inserted but "100" on the left column appears at the bottom of the row. How do I align that to top or center of the row? Thanks a lot Jay    \documentclass[12pt,a4paper]{article} \usepackage[margin=1in,landscape]{geometry} \usepackage{parskip} \usepackage[T1]{fontenc} \usepackage{txfonts} \usepackage{graphicx} \usepackage{array}    \begin{document} \textbf{Title} \hfill \textit{Author} \smallskip \hrule  \begin{tabular}{ |>{\centering}m{1.1in}| p{1.6in}|} \hline  Drug Conc (ug/ml) & Image \\  100 & \includegraphics[width=1.5in]{100.jpg} \\   \end{tabular}   \end{document}


"Protect Questions" privilege page has confusing wording

The wording on the  privilege page is confusing and would benefit from being clarified. See these questions on  and . Suggested wording from  is to replace this:  Which questions can be protected? Any question, even a deleted question, can be protected and unprotected, subject to the following restrictions:  The question must be at least a day old A user can unprotect any protected question   with the following:  Which questions can be protected? Any question at least a day old, even a deleted question, can be protected and unprotected. A user with the privilege can unprotect any protected question.


Let $a$ and $b$ be positive numbers such that $a+b=1$. Prove that: $$a^{4b^2}+b^{4a^2}\leq1$$ I think this inequality is very interesting because the equality "occurs" for $a=b=\frac{1}{2}$ and also for $a\rightarrow0$ and $b\rightarrow1$. I tried to work with a function of one variable, but the derivative is not easy. I also don't get something solvable by Taylor series.


How do I tell if Windows 10 was a fresh install or upgrade from 7/8?

Is there a reliable way to determine the OS upgrade history leading to Windows 10 or if it was a fresh install?


Nuclear norm minimization of a matrix in the presence of non-negativity constraints

Let $L$ and $R$ be $n \times n$ matrices. Consider the following minimization problem  \begin{equation} \mathbf{L} = \min_{L \geq \mathbf{0}}  \mu\|\mathbf{L}\|_* + \dfrac{1}{2\lambda}\|\mathbf{L-R}\|_F^2 \end{equation}     By $\mathbf{L}$ $\geq$ 0 , i mean that i wish the entries of $\mathbf{L}$ to be non negative. I know the solution can be obtained using the singular value thresholding of $\mathbf{R}$ when the non-negativity constraint on $\mathbf{L}$ is not present. But I can't figure out the change needed in order to satisfy the non-negativity constraint on $\mathbf{L}$. Will simply setting the negative entries of $\mathbf{L}$ to zero work? This link  is about $\mathbf{L}$ being positive definite; my question is about the entries of $\mathbf{L}$ being non-negative. Can someone please answer this?


I have an old Win XP laptop which has wifi in it. I would like to convert this laptop to a wifi hotspot. I should be able to connect from both phones as well as computers. Is there any in-built mechanism to do this within XP?


Assign unique IDs to HTML elements via twig file

I have a "block--system-menu-block.html.twig" file, which prints the menu content into the menu. {# Menu. #} {% block content %}   {{ content }} {% endblock %}  However, I would like each menu item (the resulting
 elements) to get a unique ID. For example:
abc

abc
  ... The idea is that I can use that in my css to have different colors or hover colors for my menu items. I have already achieved this with JavaScript on the front end, but I would rather have it done in the backend, in the twig files. Is that possible? If so, any ideas?


\setmathfont[range=\sqrt]{...} changes size of integrals

Using the suggestion from , I used the \sqrt sign from Asana Math with TeX Gyre Pagella Math to decrease the height of some inline math. However, this apparently had some unintended side-effects. Take this minimal example:  \documentclass[a4paper, 12pt]{scrreprt}  \usepackage{unicode-math} \setmainfont{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math} % comment or uncomment the next line and compare the output \setmathfont[range=\sqrt]{Asana Math}  \begin{document}  \[     \int ∫ \sum \]  \end{document}   If you compile with or without the line \setmathfont[range=\sqrt]{Asana Math}, the size of the integral sign (but not the sum sign!) changes!    What gives? The integral sign for TeX Gyre Pagella Math is very small to begin with, so this is really uncalled for! Is this a bug? Are there any more unexpected side-effects? How can I avoid this and keep both the \sqrt from Asana Math as well as the bigger integral sign?  For reference, I'm using the version of LuaLaTeX from the Ubuntu 15.04 repositories  (it says "This is LuaTeX, Version beta-0.79.1 (TeX Live 2015/dev/Debian) (rev 4971)").


On my less-than-ideal internet, updates such as XCode take many hours to download, and basic browsing (e.g. stack exchange) slows to a crawl while they're loading. I'd like to be able to pause the download and resume it later.  I know I can cancel downloads by pressing the download ring in the App Store app, but I can't find any way to pause downloads in a way which can be resumed later without re-downloading the whole thing. The internet leads me to believe that this used to be possible by right-clicking the app's icon in the dock and selecting 'pause', but this doesn't appear in Mojave (neither on the app being downloaded nor on the app store itself).  What do I need to do to pause an update?


Capitalize the first letter of each string

I've been trying to capitalize the first letter of each word in a string, but it says TypeError: Cannot assign to read only property '0' of string 'i' . My logic looks fine but surely the way I'm doing this is not right. Any suggestions.    function titleCase(str) {   str = str.toLowerCase();   var word = str.split(" ");   // console.log(word[0][0]);   for (var i = 0; i < word.length - 1; i++) {     word[i][0] = word[i][0].toUpperCase();   }   console.log(word);   return word; }  titleCase("I'm a little tea pot");


How can we find $x′ = Ax$ for the matrix   \begin{pmatrix}3 &1 &0\\ 0& 3 &0\\ 0& 0& 2\end{pmatrix}


I'm a little ashamed but I seem as in the first step of Latex... In this example, the  parenthesis of the equation number are inversed. Why? How I can I obtain the good numbering? Thanks.  I give a minimal example. The simple file  \documentclass[11pt]{book}  \usepackage{amssymb} \usepackage{amsmath}  \usepackage{polyglossia}  \setmainlanguage{english} \setotherlanguage{arabic}  \begin{document} A sample \begin{equation} 1+1=2 \end{equation} \end{document}   It's compilation gives


I have a question that somehow depends on people's taste I suppose. I like the amsart package for my documents, however I always found the margins too large, so I got used to making them smaller (3cm) using the geometry package.   When the article goes to a journal it doesn't matter in the end because they will format it accordingly, so my question is rather aimed at the preprint version, which is usually the one in the arxiv/home webpage.   What do people prefer generally? Big margins? Small margins?   Why does amsart sets the margin so large? I know it's for their journal specifications, so the question may be rephrased: what's the reason that these journals like the margins so big? I'm looking for an answer in the lines of "because it's better for reading according to such and such..".


How to overlap multiple objects in Illustrator

Let say I have 3 shapes in illustrator: A, B and C. I would like A to overlap B, B to overlap C and C to overlap A. How can I do that?


QGIS: ESRI shapefile .shp no longer appears in list of file types under Add Vector Layer

I recently installed QGIS 2.18.4 after using ArcMap for many years. I want to add several existing ESRI shapefiles (.shp) created in Arc, to a QGIS project. To add a new layer in QGIS, I select the "Add Vector Layer" button and then click "Browse" to go find the layer. Then I navigate to the proper folder. However, the drop down menu at the lower right of the "Open an OGR Supported Vector Layer" window does not include ESRI Shapefile on the list. The first one on the list is GeoJSON. Everything after "G" appears to be okay (all the way down to "X-Plane/Flightgear") but any file formats from A through F have been cut from the list. Since "ESRI" starts with "E" it does not show up on the list. Strange thing is when I first installed QGIS, ESRI Shapefile appeared on this list. So I must have accidently done something to change how that list is populated and I want to know how to change it back.   If I type in the name of the ESRI shapefile that I know is in the folder, it and all other files starting with those letters appears in the prompt window that appears. And QGIS will correctly load the Shapefile. However, I want to be able to see all those ESRI Shapefiles without having to know and type in the first letter so it will appear in the prompt. I want it to appear in the file type drop down (or drop up?) menu.


How can I align a text/border with vertically with an image?

I've got an image and a text/border that would like to position in the center of the image. However, even though I am using text-align and I've tried to use vertical-align, the text/border is at the top-left of the background image and not in the center. This is the code I have so far   .banner-background {   background-image: url('https://res.cloudinary.com/practicaldev/image/fetch/s--eXgVdE2K--/c_imagga_scale,f_auto,fl_progressive,h_900,q_auto,w_1600/https://dev-to-uploads.s3.amazonaws.com/i/ux6uf870i7esod0sx4sw.png');   background-size: cover;   height: 40%;   background-position: center;   background-repeat: no-repeat; }  .banner-background .background-text {   background-color: rgb(0, 0, 0);   background-color: rgba(0, 0, 0, 0.4);   margin: 0;   border: solid #f1f1f1;   border-radius: 10%;   text-align: center;   font-size: 200%;   color: #f1f1f1;   font-family: myFont1;   font-weight: bold;   width: 25%; }

Hello, world!
I am a developer!

    So far, it is displaying like this:


Check if a process is running using Python on Linux

I am trying to find if the process is running based on process id. The code is as follows based on one of the post on the forum. I cannot consider process name as there are more than one process running with the same name.   def findProcess( processId ):     ps= subprocess.Popen("ps -ef | grep "+processId, shell=True, stdout=subprocess.PIPE)     output = ps.stdout.read()     ps.stdout.close()     ps.wait()     return output def isProcessRunning( processId):     output = findProcess( processId )     if re.search(processId, output) is None:         return true     else:         return False   Output :  1111 72312 72311   0   0:00.00 ttys000    0:00.00 /bin/sh -c ps -ef | grep 71676 1111 72314 72312   0   0:00.00 ttys000    0:00.00 grep 71676   It always return true as it can find the process id in the output string.   Any suggestions? Thanks for any help.


How do computers calculate the log of a value?

I'm not sure if this question belongs on StackOverflow or here (please let me know if the former, and i'll delete this and ask there), but I was wondering how the log or ln of a value is calculated computationally with accuracy? Is some series implemented that approximates a value?   I looked into the Taylor series for the natural logarithm, but that is apparently only accurate for 0 < x < 2, and I can't find anything else. I tried looking for source code for Java's Math#log function as well to see what algorithm they implemented, but couldn't find any since it's implemented in a native language rather than in Java.


Is there something in ruby similar to perlform?

With  , I was able to format console output like this:  #Print report     $~ = 'REPORT'; $^ = 'REPORT_TOP'; write ;  # Specify format format REPORT_TOP = Charge Code   Hours    Description ============= ======== =============================================== .  format REPORT = @<<<<<<<<<<<< @<<<<<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $reportChargeCode, $reportHours, $reportDescription .   Is there a way in ruby to do the same thing?  Edit:  I have a loop that sums up the reportHours for each reportChargeCode stored in a hash. The desired output would look something like:  Charge Code   Hours    Description ============= ======== =============================================== CS5510        2.2575   hw13 ECE3710       5.678333 duck hunt game


Converting number words into numbers - Python

I'm trying to make a program that takes a string of number words "One hundred ninety two thousand seven hundred thirty one" and turn it into the corresponding number. This is the code I have so far:  def string_to_num(text):     text = text.lower()     words = text.split()     numbers = []     output1 = []     output2 = []     output3 = []     output4 = []     hold = 1     l = 1     for current_word in words:         number  = word_to_number(current_word)         numbers.append(number)     for i in range(len(numbers)):         current_num = numbers[i]         if i == len(numbers)-1:             output1.append(current_num)             continue         else:             previous_num = numbers[i-1]             if current_num > 999:                 output1.append(current_num)                 continue             else:                 if previous_num < current_num:                     output1.append(current_num * previous_num)                     output1.pop(i-l)                     l += 1                     continue                 else:                     output1.append(current_num)                     continue     for i in range(1, len(output1[:])):         current_num = output1[i]         previous_num = output1[i-1]         if current_num > 999:             output2.append(current_num)             continue         else:             if output1[i-1] > current_num and previous_num < 1000:                 output2.append(current_num + previous_num)                 continue             else:                 output2.append(current_num)  print('output2', output2) string_to_num('One hundred ninety two thousand seven hundred thirty one')   It works in the way that at the beginning, the function takes the number word and puts it through another function I have 'word_to_number()' that converts it to its corresponding number. I put all the values of numbers into a loop that gives the following result:  [1, 100, 90, 2, 1000, 7, 100, 30, 1]  The next part of the program adds makes sure the hundreds are added multiplied by the right factor. It takes the previous list and converts it into a list that looks like this:   [100, 90, 2, 1000, 700, 30, 1]  Note that the 100 and 700 are now combined.   The part that Im having trouble with is adding the numbers together and adding them to a new list, output2. The current code above produces the following list:   [190, 92, 1000, 700, 730, 31]  When it should look like this:  [192, 1000, 731]  Any Idea on how to get this working correctly? I've tried adding the numbers together and then using .pop to remove the original number from the new list, but I get the error 'Index is not in range'. Any help is greatly appreciated!


I have been trying to get Ubuntu 12.04 to launch on my Emachine 2828. I was able to load it and use the dual setup with windows xp. I am able to run windows, but I have not been able to run ubuntu. I get the low graphic mode message.. My processor is amd sempron 2800+, and video is via/s3g unichrome igp. I have tried most of the tips posted for low graphics...any help appreciated


I'm robotic engineer. I'm using OpenSCAD to model robotic components (gears, pulleys, parts, etc). But I need application to model physics and interaction of the components (for i.e. how will robot move if I will rotate current gear).  So, is it possible to import OpenSCAD models into Blender and model interactions in it?  I have models in STL format (for i.e. gears). I need to make reductor from it and see how it moves (if possible - measure rotation speed and torque).


As we all know, the URL has some importance in SEO. Should I try to rewrite (or redirect) the index page to a specific-name? For example: index.php to white-cats-are-cute.php (This is regardless of the domain name or the directory name, it is very specific to the index file)  Edited:  The case is a bit specific. The domain itself has no keyword, but an abstract name. Let us imagine something like example.com which says nothing about the type of product or services.  It is a One Page website, so it has no other pages that could hint about the product, like example.com/hamburger.html, so the only page it has is index.html.   So, yes it is to have a keyword on the URL, (of course besides a good title and description)


Can you get legendary weapons in Vending Machines?

Very similar to some vending machines in Borderlands 1 (There was a "secret" vending machine in New Haven that would have very high legendary spawn rates), can vending machines in Borderlands 2 spawn Legendary weapons?  What affects their spawn rate? Level? Class?


Is stackoverflow suitable as support tool for open-source project

I'm thinking about running open-source project and the absolutly crucial part of it is community support. Is stackoverflow suitable environment for user suport? I dont mean having issue tracker but something like replacement of google group etc... any thought? Thx.


I happended to see this on StackOverflow on page ,the attribtue of the picture is displayed.  System environment:   Operating System:Ubuntu 12.04   Browser:Version 31.0.1650.63 Ubuntu 12.04 (31.0.1650.63-0ubuntu0.12.04.1~20131204.1)


What is the "Participation" user sort on Meta sites?

I notice that users on per-site metas are, by default, sorted by something called "participation". I would assume this to be Meta-pseudo-rep, but it seems that someone who has basically no Meta activity and pretty much only votes can hold 2nd place in this sort.   What is the formula for this? Why can't it be adjusted for different timeframes (e.g. week, month,  Can we have this sort on main sites?


When are relative pronouns omitted in a sentence?

"For someone used to the tiny creatures we get in England it was something of a shock."  I think, in this sentence, relative pronouns before some words have been omitted. I know rules of omitting relative pronouns, but in this case I have failed to understand before which words relative pronouns can be placed to understand the sentence perfectly, which has been stated above. Please, explain the rules of omitting relative pronouns with the help of the sentence stated above, so that I can be able to understand this type of sentences easily. You can also use other sentences to explain this fact clearly.  Thanks to everyone.


I have a simple dotnet core application:   class Program     {         static int Main(string[] args)         {             try             {                 throw new ArgumentException("Damn");             }             catch (Exception Ex)             {                 Console.WriteLine(Ex.Message);                 // Error                 return 1;             }              // Success             return 0;         }     }   Return code is important as jobs are fired off from scheduler (Whether you use BMC control-m, autosys, rundeck, whatever). Scheduler will mark the job failed only if return code is 1 (Not zero). Otherwise you see errors from log but job status still flagged "Succeeded" (where it should be marked "Failed")  If we launch the job from PowerShell, we can use   dotnet HelloExceptionDotnetCore.dll echo $LastExitCode   But can we do same with regular command prompt? Not Powershell?


How would I make a circuit that is repeating that you can turn off and on?

I've been trying to make a firework launcher that repeats but I can only have it so it can turn on but never off. I've been using repeaters to go in a circle. I'm on Xbox 360 edition.


I am an Indian national having Valid USA visa. I will be traveling from Bangalore to Washington, DC. My Doubt is I will be transiting through two airports in Germany Frankfurt and Munich. I.e Bangalore>>Frankfurt>>Munich>>Washington DC. Do I need a Transit visa?  My flight details are. Departure airport Bengaluru - Bangalore Int. (BLR)- Frankfurt/Main International Airport (FRA), Terminal 1  Frankfurt/Main International Airport (FRA), Terminal 1 to  Munich - Franz Josef Strauss (MUC), Terminal 2  Munich - Franz Josef Strauss (MUC), Terminal 2  to Washington - Dulles International, DC (IAD)  So here I see same terminals. Still do I need transit Visa?  Update: Since I am not able to add comments here it is.. I asked the German Embassy about the visa requirement: they told me, you need a visa. When I asked them which type of visa, they are telling me to get transit visa.


Install Ubuntu ARM LTS on a HP Chromebook 14 G3 (Tegra K1, nyan_blaze)

As described above with a hardware accelerated Gnome, Unity or XFCE desktop? I'm currently limping on with crouton for the time being.  Ideally:   A backed up Chromebook OS replaced. OR an external SD Card / fast USB 3.0 drive booted into at startup.   Best Wishes, Spearthistle.


/etc/locale.gen: No such file or directory, how can I add a new locale the right way

The file /etc/locale.gen does not exist on my Ubuntu 14.04 LTS, how can I add a new locale the right way ?


How can a string be initialized using " "?

If String is a class just like any other, how can it be initialized using double quotes?


dir-300 router is able to block any website, but not Facebook

I'm trying to block the access to certain websites using the Website Filter section from Dlink DIR-300 Admin (Firmware 2.14, Hardware Bx which is the latest).  It works for any keyword, except for facebook.  I can access www.facebook.com, but I can't access the URLs that contain facebook.com in their URL, but have different domain. (ie www.randomname.com/facebook.com).  What I've tried:   to restart the router after I added the settings ipconfig /flushdns tests from different browsers clear browser cache   So how can I really block facebook using this solution?  Update I could block the access to the mobile version (m.facebook.com), via http. However, when this is accessed via https, then facebook is accessible. The problem is the admin interface doesn't allow me to explicitly set this entry .  I just realized the same problem is with YouTube which is also using the https protocol. I tried with other websites that use both HTTP and HTTPS. The HTTP pages are blocked, but not the HTTPS pages.


How does this "Sort((x, y) => x.CompareTo(y))" work?

Please look at this block of code:         List<int> list = new List<int>();         list.Add(1);         list.Add(6);         list.Add(2);         list.Add(3);         list.Add(8);         list.Sort((x, y) => x.CompareTo(y));         int[] arr = list.ToArray();         foreach (var i in arr)         {             Console.WriteLine(i);         }  I know that when executed, the code above will print the list in ascending order. If I switch the positions of x and y in "x.CompareTo(y)", then the list will be sorted in descending order instead. I know what CompareTo() does, but here how does it work with x and y to decide the order of sorting? what does x and y represent here?


Access second result set of stored procedure with SQL or other work-around? Python\pyodbc

I'm using python\pyodbc and would like to access the second result set of a stored procedure. As near as I can tell, pyodbc does not support multiple result sets. Additionally, I can't modify the stored procedure. Are there any options to access the second result set using SQL or some other work-around? Perhaps create a second stored procedure that only returns the second result set of the first?


I have found that the $H^2(D)$ norm of a field with zero Cauchy data on $\partial D$ (i.e. in $H_0^2(D)$) is equivalent to the $L^2(D)$ norm of its Laplacian, where D is simply connected with smooth boundary in $\mathbb{R}^n$. How can i prove this using Poincare inequality;


How can I increase the mouse pointer speed beyond the limits set by the Mouse preferences dialog?

In the Mouse preferences dialog I've set the acceleration to max and the sensitivity to min and the mouse pointer is not exactly sluggish, but I'd like to make it even faster. Is it possible to be done by setting some value in the procfs or something?  Thanks!


parent to child record changes using trigger

I have trigger on parent object which is used to update field Status of child object, I want to update child object's status field to Tested only if previous values is "ready for testing". And once all child status field changes to "Tested" i want my parent object field changed to 'Awaiting deployment.'  I just need suggestion for this part. "I want to update child object's status field to Tested only if previous values is "ready for testing". And once all child status field changes to "Tested" i want my parent object field changed to 'Awaiting deployment.'"  How to approach this scenario, any help will be appreciated.


I connect to SunOS 5.11 11.3 machine via ssh using putty.  In terminal ctrl + arrow keys are not moving cursor to the previous/next words.  There is simple bash terminal on the Solaris machine.  Do you know how to fix this issue?  In the past I had  and already applied the solution (set terminal type string in putty to "linux"), but now I also want arrow keys working.


Degree of splitting field of $X^n-1$ over some finite field

Let $k$ be a finite field of order $q$ in characteristic $p$, let $n$ be a positive integer not divisible by $p$, and let $K$ be the splitting field of $X^n-1$ over $k$. Prove that $[K:k]$ equals the smallest positive integer $d$ such that $n\mid q^d-1$.  My approach: It's easy to show that if $k$ is a finite field of order $q$ with $\text{char} \ k=p$ then $k=\mathbb{F}_{q}$ with $q=p^m$ with $m\geq 1$. If $K$ is the splitting field of $X^n-1$ over $k$ then $K=\mathbb{F}_{q^r}$ for some suitable $r\geq 1$.  Let $\alpha \in K=\mathbb{F}_{q^r}$ be a root of $X^n-1$ then $\alpha^n-1=0$ and $\alpha\neq 0$.   Thus, $\alpha^n=1$ and $\alpha \in \mathbb{F}^{\times}_{q^r}$ where $\mathbb{F}^{\times}_{q^r}$ is the cyclic group of order $q^r-1$.  But I have some difficulties:  1) From $\alpha^n=1$ it follows that $o(\alpha)\mid n$. How to show that $o(\alpha)=n$? I was trying to show it using that $(n,p)=1$ but I failed.  Remark: Because if we can show that $o(\alpha)=n$ then the desired result follows immediately from cyclicity of multiplicative group of field $\mathbb{F}_{q^r}$.  I have spent one day in order to come up with this approach. So please do not duplicate this question and can anyone show how to answer my question, please.  Detailed explanation would be great!


Printer no longer works after Ubuntu 20.04

After updating to Ubuntu 20.04, I found that my printer doesn't work anymore. So I removed and re-added it. But then it simply installs a "Generic Text-Only Printer" which, not only does it not print, it doesn't even receive print jobs at all. I've tried this with both my Canon iP2770 and a Canon E410.


Word for focusing on the details to the detriment of the whole?

There's a specific word I'm looking for and I even remember it being from Philip Roth's novel 'American Pastoral'. I just can't think of what the actual word is, but its meaning is to focus on the specifics of something to the detriment of the whole.


Is JVM string pool thread local? Will it cause any issue with this use case?

Many articles on internet specifies that using String.intern() in multi threading is bad but I really could not understand why it is bad.Using String.intern() always return a unique string from string pool,isn't it? If that is not the case then Is JVM string pool thread local? If not then why using String.intern() for synchronizing in multithreaded environment is considered bad? So in the following use case, wouldn't it solve the synchronization issue:  Method1 {    synchronized(Interned string)  {      select method {      select query to databse     }     ...some processing...    update method {      update query to database     }    }     }  Method2 {    synchronized(Interned string)  {            select method {      select query to databse     }     .....some processing....    insert method {      insert query to database     }    }        }   Here I am synchronizing both the methods based on one common string id.I want to execute entire method as one transaction(preventing other method to even read the database).But doing this at database level is causing deadlock(not preventing read access). Is synchronizing using string intern in this case has any bottleneck or deadlock issue? Is there any other approach to solve the issue? forgive me for any inconvenience or bad formatting.


How to remove Kali Linux base from Ubuntu

I have mistakenly installed Katoolin in my Ubuntu 15.10. It has done a lot of problem in my pc & then I removed it but it wasn't totally removed. Everywhere in the system has it's effect. The main problem is my Software Center & Update Manager is not responding. What do I do now??


I usually know how to do these but this one gives me trouble.  If a ball is thrown into the air with a velocity of 46 ft/s, its height in feet t seconds later is given by $y = 46t − 16t_{2}$.  (a) Find the average velocity for the time period beginning when t = 2 and lasting for each of the following.       .5 seconds ______       .1 seconds ______       .05 seconds _______       .01 seconds ______  (b) Estimate the instantaneous velocity when $t = 2$.  _______ ft/s


Estimating the fraction of unique elements in a list

Suppose I have a list of $N$ elements $\{e_1,e_2,\cdots, e_N\}$. Some elements may be non-unique and so this list has $N^\star\leq N$ unique elements. My question is:     Is there a way to construct an estimator of the fraction of unique elements $f\equiv  N^\star/N$ if you are allowed to draw $M$ samples uniformly at random from   the list ?   For practical purposes, I'm interested in the limit where $M \ll N$, and where $N$ can be "very large".   Just to clarify the setting in a small example, consider the list of integers $[1,2,3,3,4,5,5,6,1,2]$. For this list $N=10$ and $N^\star=6$.  I am also trying to refine this question and any comment, suggestion or reference is most welcomed.  To make things perhaps more simple, one can assume that each unique element in the list has the same number of duplicates (if any).


Why do my Tweets not appear on my followers timelines?

Why do my Tweets not appear on my followers' timelines - I just wrote a plain sentence (without any @ mentions or hashtags) and tweeted it. Should it not appear on my followers timelines?  I need to know if I tweet a simple sentence if it should appear on my followers' timelines because my tweets have not. I am not using some protected tweets or anything like that.  Is there anyone who I can contact for one on one help/support regarding this issue?


So, we don't change /t/ to /d/ if /t/ is between 2 vowel sounds and /t/ is the beginning of the stressed sound in a word in American English, right?

Ok, see this word entertainment has IPA of /en.təˈteɪn.mənt/. Ok, now in American English if /t/ is between 2 vowel sounds  then it will become /d/ cos it is flap T.  But /t/ will become flap T only if the sound in the word is not stressed. Is that correct?  For example, for the above example, we can pronounce /en.dəˈteɪn.mənt/ but not /en.dəˈdeɪn.mənt/, right?


Passwordless SSH only works when I'm already logged in on SSH

So I set up passwordless ssh using the following:   After setting this up, I'd expect that I wouldn't need a password to ssh.  My issue is that on my first connection to ssh, it will ask me for a password, but additional sessions on top of that will not ask for a password.    I've already checked my sshd_config to make sure that it contains:  RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile  %h/.ssh/authorized_keys   Pretty sure my permissions are right, because if they weren't then passwordless ssh wouldn't be working at all.  To add more "fun" to this problem, I noticed that when I restart my computer (either the client computer or the ssh server computer), sometimes it will work.  Then when I shut down the computer and try it again the next day, it doesn't work anymore.  Maybe this is completely random, but it's something I've noticed.


What's special about the $T-V = H- 2V =2 T- H$, which the least action principle extremizes?

My question is simple.  In the classical mechanics, we know the least action principle does the variation on the action $$ S = \int (T-V) dt , $$ where $T$ is the kinetic term and $V$ is the potential term, to give the classical equations of motion.  So why the least action principle extremizes (minimizes or maxmizes) this quantity $$T-V = H- 2V = E-2V =2 T- H = 2T-E?$$ Here I also denote $H$ as Hamiltonian. And $E$ as the energy of the system. In this regard, the $E$ is conserved, but not extremized. But $$E-2V =2T-E$$ is extremized!  For example, if we write down the $(T-V)$ for a free falling object under constant gravitational acceleration $g$, we have $$T-V = \frac{1}{2} m \dot{y}^2 - m g y = E -2 m g y =  m \dot{y}^2 -E$$ with $E=\frac{1}{2} m \dot{y}^2 + m g y$ is conserved.    What is the physical significance of this $T-V$? (Provide good physical or math reasons.) I know how to derive equations of motion. I am asking a transparent way to understand why $T-V$ is in extremization. I suppose the extremization may minimizes or maximizes the action. (Not necessarily minimization, correct?) Do we have both examples of  The equations of motion minimize the action?  The equations of motion maximize the action?


How do I calculate the number of stops between two shutter speeds?

What is the math equation to calculate the difference between two different shutter speeds in stops?


Answers to a deleted question not deleted?

I just ran across  and immediately thought to myself "yes, that should be deleted." But before I recommended deletion, I took a quick look at the question.  What the hell? A red background? The question is deleted? Must be a review audit... But then I still get a popup when I click the Recommend Deletion button... Ok, now I'm confused...  Taking a look at the , none of the answers under it are actually deleted.  Is this something to do with the question having been posted clear back in 2008? I mean, it wasn't deleted until 2011 (but automatically), so I wouldn't suspect that to be the problem. Is something else going on here? Should we clearly be blaming Sam for this?  If this isn't a bug, I'd say that LQP review certainly shouldn't be picking answers from closed and deleted questions. It's not like anyone can actually see those (and it should be deleted anyways).


Take $x,y \in (0,\infty), a \in (1, \infty)$. For $a \in \mathbb N $ by binomial theorem it holds $$(x+y)^a \geq x^a + y^a.$$ Trying with some numbers it seems true also for $a \in (1, \infty)$. How can I prove it?


The purpose is not to dance like an elephant.   I see two ways of interpreting this sentence:   It is incorrect to say that "dance like an elephant" is the goal. The objective is to prevent dancing like an elephant.   How should the sentence be re-written to avoid the ambiguity, if the desired meaning is (1) or (2), respectively?    Edit: perhaps I should give more context info about how this question came to me.  I want to write a document which should be referred to as a guideline rather than hard rules. I describe my intent with:     The purpose of this document is not to enforce rules or regulations.   However, I want to avoid the interpretation "the author wishes to stop enforcing rules and regulations".