I want to select all tenth in a field! :( I know this way; "Km" = 10 or "Km" = 20 ... and so, but I am pretty sure theres other way.  I am not SQL literate, but with your help in this forums I have managed to do some things, however the most basic are missing in different posts and I would like to find a place with basic (and medium) SQL expressions with practical examples to look for. I don´t usually post, but this could be of interest for some people outside.     Para los que hablan español, esto es una pregunta muy básica y hasta tonta como dice el titulo, pero quisiera un sitio para encontrar expresiones SQL que son básicas, y que quizás para los que no somos letrados en esas "ciencias" podriamos usar de referencia, recuerdo la ayuda de ESRI tenía unos ejemplos de expresiones muy útiles y ultimamente con el Xtools resolvía. Mi problema es sencillo: Seleccionar todas las decimas de un campo de Numero de Kilometros. Se hacerlo seleccionando uno por uno ("Km" = 10 or "Km" = 20, y asi) pero debe haber una forma más sencilla.... que pena preguntar algo tan básico pero tanta búsqueda en foros y demás, todos piensan que ya uno maneja estas cosas básicas. saludos!


From the training output below, it looks like R squared is not calculated by the traditional formula 1 - SSE/SST, since lower error rate has lower R squared. So how is it calculated?    colsample_bytree  min_child_weight  RMSE      Rsquared    0.4               3                 16963.39  0.8799191   0.4               5                 16813.24  0.8788395


Why complex numbers are used in electronics?

The impedance of a capacitor or an inductor is imaginary. How do we know these quantities are imaginary?


restore .tex and structure fles after turn off wile compiling

i'm working with a large document when battery´s low charge forced to turn off the laptop just when i was compiling.  It seems that all structure is damaged, and i can´t open any documen but only the DVI with an old version. It is possible to restore the .tex file? Im using texmaker, and the autosave is not active...


transforming variables in a linear regression, do to all our just one?

When transforming variables in a linear regression, be it log, square or some form of normalization, should one then do this to every variable in the regression or is it fine to transform just one variable why and why not?


I have setup two disks on my computer, Ubuntu, / and /home. Later I found the disk space on / is not big enough (just 20G), so I installed my texlive to my own disk, somewhere under $HOME. Now I want to install emacs' auctex using synaptic package manager, but it says the prerequisite is to install the texlive.   I want to know is there a way to tell the synaptic package manager, that texlive has been installed?


Why is the potential energy equal to the negative integral of a force?

Why is the potential energy equals to the negative integral of a force? I am really confused with this negative sign. For example, why there is a negative sign in the gravitational potential energy and what does it mean?   I read that the negative sign means you do the same force but in the opposite direction.  Doesn't that mean the object shouldn't move?


Detecting unsigned overflow when accumulating variables

I have two unsigned 32 bit integers, call them x and y. I want to periodically increment the two uint32's by seemingly random uint32 values. x and y will accumulate and I want them to continue to accumulate until they hit their limit, at which point I want them to start back at 0 + the value they would have had added had they not overflowed.  Assume the code looks like:  //This would be called, say every 5 seconds void increment_vals(uint32_t *x, uint32_t *y, uint32_t x_inc, uint32_t y_inc) {     *x += x_inc;     *y += y_inc;      if (x overflowed || y overflowed)     {         *x = x_inc;         *y = y_inc;     } }   So basically my question is: how do I know when x OR y has overflowed and need to to be reset? Should I just store x and y before incrementing and if the result is less than the original value then it must have overflowed? Is that guaranteed?  Thanks.


Even a Vanilla barely used Windows 10 has very high Disk usage upon startup/return from standby

Got a new Asus laptop with Windows 10 is always getting pounded by Disk usage = 100% when starting, booting, and then at various points of the day.  I reformatted my windows 10 machine to try to fix it. It was much faster for a few days then got slow again. I have scanned the machine, no viruses or malware that I know of.  I see all sorts of Disk pounders like:   Microsoft Compatibility Telemetry Cortana Superfetch Search indexer WMI Other Service Hosts like Windows Event Log Antimalware executable    There may be more to this list, and I only see Windows-system executables and services. Once again, no reason to believe I have malware. Fresh system here.   This being a vanilla system with only Starcraft 2 installed is totally killing me how it's so slow upon startup/standby. My mac and linux machines do not suffer this affliction.   Is anyone else dealing with this on the regular? How can I get my windows PC so that it comes back from standby without having disk usage shoot up to 100% for several minutes? I'm about to leave Windows forever. Could it somehow be my laptop hard drive in the Asus N550JX?  I have read each of the following and verified that I am not afflicted by any of the things listed in these other posts:     This post talks about windows 8 and is about a system that was used for a while getting worse over time. Mine is a vanilla system.      I do not have ACHI devices      I already have an SSD that came with this laptop.


I run this command to allow me to move windows between screens:  xrandr --auto  This magic command fixes my screen for me (before I run this my 2nd monitor is just an empty space where I can move my mouse). How can I make whatever this command does stick when I reboot? I'm more interested in fixing my configuration than just re-running this command, but I'm clueless as to how to make this happen.  I have 2 monitors, DFP 5 and DFP 6. Running xrandr results in this:  DFP1 disconnected (normal left inverted right x axis y axis) DFP2 disconnected (normal left inverted right x axis y axis) DFP3 disconnected (normal left inverted right x axis y axis) DFP4 disconnected (normal left inverted right x axis y axis) DFP5 connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 474mm x 296mm    1680x1050      60.0*+    1400x1050      60.0      1280x1024      75.0     60.0      1440x900       60.0      1280x960       75.0     60.0      1280x800       75.0     60.0      1152x864       60.0     75.0      1280x768       75.0     60.0      1280x720       75.0     60.0      1024x768       75.0     60.0      800x600        75.0     60.3      640x480        75.0     59.9   DFP6 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm    1680x1050      60.0*+    1400x1050      60.0      1280x1024      75.0     60.0      1440x900       60.0      1280x960       75.0     60.0      1280x800       75.0     60.0      1152x864       60.0     75.0      1280x768       75.0     60.0      1280x720       75.0     60.0      1024x768       75.0     60.0      800x600        75.0     60.3      640x480        75.0     59.9   CRT1 disconnected (normal left inverted right x axis y axis)   I have already set up DFP 6 to be right of DFP 5 using the Displays menu in debian. Here is my xorg.conf file:  Section "ServerLayout"         Identifier     "aticonfig Layout"         Screen      0  "aticonfig-Screen[0]-0" 0 0 EndSection  Section "Module" EndSection  Section "Monitor"         Identifier   "aticonfig-Monitor[0]-0"         Option      "VendorName" "ATI Proprietary Driver"         Option      "ModelName" "Generic Autodetecting Monitor"         Option      "DPMS" "true" EndSection  Section "Device"         Identifier  "aticonfig-Device[0]-0"         Driver      "fglrx"         BusID       "PCI:4:0:0" EndSection  Section "Screen"         Identifier "aticonfig-Screen[0]-0"         Device     "aticonfig-Device[0]-0"         Monitor    "aticonfig-Monitor[0]-0"         DefaultDepth     24         SubSection "Display"                 Viewport   0 0                 Depth     24                 virtual 3360 1050         EndSubSection EndSection   It seems to be configured for everything to be one screen, and xrandr --auto somehow fixes it. Is there some way of taking a peek at what this command is doing to save the result to xorg.conf? How do you normally use xrandr to get the results to persist?   If I search for this I either get told to modify my xorg.conf file (which I don't know how to do because I don't know what xrandr --auto is actually doing) or instructions on how to run xrandr on startup, which I'm guessing isn't necessary, but I may be wrong.


Are question/answer bans implemented in Stack Exchange 2.0 sites?

I always thought question/answer bans were present on Stack Overflow (and maybe in all the trilogy sites). I was recently chatting with a user, and he said there are answer bans on other sites as well.  Are question/answer bans present in other sites, outside the trilogy ones? I mean, are they present in all the Stack Exchange 2.0 sites, or are they enabled in those sites that need post-bans because low quality contributions (or other reasons)?


Why doesn't the Moon fall onto the Earth? For that matter, why doesn't anything rotating a larger body ever fall onto the larger body?


How can I skip the rat shooting level in Theme Hospital?

There is a "bonus" level in Theme Hospital where you get to shoot as many rats as you can in the time it takes for your super inefficient cleaning crew to clear the building. According to the internet, it's triggered as a reward for killing off lots of rats in the regular levels. This  makes it clear that it has no consequences or rewards, and can be triggered by entering cheat codes on the fax machine.  I personally hate the rat shooting mechanic in this game, so this "bonus" is like a punishment to me. I keep accidentally triggering it because I happen to kill rats in my hospital during the normal course of business.   Is there a way to skip the rat shooting level? Or do I just let it run while I get some coffee or something?


HaProxy using IIS on same port with different host headers

I'm running version HA-Proxy version 1.8.12-1ppa1~bionic 2018/06/27 on Ubuntu.  I'm trying to load balance requests to load.mysite.com to two different windows servers with IIS. The servers also have other website running on IIS with the same ports. We use host name binding to arrive on the correct website.  This is my HAProxy cfg:  global         log /dev/log    local0         log /dev/log    local1 notice         chroot /var/lib/haproxy         stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners         stats timeout 30s         user haproxy         group haproxy         daemon          # Default SSL material locations         ca-base /etc/ssl/certs         crt-base /etc/ssl/private          # Default ciphers to use on SSL-enabled listening sockets.         ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS         ssl-default-bind-options no-sslv3  defaults         log     global         mode    http         option  httplog         option  dontlognull         option forwardfor         timeout connect 5000         timeout client  50000         timeout server  50000         errorfile 400 /etc/haproxy/errors/400.http         errorfile 403 /etc/haproxy/errors/403.http         errorfile 408 /etc/haproxy/errors/408.http         errorfile 500 /etc/haproxy/errors/500.http         errorfile 502 /etc/haproxy/errors/502.http         errorfile 503 /etc/haproxy/errors/503.http         errorfile 504 /etc/haproxy/errors/504.http  # Stats listen stats         bind *:9999         stats enable         stats hide-version         stats uri /stats         stats auth admin:***  # Http In - forward to https frontend http-in         bind *:80         redirect scheme https if !{ ssl_fc }  # Https in frontend https-in         bind *:443 ssl crt /etc/ssl/mysite.com/mysite.com.pem         acl host_mysitePlatform hdr(host) -i load.mysite.com         use_backend mysitePlatform_cluster if host_mysitePlatform  backend mysitePlatform_cluster         balance roundrobin         http-request set-header Host node1.mysite.com if { srv_id 1 }         http-request set-header Host node2.mysite.com if { srv_id 2 } #       http-send-name-header Host         server mysite1Server node1.mysite.com:443 check ssl verify none         server mySite2Server node2.mysite.com:443 check ssl verify none   This configuration is not working. IIS returns a 404 because it does not know to which site it should bind.  It works for backend server node1.mysite.com when I remove if { srv_id 1 }. But then of course it only works for one server.  So it looks like the condition if { srv_id ? } is always false.  I could just fix it by using the same host name bindings on both IIS servers (e.g. www.mysite.com) but we have some constraints that prevent us from doing that.  Also, initially we want the backends to be https because we need code changes to disable https and we want to do those after go live of the load balancer. In a later stage all our backends will be on port 80.  I commented http-send-name-header Host because this also didn't work. Only http-request set-header Host <hostName> works for me.  So my question is, how do I get srv_id to work? I also tried with creating an acl first that for example checks if srv_id = 1 but that is also always false. Perhaps if I could log the actual value of srv_id when load balancing to a server, then I could change my if statement to the correct value.


How to modify a Collection while iterating using for-each loop without ConcurrentModificationException?

If I modify a Collection while iterating over it using for-each loop, it gives ConcurrentModificationException. Is there any workaround?


Printing the bibliographic entries in a bib file that are not cited in the document

I am using a bibtex to manage my references in LaTeX by cite package. The normal behavior of this package is printing a bibliography of all cited references in the document, however, I want its complement. In other words, suppose that I have cited two references, but want the bibliography contain the third one, which I have not cited.  Question: How to print just all the entries of a bibliography file which are not cited?  For the application, I check manually to see which references are not cited in my document which is a boring workaround!  As a minimal working example for test, suppose that my bibliography file is biblio.bib with the following contents:      @ARTICLE{Grzymala-Busse_1997_Classification,       author = {Grzymala-Busse, Jerzy W.},       title = {Classification of Unseen Examples under Uncertainty},       journal = {Fundamenta Informaticae},       year = {1997},       volume = {30},       pages = {255--267},       number = {3},       month = jan     }     @INCOLLECTION{Skowron_2005_Approximation,       author = {Skowron, Andrzej and Åwiniarski, Roman and Synak, Piotr},       title = {Approximation Spaces and Information Granulation},       booktitle = {Transactions on Rough Sets {III}},       publisher = {Springer Berlin Heidelberg},       year = {2005},       editor = {Peters, James F. and Skowron, Andrzej},       number = {3400},       series = {Lecture Notes in Computer Science},       pages = {175--189},       month = jan     }     @INCOLLECTION{Yao_2012_Outline,       author = {Yao, Yiyu},       title = {An Outline of a Theory of Three-Way Decisions},       booktitle = {Rough Sets and Current Trends in Computing},       publisher = {Springer Berlin Heidelberg},       year = {2012},       editor = {Yao, JingTao and Yang, Yan and SÅowiÅski, Roman and Greco, Salvatore         and Li, Huaxiong and Mitra, Sushmita and Polkowski, Lech},       pages = {1--17},       month = jan     }   and a LaTeX file  \documentclass{article} \usepackage{cite}  \begin{document}     \cite{Grzymala-Busse_1997_Classification,Yao_2012_Outline}      \bibliographystyle{acm}     \bibliography{biblio.bib} \end{document}


Do I need to add liquid to my slow cooker dish?

I have a large slow cooker that I have added chopped potatoes, carrots, onions, aubergines/eggplants, courgette/zucchini to along with five chicken breasts. I added half of the vegetables at the bottom, then layered the chicken breasts, then topped off with the remaining vegetables. It is almost full and I intend to cook it on high for three-four hours, but I can't help but wonder if I need to add any liquid/stock to it before I cook it. What is generally the best approach here?


Why does my regular expression work in X but not in Y?

I wrote a regular expression which works well in a certain program (grep, sed, awk, perl, python, ruby, ksh, bash, zsh, find, emacs, vi, vim, gedit, …). But when I use it in a different program (or on a different unix variant), it stops matching. Why?


Is the verb for this gesture "wave off?"

Here is the :     to wave off          To dismiss or refuse by waving the hand or arm: waved off his invitation to join the group.      But can "wave off" also be used for this    gesture, communicating a "whatever" with a sprinkle of "oh, come on!" or an "oh, f*** you..."?  Are there any other/more specific verbs for this gesture? Or does "wave off" get the message across just fine?


What is the significance of there being Nine Nazgul?

Is there any reason why there are specifically Nine Riders? The Council of Elrond appointed Nine Walkers in response to the Nine, but why nine?


My question is in the title: Do black holes have a moment of inertia?  I would say that it is: $$I ~\propto~ M R_S^2,$$ where $R_S$ is the Schwarzschild radius, but I cannot find anything in the literature.


A space with an inner product but is not Hilbert

What is an example of an inner product space which is not a Hilbert space?   I was having confusion in this.


Brought a new Think Centre Edge 71 because      The Lenovo ThinkCentre Edge71 desktop has been awarded the status of Certified for Ubuntu.    .    Spent the the past 2 days trying to get any Ubuntu 12.04 64bit to install and boot. All give me the same answer:      Error 1962: No operating system found   Here are a few of the links I've tried:  Just installed Ubuntu 12.04. When booting, all I get is a black screen with cursor. Some of the links report to solve the problem. None have worked.      Is there a relative simple way to install and boot Ubuntu 12.04 64bit on a Think Centre Edge 71?? I mean it is Certified for Ubuntu?


How to backup a single file with deja-dup?

when I reinstall I prefer to have a new system; however there are some configuration files in ~/ might like to keep.  Can I back up a single file with deja dup? (note these files may need to stay in ~/ to work)


Why $\vec F=m\vec a$ instead of $\vec F=m\vec v$?

$\vec F=m\vec a$ ,for moving object with 10 $km/s$ in a constant manner ,where acceleration is zero. ie No force on object ?


Run cd with path variable in bash script not working

When i run the script:  #!/bin/bash DRUPAL_ROOT=$(drush status root --format=list) if [ -z $DRUPAL_ROOT ] then   echo -e "Not exists Drupal core" else   echo $DRUPAL_ROOT   cd $DRUPAL_ROOT fi   Output:  # /right/drupal/root   But no change to path  If i run commands in terminal:  # DRUPAL_ROOT=$(drush status root --format=list) # cd $DRUPAL_ROOT   Change OK  Any idea? Thanks.


Which is correct in this sentence, I or Me

"...illustrates another philosophical divide between you and [I/me]." I'm currently in an argument with a friend about this little bit here. Which is the correct pronoun for this sentance, "me" or "I"?


How do I install and manage GNOME Shell extensions?

How do I install GNOME Shell extensions?  Is it possible to update, remove and manage the extensions?


Why do commands starting with a space, not show up in bash history?

In bash, when I use Ctrl-R to retrieve a previous command, why does it not work when the command starts with a whitespace? Can I make it match such a previous command?  $  date Fri Nov 23 ... 2018 (failed reverse-i-search)` date': cd database/


Dublin airport: am I going through passport control?

I am traveling to London, UK (from Chicago, USA) by an Aer Lingus flight in about 2 weeks time. My first leg is Flight 122 from Chicago to Dublin and my second leg is Flight 154 from Dublin to London.  Both flights show as landing into and departing from Terminal 2 in Dublin.  I am wondering if I have to go through passport control?  The Dublin/T2 passport control .    I ask because I am wondering if my visas are enough to do this "transit" in Dublin.  I am an Indian citizen with an Indian passport, a US H1-B visa in my passport, a holder of a US green card AND a valid C type UK visitor visa valid until 2019.  I have read the following links on transit visas and the UK-Ireland visa:      Edit as to why this question is different:  Is Dublin - London treated as a domestic flight?  If so, does passport control require me to have an Irish C visa, since Ireland is my first country of visit?


Can the limit on simultaneous bounties be relaxed?

In order to avoid the system being overflown,  at a time was imposed when the new bounty system was introduced, with the plan of looking at this again when some time has passed.   I haven't kept totally close tabs, but I've never seen the overall number of bounties rise above 170 in the past two months. The old average was about 100-150 bounty questions at a time.  In light of this, would relaxation of the rules, as promised, be conceivable? At least to two questions at a time, if not a bit more? If not right now, then at some point in September April?


What is the meaning of the beta-coefficient for an interaction term in a crossover study?

I have asked a similar question here:  I am puzzled by the interpretation for an interaction term. In my data my Y is an interval variable with the health outcome of an experiment. I have used an interaction term in which I have interacted the condition with the predisposition of the subject considering health status at base level. They are both categorical variables (factor variables in R).  Now it gets complicated because the Condition was two treatments: in treatment A subjects got the placebo first and then the real medicine whereas in treatment B they go the real medicine first and the placebo second. All it changes is the order.   Health outcome = a + Condition * Health.Base   I have the worst state of health at the base level as my reference category I find that interaction with the Condition is statistically significant but I am not sure how to interpret this.  I use the lm() function of R (although my design looks more like an ANOVA) and in the output I get the b coefficient in an output that looks like this:  ConditionB:Health.Base.So.and.So         (Beta and p-value) ConditionB:Health.Base.Excellent         (Beta and p-value)   A statistically significant interaction term for those in Excellent health at baseline would mean that they are affected by the Condition B more than Condition A compared to the reference category people (Poor health at baseline). Is this right? What does the beta-coefficient represent?   If I would like to examine for each Health category at the base line separately without comparing to a reference category I would have to code each category as a dummy variable. However, in this case I would compare whether membership to a specific health status at the base line significantly changes between conditions compared to those who belong to the other health statuses at the base line. Is this right? Again, what does the beta-coefficient represent?  Would it be right to assume that the choice of the interaction between the Condition and the dummy variables is easier to interpret?  --- EDIT --- R output:  Call: lm(formula = HealthOutcome ~ Condition * HealthStatus,      data = datA)  Residuals:     Min      1Q  Median      3Q     Max  -1.5957 -0.5942 -0.2640  0.4423  2.4423   Coefficients:                                        Estimate Std. Error t value     Pr(>|t|)     (Intercept)                            2.595652   0.053044  48.934  < 2e-16 *** ConditionCondB                        -0.001449   0.077071  -0.019    0.985     HealthStatusSo.and.So                 -0.331693   0.078094  -4.247  2.35e-05 *** HealthStatusExcellent                 -0.836724   0.092692  -9.027  < 2e-16 *** ConditionCondB:HealthStatusSo.and.So   0.137490   0.110612   1.243    0.214     ConditionCondB:HealthStatusExcellent  -0.199787   0.133943  -1.492    0.136     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 0.8045 on 1059 degrees of freedom   (68 observations deleted due to missingness) Multiple R-squared:   0.16, Adjusted R-squared:  0.156  F-statistic: 40.33 on 5 and 1059 DF,  p-value: < 2.2e-16


You are given the sides of a triangle $a,b,c$ Prove that: $a^2(b+c-a)+b^2(c+a-b)+c^2(a+b-c)\le 3abc$ (Sweden 1950)

You are given the sides of a triangle $a,b,c$ Prove that: $a^2(b+c-a)+b^2(c+a-b)+c^2(a+b-c)\le 3abc$ I was just doing the question above and solved it in the following manner: $a^2b+a^2c-a^3+b^2c+b^2a-b^3+c^2a+c^2b-c^3-3abc\le 0$ $(a-b)(b-c)(c-a)+2b^2c+2ac^2+2a^2b-a^3-b^3-c^3-3abc\le0$ And this is where I got stuck. Could you please explain to me how to finish it off from here?  I realise that this question has been asked before, but my main query, is how my train of thought could be used to finish off the question


How can I provide a challenge for a powergamer?

One of the players in my game is the most fervent powergamer I've ever met. I know it's how he gets enjoyment from the game, and so far it doesn't intrude on the other players' enjoyment, so I've allowed it for the most part. Unless the loophole he finds is either explicitly disallowed, or would seriously break the game (either mechanically or thematically), I've let him use loopholes and combos to his heart's content.  However, whenever he makes a new character (especially a combat monster), it's difficult to plan around as the GM. I know that I could hard counter any of his characters by making an enemy or an encounter specifically designed around his current character, but that would be pretty noticeable and would take away from his enjoyment of the game without adding anything else.   So how can I provide a challenge to my powergamer or otherwise upset his expectations without taking away his enjoyment of the game or designing something specifically to counter him?


Is the or statement always inclusive in Mathematics?

My question is about when the statement has a potential of inclusivity, for example a statement like "It's either day time or night time" will obviously be exclusive as it's a logical contradiction if we are in day time and night time simultaneously, however I have realized that when there is potential of inclusivity then it's kind of an assumption that our statement is inclusive. For example: The definition of the union of sets is considered inclusive, etc... Is that always an assumption we can make (that when there potential for inclusivity then the statement is inclusive) or we will have to see what the author states? (for example in some books the definition of the union of sets is explicitly mentioned to be inclusive, in others no)


I have Ubuntu 10.XX in my PC and would like to upgrade it to a 18.xx version. Is there a way I can do this in place or I have to install Ubuntu from scratch again?


Why can't we say "if will there be any novels" as a question?

Which is correct and why:   I'll be grateful if you give me some details: where can I find the library and if there will be any novels?     I'll be grateful if you give me some details: where can I find the library and if will there be any novels?


I am trying to create a book cover by using PSTricks. I follow the source from here : (page 22). When I compile, it annouces the error that :    ! Undefined control sequence.  \c@lor@to@ps   l.29 ...tyle=solid,fillcolor=Maroon](0,0)(13.24,9)  The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.  And the error is in fact at the line :   \psframe[fillstyle=solid,fillcolor=Maroon](0,0)(13.24,9)  Please tell me what I should do? Thanks in advance.


Unable to use package manager due to "exclusive lock" error

My synaptic package manager in ubuntu is giving error:    Unable to get exclusive lock   This usually means that another package management application(like apt-get or     aptitude) is already running. Please close that application first.


How to change symbol for footnote in minipage

\renewcommand method does not work  \documentclass{article} \renewcommand{\thefootnote}{\arabic{footnote}} \begin{document}  \begin{minipage}{1.3\textwidth}  test this\footnote{abc} \end{minipage}  \end{document}   In the following example the footnote number is incorrect. Why?  \documentclass{article} \renewcommand{\thempfootnote}{\arabic{mpfootnote}} \begin{document} \begin{minipage}{.5\textwidth} test this\footnotemark \footnotetext{abc} \end{minipage} \end{document}


How do I know if a generator is empty from the start?

Is there a simple way of testing if the generator has no items, like peek, hasNext, isEmpty, something along those lines?


My microphone doesn't work in any format. I've installed Pulse Audio, it doesn't give me the chance to set up. It is a Dell Inspiron E1505 under Ubuntu 12.04.   I need the mic to speak with my family in Google Hang-outs.  I've tried with sounds settings, control volume and sound record, but nothing works.   Please help, thanks a lot!   Maria


I need to be able to define where a specific menu was called. Here is the basic interface:    Each line has a triangle at the end. When I click the triangle, a menu pops up, which will include a few operators that will change the action relevant to that row. The problem is, I can't figure out how to pass parameters into the menu to tell the menu "this is the action you're changing." I'm probably misunderstanding something about properties. Here's some relevant code.  class ShotsActionChange(bpy.types.Menu):     bl_idname = "SHOTS_MT_alter_action"     bl_label = "Alter action"      action_id = bpy.props.IntProperty(default=0)      def draw(self, context):         layout = self.layout         layout.label(text="This is a test!")  # ....  # row-generator loop for the panel's draw method, where this menu is called:     def action_row(self, layout, action, object=None):         iconi = self.get_data_icon(object)         obj_text = ""          if object is not None:             obj_text = object + " :: "          row = layout.row()         row.label(icon=iconi, text="")         row.label(text=obj_text + action)         row.menu("SHOTS_MT_alter_action", text="", icon="DOWNARROW_HLT")   What I want is for that last line to do something along the lines of:  row.menu("SHOTS_MT_alter_action", text="", icon="DOWNARROW_HLT").action_id = action   And that way, I can pass something into the menu. It spouts errors right now, but I don't think I know enough about the API to know whether this is impossible or just needs to be reworked. The menu itself is a hub for multiple operators, but do I need an operator that controls the opening of the menu? Any help is much appreciated.


I have roughly the following code. Could this be made nicer or more efficient? Perhaps using std::remove_if? Can you remove items from the map while traversing it? Can we avoid using the temporary map?  typedef std::map<Action, What> Actions; static Actions _actions;  bool expired(const Actions::value_type &action) {   return <something>; }  void bar(const Actions::value_type &action) {   // do some stuff }  void foo() {   // loop the actions finding expired items   Actions actions;   BOOST_FOREACH(Actions::value_type &action, _actions)   {     if (expired(action))       bar(action);     else       actions[action.first]=action.second;     }   }   actions.swap(_actions); }


Start an external program from Beamer' presentation using PREVIEW Mac

I would like to be able to START or RUN an external program from within the presentation by clicking a link, using PREVIEW.  Is this possible using Beamer package ? I am using Mac OS X Snow Leopard with Preview.  for example : a link to an image in my drive that allow me to start it in preview app ...   I found it but only works from within TEXSHOP not PREVIEW, here is an example :   \href[]{file:///Users/Alji/seg.jpg}{run}


Retrieving Firebase Object Null Pointer Exception

I am getting a java.lang.NullPointerException error, and even though I checked mInternshipId and it is the same as I was expecting, it does not work.   This is my Firebase Content    This is my Internship Class  public class Internship {     private String internshipId;     private String internshipTitle;     private String internshipDesc;     private String internshipDate;     private String internshipImage;     private String internshipCreatorId;      public Internship() {      }      public Internship(String internshipId, String internshipTitle, String internshipDesc, String internshipDate, String internshipImage, String internshipCreatorId) {         this.internshipId = internshipId;         this.internshipTitle = internshipTitle;         this.internshipDesc = internshipDesc;         this.internshipDate = internshipDate;         this.internshipImage = internshipImage;         this.internshipCreatorId = internshipCreatorId;     }      public String getInternshipTitle() {         return internshipTitle;     }       public String getInternshipId() {         return internshipId;     }      public void setInternshipId(String internshipId) {         this.internshipId = internshipId;     }      public void setInternshipTitle(String internshipTitle) {         this.internshipTitle = internshipTitle;     }      public String getInternshipDesc() {         return internshipDesc;     }      public void setInternshipDesc(String internshipDesc) {         this.internshipDesc = internshipDesc;     }      public String getInternshipDate() {         return internshipDate;     }      public void setInternshipDate(String internshipDate) {         this.internshipDate = internshipDate;     }      public String getInternshipImage() {         return internshipImage;     }      public void setInternshipImage(String internshipImage) {         this.internshipImage = internshipImage;     }      public String getInternshipCreatorId() {         return internshipCreatorId;     }      public void setInternshipCreatorId(String internshipCreatorId) {         this.internshipCreatorId = internshipCreatorId;     } }   This is where I am using it. It shows that mInternship is not been initialized. Thank you everyone in advance for your time.  //Get The Internship ID     Intent intent = getIntent();     mInternshipId = intent.getStringExtra(INTERNSHIP_ID);      //Initialize the Database Reference     databaseReference = FirebaseDatabase.getInstance().getReference().child("Internships").child(mInternshipId);     databaseReference.addValueEventListener(new ValueEventListener() {         @Override         public void onDataChange(@NonNull DataSnapshot dataSnapshot) {              //Initialize Useful Variables             mInternship = dataSnapshot.getValue(Internship.class);             organizationId = mInternship.getInternshipCreatorId();             databaseReference = FirebaseDatabase.getInstance().getReference().child("Users").child("Organizations").child(organizationId);             databaseReference.addValueEventListener(new ValueEventListener() {                 @Override                 public void onDataChange(@NonNull DataSnapshot dataSnapshot) {                     internshipLocation = (String) dataSnapshot.child("location").getValue();                 }                  @Override                 public void onCancelled(@NonNull DatabaseError databaseError) {                 }             });         }          @Override         public void onCancelled(@NonNull DatabaseError databaseError) {         }     });


I am making my own vector class.  .h:  template<typename T> class MyVector { private:     T *elements;     int elementCount; public:     MyVector();     MyVector(int size);     void push_back(T value);     void pop_back();     int size();     T at(int index);     bool empty();     void clear();     void swap(MyVector v2); };   .cpp:  template<typename T> MyVector<T>::MyVector() {     elementCount = 0;     elements = new int[elementCount];     elements = (int *) realloc (elements, elementCount * sizeof(int)); }   main.cpp:  #include "MyVector.h"  int main() {     MyVector<char> myTestVector;        return 0; }   I am getting an error when trying to simply create a MyVector object, the error is :     MyVector::MyVector(), referenced from:         _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see   invocation)   I originally wrote the class to work with an already specified type, now I need it to work with any given type.   Why am I getting this error? Thanks in advance!


How can I run a python code with admin rights

I want to copy move some files from my PC to my USB but, when I run it it says:  WindowsError: [Error 5] Access denied: 'F:\\'  How can I use admin rights in python to avoid this error. Also, here is the code:  import os import shutil from os import walk  ruta='C:\\' final='F:\\' for (path,ficheros,archivos) in walk(ruta):     for i in archivos:         shutil.copytree(ruta,final)     for i in ficheros:         shutil.copytree(ruta,final)


Find if the function is Continuous and whether the partial derivatives exist

$$f(x,y)=\begin{Bmatrix} 0 & (x,y)=(0,0)\\   \frac{xy}{x^{2}+y^{2}}&(x,y)\neq (0,0)  \end{Bmatrix}$$   How to find out if this is continuous?  And do the partial derivatives exist at $(0,0)$?


Possible Duplicate:             If I'm right, factorial $!$ means:  $$n!=1 \cdot 2 \cdot 3 \cdot 4 \cdots n $$  so:  $$ \begin{align} 5!&=1\cdot2\cdot3\cdot4\cdot5=120\\ 4!&=1\cdot2\cdot3\cdot4=24\\ 3!&=1\cdot2\cdot3=6\\ 2!&=1\cdot2=2\\ 1!&=1 \end{align} $$  But what is $n!$ when $n=0$?  It can't be undefined and it can't be $n!=0$, since those are illegal in known equations like:  $$e^x = \sum_{n=0}^\infty \frac{x^n}{n!}$$  So what is it?


explanation for C program (uses comma operator)

#include<stdio.h> int main(){     int i=0;     while(i<4,5){         printf("loop");         i++;     } }  This code goes infinite loop. can anyone explain logic behind these?


Comprehension for flattening a sequence of sequences?

If I have sequence of sequences (maybe a list of tuples) I can use itertools.chain() to flatten it. But sometimes I feel like I would rather write it as a comprehension. I just can't figure out how to do it. Here's a very construed case:  Let's say I want to swap the elements of every pair in a sequence. I use a string as a sequence here:  >>> from itertools import chain >>> seq = '012345' >>> swapped_pairs = zip(seq[1::2], seq[::2]) >>> swapped_pairs [('1', '0'), ('3', '2'), ('5', '4')] >>> "".join(chain(*swapped_pairs)) '103254'   I use zip on the even and odd slices of the sequence to swap the pairs. But I end up with a list of tuples that now need to be flattened. So I use chain(). Is there a way I could express it with a comprehension instead?  If you want to post your own solution to the basic problem of swapping elements of the pairs, go ahead, I'll up-vote anything that teaches me something new. But I will only mark as accepted an answer that is targeted on my question, even if the answer is "No, you can't.".


I know following expression   $$n = {n\choose 1 } $$   $$n^2 = {n\choose 2 } + {n+1\choose 2 }$$  but how about $n^3 = $?    Are there simple expression?


Show that $(n-1)^2\vert n^k-1$ if and only if $n-1\vert k$, for naturals $n,k$.  I couldn't go much further, the only thing that i could conclude is that $n-1\vert n^k-1$, since it is true that $a-b\vert a^k-b^k$ for all natural $k$. Now i can't proceed from here.  Any hints on this question?


Proving the Hockey Stick Identity with the Summation Identity

The Summation Identity is: $\dbinom{n}{r}+\dbinom{n}{r+1}=\dbinom{n+1}{r+1}$. Is there a way to prove the hockey stick identity with this?  Hockey Stick Identity: $\dbinom{n}{r}+\dbinom{n+1}{r}+\dbinom{n+2}{r} + \cdots + \dbinom{f}{r}=\dbinom{f+1}{r+1}$


Optimal cut-off value for continuous covariate with binary outcome

Research question: What is the optimal cut-off value for a continuous covariate (age) with a binary outcome (suitable or not for a certain treatment). I realize that we lose information by dichotomizing the variable but we the aim is to use this cut-off value in clinic. I intended to use ROC curve analysis or logistic regression. What would you recommend or do you have any other suggestions? Thank you in advance.


Accessing #1 in the end part of a new environment declaration

I'm working to a document in memoir and I'm struggling trying to define a new environment which would allow me to place a figure in the main text and its caption in the outer margin. This is an extract of my preamble without the definition of such environment.  \documentclass[10pt]{memoir}                        %document class \setstocksize{240mm}{150mm}  \usepackage[T1]{fontenc}                            %font output \usepackage[utf8]{inputenc}                         %font input \usepackage[english]{babel}   \usepackage{lipsum} \usepackage{marginfix} \usepackage{graphicx}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % PAGE LAYOUT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \usepackage{geometry}  \let\footruleskip\undefined                         %headings \usepackage{fancyhdr} \nouppercaseheads  \settrimmedsize{240mm}{150mm}{*} \setlength{\trimtop}{0pt} \setlength{\trimedge}{\stockwidth} \addtolength{\trimedge}{-\paperwidth} \settypeblocksize{193mm}{84mm}{*} \setulmargins{27mm}{*}{*} \setlrmargins{18mm}{*}{*} \setmarginnotes{3mm}{3.5cm}{\onelineskip} \setheadfoot{\onelineskip}{\onelineskip} \setlength{\headsep}{1.2cm} %\setheaderspaces{*}{2\onelineskip}{*} \checkandfixthelayout  \addtolength{\footskip}{0.55cm}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % CAPTION LAYOUT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \usepackage{caption}                                %customized captions \captionsetup{font=footnotesize, labelfont={bf}} \usepackage{captdef}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FULLWIDTH %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \usepackage[outermargin=-3.5cm]{fullwidth}  \newenvironment{fullwidthblocked}{% \blockmargin% \begin{fullwidth}% }{% \end{fullwidth}% \unblockmargin% }   I thought I could use fullwidthblocked to define the new environment, so I tried this solution  \newenvironment{figureDX}[1]{% \begin{fullwidthblocked}% \begin{minipage}{84mm}% \centering% #1% \end{minipage}% \hspace{1.5mm}% \begin{minipage}{3.5cm}% }{% \end{minipage}% \end{fullwidthblocked}% }   which can be used in the main text writing  \begin{figureDX}{\includegraphics[scale=•]{•}} \figcaption{•}\label{•} \end{figureDX}   This actually works, but it is good only for odd pages, since it puts the caption to the right of the image. I then tried to adapt this few lines to introduce their even pages counterpart:  \newenvironment{figureSX}[1]{% \begin{fullwidthblocked}% \begin{minipage}{3.5cm}% }{% \end{minipage}% \hspace{1.5mm}% \begin{minipage}{84mm}% #1% \end{minipage}% \end{fullwidthblocked}% }   but this returns the error ! Illegal parameter number in definition of \endfigureSX. which I don't know how to solve.  I'm aware the solution I'm proposing is not elegant nor compact, but at least I'd like it to work.. Any ideas how could I fix this?


Show that either $f$ or $\bar{f}$ have derivative at $z_0$

So the problem here is the following:  If the limit $\lim_{z \to z_0} \left|\frac{f(z)-f(z_0)}{z-z_0}\right| $ exists and is finite, show that  $f$ or $\bar{f}$ has a derivative at $z_0$.  The previous question of the excercise was about the total differential of a complex function and its conjugate. I tried to use it but it didn't help. I would like to give me a small tip and not the whole solution of the excercise if possible!   Edit: The function $f$ has a total differential at the point $z_0$ so it is real differential as well.


Is there a particular reason why Voldemort has two slits for a nose in the movie version? Did he lose his actual nose by some way or another?


I have been an active user lately on Stack Exchange Mathematics. If anyone can checkout my profile, I have posted my answers along with questions that I asked just to know if I attempted them correctly or not. I've never spammed nor abused anyone. Still I am getting this message.     You can only post 1 time each day due to the volume of spam and abuse   originating from your network.   Is there anything that can be done about this? Can I get help from any moderator?


How do I get rid of the bullet while using /printbibliography and /footcitenote?

I want my citations to appear in both the footnote and the endnote.For that I use the biblatex package.I am getting the citation at footnote properly but I am getting a weird bullet point while using /printbibliography.How can I get rid of that? Attached is my latex code. \documentclass[11pt]{beamer} \usetheme{Antibes} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{csquotes} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[style=ieee]{biblatex} \renewcommand{\footnotesize}{\tiny} \beamertemplatenavigationsymbolsempty \author{Sambeet Panigrahi \& Goutham Naga Srivatsav Varanasi} \title{Quadratic Converters} \addbibresource{References.bib} %\setbeamercovered{transparent}  %\setbeamertemplate{navigation symbols}{}  %\logo{}  %\institute{}  \date{19th August,2020}  %\subject{}  \begin{document}  \begin{frame} \titlepage \end{frame}  \begin{frame}{Roadmap} \tableofcontents \end{frame}  \begin{frame}{Flux Balance Principle} Flux Balance Principle \footfullcite{nag2019theory} \end{frame}  \begin{frame} \textbf{\bibname} \printbibliography[title={References}] \end{frame}  \end{document}


How to convert a line shapefile to a polygon shapefile?

I am using Arcgis 10.1 and have an existing line shapefile that i would like to convert to polygons.


Subdomain not appearing without writing name of main domain

So I have a main website, example.com. I created a subdomain for a client. Let's say it is called client.example.com. This client is a coffee shop website. I already registered it and it is indexed on Google Search Console. What I want, is that when clients search for the coffee shop (in this case if they search for "client"), the subdomain will appear. When I search for the name of the coffee shop, the subdomain is not appearing. It is however, appearing when I search for "client example". When I search for the subdomain, and then the name of my main page, it does appear. This is the proof that the subdomain is actually being indexed. How can I make the subdomain (in this case the coffee shop) rank and appear in Google, without having to mention the name of the domain (main website)?


Let threads wait for all tasks to complete before starting on the next set of tasks

I have a pipeline that consists of several stages. Jobs in the same stage can be worked on in parallel. But all jobs in stage 1 have to completed before anyone can start working on jobs in stage 2, etc.. I was thinking of synchronizing this work using a CountDownEvent. My basis structure would be this.WorkerCountdownEvent = new CountdownEvent(MaxJobsInStage); this.WorkerCountdownEvent.Signal(MaxJobsInStage); // Starts all threads  // Each thread runs the following code  for (this.currentStage = 0; this.currentStage < this.PipelineStages.Count; this.currentStage++) {     this.WorkerCountdownEvent.Wait();     var stage = this.PipelineStages[this.currentStage];     if (stage.Systems.Count < threadIndex)     {         var system = stage.Systems[threadIndex];         system.Process();     }      this.WorkerCountdownEvent.Signal(); // <--  }  This would work well for processing one stage. But the first thread that reaches this.WorkerCountdownEvent.Signal() will crash the application as its trying to decrement the signal to below zero. Of course if I want prevent this, and have the jobs to wait again, I have to call this.WorkerCountdownEvent.Reset(). But I have to call it after all threads have started working, but before one thread is done with its work. Which seems like an impossible task? Am I using the wrong synchronization primitive? Or should I use two countdown events? Or am I missing something completely? (Btw usually jobs will take less than a milliseconds so bonus points if someone has a better way to do this using 'slim' primitives like ManualResetEventSlim. ThreadPools, or Task<> are not the direction I'm looking at since these threads will live for very long (hours) and need to go through the pipeline 60x per second. So the overhead of stopping/starting a Tasks is considerable here). Edit: this questions was flagged as a duplciate of two questions. One of the questons was answered with "use thread.Join()" and the other one was answered with "Use TPL" both answers are (in my opnion) clearly not answers to  a question about pipelining and threading primitives such as CountDownEvent.


how to send different outout to multiple terminal on the same machine

I want to be able to run my Python scripts in one terminal but to print the useful output to another terminal on the same machine. Having the ability to refresh the terminal with the useful output would also be good because then the useful out can be built up incrementally as though its printing out. How can I do this?  I have googled this but most answers relate to using things like 'write' and 'talk'. With 'write' I can send messages to another terminal but there isn’t much control over which window or refreshing/clearing the screen. I am using Ubuntu Trusty Tahr


Is there an easy way on mac to rotate a video 180 degrees?

Unfortunately some important videos got recorded upside-down.  I would like the program to rotate the video 180 so it is right-side-up.


Compute integral $\int_{-\infty}^\infty \frac{x^4}{1+x^8} \, dx$

Compute the integral.   $$\int_{-\infty}^\infty \frac{x^4}{1+x^8} \, dx$$  The answer at the back of the book is  $$\frac{\pi}{4\sin(\frac{3\pi}{8})}$$


Photons are described as packets of energy and photon with a frequency has mass, momentum and kinetic energy. If they are particles, how can they have frequency? If they are waves with a frequency, how can they have mass?


I don't know what i'm missing here but i can't seem to center my div under a section. Whenever i try to put a margin on the div alone, it also applies a margin to the section tag. What i want to do is very simple. Put
 on the center of the
, so the
 has space at every side. Here is my HTML code:

ALEX\ALBARAN

 HELLO! I'M ALEX

 Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique inventore ipsa optio velit, neque, itaque quasi fugiat impedit libero, vitae temporibus? Quisquam libero voluptas, excepturi non fugiat, perferendis laborum magni!

    and here is my CSS code: nav {     display: flex;     justify-content: space-between;  } h2 {     font-family: 'Questrial', sans-serif;     font-weight: 200;     font-size: 15px;     color: white; }  img {     width:40px;     height: 40px;     align-items: flex-end; }  #main {     background-color: aqua;     font-family: 'Roboto', sans-serif;     font-weight: 100;      } .container {     background-image:url(bg1.png);     background-repeat: no-repeat;     background-size: cover;     width: 80%;     justify-content: center;     text-align: center;     margin: 10% 10%; }  .box-1 {     border: 3px solid white;     background-color: transparent;     color: white;     width: 50%;     padding: auto;     margin: auto;     text-align: center; }  .box-2 {     font-size: 10px;     font-weight: 100;     color: white;     background-color: transparent;     width: 50%;     padding:auto;     margin:auto;     text-align: center;      }  .box-3 {     text-align: center;     color: white;     padding-bottom: 20px; }


Shell script to move all files from subfolders to parent folder

I've bunch of folders in folder A. I want to move files from all those folders to A.  Or  I want to cut all files from child folders and paste them in parent folder.  How to do that?


What are "electron holes" in semiconductors?

I'm tutoring senior high school students. So far I've explained them the concepts of atomic structure (Bohr's model & Quantum mechanical model) very clearly. Now the next topic to be taught is semiconductors.  I myself am not conviced with the concept of electron holes. If there is no electron then there is no electron. How can it be a hole. We define a hole when there is some thing every where except at a place. But inside an atom how can we define a HOLE.  Kindly explain it with the help of Bohr's model. What was the need of introducing such abstract concept in semi conductors?


Is this true or false: If A and B have clocks and are traveling at relative velocity to each other, then to B it APPEARS that A's clock moving slower, but A sees his own clock moving at normal speed.  Similarly, to A it APPEARS that B's clock is moving slower, but B sees his own clock moving at normal speed.  If the above is true, then both A seeing his own clock moving at normal speed and B seeing his own clock moving at normal speed means that in reality both clocks are moving at normal speed, and neither has slowed down, whereas the other person's clock APPEARING to move slowly is merely an illusion.   Now is this true or false: If A and B have clocks and are traveling at relative velocity to each other, then A sees his own clock move slowly (compared to the speed of the clock when A was at rest with respect to B) and B sees his own clock move slowly, so that in reality both clocks are moving slowly, but they still remain synchronized (since both are slow by the same amount)  If the above statement is not true, then why do muons decay slowly when moving fast? [it could only be possible if the muon saw its own clock as moving slowly. If we saw the muon's clock moving slowly, but the muon saw its own clock moving at the normal rate, then the muon would decay at the normal rate, and not slowly]  Can anyone please explain where I went wrong?


Where do should I post questions asking for subjective recommendations (i.e. of tech books)

On which Stack Exchange community site (if any) may/should I post a question requesting a subjective recommendation of "the best" X? (In my case, the X is "book explaining the architecture of the internet".)  If that's not a sufficiently meta-y question for this site, would it help if I ask where I should post questions asking where I should post questions requesting a subjective recommendation of "the best X"?


convert a common pdf to multiple images but encounter security error

I tried to convert a downloaded pdf to multiple pages with commands   $ convert -density 300 magit.pdf -quality 100 magit-%04d.jpg   thus get error   convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408. convert-im6.q16: no images defined `magit-%04d.jpg' @ error/convert.c/ConvertImageCommand/3258.   Checked the imageMagich manual and some answers, but found no problems with my usage.  My machine:  OS: Ubuntu 19.10 x86_64  Host: MacBookPro11,1 1.0  Kernel: 5.3.0-22-generic  Uptime: 6 hours, 33 mins  Packages: 2554 (dpkg), 2 (snap)  Shell: bash 5.0.3  Resolution: 2560x1600  DE: KDE  WM: KWin  Theme: Breeze [KDE], Breeze [GTK3]  Icons: breeze [KDE], breeze [GTK3]  Terminal: konsole  Terminal Font: Noto Sans [GOOG] 9  CPU: Intel i5-4258U (4) @ 2.900GHz  GPU: Intel Haswell-ULT  Memory: 2935MiB / 3844MiB


Dell Inspiron 1545 cannot connect to wifi

I've installed Ubuntu 12.04 on a Dell Inspiron 1545 and I cannot access the internet. On the menu, Wired says the cable is unplugged and Wireless cannot find any network available.  The laptop comes with a Dell Wireless 1397 WLAN MiniCard.   I did try to connect using an Ethernet cable. When I went to System Settings -> Networks there was no list of connections and at the top it said "the cable is unplugged".  I found similar questions about problems with wireless connection and one of the answers was to connect with a cable and download a driver, that's why I tried wired connection first.   I also found recommendations to use  sudo apt-get install --reinstall bcmwl-kernel-source   or  sudo apt-get purge bcmwl-kernel-source   as a first step of fixing the problem. When I typed any of these commands I got as response that the package was not found.  after running lspci | grep Network the output is:  0c:00.0 Network controller: Broadcom Corporation BCM4312 802.11/g LP-PHY (rev 01)  Below I paste the commands I ran and the output  cat /etc/lsb-release; uname -a   DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS" Linux User 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux  lspci -nnk | grep -iA2 net  0c:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)     Subsystem: Dell Wireless 1397 WLAN Mini-Card [1028:000c]     Kernel driver in use: b43-pci-bridge  iwconfig   lo        no wireless extensions.  lsmod  Module                  Size  Used by nls_iso8859_1          12713  1  bnep                   18258  2  rfcomm                 47864  0  bluetooth             247024  10 bnep,rfcomm joydev                 17613  0  parport_pc             28284  0  ppdev                  17113  0  snd_hda_codec_idt      71153  1  uvcvideo               82214  0  videobuf2_core         40785  1 uvcvideo b43                   392109  0  videodev              130053  2 uvcvideo,videobuf2_core videobuf2_vmalloc      13056  1 uvcvideo videobuf2_memops       13202  1 videobuf2_vmalloc mac80211              630977  1 b43 cfg80211              525244  2 b43,mac80211 snd_hda_intel          44339  3  snd_hda_codec         141716  2 snd_hda_codec_idt,snd_hda_intel snd_hwdep              13668  1 snd_hda_codec snd_pcm               102477  2 snd_hda_intel,snd_hda_codec snd_seq_midi           13324  0  snd_rawmidi            30417  1 snd_seq_midi coretemp               13596  0  i915                  620421  3  snd_seq_midi_event     14899  1 snd_seq_midi snd_seq                61930  2 snd_seq_midi,snd_seq_midi_event mac_hid                13253  0  gpio_ich               13526  0  snd_timer              29989  2 snd_pcm,snd_seq dell_wmi               12681  0  drm_kms_helper         49597  1 i915 sparse_keymap          13890  1 dell_wmi snd_seq_device         14497  3 snd_seq_midi,snd_rawmidi,snd_seq psmouse                97873  0  dell_laptop            17425  0  drm                   287564  4 i915,drm_kms_helper microcode              23017  0  dcdbas                 14449  1 dell_laptop serio_raw              13215  0  lpc_ich                17144  0  i2c_algo_bit           13564  1 i915 snd                    69533  15 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device bcma                   41244  1 b43 video                  19652  1 i915 soundcore              12680  1 snd snd_page_alloc         18798  2 snd_hda_intel,snd_pcm wmi                    19256  1 dell_wmi lp                     17799  0  parport                46562  3 parport_pc,ppdev,lp ums_realtek            18256  0  usb_storage            61749  2 ums_realtek ahci                   25879  2  libahci                31606  1 ahci ssb                    57842  1 b43


I am having trouble creating/registering custom templates in a module and overriding them in a theme. For example, I have this in my_module_theme():  $theme['contact-page'] = array(     'render element' => 'content',     'template' => 'contact-page',     'path' => drupal_get_path('module', 'my_module') . '/templates',     'variables' => array('form' => NULL),         );   This will correctly pick up the template (contact-page.tpl.php) located in modules/my_module/templates as expected. However, if I try to override this template in themes/my_theme/templates it will not be detected.  Furthermore, the advice from some similar questions I have found researching this topic says to use underscores when invoking hook_theme, as such:  $theme['contact_page'] = array(     'render element' => 'content',     'template' => 'contact-page',     'path' => drupal_get_path('module', 'my_module') . '/templates',     'variables' => array('form' => NULL),         );   When I do this the template (contact-page.tpl.php) is not read at all from either location (modules/my_module/templates or themes/my_theme/templates). In reports->recent log messages I see that Drupal is looking in the right place but cannot find the template for some reason.  Note: I am also rebuilding the theme registry on each page load.


spec is surjective for ring hom which is a free module?

If $A \rightarrow B$ is a ring hom of noetherian rings that makes $B$ into a free $A$ module (not enecessarily finitely generated), i've been led to believe that $spec(B) \rightarrow spec (A)$ is surjective.  Is this true? and how to prove that? thank you.


Email user when password is reset by admin

I am really new to WordPress programming and I am not even sure if this feature exists. What I am trying to do is send an email to users (not admin) when an admin changes their password/email?   At present when I add a new user, an email is sent to them but no email is sent to them when I change their password/email.  I will really appreciate any assistance here.


A 3 digit number is a unique number if no digit is repeating. In how many ways 3 unique numbers can be chosen such that they do not have any digit in common?


Ruby's attr_accessor vs setter method vs local variable

I have the following class defined  class MyClass  attr_accessor :my_var  def initialize   @my_var = 0  end    def increment     my_var = my_var + 1   end end   But if I run:  myObj = MyClass.new puts myObj.increment # should output: 1   Ruby gives an error, although the expected output should be 1  ERROR MSG:   undefined method `+' for nil:NilClass (NoMethodError)   EDIT:  The main question is, what is this line doing: my_var = my_var + 1  Is it invoking the setter method? Or is it trying to assign a local variable? In either case, why would it give the error msg it gives?


I want to trigger logout when I close any tab of my application. I tried $(window).on('unload', logout); and $(window).on('onbeforeunload', logout); That works fine but events also triggered when I reload page. How can I prevent this on reload? Before asking I found some options like event.currentTarget.performance.navigation.type but no posibility to separate reload and close in this way. Is there any opputurnity to trigger logout only on tab closed?


Spacing between consecutive displayed equations

I'm trying to adjust the spacing between several display equations, without having to put them in AMS align environment. I inserted several display equations in a row, each creating its own new line, but I would like to adjust the spacing of said lines. Here's an example of LaTeX source:  We can quickly calculate: \[ a=12 \] \[ b=9 \] \[ c=19.2 \] Which results in results   I can't figure out how to set the spacing between them. I am using Lyx as my editor, so ideally a solution that involves changing the Lyx document setting would be the best. However, I'm fine with adding a preamble latex code to adjust that spacing.  Thank you so much for all your help; any input is appreciated!


do creatures created after a "all creatures get -1/-1 until end of turn" instant get -1/-1 as well?

Let's say I cast  (an instant) before my opponent attacks. I choose the "all creatures get -1/-1 until end of turn" and then my opponent attacks with, among other creatures, a  which says "whenever Precinct Captain deals combat damage to a player, put a 1/1 white Soldier creature token onto the battlefield".  If the Precinct Captain successfully deals combat do the 1/1 Soldier tokens it creates die instantly because of the Golgari Charm's "-1/-1 until end of turn" or do they survive because they weren't in play at the time the "-1/-1 until end of turn" took effect?


How to increase ping time/network connection latency on Windows?

I need to permanently increase network latency in approximately 100ms, without losing packets.  Reason: On a certain server and internet game my ping is too much lower than the other people playing it. I have 15ms, when average is 150ms which gives me cheater-like advantages.  So also out of curiosity I'm looking for ways to increase my ping while keeping connection stable. What are my options if any?  I thought about VPN services, but it seems like a bad option since games use UDP?  Is there any router/software that would assist me on this?  I'm on windows.


Product of pairwise coprime integers divides $b$ if each integer divides $b$

Let $a_1....a_n$ be pairwise coprime.  That is $gcd(a_i, a_k) = 1$ for distinct $i,k$, I would like to show that if each $a_i$ divides $b$ then so does the product.  I can understand intuitively why it's true - just not sure how to formulate the proof exactly. I want to say if we consider the prime factorizations of each $a_i$, then no two prime factorizations share any prime numbers.   So the product of $a_1...a_n$ must appear in the prime factorization of $b$.  Is this correct?  Or at least if if the idea is correct, any way to formulate it more clearly?


I'm just curious if there exists an actual guideline for when to use downvotes.  Are they used solely for questions worded poorly or with little/no research?  Are they used when you don't understand the question?    I mean, I know people will use them however they want, but I'm just curious if some sort of "best use policy" was ever covered?


Is it possible to enumerate the possible RSA keys?

As far as I understand ECDSA keys are smaller than RSA because all of the value of the ECDSA (up to a high number) are valid private keys.  Is there any method of compressing RSA keys, based on some form of description of the key?  e.g. This is the $M^{\text{th}}$ possible value of $n$, given that $e = E$ and $A \leq n < B$.


Passing  from a string parameter to use AddSingleton

Why can't I do this?        services.AddSingleton<Type.GetType("ShoppingCartCache",true)>();   OR is there a better way of passing  from a string


Long ago I realized that manipulation of derivatives was possible using algebraic quantities. One could take a differential instead of derivatives $$ d[\sin x]=\cos x\ dx $$ $$ \frac{d[\sin x]}{dx}=\frac{\cos x\ dx}{dx}=\cos x $$ My question is about the analog of this process with integrals without a $dx$ for example $$ \frac{\int\sin x}{\int x} $$ Here $\int$ is the inverse of the $d$ operator. There is deliberately no $dx$ so the integrals cannot be evaluated in the traditional sense. This is more the foundation for an idea than anything explicit. Has this been looked at by anyone in the past? Does anyone know of anything similar to this?  edited remarks To clarify, consider $\int \sin x$. Because the input is not a differential but a finite quantity, it is expected that the integral would diverge to infinity. I desire to define how the integral diverges in a way like $$ \int \sin x=f(x)\int x $$ which is analagous to differentials (e.g. $d[\sin x]=\cos x\ dx$) and therefore the fraction $\frac{\int \sin x}{\int x}$ could be evaluated as a finite quantity $f(x)$. I'm not looking for a simple "you can't do that" or the definition of an integral in the conventional sense. I want to know if anyone has explored this unconventional expression or has any insight into how it might be evaluated or even what it means.  Marked as a duplicate, but probably because my new idea goes against what we were all taught in calculus class.


QGIS: Preserve layer names when loading raster

I have a raster with 81 bands. The format is .gri with an ENVI header file .hdr.   Band names are stored together with other information in the header file:     ENVI   description = { CARI Carter Carter2 Carter3 Carter4 Carter5   Carter6 CI CI2 ClAInt CRI1 CRI2 CRI3 CRI4 Datt Datt2 Datt4 Datt5 Datt6   DD DDn DWSI4 DWSI5 EVI GDVI_2 GDVI_3 GDVI_4 GI Gitelson Gitelson2 GMI1   GMI2 Green.NDVI Maccioni MCARI MCARI2 mND705 mNDVI MPRI MSAVI mSR mSR2   mSR705 MTCI MTVI NDVI NDVI2 NDVI3 NPCI OSAVI PARS PRI PRI_norm PRI.CI2   PSRI PSSR PSND SPVI.1 PWI RDVI REP_Li SAVI SIPI SPVI.2 SR SR1 SR2 SR3   SR4 SR5 SR6 SR7 SR8 SRPI TCARI TCARI2 TGI TVI Vogelmann Vogelmann2   Vogelmann4 }     When reading the file into QGIS, I just get "Band 01", "Band 02" etc. when using the "Identify" tool.   When reading the file into R, layer names are preserved. Here not the .hdr file is taken but the corresponding .grd file for reading layer names.   I am wondering where QGIS reads/tries to read layer names from if not from the .hdr file (which is required otherwise QGIS cannot open the file at all)?  Get the .


Incorrect mapping between reputation graph and posts from which user earned the corresponding reputation

Bars shown in Reputation graph have incorrect mapping with Post from which reputation has been earned.  for more details look at these attached images:     Here reputation earned is 75 but No posts are displayed corresponding to the above bar graphs.  Now have a look at the image below:        Again 3 posts are displayed for rep gain of 10 points.  So it seems mapping has been shifted by one day. Or is it timezone dependent.   Looks like a bug to me.


Encode/Decode Original mail body to readable foreign (Chinese) character

An email text in Gmail looks like this, they are mixed with English and Chinese characters:  中中字 smile   When I click "show original" in Gmail, the body looks like this:  =E4=B8=AD=E4=B8=AD=E5=AD=97 smile   As you can see, the English part ('smile') looks the same either from Gmail front face or original mail, but the Chinese characters seemed to be handled.  Question:  How do I encode/decode Marsians in original mail body to readables ?  Many thanks ~


The number of solutions to an $n^{th}$ order differential equation.

For an $n$th order differential equation, why are there always $n$ solutions? Why exactly $n$, not $n - 1, n+1$ or infinite many?    Addendum by LePressentiment :   This is motivated by P176 on Strang's Intro to Lin Alg, 4th Ed. An $n$th order differential equation, how many basis functions does it have? I'd guess $n$, because the diffl eqn have $n$ linearly independent solutions (predicated on Julián Aguirre's answer), all of which look to span the nullspace/solution space of the homogeneous ODE.


Google Chrome will take up my memory to the point where it causes my computer to freeze to a near halt. What can I do to prevent this?

It gets so horrible that I can not even switch to TTY1 to force a reboot. I have to hard reset, and I lose work.  Ideally, I would like to be able to use the chrome browser on Ubuntu without having to keep reminding myself to close tabs.   Are there any extensions for Chrome, or tools for Ubuntu that can help prevent me going past the point where Ubuntu eats up all the RAM and becomes incapacitated?


Rdp through internet, one public ip, few computers

I need to connect to remote computers through the internet by rdp, but public ip is only one - router have it, so i can`t find computers. Question is - how can i solve this problem ?


The universal covering group of a symmetry group

In Weinberg QFT Vol.1, it says one can enlarge the symmetry group $H$ to the universal covering group $C$ such that one obtains a trivial cocycle or $C$ is simply connected whereas $H$ is not. I get the mathematical meaning of the statement. I wonder whether this also requires $C$ being an extended symmetry of the system somehow though I thought $H$ is the largest symmetry group of the system. I am kind of confused here how can one further extend the system invariant under the action of the universal covering group unless one define the action of elements beyond $H$ being trivial.


What should moderators (or passing editors) do about suspected plagiarized or copyrighted images in posts?

I can't seem to find a canonical reference about Stack Exchange's policy regarding inclusion of images from the Internet in questions and answers. I'm not even sure whether this comes under copyright or plagiarism.  There are questions about copyright violations of text in answers, and questions about copyright images and Imgur but I can't find one specifically on this subject.   Is there a difference between including an image by a link, including an image via the Imgur interface? (vs. just linking to an image without it displaying inline) Isn't it true that we only allow use of public domain and CC-BY-SA images or otherwise posters must obtain consent from the image's owner? If moderators or just other editors on an SE site find images that seem to be just grabbed randomly from the Internet without regard to plagiarism or copyright, and without apparent permission of the owner, what should they do? Or what should they not do?


Delete multiple values in a list of python

I have an index of list elements that I want to delete. How can I do that ?  For example, if my original list is a=[1,2,3,4,5,6] and my index list is [2,3]. I want the elements 3,4 to be removed


I want to install MongoDB on Ubuntu. I am following the official instructions from .  Now when I do:  sudo apt-get update   it's giving me:  W: Duplicate sources.list entry http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen amd64 Packages (/var/lib/apt/lists/downloads-distro.mongodb.org_repo_ubuntu-upstart_dists_dist_10gen_binary-amd64_Packages) W: Duplicate sources.list entry http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen i386 Packages (/var/lib/apt/lists/downloads-distro.mongodb.org_repo_ubuntu-upstart_dists_dist_10gen_binary-i386_Packages) W: You may want to run apt-get update to correct these problems   I have also removed this entry manually but when I do:   sudo apt-get update   it again downloads the same files. I don't know what the issue is. I want to install the latest MongoDB.


I am a new user of Ubuntu, I've been only using windows my whole life, but recently i needed to install Ubuntu, so I could use some bioinformatics software only available for the Linux operating systems.  I tried using VirtualBox, but it's painfully slow and won't allow me to run all the software that I would need for DNA sequence analysis.  My question is: Will it be best to install Ubuntu inside windows, I mean by running the Ubuntu installer programme within windows, or should I just install it next to windows on it's own partition?   Will this last option slow my computer's performance while using windows? And which Ubuntu version would be best for my PC?  My system information:   RAM 4G  CPU 32-bit 2.40GHz


How is path to an executable set if script is in PATH

Suppose I have a my.sh script that is placed inside /var/www and I added this directory into a PATH env variable. Now I can run ./my.sh anywhere in the system. Inside the script, $0 is equal to /var/www/my.sh. How is it constructed? Is it simply the path in the PATH plus the script name?


I am trying to make a reply Form using NetBeans gallery. I am using JList to view my messages and when I would like to reply to a specific message I got Null Pointer Exception. This my code: I made two constructors one to make a JFrame and the other to set getFrom() method in to.Text().  public class ReplyForm extends javax.swing.JFrame {  private JList theList;  ReplyForm(JList inputList) throws IOException, MessagingException {      theList = inputList;   //   System.out.println(theList);     if (theList != null) {         int i = theList.getSelectedIndex();         Email email = (Email) theList.getModel().getElementAt(i);         Message message = email.getMessage();         to.setText(message.getFrom()[0].toString());         subject.setText("RE:   " + message.getSubject());         text.setText((String) message.getContent());      }


Prove that $\min_{x,y} f(x,y) = \min_{x}(\min_{y}f(x,y))$

Given $f\colon X \times Y \to \mathbb{R}$, prove that \begin{align*} \min_{(x,y) \in X \times Y} f(x,y) = \min_{x \in X}\left( \min_{y \in Y} f(x,y) \right). \end{align*}  Intuitively, I see that the left hand side is the minimum value over all possible pairs $(x,y)$ in $X \times Y$. Say that the minimiser is $(x^o,y^o)$. For the right hand side, we pick $x = x_1$, then find a $y=y_1$ which minimises $f(x_1,y)$, then repeat this process for all $x \in X$. Now in this process when $x = x^o$, $y$ will take value $y^o$, since that is the minimum value the function can take for any possible pair. Hence they equality seems true. How do I show this rigorously?


Can you identify this time-travel/alternate history novel?

I read this sometime in the 2000s, in another state, so I can't go back and check the shelves.  A scientist discovers time-travel, or something like it -- it's a time-sea. Swimming in it causes ripples or waves that change the timeline. More and more time-changed civilizations enter the sea to battle. The swimmers have tails, the length which represents their life-span or memories? Chop off the tail, and they remember less. The best warrior is one with a super-short tail and hardly any memories.  It was definitely a novel, and not a short story in a collection. Beyond that -- no idea of author, title, or even the cover. Except that I read it in hard-cover, so not a straight-to-mass-market pulp.


What is the difference among gloss/smooth text/cardstock papers and what do other terms mean?

I'm trying to get the right paper for the job. That job is the printed cover that is inserted under the plastic on a DvD or Blu-ray  album, to be printed in an Océ CM2522 toner copy machine. Unfortunately, I'm at a loss what all the various words and numbers really mean. I can't find much consistency when I actually get a chance to physically inspect them either.  I'm looking for a really glossy paper that's not too think, but thicker than typical office paper. Pull out the paper in a typical DvD and you'll see what I mean. I know office paper is usually 20 or 24 lb, and I've see 60-something pound paper that was pretty think, so I'd guess I'm looking for something between 35 to 45 lb.  Without physically checking it, I bought and was disappointed in the gloss and weight of HP's   .   I had some paper hanging around that was just about exactly what I'd want, so I went to an office store to identify it. They came close on gloss, but were too light with Xerox's    .   The confusing part came when their "100# Gloss Coverstock" was exactly the same, except maybe three times heavier. So if I wanted just a bit heavier, I should look for something like "110lb text"?  Then in looking around I'm seeing papers labeled "smooth" and "matte" instead of "gloss", so I'm pretty sure I don't want that. I've also noticed some papers give a g/m2 weight instead of the pound weight. I've seen  and , but have no idea how that converts to the pound weight.  On top of all this, I still don't know if "laser" means for toner printers only, nor if "inkjet" means it won't work well in a toner printer.  I can't make heads or tails of    The weight designations, both pound and g/m2, and how those convert Why "coverstock" and "text" can be otherwise labeled identically  Whether there's an actual glossiness rating I can consider What "smooth", "matte", and "gloss" really mean, other than the implications from the words' common definitions. What words like "laser" and "inkjet" imply about the printer compatibility Auxiliary words like "Premium32" and "Elite" (maybe just brand marketing)


Can I submit my manuscript to a second journal without receiving withdrawal confirmation from the first journal?

it's a month from the submission of a manuscript of mine in a "World Scientific" journal, but its status is still "Editor Invited". I just sent the editor-in-chief a note to ask about the situation because the editor assignment process is unusually getting long. The editor-in-chief did not answer my inquiry, so I am about to withdraw the paper. Let's say (s)he doesn't confirm my withdrawal request. Will I be ethically authorized to submit my manuscript somewhere else considering that I will keep the withdrawal email (in case someone claims that I hadn't withdrawn it before new submission)?


How to change HashMap to LinkedHashMap via Stream

I'm new in Java and now I try lambda/stream.  How can I sort the Map by value?  I tried as follows, but it's not correct:  time = time.entrySet().stream()            .sorted(Comparator.comparing(Map.Entry::getValue))            .collect(Collectors.toMap((String)Map.Entry::getKey,                        (Long)Map.Entry::getValue, LinkedHashMap::new));   I found the following method, but don't know how to use it:  Collector<T, ?, M> toMap(Function<? super T, ? extends K> keyMapper,                            Function<? super T, ? extends U> valueMapper,                            BinaryOperator<U> mergeFunction,                            Supplier<M> mapSupplier)


How can I tell if a DOM element is visible in the current viewport?

Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the viewport)?  (The question refers to Firefox.)


What techniques can I use prevent my players from missing important details?

I'm running a campaign with some experienced players that is pretty complex and long-term.  (Short story: Acererak is returning to the Prime Material to enslave the population, and the only weapon that can destroy him permanently is the Rod of Seven Parts.)  Players started at level 1.  The players have REPEATEDLY failed to examine items and scenes where I've placed important items.  This includes not looting monsters they've killed, but extends to, for example, finding a hall full of statues and not examining to note that they are actually victims of a medusa.  This has led to me having to almost spoon-feed them information and items. I even tried to "gift" them a Wand of Fireball from a party of bandits they encountered and killed, and when they failed to check for it I had one bandit survive the encounter, meet the party later, and actually drop the wand right in front of them.  I had to write in multiple NPCs to flat-out say, "Hey, that vampire might not have been the BBEG" and also told them out-of-game that they need to be more observant.  What techniques can I use to have my players pay more attention to details?


A problem of limit: $\lim\limits_{n\to \infty}\left\{\frac{(n+1)^{n}}{n!} \right\}^{(1/n)}$

I need to find the limit of $$\lim\limits_{n\to \infty}\left\{\left(\frac{2}1\right) \left(\frac{3}2\right)^{2} \left(\frac{4}3\right)^{3} ... \left(\frac{n+1}n\right)^{n} \right\}^{(1/n)}$$  Cancelling out the same quantities in numerators and denominators, I have reached the step: $$\lim\limits_{n\to \infty}\left\{\frac{(n+1)^{n}}{n!} \right\}^{\frac1n}$$  Now I am stuck here. I have searched google for help, but found only the result for $\lim\limits_{n\to\infty}\left\{\frac{1}{n!} \right\}^{(\frac1n)}$.   Which formulae/properties should I use now to proceed from this stage?  Edit: The options for the answer are: a) $e$, b) $1/e$, c) $\pi$, d) $1/\pi$


The value of $\lim_{n \to \infty}\int_{0}^{1}nx^ne^{x^2}dx$ is _____ I tried by taking the odd $n$ values as in that case, the integral I suppose was easier to calculate. So, denote $I_n=n\int_{0}^{1}e^{x^2}x^ndx$, then we have : $I_1=\frac{e-1}{2},\\I_3=\frac{3}{2},\\I_5=5(\frac{e}{2}-1),\\I_7=7(3-e)$ Then I tried calculating (random) values using calculator as integration was getting cumbersome. $I_{31}=2.488$, $I_{51}=2.57$. I do not see any kind of recurrence so that I can find a general term for odd $n$. I also tried the method given . The idea was that since integral doesn't depend on $n$ considering $I(n)=\int_{0}^{1}e^{x^2}x^ndx$, then $I'(n)=\int_{0}^{1}x^n\ln(x)e^{x^2}dx$, but this also doesn't lead me to any conclusion as well. I believe I couldn't get to a proper approach to tackle this question. Can someone please help with the idea that involves in solving these type of questions?


This has been a point of some controversy within our local AL community, with different DMs giving different rulings. From what I could see, this site has only touched on the Maneuver/Smite issue, with, according to some of my DMs, an out of date answer.  This also leaves the problem of extra dice on magical weapons such as an Ild rune or Hazirawn, maneuver damage dice given by another player through Commander's Strike, damage dice given by a College of Valor bard, Sneak Attack dice, and likely others which currently escape my mind.  Which damage dice exactly does the Great Weapon Fighting fighting style allow you to reroll?


Is it possible to use the enumerate/itemize environment within the proof/remark environment in a nice way?

I wish to use the enumerate/itemize environment within the proof/remark environment, but when I do this the first number/bullet-point is on the same line as the word 'Remark'/'Proof' indented to the right, and all subsequent number/bullet-points are all aligned nicely below.  I think it looks a bit clumsy. I tried adding a double backslash immediately after \begin{proof} but sometimes this means I have the word Proof at the bottom of a page and on the next page the bullet points start, which looks terrible. Is there a way round this?


I want to create a math operator that is an integral with a square (\square) stack onto it such that the integral is still formated the way that the operator \int is. How do I do this?


Theorem of compound probability - intuition

What is the intuition behind $P(A\cap B) = P(A)P(B)$, given A and B are independent events?   I saw the derivation but wasn't able to to think of it intuitively. Is there any combinatorial reasoning behind it?  I have even seen it for cases like tossing a coin and it works! But I am not convinced that it should be true always. I am looking for a strong foundation of it.


I want a centered enumeration, where the top-level is centered.  This brings two problems:   enumeration stops, and I get the text not counted I get the error "Something's wrong - perhaps a missing \item"   Code used is:  \documentclass[12pt]{article} \begin{document}   \begin{enumerate}     \begin{center}       \item First title       \item Second title     \end{center}   \end{enumerate} \end{document}   Would be awesome if anybody could help me out!


Showing $\int_x^{x+1}f(t)\,dt \xrightarrow{x\to\infty}0$ for $f\in L^2 (\mathbb{R})$

Show that if $f\in L^2 (\mathbb{R})$ then    $$\lim_{x \rightarrow \infty} g(x)=0,$$   where    $$g(x)=\int_x^{x+1}f(t)\,dt$$   Since $f \in  L^2 (\mathbb{R})$ then $f \in L^2[x,x+1]$ for every $x$. Then  $$|g(x)| \leq \left(\int_x^{x+1} f(t)^2 dt\right)^{\frac{1}{2}} \int_x^{x+1} 1 dt$$ $$|g(x)|\leq \left(\int_x^{x+1} f(t)^2 dt\right)^{\frac{1}{2}}$$


Blender 2.80 Remove double vertices option gone

I downloaded the latest version of Blender 2.8 beta today.   I used to remove double vertices by switching to Vertex selection mode -> Choose all vertices -> Right click > choose Remove Doubles (in Blender 2.80 which I downloaded in April).  But I found the option - Remove double vertices gone. I switched to Vertex selection mode and press F3 to search but could not find it. Maybe it has got another name?


Given 3 points, how can I find a quadratic equation that intersects all of these points?

Given 3 points, $(x_1, y_1), (x_2, y_2), (x_3, y_3)$, how might I find an equation intersecting all of these points? Given just 2 points, to find a linear equation, this is the formula: $$y\ =\frac{\left(y_2-y_1\right)}{\left(x_2-x_1\right)}x+\frac{\left(y_1+y_2-\left(x_1\left(\frac{\left(y_2-y_1\right)}{\left(x_2-x_1\right)}\right)+x_2\left(\frac{\left(y_2-y_1\right)}{\left(x_2-x_1\right)}\right)\right)\right)}{2}$$ In the same form of $y=...$, what is the formula for a quadratic equation with 3 points?


Prove that every non-abelian group of order 6 has a non normal subgroup of order 2.

I tried using the result that if p is the least prime dividing the order of G, then any subgroup of index p is normal in G. So a subgroup H of order 3 is normal in G. Then, if there was a normal subgroup K of order 2 then G=HK. But how do I get a contradiction?


How to exclude my own visit from Google Analytics in WordPress?

I am a blogger and use WordPress as a content management system. My own visits are being recorded in google analytics. Are there any WordPress plugins to exclude that?


Finally got around to watching  last night, and I'm somewhat confused by the title.  I've got some possible references, and I'm not really sure if any of them are viable:   A reference to the men who died in the various mines A reference to all the people Dan Plainview killed A reference to the "war" that he had with preacher Eli Sunday A reference to his relationship with HW   Can anyone help me understand this?


Coffee spill on Laptop, still works - though for how long?

Now back a week ago I spilled coffee with sugar in it on my keyboard. When the spill happened, I quickly turned it off and turned it upside down dried it with a tissue and all that stuff. I waited for a total of 3 days before I turned it on again and even went to a repair shop to have it checked. The people there kept telling me if its working I shouldnt have it cleaned or it might stop working entirely. But here on internet people keep saying that coffee should be cleaned asap. I dont know what to do at the moment and Im afraid of what unseen damage there could be on the motherboard, I dont care if its just the keyboard. To summerize: I spilled coffee, laptop works, waited for 72 hours+ to dry, repairmen keep telling I shouldnt have it cleaned. Should I trust them?


I'm trying to calculate the level of testosterone released from different testosterone esters. Here are some graphs of testosterone levels after single injections of 250mg of each ester.  Testo U    Testo B   Each ester have a specific half life. e.g. testo e have an half life of 4.5 days. testo b 29.5 testo u 20.9  After an injection of an ester, there will be a specific amount in your body. say 250mg.  Those 250mg will follow a normal half life curve for that ester. And I know how to calculate that.  However, when the ester is reduced, the testosterone bound to it will be released.  So over time , more testo will be released from the ester, and the testosterone itself have some sort of half life I assume.  Not doing drugs here ;) working on a medical app.  (sorry for the homework tag but I have no clue what this goes under..)


I'm looking for the title and author of a story I read years ago. In short: a crack pair of investigators arrive on a planet. One is a high level esper.   They go about their business but notice some of the native populace are "afflicted" with a bright red growth in varying degrees. Some have only a tiny spot, on others it covers large areas of their bodies. The natives consider the tumor-like growths a "blessing" or status symbol.   I don't recall specifics but the pair discovers a cavern filled with the red tumors. The next day the esper has disappears. The remaining off-worlder searches for her and finally discovers the tumors are related to esper ability, and how much you are "afflicted" is directly proportional to your level of ability. In short his partner melded with or was consumed by the tumors, becoming one with the mass in the cavern.


Can an item be partially contained in a bag of holding?

If you have an item that is larger than the space inside a , or if the item has dimensions (for the sake of the question, say it is largely L-shaped) that would prevent it all from fitting through the opening of the bag of holding, can it still fit partially inside the extradimensional space inside this wondrous item?


An integral of a rational function of logarithm and nonlinear arguments

This problem was posted in I&S   $$ \int_{0}^{1} \dfrac{\log x \log (1+x) \log (1+x+x^{2})}{(1-x)(1+x^{2})}\,\mathrm{d}x \approx -0.223434.$$  I am not sure if there exists a closed form but it seems worth trying. I am completely clueless on how to start with this beast. It is worth saying that$$1-x^3= (1-x)(1+x+x^2).$$ That seems to go no where. I think the integral can be represented as the derivative of the integral representation of the Hypergeometric function but I am not comfortable with that. Any ideas ?


I have directory (folder) where the attributes revert back to read-only after I change it. win7 32 bit

it's the funkiest thing.  Windows 7 workstation. Peer to peer network. As administrator, I change the file attributes from read only, only to look at it an hour and it has changed back. When I go into properties and look at security, an unidentified user is there and then vanishes.  I use Trend Micro Titanium and it hasn't detected any trojan horses. I have data that users are constantly changing in that folder and it is time consuming to repeatedly change attributes just to have them change back.


Representation of Timer in "Deal Expires in MM SS"

UI cards in my application expire after 3 days of creation. I indicate this in a badge as shown in the image.    The different states of the element are:-    The live countdown timer starts once it reaches below 1 hour only. i.e it starts from 59 minutes and 59 seconds.  So my dilemma is about; how to show the mm:ss format. The general options that I had are shown in the below image.    Please think about this and suggest the best way through this one :)


Canonical examples of inner product spaces that are not Hilbert spaces?

That is, what are some good examples of vector spaces which are inner product spaces but in which not every Cauchy sequence converges?


I have designed a character to be able to cook just about anything and make it taste great. This was done mainly for RP purposes but I was curious if there is any system that adds benefits for eating fresh good food. Maybe something like a moral bonus. I am aware of the racial trail rations and might use those without the racial limits if my DM approves.


If Cooper wanted to stay, why did he send the NASA Coordinates?

In Interstellar, after Cooper arrives in the Tesseract, Cooper tries to send the message STAY to his daughter in the past so she won't let him go on the mission. If that was his intention then why did he send the coordinates of NASA afterwards? If he didn't send the coordinates, he wouldn't have found NASA or go into space, he would have stayed.


How to unscrew screws that are barely accessible?

I need to remove the face of a fake drawer that is screwed from behind. Unfortunately, a kitchen sink is preventing me from using a screwdriver. There is approximatively 4cm of space. The screw head is a PZ2. Is there a tool can could help me remove this screw ?


How is possession indicated with an apostrophe for a name ending ss?

Hi assuming you have a name like Cross, Tess or Ross. What is the correct way of writing including the apostrophe assuming the owner is a singular entity?  Eg.  Ross's apples Ross'es apples


Ubuntu Touch: How can I debug ubuntu touch apps on the device?

My app works well on desktop but I can't figure out why does it crash on my nexus 7. How can I debug it while it runs on the device?


I'm trying to normalize some of the variables (biological parameters) from my dataset (some are positively, some are negatively skewed). As I was more familiar with, I used log or square root transformation. However, even after performing these transformations, I hadn't succeeded in normalizing all of these variables. Now I have some questions:   Is it correct to use a Box-Cox transformation for all the variables? How can I report the Box-Cox transformed data (I need this transformation for performing multiple linear regression and Cox regression)? For example, when using log transformation I used to report the increase in 1 SD for the transformed variable in the Cox analysis Hypothetically, is it correct to use in a linear regression analysis data that are transformed by different methods (log, square root, log of the reflected data)?   Thank you


How did a community ad show up in a stackexchange where it was not promoted?

I recently saw the  community ad show up at the new Law stackexchange    However the Korean Language proposal was not added as a community ad in the     Moreover, it was added to be  but I have never seen it come up there    How do these community ads work, and how can this system be used to better promote an Area51 proposal?


Why is the Dirac mass term Hermitian if Grassmann-valued fields anticommute?

Let's have Dirac mass term in lagrangian: $$ L_{M} = \bar{\Psi}\Psi $$ Lagrangian must be real-valued, i.e., its Hermitian conjugation doesn't change it. But due to Grassmann nature of spinor fields, $[\psi_{a}^{*}, \psi_{b}]_{+} = 0$, $$ L_{M}^{\dagger} = -\bar{\Psi}\Psi $$ Where have I make a mistake?


I am taking over a project from a previous developer and my client needs a way for email address to actually be a valid email address (ex: formatted as someone@something.com).   The form I'm working on is here:   All I am trying to do is validate this email via Ajax (what the old developer is using) before the form progresses.   Here is a snippet of JavaScript that is being used for validation right now:   // continue to next group     $('.iphorm .next').click(function() {         var error = false;         var checked = false;          // hide errors         $('.iphorm-errors-wrap').hide();         $('html, body').animate({scrollTop:$('.page_content').position().top}, 100);          // validate text inputs         $(this).parents('.iphorm-group-wrap').find('.iphorm-element-wrap-text.iphorm-element-required input').each(function() {              if ($(this).is(':visible')) {                 if ($(this).val() === '') {                     $(this).parents().next('.iphorm-errors-wrap').show().html('

This field is required

');                       error = true;                 }             }         });     });   Does anyone have any idea of how I could accomplish some simple email validation before the form moves on to the second step?