How to determine if using the Great Weapon Master feat will increase DPR?

If I have the Great Weapon Master feat, how do I work out if using the -5 to hit and +10 damage gives more damage overall, given a certain AC, to hit, and damage bonus?  For example:    I’m an Aasimar with Mounted Combatant feat for advantage and Great Weapon Master feat for -5 to hit and +10 to damage.  My opponent has an AC of 16 I have a normal “to hit” of +10 (thus +5 with GWM) My average damage bonus of +13 once the Aasimar racial hits (so +23 with GWM)   How do know what will do more damage overall? I know there is a way in Any-Dice to do this, but I’ve not found it.    Is it complicated by the fact that I get an entire extra attack (until Polearm Mastery) if I get a critical hit also?


How to find the minimum perimeter oriented bounding box?

I would like to know an algorithm to calculate the minimum perimeter oriented bounding box of a point set or polygon. I know that if I use the rotating calipers, I am able to get the minimum area oriented bounding box. However, I would like the bounding box considering the perimeter, or the width.  An example of this is given in ArcGIS.


0:00 appears in my message bar on a grey shadow

How do I get rid of a symbol that keeps appearing in my message box. It is on a grey base with 0:00 so when you type your message you can't see what you typing


The origin of my question arose from a problem: Let $q: X \to Y$ and $r: Y \to Z$ be covering maps, let $p= r \circ q$. Show that if $r^{-1}(z)$ is finite for each $z \in Z$, then $p$ is a covering map.  I am just wondering is there an easy counter example to show the necessary of "inverse image of every point is finite" condition?  I have already checked Hatcher's book (the wedged circle example) but I wonder is there a less complex and more obvious example?  I tried to construct a counter example by composition of a covering map from $R_+$ to $S^1$ with $R$ in the middle, but I failed due to I can't find a covering map from $R^+$ to $R$ which does the job.


Something that puzzles me if gravity is just bending of space time near a mass then what is gravitational force?  If say two massive bodies were perfectly at rest relative to each other they would bend space time around themselves but they shouldn't ever move towards each other since they are not moving in the bent space.  In short why should one object fall into bent space of other object leading it to follow the bent space to collide with the mass, why did it move let alone its path and direction?  Is Space time bending in 4th dimension real or just a visualization of the actual process?


Switching between files without closing vim editor

I'm new to command line and using vim. Suppose you’re editing a file named exampleFile.txt using vim editor. How do you switch to another file named exampleFile2.txt without exiting vim? What command do you use? Thanks.


When considering the Doppler shift, the 'canonical equation' is  $$f=\frac{c+vr}{c+vs}f_0$$  However, this equation seems to run into trouble in the following situation: A light source inside water is moving at a speed $v$ towards a receiver outside the water. Can we modify the above equation to deal with a transition between two media? Or is there a completely different formula that applies here?


Rajiv Gandhi was the sixth prime minister of India. How can I ask the following question correctly?  How many th prime minister Rajiv Gandhi?  Is it correct ?


Why can't I use LaTeX3 commands inside a macro I define?

I'm really wanting to make use of LaTeX3's regular expressions package (l3regex) but am struggling to use LaTeX3 commands in general. Code that works on its own in the preamble fails when embedded in a macro. For example, why does this fail?  \documentclass[a4paper,10pt]{article}  \usepackage{expl3}  \newcommand* \blahblah[0] {%   \ExplSyntaxOn   \tl_set:Nn \l_my_one_tl { That~cat. }   \ExplSyntaxOff }  \begin{document} \blahblah \end{document}   By contrast, if you take the contents of the \blahblah macro and put them outside of the \newcommand*, then everything works fine. There's something about being inside of the macro definition that's causing problems.  What am I missing?


How do I subscribe to the tags that I am interested in?  I like to get notified via email or so, when someone asks new questions or if someone responds to my questions.


What is the difference between Public and Protected in Java? According to the Oracle documentation available here , Public is also available to the World while Protected is not. Now, I cannot understand what 'World' means here. Can anybody clarify, please? Thanks, Alberto


I am trying to shift from 12.04 LTS to 16.04.3 LTS desktop amd64 through a fresh install (iso file download on a DVD).  In the process, is it necessary to verify the Ubuntu download prior to installation - its a bit complicated for me! ;)  Secondly, is there a way to know whether my computer hardware is compatible with 16.04.3?  Thanks for the reply.


Using PCA to reduce dimensionality of training and testing data

I've read so many contradicting opinions that I feel like I need to ask the question myself.  Say I use PCA on a dataset with 60 variables and find that I can explain 98% of variance with 6 principal components and I get a decent model predicting what I want.  Now I get some new data (testing), this data should then be translated to the same "PCA space" in order for my model to interpret it right? So I would scale it using the same scaling used on my training data and then use the loading scores from the original PCA to translate my new data to "PCA space"?  The reason I'm asking is that I've seen tons of people doing PCA before doing test/train splits so their testing data is already "transformed", this seems like a mistake to me? Shouldn't the PCA be used on the training data exclusively and then using the loadings from that PCA translate the testing data to the same dimensionality?


Can we change how bash_history gets updated?

As I'm using bash on my Desktop, I have a multi-tab Gnome Terminal window with 6 to 10 shells opened in there.  When I log out of my X session, my ~/.bash_history gets updated in some random way... (at least if you ask me, I have not found a clear pattern to it.)  I'm wondering whether all the history from all the shells I had running could be appended. At this time, it feels like only one of the shells will save its history in the file (or rather they all do and the last one wins?)  What I think would be best is a way to save commands as I issue them from any one instance. That would certainly be the cleanest, if it's doable, as the order would be preserved (i.e. I cannot type in more than one shell at a time, so saving the history will be in the order I typed command in each shell.)


How copy to clipboard with one click (using only JS and jQuery).?

How copy to clipboard with one click (using only JS, jQuery and AngularJS)? I won't use zclip and flash.


What may cause bookmark accented letters not working on a specific computer?

I'm using package hyperref to write a book in Portuguese. Appendices should appear in TOC as in Apêndice A Title of the appendix.  When I compile it with LuaLatex on a computer with Ubuntu 16.04, I get this error message:  ! Missing \endcsname inserted. <to be read again>  \char  l.2 ....a.A}{Ap\352ndice T\355tulo de ap\352ndice}{}   The file main.out looks like this:  \BOOKMARK [0][-]{chapter.1}{Blabla}{}% 1 \BOOKMARK [0][-]{Ap\char "00EA\relax ndice.a.A}{Ap\352ndice T\355tulo de ap\352ndice}{}% 2   But, when I compile the same project with LuaLatex on a computer with Ubuntu 18.10, I get no error message and the file main.out looks like this:  \BOOKMARK [0][-]{chapter.1}{Blabla}{}% 1 \BOOKMARK [0][-]{Apêndice.a.A}{Ap\352ndice T\355tulo de ap\352ndice}{}% 2   What can possible be wrong with LuaLatex on my Ubuntu 16.04?  MWE:  \documentclass[10pt]{book}  \usepackage[utf8]{luainputenc} \usepackage[title,titletoc]{appendix} \renewcommand{\appendixname}{Apêndice} \usepackage{fontspec} \usepackage[breaklinks=true]{hyperref} \usepackage{tocloft} \usepackage[notlof,notlot,nottoc]{tocbibind}  \title{TÍTULO DO LIVRO} \author{Nome do Autor}  \begin{document}  \frontmatter \pagestyle{empty}  \maketitle  \tableofcontents\thispagestyle{empty} \cleardoublepage   \mainmatter  \chapter{Blabla}  Blablabla.  \begin{appendices}  \chapter{Título de apêndice}  Texto. \newpage Mais texto. \end{appendices}  \end{document}


Since I would like to play around with C++17 and several TSs I am searching to install GCC 7.0 on my Ubuntu 16.04.  Sadly I could not yet find a version out there which would not produce colliding package dependencies.  I generally settled for LTS and am not in the mood to upgrade to later versions. Thus is there another option than compiling GCC from source?


inconsistent Vertical Spacing between equation and text

I have some problems in spacing. I just want to put equations in the text. What I found is that the vertical spacing between the equation and text is not consistent. Some is large and some is small. Both spacings above and below equation are not consistent. How do I get consistent spacing in the entire thesis? I can adjust spacing using \vspace{\baselineskip}. But I am not sure the spacing is exactly the same or not. It doesnt seems good solution. Here is my code.  \documentclass[twoside]{utmthesis} %According to the new manual, should not mixed single-side with two-side  printing \usepackage{graphicx} \usepackage{url}  %\usepackage[pages=some]{background} \usepackage{lipsum} \usepackage{pdflscape} \usepackage{verbatim} \usepackage{textcomp} \usepackage{mhchem} \usepackage{amsmath}  \usepackage{listings} \usepackage{graphicx} \usepackage{mwe} \usepackage{xr} \usepackage{siunitx} \usepackage{float} \usepackage{subfig} \newsavebox{\bigleftbox} \usepackage{tikz} \usepackage{nameref} %\usepackage[printonlyused]{acronym} \usepackage{romannum} \usetikzlibrary{shapes.geometric, arrows} \usepackage{natbib} \let\cite\citep \bibliographystyle{utmthesis-authordate}  \begin{document} \subsection{1D numerical modeling of the SI-engine} \vspace{\baselineskip} The numerical models and related equations applied in the 1D engine  simulation are presented and briefly discussed. \subsubsection{Pipe} \vspace{\baselineskip} In one-dimension modeling of flow through the pipes, working fluid is  assumed that it is flowing in one-direction, instead of three direction (X,  Y, and Z). It seems plausible, as most fluid particles are moving mostly in  longitudinal direction rather than radial direction of the pipe. A one-  dimensional pipe flow is described by Euler equation which is given in  conservation form below.  \begin{equation} \label{Euler} \frac{\partial \mathbf{U}}{\partial t} + \frac{\partial \mathbf{F(U)}}  {\partial x}= \mathbf{S(U)} \end{equation}  $\textbf{U}$ and $\textbf{F}$ represent state vector and flux vector,  respectively which are represented as follows.  \begin{equation} \mathbf{U}= \begin{pmatrix} \rho \\ \rho \cdot u \\ \rho \cdot \bar{C_v} \cdot T + \frac{1}{2} \cdot \rho \cdot u^2 \\ \rho \cdot w_j \end{pmatrix}\,\,\, , \,\,\, \mathbf{F}= \begin{pmatrix} \rho \cdot u \\ \rho \cdot u^2 + p \\ \rho \cdot (E+p) \\ \rho \cdot u \cdot w_j  \end{pmatrix} \end{equation}  With total energy, $E$ is given as below.  \begin{equation} \label{E} \begin{split} E=\rho \cdot \bar{C_v} \cdot T + \frac{1}{2} \cdot \rho \cdot u^2 \end{split} \end{equation}  The source term, $\textbf{S}$ is divided into two different sub-source  terms.   \begin{equation} \label{S}    \mathbf{S(U)}= \mathbf{S_A(F(U))} + \mathbf{S_R(U)} \end{equation}  $\mathbf{S_A}$ is the source term caused by axial changes in the pipe cross  section.  \begin{equation} \label{Sa} \mathbf{S_A(F(U))}= - \frac{1}{A} \cdot \frac{dA}{dx} \cdot \left(F +  \begin{pmatrix} 0 \\ -p  \\ 0 \\ 0  \end{pmatrix} \right) \end{equation}  $\mathbf{S_R}$ is the source term taking into account homogeneous chemical  reaction, friction, heat and mass transfer between gas and solid phase.  \begin{equation} \label{Sr} \mathbf{S_R(F(U))}= \begin{pmatrix} 0 \\ -\frac{F_R}{V}  \\ \frac{q_w}{V} \\ M W_j \cdot \left(\sum\limits_{i}^{R_{hom}} \nu_{i.j} \cdot  \dot{r_i}\right)\end{pmatrix} \end{equation}  \bibliography{reference} \end{document}


YouTube videos reload when I replay them?

When you start a video, there is a light grey bar which indicates the loading of the video. How come when I replay the video (by clicking the 'replay' button or by clicking somewhere random on the horizontal play line), the video will load/buffer again?  It never used to be like this, but recently I've noticed that for some videos, this problem occurs.  I tried on both Chrome and Firefox on Windows 7.


If my passport and Canadian visa expire in July can I still travel in April

I am from Trinidad, my Trinidadian passport and Canadian visa both expire in July. Can I still travel to Canada in April, using both documents?


Under Process Explorer, I noticed that System -- and occasionally Interrupts -- are taking between 5% and 20% CPU constantly, for hours on end. This is resulting in weird video playback problems. (Audio files have 'gaps' and YouTube videos have pauses in them.)  This problem has been happening for a while. Sometimes, a restart fixes it, IIRC. I also recently upgraded to a 1920x1080 monitor... But this shouldn't have any affect on audio. I also just disabled ReadyBoost (which I also got recently).  I killed PeerBlock and uTorrent, and this still continues to happen; previously, killing them was enough to get my CPU back down to ~0%.  My CPU temperature is ~55 C and my HDD is at <40 C.      So it is uTorrent's fault (or PeerBlock or Comodo).


why galaxies look like discs rather than spheres?

Black holes have much gravitation to hold all stars and nebulas but why they are aligned in disc type shapes rather than spheres  because gravitation is everywhere around black holes. Even on upper and lower sides. Even if rotation is the cause why cant they move above black holes  in smaller circles.


How to get rights of admin after I disabled all admin accounts in my computer

I accidentally disabled my admin account.  After I login to another account I found I can not get admin rights, because all admin accounts on my computer are disabled.  I clicked on 'run as administrator' but only see a smart card choice (all the admin accounts are disabled so no choice provided)    I don't want to re-install my OS, help!    Details:  I have account A on my computer.    I got a new computer so I want to give the old one to my mother.    Creating a new user account B for her and disable account A.    Logout and restart.    Successfully login B, now I found I could not get admin rights because no account choice is provided.    More informations about my machine:  OS is Windows 10 and my admin account is a Microsoft Account.  I have an arch-linux installed on my computer and dual-boot it using GRUB, so maybe I can not use safe mode.


Please consider the following MWE:  \documentclass{article}  \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}       \usepackage{xcolor} \usepackage{listings}  \lstdefinestyle{test}{%     language={[latex]TeX},     tabsize=2,     breaklines,     basicstyle=\footnotesize\ttfamily,     texcsstyle=*\color{blue}\bfseries,     keywordstyle=\color{red}\bfseries,     morekeywords={environment},     moretexcs={test},     moredelim=**[is][\color{red}]{@}{@}, }  \lstset{style=test}  \begin{document}  \begin{lstlisting}     \begin{environment}         \test{foo}{bar}     \end{environment}      foo bar \end{lstlisting}  \end{document}   How can I automatically color all text with {}? I tried to add "foo" and "bar" to the list of morekeywords but then they are also colored outside of {}.  The output should look like     I cannot use   \begin{lstlisting}     \begin{environment}         \test{@foo@}{@bar@}     \end{environment}      foo bar \end{lstlisting}   because the in the real usage the content of the listing is automatically rendered and the @ signs would cause compilation error.


Is there a difference between the '&&' and ';' symbols in a standard BASH terminal?

They seem to both signal BASH to commence with another command following the symbols but is there a distinct difference?


In excel, cannot figure out why background color for a cell will not change?

Ok, so I inherited an excel workbook full of excel forms to modify. I am not the original author of the form. I cannot for the life of me figure out why it wont let me change the background color of certain cells.  The form has the cells colored where user input is required. I simply want to change this background color. I am using Excel 2007 on Windows XP, but this form was orginally created with an older version of excel.  Steps taken so far:   Worksheet is unlocked Workbook is unlocked cell is unlocked any attempts to change the background color from (right click 'format cells' and ribbon controls). It looks like it changes it in the settings, but you say ok and it doesn't apply. No VB code that affects the color of cells Cannot not see any data validation that would even affect a cell color. (Maybe I am missing something?)   I do notice that once input is put the cell, the color of the cell will change to white. Is thier some data validation that can change cell color once content is inputed?  Any ideas?


Running exec() inside a loop in Javascript

I am not sure what seems to be the issue but running exec() inside for loop in Javascript(Nodejs, Chrome console, Firefox console) is producing incorrect results. As far as I know, exec() is a synchronous method, called inside a synchronous loop which should produce the expected output.  const FILTER_REGEX = /(\w+)\s+(below|under|lesser than|lower than|above|over|more than|higher than|greater than|equals|equal to|same as|>|<|=)\s+(\d+)/gi; const searchQuery = "Package Quantity > 50000 Date yearly ListPrice above 100"; const filterMatches = searchQuery.match(FILTER_REGEX) || []; for(const filterMatch of filterMatches) {     const filterMatchGroups = FILTER_REGEX.exec(filterMatch);     console.log(`filterMatch: ${filterMatch}, filterMatchGroups: ${filterMatchGroups}`); }   Currently, I am getting the following as output, sometimes filterMatchGroups for first string becomes null and gives filterMatchGroups for second one.  filterMatch: Quantity > 50000, filterMatchGroups: Quantity > 50000,Quantity,>,50000 filterMatch: ListPrice above 100, filterMatchGroups: null


How can I get the list of cross product pairs from a list of arbitrarily long lists in Python?  Example  a = [1, 2, 3] b = [4, 5, 6]   crossproduct(a,b) should yield [[1, 4], [1, 5], [1, 6], ...].


Adding to a pdf file the LaTeX code to generate it

I often make some pdf files (not so long) using LaTeX. I often need to later modify these files and I often can not do this because I lost the tex source file. You will say: "Be more careful!"....  Leaving out jokes, I am thinking of a way of creating a pdf file with included the LaTeX code for generating it, but I don't know how to do it (I do not even know if it is possible). The only thing I can imagine is to save the code in the pdf metadata but I don't know how much space they can occupy and a problem is that I would like also to preserve the spacing of the code (indentation and breakline).  So my questions are:   Do you think using metadata is a good idea? What about the size (disk space) and  the spacing of the code? Have you any other idea to do it?


What radix is this parseInt defaulting to?

I have read in many answers that under circumstances radix in parseInt default to 10.  I don't understand though, why I get the output I do below, where the strings  ["1856", "1857", "1858"]   get parsed as:  [1856, NaN, 1]   I've set up the example below to check how parseInt responds with different radix values. But none seem to match. What am I missing?    const ids = ["1856", "1857", "1858"];  const parsed = Array.from(new Array(20).keys())   .reduce((p, n) => ({     ...p,     [n]: ids.map(x => parseInt(x, n)),   }))  console.log(ids.map(parseInt)) console.log(parsed)


Prove that every prime number greater than 3 is either one more or one less than a multiple of $6$. (Hint: Consider the contrapositive by cases.) I tried  this problem using contrapositive but It is not sure, As I'm new to this subject!! Here what I tried, Firstly I divide this as $P\rightarrow Q$ here, if $\forall p$ such that $p>3$ is prime then $p+1$ or $p-1$ multiple of 6 contrapositive of this statement is $\lnot Q\rightarrow \lnot P$, if $p+1$ is not multiple of 6 and $p-1$ is not multiple of 6 then there is no prime number $p>3$. So I assume $p+1$ is not multiple of 6 and $p-1$ is not multiple of 6 it implies $ p+1=3(mod6)$ and $ p-1=1(mod6)$ $\rightarrow p=2(mod6)$ $ p+1=4(mod6)$ and $ p-1=2(mod6)$ $\rightarrow p=3(mod6)$ $ p+1=5(mod6)$ and $ p-1=3(mod6)$ $\rightarrow p=4(mod6)$ from these three I said there is no prime number $p>3$ Can anyone please tell me is this correct If wrong give me hint to prove!!


How can I avoid soft dull "spots" in my pictures?

Recently, I've been doing a lot more photography, particularly with my 100-400mm telephoto and 16-35mm wide. I am skilled enough that I can capture the shot mostly as I want with just the camera gear, requiring minimal post processing. I'm a huge fan of ETTR now, so most of my shots are overexposed to support more shadow DR and improve the noise performance of my el-chepo 450D body.  I've noticed quite a bit lately during post processing in lightroom that my sky's or any other lighter areas of my shots tend have spots on them. They are soft and dull to one degree or another (seems to depend on the zoom factor), so probably something either on the sensor or the lens. I'm having a hard time figuring out exactly what they are, as I try to use my lens pen brush before any shoot, yet I still have them. I am having to make quite a few healing corrections post-process to get rid of them.  Is there an easy way to identify where the spots are on my lenses? Once identified, if a quick brush of the outer lens element with a lens pen (or soft camel hair brush) doesn't do the trick, does that mean the spots are on my sensor? Is it possible there is particulate inside the lens body (all of my gear is less than a year old outside of my 450D body, and its all Canon L-Series gear, so I would home that I don't already have detrimental particulates floating around inside my lenses messing up my shots. :|)  Here are a couple examples. The spots are harder to see on screen, and I first noticed them when I printed a few of my more recent shots. There are quite a few, and the shot the examples below were taken from, where the sky took up about 30% of the top edge of the photo, there were probably 10-12 different spots, some of them darker, many of them lighter. The darker ones are the ones that are very visible in prints, where as the softer ones are not as visible, but still apparent enough to ruin an expensive print.


Will buying items from the Mann Co. Online Store give me Trading Cards?

The Steam Trading Cards Beta currently states:     What about free to play games like Team Fortress 2 or Dota 2?      Free to play games drop game cards based on your in-game purchasing.   For every $9 USD spent (approximate) since the start of the Steam   Trading Card Beta, you will earn one card drop. This card will drop at   some point as you play. If you have made in-game purchases in Dota 2   or Team Fortress 2 prior to the Steam Trading Card Beta, or if you   owned Team Fortress 2 prior to the Free to Play update, you will have   4 or 5 additional card drops available.   While it only mentions in-game purchases, will buying items from the Mann Co. Online Store count as an "in-game" purchase? I more often use the the Mann Co. Online Store when buying things; I can easily switch tabs to the Wiki and see each item's detail, and that helps me when buying any item.  Essentially, if I purchased $9.00 USD of items from the Mann Co. Online Store, will I get a trading card, or must all purchases be completed via the in-game store?


linux-image-server depends on linux-image-3.2.0-39-generic; however:   Package linux-image-3.2.0-39-generic is not installed. dpkg: error processing linux-image-server (--configure):   dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of linux-server: linux-server depends on linux-image-server (= 3.2.0.39.47); however:   Package linux-image-server is not configured yet. linux-server depends on linux-headers-server (= 3.2.0.39.47); however:   Version of linux-headers-server on system is 3.2.0.40.48. dpkg: error processing linux-server (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.  Errors were encountered while processing:  linux-image-server linux-server  E: Sub-process /usr/bin/dpkg returned an error code (1)     I don't know how to fix this issue. Plz help me. ><


How to change a line of text in a tkinter window every few seconds in python

I am trying to display a random phrase from a dictionary every few seconds in a tkinter window.  I can get the phrase to display by just running a variable into a text box in tkinter, but I can't seem to get that phrase to change in the desired intervals.  So far this is the code that I have.  import time import sys import random import tkinter as tk from tkinter import *    """ DICTIONARY PHRASES """ phrases = ["Phrase1", "Phrase2", "Phrase3"]  def phraserefresh():     while True:         phrase_print = random.choice(phrases)         time.sleep(1)     return phrase_print  phrase = phraserefresh()  # Root is the name of the Tkinter Window. This is important to remember. root=tk.Tk()  # Sets background color to black root.configure(bg="black")  # Removes the window bar at the top creating a truely fullscreen root.wm_attributes('-fullscreen','true') tk.Button(root, text="Quit", bg="black", fg="black", command=lambda root=root:quit(root)).pack()  e = Label(root, text=phrase, fg="white", bg="black", font=("helvetica", 28)) e.pack()   root.mainloop()   The result of running this code is that the tkinter window never opens, as opposed to changing the displayed text. I know I must be over looking something simple but I can't seem to figure out what. Thanks for you help in advance!


I want to build a shell script that runs daily and fethces a file from another server using SCP command.  The problem is that when i enter this command in terminal it asks me for password.   a) How can a shells script enter password?  b) Is it really a good idea to store the password in a shell script?  Command example:  scp -r myUser@myServer:/local/java/log/archive/2018/02/16/log.2018-02-16.gz ~/Temp/


Embed complete fonts (not subsetted) in XeLaTeX PDF

I have an application that requires the use of PDFs with fonts completely embedded. The source is a simple TeX file:  % !TEX encoding = UTF-8 Unicode % !TEX TS-program = XeLaTeX  \documentclass[border=3pt]{standalone}  \usepackage{fontspec}  \setmainfont{Warnock Pro}  \begin{document}  \centering  \hbox to 7in{%     \$[Jobname]%     \hfill     \$[Sig]%     \hfill     \$[SL]%     \hfill     \$[Color]%     \hfill     \$[OutputComment]%     \hfill     \$[Date]% }  \end{document}   The fonts in the resulting PDF are have been subsetted. Based on a question () which received no answer, I tried fiddling with dvipdfmx.cfg to no effect by using:  D  "rungs -q -dNOPAUSE -dBATCH -dEPSCrop -sPAPERSIZE=a0      -sDEVICE=pdfwrite -dCompatibilityLevel=%v      -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode      -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode          -dSubsetFonts=true -dEmbedAllFonts=true -dMaxSubsetPct=100     -dAutoRotatePages=/None -sOutputFile='%o' '%i' -c quit"   I made sure that I was editing the correct file with:  kpsewhich -progname=dvipdfmx -format='other text files' dvipdfmx.cfg   Can this be done?


prove that $n >2$ and $n$ is a prime then $n$ is odd

$n > 2$ and $n$ is a prime number then $n$ is odd.  Prove by contradiction assume $n$ is even then there is some $k\in\Bbb N, n = 2k$ then $n >2, 2k > 2 , k > 1$  Is this  a sufficient proof?


Ubuntu GNOME: Grey screen and very slow boot

On every boot up I get this:    For about 10 seconds (or more) before the "normal" Ubuntu Gnome loading screen and the login screen comes up.  I've read some questions and a bug report about this already, but this problem was dismissed as a minor inconvenience or there were no real solutions (that worked for me). For me, this problem leads to an unacceptable slow boot compared to Ubuntu (Unity) or Windows.  Does anybody know how to fix this or is this a "feature" of Ubuntu Gnome and not a bug?


Children's fantasy book that involved magic based in belief, and scarecrow style protectors

I'm trying to identify this series I read around 15 years ago. It was a fantasy trilogy, the first book had hints of Narnia to it, it started with a girl and her brother being sucked into another world through a portal in their basement (?) that generated alot of wind (the girl may have jumped in after the brother), and there was a mention of airplane models being thrown around. I think not long after she meets the Queen (or similar) of this world and her servant and the girl discovers she has abilities in this world such as being able to conjure a chocolate spread sandwich, however it tastes awful and when she creates it she has to visualise the taste as well. I'm sure the world had some sort of eternal winter deal as well. I can remember very little from this book other than I think the Queen wants the brother for something. I can't remember much of the second other than the brother starts developing some sort of powers, and in the third book he becomes similar to a scarecrow, living on a platform structure being fed by harpy like women while he somehow keeps the world safe. I think there were other children helping with this. This gets a bit confusing now as I was certain the second book had silver in the title and an orange background which fits exactly with "The Silver City" and some of the plot points do match, but not my strongest one which is the way magic worked in the first book (where she had to holistically conjure the whole object), there is a possibility these are two separate series!


I keep on getting the same error:     File "backup.py", line 26   logging.error("Unable to create backup.zip")   IndentationError: unindent does not match any outer indentation level   This is my script:  import sys import os import logging  logging.basicConfig(filename='file_ex.log', level = logging.DEBUG)  logging.info("checking to see if the backup.zip exists")  if os.path.exists("backup.zip"):     logging.info("It exists!") try:     zip_file = zipfile.ZipFile('backup.zip','a') except:     err = sys.exc_info()     logging.error("Unable to open backup.zip in append mode")     logging.error("Error Num: " + str(err[1].args[0]))     logging.error("Error Msg: " = err[1].args[1])     sys.exit()  else:     logging.info("Creating backup.zip") try:    zip_file = zipfile.ZipFile('backup.zip', 'w') except:     err = sys.exc_info()     logging.error("Unable to create backup.zip")     logging.error("Error Num: " + str(err[1].args[0]))     logging.error("Error Msg: " + err[1].args[1])     sys.exit()  else:     logging.info("Creating backup.zip") try:    zip_file = zipfile.ZipFile('backup.zip', 'w') except:     err = sys.exc_info()     logging.error("Unable to create backup.zip")     logging.error("Error Num: " + str(err[1].args[0]))     logging.error("Error Msg: " + err[1].args[1])     logging.info("adding test.txt to backup.zip")  try:     zip_file.write('test.txt', 'test.txt', zipfile.ZIP_DEFLATED) except:     err = sys.exc_info()     logging.error("Unable to open backup.zip in append mode")     logging.error("Error Num: " + str(err[1].args[0]))     logging.error("Error Msg: " = err[1].args[1])     zip_file.close()


Need to remove a specific column in a CSV

Example input:  A0021,,Outside state ambulance serv,I,,0,0,, A4217,,"Sterile water/saline, 500 ml",X,, A4672,,"Drainage ext line, dialysis",X,,   Example output after first sed command   sed -i 's/("[^,])[,]([^"]")/\1\2/g' file.csv :  A0021,,Outside state ambulance serv,I,,0,0,, A4217,,"Sterile water/saline, 500 ml",X,, A4672,,"Drainage ext line dialysis",X,,   Desired output after the last command:  A0021,,,I,,0,0,, A4217,,,X,, A4672,,,X,,   The third column has been giving me issues in a project and the easiest solution is to simply delete it, as it is not necessary. The commas should remain, it should just have empty contents.  I was thinking that I would need to develop a sed command to remove the commas contained within quotes before the command to delete the third column, as I would imagine that the easiest way to do this would be to count the commas and then delete everything between the 2nd and 3rd comma.  this is the sed command I am using the delete the commas inside of the quotes before I proceed with clearing the 3rd column's contents


How can I change the language of the calendar without changing other locales

I want to change the language of the calendar to english, but when I do that through system settings/language/region formats ALL the settings change to the chosen region, including currency, timezone and date format....  How can I change ONLY the LANGUAGE of the calendar without amending any other locales?  I'm running Ubuntu 15.04


Characterize entire functions $f$ such that $|f(z)| \leq |\sin(z)|$

I want to determine all entire functions $f$ such that $|f(z)| \leq |\sin(z)|$. I searched around on MathSEx and I found the following question from which I tried to get inspired but I think it differs substantially from my question:    Here's what I tried. It is not complete I am missing some cases. First if $|f(z)| = |\sin(z)|$ then let $h(z)= \frac{f(z)}{\sin(z)}$. Then $h$ is analytic on $\mathbb{C}\setminus \left\{n \pi,n\in\mathbb Z\right\}$, and we also have that $|h|=1$ on the unit disc $D$. So $\exists c$ such that $h(z)=c$ with $|c|=1$. $h$ is continuous at all $n \pi$, so $h(n\pi)=c.\sin(n\pi)$; so we have that $\exists c$ such that $|c|=1$ and $f(z)=c.\sin(z)$.  Now I need to take care of the case $|f(z)| < |\sin(z)|$ and I don't know what to do. Should I try to apply the Schwarz lemma to this case since we would get $|h|<1$?  Any help or solution is welcomed.


Partial fraction expansion of $\frac{1}{x(x+1)(x+2)\cdots(x+n)}$

I try to find a partial fraction expansion of $\dfrac{1}{\prod_{k=0}^n (x+k)}$ (to calculate its integral). After checking some values of $n$, I noticed that it seems to be true that $\dfrac{n!}{\prod_{k=0}^n (x+k)}=\sum_{k=0}^n\dfrac{(-1)^k{n \choose k}}{x+k}$. However, I can't think of a way to prove it. Can somebody please help me?


I want document in specific database schema style. Like in image. I have tried as much I can do, even I am facing issue.   Why access_log & group_id coming up with indentation (I want all line indented similar) Why text exceeds the page width? I tried with \usepackage[paperwidth=5.5in, paperheight=8.5in]{geometry} , \setlength{\textwidth}{6.5in} but even text content exceed page wdith In access_log, I want to create array as appearing in image. Is it possible? Can I create title as it is Users-schema in image width black strip   Link to Source code with DEMo :   Image:


I have installed ubuntu on my computer, I have almost fixed all the problems it presented and now it works very well, although there are still things to be adjusted, but I would like to take an iso of my system to be able to install on other computers of the same trademarl and model  How can I create my own ISO on a DVD and include the hash?  Thank you


What happens if a cleric chooses a duplicate skill for their class and domain?

I have a player who has chosen to be a Knowledge Cleric.  For class skills, she chose proficiency in History and Insight.   For additional domain skills, she chose proficiency plus expertise in History and Arcana....oops. Now she duplicated History and wasted a skill pick.  She did it this way in order to swap out the regular proficiency History for regular proficiency Perception, and I plan to allow it because that's fun for her, but it provoked the question - what's the RAW/RAI way to handle this?   Is it any different than switching out the skills, tools, or languages from the Background (which is plainly allowed to be customized)? Or should I have required her to limit her Class & Domain skills to the more restrictive Cleric class list?  Note: I have looked at  but since it deals with background and class skills, it does not seem to address my concern. As I look at it, Background and Class skills are two different buckets, and the player has freedom to customize the background bucket. Are the Class & Domain skills similarly different buckets? This is an issue not addressed in the other questions.


Prove that $a_1!\cdots a_k! < n!$ whenever $a_1+\cdots+a_k < n$

Prove that for positive integers $a_1,\dots,a_k$ (where $k\geq 1)$  are such that $a_1+\cdots+a_k < n$ , then $a_1!\cdots a_k! < n!$.   So far, i've tried adding the condition that suppose they were also in increasing order. I've thought about using induction to prove it, but it seems like this is not the right approach to go about this. Without induction, I am struggling to somehow use the fact that:  $$a_1+\cdots+a_k < n \implies (a_1+\cdots+a_k)! < n! $$ and relate $\displaystyle \left(\sum a_i\right)!$ to $\displaystyle \prod a_i!$.  How does one proceed?


How does the Hogwarts management identify if there are Muggle born wizards?

When the Hogwarts management knows that there are children with magical abilities, they are either sent a letter or special messengers are sent.  In the case of Muggle parents, special messengers are sent to explain everything to them. But don’t forget that they will have noticed that there’s something strange about their child for the previous ten years, so it won’t come as a complete bolt from the blue.   We can see that Hagrid paid a visit to Harry Potter, Dumbledore paid a visit to Tom Riddle and Remus Lupin. But how do they identify that there are children with wizarding capabilities in Muggle born and Muggle raised families? What is the process? Are there spies or similar organizations?


Vanishing math font styles in unicode-math due to a mess of mathtools, mathtt and using math fonts with ranges

I’m using TeXLive 2015.  Okay, so I have some sort of poltergeist in the following code. I compile it with either XeLaTeX or LuaLaTeX.  \documentclass{article} \usepackage{     fontspec, %   mathtools,     unicode-math, }  \setmathfont[ %   range = \mathcal, ]{xits-math.otf}  \begin{document}  %   $\mathtt L$     $\mathcal L$  \end{document}   The desired output – when uncommenting all lines – should be:    However, when uncommenting all lines and compiling with xelatex the script ‘L’ is missing. I found out that (re-)commenting out any of the three lines mathtools, range = \mathcal and $\mathtt L$ will restore the script ‘L’. Unfortunately, I have a scenario in which I need all three lines.  Also, compiling with lualatex doesn’t seem to yield any problems.  A similar question is , where  for the unicode-math package has come up. Is that stemming from the same issue or is there something else going on here?


How can I undelete `empty recycle` file(s) in Windows 7?

I accidentally deleted files and emptied the trash bin. :(  Now I want to un-delete those files. Is it possible?


How can I get the sheet name in a cell? (I have more than one sheet, I want to get the current on each sheet)


Why is $P \rightarrow Q$ equivalent to $\lnot P \vee Q$ in propositional logic CNF?

According to , when we compute the CNF of propositional logic, we substitute  $P \rightarrow Q$ with $\lnot P \vee Q$. However, it seems to that when $P$ is False and $Q$ is True, then  $P \rightarrow Q$ is not true but $\lnot P \vee Q$ is true, so those two don't seem equivalent.


Is it possible to get an e-Visa for Vietnam?

There are multiple websites online allowing one to apply for an 'e-Visa' for Vietnam. Are they following the law or is it some sort of a scam?  There is a Vietnamese embassy in my city but it's much easier to do everything online.


Python: Static variable (or, difference between class.some_var and inst.some_var)

I have simple class written  class Test:      stat = 0      def __init__(self):         self.inst = 10      def printa(self):         print Test.stat         print self.inst   Now I've created two object of this class  $ a = Test() $ b = Test()   When I say a.printa() or b.printa() it outputs 0 10 which is understandable.  But when I say   $ a.stat = 2 $ print a.stat   It'll output   2   But when I say a.printa() It'll output   1 10   What's the difference between saying objInstance.staticVar and ClassName.staticVar?? What it is doing internally?


Trend in residuals vs dependent - but not in residuals vs fitted

I am fitting a linear model to a problem, and a little confused by what is going on. Without the details here are the two plots confusing me:  Residuals vs Fitted    Residuals vs Y    Now the residuals vs fitted looks good to me. Fairly evenly dispersed, no clear pattern. However, the $y$ vs fitted do not look good. I would have expected there to also not be a clear trend in this relationship.   This seems basic, but I'm rather lost. I don't want to fit a model that allows large positive errors at high values of $Y$ to make up for large negative errors at low values of $Y$.  Is this just an indication of a poorly fitting model? Or is something else going on here?  EDIT: Asked for fitted vs y (changed to have labels)    EDIT2: Just want to point out that this question has already been asked and answered (albeit in a more abstract sense)  .


I need to move/edit few labels in a job. How can I work on it?  I am using QGIS 1.7.4 and the label option in the toolbar (not the layer options)


Given $f$ be  positive   and   continious  on $[0,1]$. Find    $$L=\lim_{p \rightarrow  0}   \left( \int_{0}^{1} (f(x))^p dx\right)^{1/p}  $$   My attempt  : I thinks  it will be $\max \{ f(x) : x \in [0,1]\}$  Is its  true ?


Bernoulli principle has many applications like airplanes take off etc. But when we apply Bernoulli's principle we dont refer the reference frame in which we measure the velocity of air for example. Same happens with magnus effect. Does Bernoulli's principle (equation) apply for all reference frames?


I don't know how can I imply Fatou's lemma for any measurable sets $A_k$, that is, $$\lambda(\liminf A_k)\le\liminf\lambda(A_k).$$ How can I prove it? And is there any example in $\mathbb R$ of sequence of measurable sets $A_k$ such that $A_k\subset[0,1]$, $\lim\lambda(A_k)=1$, but $\liminf A_k=\varnothing$ ? Thanks for your help!


Given Max has probability p to win each game, compute the expected number of runs* after n games

Max & Denny play n games of Mario Kart. *A run is a consecutive sequence of games that the same player wins, which is not contained in any longer sequence of games that the same player wins.   if "M" means Max won, and "D" means Denny won, then "MMDMMM" has three runs: "MM", "D", and "MMM".  Given Max has probability p to win each game, compute the expected number of runs after n games.     I've been working on some counting and probability problems and can't seem to grasp the process of solving this one, could someone point me in the right direction? This is how I've been trying to approach it:  If you play 1 game, theres p chance that M won. If you play 2 games, theres p^2 chance that M won (1 run), theres a (p)(1-p) chance that M won the first game but Denny won the 2nd.  Thanks for reading this far, and thank you to anyone who can possibly give some insight.


I am trying to install kubuntu into my Arch Linux laptop. The laptop's hard disk is partitioned to 4 parts. It currently uses systemd as bootloader. I'd like to remove my system and install Kubuntu. On selecting the USB option from the boot potions I get:  In legacy BIOS option: A black screen followed directly by Kubuntu live session loading.  In UEFI option: A choce to load Kubuntu live session, install oem(for manufacturers) and inspect disk.  What do I do to install kubuntu?


I'd like to have portions of a texture not glossy

I have a skyscraper building but I only want the glass in the texture to be glossy.  How would I accomplish this?    Ok, I have done a test and here are the results.  Here is the original:   here is an adjusted image


Demonstrate by induction the inequality: $\ln(1+n)\leq\sum_{i=1}^{n}\frac{1}{i}\leq1+\ln(n)$

Kind of stuck in this one. I've tried substracting $$\ln(1+(n+1))\leq\sum_{i=1}^{n}\frac{1}{i}+\frac{1}{n+1}\leq1+\ln(n+1)$$ at the original inequality and applying properties of the logarithms, but then I don't know how to keep going :/


Is the Azimuth on the equator equal to the one not on the equator?

I am trying to fully understand the concept of Azimuth and I am encountering some inconsistencies (or maybe it is my error).  I show you some examples that do not match, hoping somebody can explain me how this really works.  I show the coordinates in EPSG:900913, in PostGIS and using my own JavaScript function.  MY FUNCTION  /* Difference between the two longitudes */ var dLon = lon2 - lon1; /* Y value */ var y = Math.sin(dLon) * Math.cos(lat2); /* X value */ var x = Math.cos(lat1) * Math.sin(lat2) - Math.sin(lat1) * Math.cos(lat2) * Math.cos(dLon); /* Calculates the azimuth between the two points and converts it to degrees */ var angle = Math.atan2(y, x) / Math.PI * 180;   EXAMPLES  /* Same Y, not on the equator */ Point A: (-81328.998084106, 7474929.8690234) Point B: (4125765.0381464, 7474929.8690234) Result in PostGIS: 90 degrees Result in my JS function: 74.232 degrees  /* Same Y, on the equator */ Point A: (-81328.998084106, 0) Point B: (4125765.0381464, 0) Result in PostGIS: 90 degrees Result in my JS function: 90 degrees   I understand, that on the equator, the Azimuth is 90 (or 270) for a horizontal line.  think that if you draw a horizontal line a bit North (or South) of the equator, then the Azimuth is not 90 degrees anymore. But... PostGIS tells me that it is always 90 degrees when we have the same Y.  Additionally, this  also show that the Azimuths of horizontal lines are not 90 degrees when Y != 0 (not on the equator).  How is it correct?  Thanks


What visa do I need for a stopover in Amsterdam?

I am travelling from London to Bangalore, with a layover in Amsterdam of 23 hours. What visa or permission do I need to get so I can use this time to roam around Amsterdam?  I am a citizen of India and I have a UK visa.


Why is a-symmetric so much harder to compute and why does it need such big keys?

I read that a symmetric encryption requires a way bigger key size to have the same security as symmetric encryption with smaller keys. But why is this, and why is it so much harder to compute?


Weird and hard-to-find actual place of null pointer in the lambda expression

I've this code where two lists are compared on the "vendor_id" field and I perform join on them. However this line is throwing NPE. I tried guarding with null but it doesn't seem to help. public List<PGRatingResponse> collatePGRatingsbyVendor(List<PGRatingConfig> pgRatingSansPgname, List<Vendor> vendors) {     return                 pgRatingSansPgname.stream().map(o1 -> {                     vendors.stream()                             .filter(o2 -> o2.getVendorId().equals(o1.getVendorId()))                             .findAny();                      return new PGRatingResponse(                         o1.getVendorId(),                          vendors.stream()                             .filter(o ->                                 o.getVendorId().equals(o1.getVendorId())                                 && o.getVendorId()!=null)                             .findFirst()                             .get()                             .getVendorName(),                          o1.getRating()                            .stream().map(o ->                                 new RatingResponse(                                    pgLookupTable().getOrDefault(                                       o.getPgId()==null?"":o.getPgId(),                                        "Default"),                                     o.getPgId()==null?"":o.getPgId(),                                     o.getValue()))                            .collect(Collectors.toList()));                  }).collect(Collectors.toList()); }  The inner return statement in the lambda expression is the line number where the stack trace points to. I'm still getting this exception: java.lang.NullPointerException] with error Id, error code and message [[com.service.configuration.PGRatingConfigService.lambda$collatePGRatingsbyVendor$2(PGRatingConfigService.java:50),java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195), java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655), java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484), java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474), java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913), java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234), java.base even when I made changes to this line: return new PGRatingResponse(o1.getVendorId(), "Default",/*vendors.stream().filter(o -> o.getVendorId()!=null && o.getVendorId().equals(o1.getVendorId())).findFirst().get().getVendorName(),*/ o1.getRating().stream().map(o -> new RatingResponse(pgLookupTable().getOrDefault(o.getPgId()==null?"":o.getPgId(), "Default"), o.getPgId()==null?"":o.getPgId(), o.getValue()==null?0.0:o.getValue())).collect(Collectors.toList()));


General Information about Eigenvalues for an 3x3 symmetric matrix

How do we find general information about the eigenvalues of an arbitrary 3x3 symmetric matrix without resorting to explicitly computing the solutions to the cubic characteristic equation?:  \begin{bmatrix}     a   & b & c  \\     b    & d & e \\     c & e &f \end{bmatrix}  (In this case the sum and product of the eigenvalues, and the sum of the reciprocals of the eigenvalues.) Since diagonalization preserves the trace and determinant of matrices, would it be best to just find the corresponding diagonal matrix and read off the sum and product of the eigenvalues from there? The problem is I can't think of a way to diagonalize a matrix without explicitly computing the eigenvalues.


Solve $x^2+5x+6 \equiv 0 \pmod{\!11\cdot 17}$

Solve $x^2+5x+6 \equiv 187 \mod 187$ Solution $$x^2+5x+6 \equiv 187 \mod 187$$ $$ (x+\frac{5}{2})^2 \equiv \frac{1}{4}$$ $$ 4(x+\frac{5}{2})^2 \equiv 1$$ $$ y:= x+\frac{5}{2} $$ $$ 4y^2 \equiv 1 \mod 11 \wedge 4y^2 \equiv 1 \mod 17  $$ $$ ( 2y \equiv 1 \mod 11 \vee 2y \equiv 10 \mod 11 ) \wedge ( 2y \equiv 1 \mod 17  \vee 2y \equiv 13 \mod 17)  $$ $$ ( y \equiv 6 \mod 11 \vee y \equiv 5 \mod 11 ) \wedge ( y \equiv 9 \mod 17  \vee y \equiv 15 \mod 17)  $$ Combining that from CRT I got: $$ y \in \left\{49, 60,83,94 \right\} $$ and for example: $$ x+\frac{5}{2}  \equiv 94 \mod 187$$ $$ 2x  \equiv 183 \mod 187$$ some calculus and get... $$x \equiv 185 $$ And the same thing for each other case. Question Is there any faster (or smarter) way to solve equations like that?


Starting a question with 'Could you' vs. 'Can you'?

What is the proper word to use when asking the question below:     Could you please send your mobile number?    or     Can you please send your mobile number?   Is one of those better than the other for some reason? Or are they about the same?


Why does this snippet display the answer as 6?

A classmate of mine asked this question, and I wanted to be sure that I was telling him the correct answer.  Essentially the code below (which does indeed display "6" as the answer) confused him when it got to MessageBox.Show((i--).ToString());.    My explanation was that the decrement operation (i--) isn't actually taking place, since it is being passed to the .Show method of the MessageBox object.  So it displays 6 because it's not actually reducing that value by 1.    Is this the correct explanation?  I've never tried to throw inc/dec operations while also displaying values at the same time, so I'm not sure if my reasoning on this is correct.  Thanks!          int i = 6;            // I starts as 6...         if (i >=4 )           // Then the check to see if i >= 4 is TRUE...         {             if( i == 5)       // The check to see if i == 5 is FALSE...             {                 MessageBox.Show(i.ToString());              }             else             {                 MessageBox.Show((i--).ToString());  // ****             }         }         else          {              MessageBox.Show((i++).ToString());         }


Is there windows equivalent to the .bashrc file in linux?

Just discovered doskey emacs=emacs -nw $*, but without something like .bashrc, I'll have to type that every time I start a shell, right?


I've been working on a proof of the irrationality of $e$. I was thinking that this would move in a similar routine to proving that the square root of a prime number is irrational, but I think that routine might be a little overdone. I want to try and prove it in a manner that deals with the expansion of $e = \frac{1}{0!} + \frac{1}{1!} + \frac{1}{2!} + ...  = \sum_{i=0}^{\infty} \frac{1}{n!}.$ If I assume this sum is rational, will I run into some contradictory properties related to the sum of an infinite series?


Is there an easy path to visualizing LIDAR data in QGIS?  I have some USGS LIDAR data in .las format downloaded from . This means I have both the .las and metadata in .xml format. I am aware , but not how to apply it to this task. I am running on Ubuntu 11.04 with QGIS 1.7.0-Wroclaw.  A similar question for ArcGIS is:  . I just need to get a sense of this data and the registration. Conversion to a DEM would be OK if I can visualize it.


decorator - Setting a wrapped functions argument names and values

Is it possible to give a wrapped function the arg and kwargs names of the function it is wrapping? I need to do this because decorators that are applied later use the arg names of the underlying function.  def wrapper(func):     def wrapped(<func args and kwargs names and values>):         return func(*args, **kwargs)   So if the func been passed in was foo(x,y=3), the returned wrapped function would have the signature wrapped(x, y=3) instead of the usual wrapped(*args, **kwargs).  --Edit--  Just found that this is a duplicate of  . Thanks for the answers anyway


Is there a way to reduce the size of the spines poking out of bezier curves?   Or is there a way to generate smaller bezier curves with smaller spines?


How can I pass jQuery selector from one function to another?  Does it work like passing variables from one function to another?  i.e:    function hasSelector(){   var items = $('#item1, #item2, #item3');   return items; }  function useSelector(){   //var items = $('#item1, #item2, #item3');   //items.on('click'...);      hasSelector().on('click', function(){     alert(items);   )}; }      Edit: Thanks to some clarifications in comments I've decided to change hasSelector() into object (I had to pass parameter aswell which i forgot to mention here. Nonetheless I've still used a function.)    var hasSelector = {   items : function(){     return $('#item1, #item2, #item3');   } }  function useSelector(){    hasSelector.items().on('click', function(){     alert(hasSelector.items(this));   }); }  useSelector();
Item 1

Item 2

Item 3
 //returning [obj Obj] since I'm calling on all 3 items at once.


Cannot get Jasper Reports to work - Getting java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JasperCompileManager

I am trying to get Jasper Reports to work, but I have been getting the following error:  Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JasperCompileManager         at com.suhail.main.JasperCSVDataSource.start(JasperCSVDataSource.java:21)         at com.suhail.main.CommandLineRunner.main(CommandLineRunner.java:8) Caused by: java.lang.ClassNotFoundException: net.sf.jasperreports.engine.JasperCompileManager         at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)         at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)         ... 2 more   I cannot understand the reason for this. Here is how my project hierarchy looks like:    The class CommandLineRunner is the main class which invokes JasperCSVDataSource.   Here is my how CommandLineRunner class looks like:  package com.zetcode.main;  public class CommandLineRunner {      public static void main(String[] args) throws Exception {          JasperCSVDataSource app = new JasperCSVDataSource();         app.start();     } }   and the class JasperCSVDataSource that results in an error is:  package com.zetcode.main;  import java.util.HashMap; import java.util.Map;  import net.sf.jasperreports.engine.*;  public class JasperCSVDataSource {      public void start() throws JRException {         try {             System.out.println("In here!");             String xmlFile = "src/main/resources/report2.xml";             JasperReport report = JasperCompileManager.compileReport(xmlFile);              String[] columnNames = new String[] {"Name", "Quantity"};               String fileName = "src/main/resources/items.csv";              JRCsvDataSource ds = new JRCsvDataSource(fileName);              ds.setColumnNames(columnNames);               Map parameters = new HashMap();               JasperPrint jprint = JasperFillManager.fillReport(report, parameters, ds);               JasperExportManager.exportReportToPdfFile(jprint,                      "src/main/resources/report2.pdf");         }catch(Exception e) {             System.out.println("Error!!");             System.err.println(e);         }     } }   The pom.xml looks as follows:      <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0                              http://maven.apache.org/xsd/maven-4.0.0.xsd">      <modelVersion>4.0.0</modelVersion>     <groupId>com.zetcode</groupId>     <artifactId>JasperCSVDataSource</artifactId>     <version>1.0-SNAPSHOT</version>     <packaging>jar</packaging>     <properties>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>         <maven.compiler.source>1.8</maven.compiler.source>         <maven.compiler.target>1.8</maven.compiler.target>     </properties>      <dependencies>          <dependency>             <groupId>net.sf.jasperreports</groupId>             <artifactId>jasperreports</artifactId>             <version>6.8.0</version>         </dependency>      </dependencies>      </project>   To run the code, I do the following:  mvn dependency:build-classpath cd target/classes java com/zetcode/main/CommandLineRunner   What is it that I am doing incorrect?


Semisimplicity is equivalent to each simple left module is projective?

As it is well-known, a ring with unity $R$ is semisimple if and only if each left $R$-module is projective. My question:      Is semisimplicity of $R$ equivalent to each simple left $R$-module being projective?    I think it is true for a finite dimensional algebra $R$. But, in general, I could not reach any conclusion. Any help would be thanked!


How to create a minimal repository of needed tested packages?

What is the best way to create a local repository of packages that are needed to operate an own application? Currently all packages were synced and the versions are frozen. What is the best way to get only new packages (that have to be tested) that are needed in order to avoid testing all?


Prove that the limit of the function a sequence is the same as the function of the limit of the sequence

Assume that $\lim_{n\to \infty}a_n=a.$  Suppose that the function $f$ is continuous everywhere including at $a$.  Form the sequence $(f(a_n))_{n=1}^{\infty}$. Prove that $\lim_{n\to \infty}f(a_n)=f(\lim_{n\to \infty}a_n).$  So show $\lim_{n\to \infty}f(a_n)=f(a).$  Help me, I am lost on how to even begin.


Question regarding the LM7810 voltage regulator

Is there a simple way I can hook up this regulator to reduce the maximum output current from the 1A rating down to a 500mA maximum output without affecting the 10vdc output?


Conflicting measurement units with buffer ftools

I am new to qgis and I would like to create a buffer around point features.  My goal is to create a quarter mile buffer (402.336m) around each point feature, using Geoprocessing Tools -> Buffer(s), setting the buffer distance and exporting. The process creates what appears to be a massive polygon. However when I use '.05' as the distance buffers appear around each point.   I assumed this happened because the measurement units are not correct. I verified the project projection (NAD83 OH/South). Then I checked the Measure Tool via Options -> Map Tools. Te ellipsoid for distance calculations set at WGS 84 and the Preferred Measurement Units is set to 'meters'  I have set up 'on the fly' projections  How do I solve the mystery of this buffer problem?  Setup: qgis 1.7, Ubuntu 11.04


How can I control a sequence of outputs via a single input?

Ok, so I'm making a map which needs a level system.  By level system I mean:   Push the button first time,output A lights up. Push the button second time,output B lights up. Push the button third time,output C lights up. And so on.   Essentially, each button press makes the next output in the sequence activate.


Can I extract and save background of a png image in photoshop?

I have an image that was sent to me as a png file that I can't display here because it's for a client.   It has a background image--a design--with text and another image layered above it. I need to extract the background and use it on a web page. The .psd file is unavailable.  Can I extract the background image of this png file in photoshop and save it?  Thank you


How can I highlight selected text in a cell and not the whole cell?

In my Google Spreadsheet, I have a lot of text in a cell and want to highlight a small portion of this text with a particular colour.  But, whenever I try to do this, the formatting gets applied to the entire contents of the cell. Are there any settings to enable formatting for partial cell contents?  According to a discussion on , this feature was not available back then (till 2009). Has this feature been implemented yet or is not possible to do this at all in Google Spreadsheets?


I have just moved phones to an HTC one X from a Desire 510. Pokémon GO works fine on it but it has given me a new level 1 account. How can I get back into my old one? When I sign in with google, it just goes straight in without asking me which account I want to use.


What is an example of a radical of sum of ideals not being equal to the sum of radicals?

What is an example of the radical of a sum of ideals not equal to sum of the radical of the ideals?


df shows bad information on partition usage

I've tried to deal with this for days now with no luck. In this forum and also in other ones I can see a lot of discussion about this but none of the solutions have worked for me.  My current situation is that I've got some GBs "missing" that I can't free or find anywhere. I guess this is some kind of problem like memory leaks that only get fixed when rebooting, but I just would like to ask if someone has a better idea because there are currently a few customers on that server.  Here are some of the commands I've seen in other threads and my particular outputs:  df -h  Filesystem            Size  Used Avail Use% Mounted on /dev/sda1              19G   16G  1.8G  90% / tmpfs                 384M     0  384M   0% /lib/init/rw udev                   10M  1.2M  8.9M  12% /dev tmpfs                 384M     0  384M   0% /dev/shm   du -Pshx /* 2>/dev/null  4.8M    /bin 27M /boot 0   /cdrom 1.2M    /dev 8.8M    /emul 504M    /etc 4.0K    /grubconf 88K /home 60K /images 0   /initrd.img 147M    /lib 0   /lib32 0   /lib64 16K /lost+found 12K /media 4.0K    /mnt 4.4M    /opt 777M    /proc 57M /root 4.7M    /sbin 4.0K    /selinux 4.0K    /srv 0   /sys 4.0K    /tmp 332M    /usr 471M    /var 0   /vmlinuz   lsof +L1  (no output)   lsof | grep -i delete  (no output)   find / -size +50000 -exec ls -lah {} +;  -r-------- 1 root    root 777M 2015-07-21 06:19 /proc/kcore -rw------- 1 root    root  64M 2015-07-09 03:31 /sys/devices/pci0000:00/0000:00:06.0/0000:01:04.0/resource0 -rw-r----- 1 root    adm   49M 2015-07-21 06:19 /var/log/auth.log -rw-r----- 1 root    adm  174M 2015-07-19 06:25 /var/log/auth.log.1 -rw-rw---- 1 control mail 100M 2015-07-21 06:00 /var/mail/control   If you make the maths from du, for example, you get a few GBs, but nothing close to 16GB.  / is ext3.  OS is Debian 6.0  is there anything am I missing here?


How to block an Internal IP address talking to an external IP Address on Cisco ASA 5505

I want to block my server talking to an external IP address continously.  The IP address in question is I think is being hijacked or spoofed. When Used who.is it resolves to Netherlands. But if you use any other tools it resolves to Jordan.  Any step by step configuration is highly appreciated.  Thank you Kind Regards N


I would like to know what is the difference. Currently I am learning this stuff and it seems to me like these are just the same:  delegate void X();  X instanceOfX;  instanceOfX = delegate() { code };  instanceOfX = () => { code };   Also if the lambda are newer, should I just use lambda and forget on anonymous methods?


I was just wondering, does the infinite monkey theorem also has a proof? And why is this called a theorem? It is sheer common sense. And what are its applications. I have heard about PHP and IEP and I also know that they are pretty useful. But what is the use of this and what is its proof?


Is there an idiom available, that is exactly opposite to "Cake walk" or "Child's play"? I am looking for something exactly synonymous with "Very difficult" or "strenuous".   Example Sentence:      This task is really _______(difficult).


Adding a letter to the x-axis ticks of pgfplots graph of function

I'm new to stack exchange, so please let me know if there is anything I should do to make my question more clear. I'm new to LaTeX, and I am trying to make a graph of the equation  from special relativity.  I want my y-axis to be gamma and my x-axis to be the velocity, v. I have my graph (picture below), but I just want to do one more thing.  When I graphed the function, I used 1/(1-x^2) as my function (basically, x acts as v/c) so the max value would be 1, which would represent 1c (the speed of light).  How do I add $c$ to each of the numbers on the x-axis? For example, how do I turn 0.2 into 0.2c? I have seen other questions like this, but they are graphing data, not functions, so the code doesn't work for my graph.  If possible, I'd like to not have to enter the equation as a data set; I want to keep it as a function.  Thank you in advance! Also, here is my current code for the graph (please let me know if something can be improved): \begin{tikzpicture}     \begin{axis}[scaled y ticks=false, xlabel=$v$, ylabel=$\gamma$, ymax=5]         \addplot[domain=0:1,samples=1000] {1/sqrt(1-x^2)};     \end{axis} \end{tikzpicture}  My current graph:


Getting broken hero swords in Terraria mobile

Is there any way to get broken hero swords easier, or multiply them


How do I negotiate an offer for Ph.D. funding?

I've received an offer for admission next year. I would very much like to accept the offer, but I'm not sure the 50% TA position will be enough to cover the costs of commuting and an apartment near the university.  During the interviews last weekend, one of my likely advisors stressed the point that when an offer was made (they didn't come out and tell me then, but were very clear that my chances were good) it would be negotiable, but he didn't elaborate and I didn't feel comfortable asking what he meant.  How should I broach the subject of receiving more funding without coming across as ungrateful, and is there any way to know what kinds of additional aid the university might have available?


Twist an object along multiple axes like a roller coaster path

I have imported a prefab from unity that looks like this.    It is a track for a roller coaster.  I want to twist it about the axis in between them such that it forms a roller coaster path like this.   I can't figure out how to twist it, both along its own axis, and also along another axis such that it forms a loop, as shown in the roller coaster figure. I thought that making a parent empty object (Plane Axes) and twisting it would solve the problem, but the Empty object doesn't seem to have modifiers, so I can't even add a twist to that object.


Parameter value changes unwantedly in Async programming - C#

I am doing async programming with C# and I pass the loop counter 'i' as a parameter inside the Run method of Task to run it it asynchronously. Everything works fine except that the loop counter 'i' inside each task is updated whenever it is incremented in the caller. In other words, the 'i' does not keep its value and I am not sure how to fix that.   //A queue for all the tasks var tasks = new BlockingCollection<Task<ResultWrapper>>(); for (int i = 1; i <= 10; i++) {        Console.WriteLine("frame: " + i);     //Grab a frame     Bitmap frame = reader.ReadVideoFrame(i);      //Add the frames to the queue and run them asynchronously     tasks.Add(Task.Run(() => RequestAnalysis(projectId, endpoint, frame, i)));  }   And here is the code for RequestAnalysis() function:  private static ResultWrapper RequestAnalysis(Guid projectId, PredictionEndpoint endpoint, Bitmap frame, int i) {     Console.WriteLine("Frame {0} task is running", i);     //some other stuff here... }   Here is a sample output:  frame: 1 frame: 2 frame: 3 frame: 4 frame: 5 Frame 3 task is running Frame 3 task is running frame: 6 Frame 4 task is running frame: 7 frame: 8 frame: 9 Frame 5 task is running frame: 10 Frame 11 task is running Frame 11 task is running Frame 11 task is running Frame 11 task is running Frame 11 task is running Frame 11 task is running   But I expect it to be something like this:  frame: 1 frame: 2 frame: 3 frame: 4 frame: 5 Frame 1 task is running Frame 2 task is running frame: 6 Frame 3 task is running frame: 7 frame: 8 frame: 9 Frame 4 task is running frame: 10 Frame 5 task is running Frame 6 task is running Frame 7 task is running Frame 8 task is running Frame 9 task is running Frame 10 task is running   I would appreciate any help. I am new to C# and I am not sure what I am missing.  Thanks.


What items can a Thief use as a bonus action with his Fast Hands?

At 3rd level, the Thief archetype for rogues grants a feature called Fast Hands that allows:  [...] the bonus action granted by your Cunning Action to make a Dexterity (Sleight of Hand) check, use your thieves' tools to disarm a trap or open a lock, or take the Use an Object action. Player's Handbook p. 97  The following items all require the use of an action in their descriptions:  Acid Alchemist's Fire Ball Bearings Caltrops Climber's Kit Healer's Kit Holy Water Hunting Trap Lantern, Hooded Oil Poison, Basic Potion of Healing Tinderbox  Magic items are called out specifically as being incompatible with the Fast Hands feature:  If an item requires an action to activate, that action isn't a function of the Use an Object action, so a feature such as the rogue's Fast Hands can't be used to activate the item. Dungeon Master's Guide p. 141  And potions are magic items, as indicated by the italic text in the Player's Handbook and their position in the Dungeon Master's Guide's magic item treasure section. So can all nonmagical items that require an action for use be used, or do items that require an attack roll (acid, alchemist's fire, holy water, etc.) not qualify?


Why do Windows and Linux leave 1MiB unused before first partition?

When partitioning from scratch a USB Flash drive (8GB or larger) under Windows (diskpart) or Linux (gparted, fdisk) as Master Boot Record with a single partition, that partition usually starts at byte 1048576 (1MiB). To non-destructively display that value under Windows try (lowercase characters optional)  DISKPART LISt DISk SELect DISk !      (use appropriate disk number) SELect PARtition 1 DETail PARtition   (among other things, tells where the partition starts) EXIt   The value is down to 65536 (64kIB) for 1GB to 4GB drives. Under diskpart, the (DESTRUCTIVE) CLEan then CREate PARtition PRImary OFFSET=32 is supposed to reduce that to 32kiB, but instead is silently ignored if below the minimum value diskpart wants (1024 or 64 depending on drive). Lower values cause an error.  When partitioning under OS X (Disk Utility) and asking for MBR, one gets the first partition at 1024 (1kiB). That's about 1MiB more usable space (for an 8GB drive). I have not found any drawback.  Granted, that habit of Windows and Linux partitioning tools looses at most 0.012% of the space. But: what is the rationale?


Prove $|A.B|=|A|.|B|$ using matrix algebra

How to prove that the determinant of the product of matrices is equal to product of their respective determinants ?.ie,     $$ |A.B|=|A|.|B| $$   where $A,B$ are square matrices of the same order.   I have no clue of where to start, I just know the following  $$ |A|I=A(adj A)=(adj A)A $$ Note: I have checked a similar problem at  which gives a combinatorial proof of the statement which is kinda cumbersome by the use of Combinatorics in a matrix problem. So I hope its worth asking for an alternative proof using only the properties of matrices.


Low Quality Posts reviews add comments more than once on behalf of reviewer

came in Low Quality Posts review which was  as "This is commentary on another post, not an answer" by *. But the comment was added 5 times automatically on behalf of that user.        First four comments' time is 2013-07-15 10:23:18Z while the last one's time is 2013-07-15 10:23:19Z. Those comments are still exist. 10K+ users can see that.  Is this a bug or something else?  * Because the comment is added on behalf of that user.


Disable automatically calculation on a single sheet in Google Sheets

I would like to disable automatic calculation on a single Google sheet and then have a trigger, either by button or through some implementation of scripts, inserting a column, etc that will allow me to easily recalculate the entire sheet at will, but not automatically.


References are not appearing in the correct order

I'm writing my thesis with the following format: My problem is that the references are not appearing in the correct, I'm having my first ref to be cited as 11 instead of 1! Although in the bibliography at the end it is shown in the correct order..  \documentclass[letter, onecolumn, 12pt] {report} \usepackage{setspace} \usepackage[numbers,sort&compress]{natbib} \usepackage{algorithm2e} \usepackage{multirow} \usepackage{float} \newtheorem{lemma}{Lemma}  \newtheorem{prob}{Problem} \newtheorem{corollary}{Corollary} \newtheorem{question}{Question} \newtheorem{conjecture}{Conjecture}  \newenvironment{proof}{{\bf Proof.}}{\hfill\rule{2mm}{2mm}}  \newenvironment{remark}{\begin{remarka}\rm}{\end{remarka}}  \newtheorem{axiom}{Axiom}[section] \newtheorem{defn}{Definition}[section] \newtheorem{thm}{Theorem}[section] \newtheorem{rem}{Remark}[section] \newtheorem{prop}[thm]{Proposition} \input{head.tex} \begin{document} \onehalfspacing \maketitlepage  \pagenumbering{roman}  \setlength{\parskip}{.25cm}   EVERYTHING GOES HERE THE ABSTRACT AND CHAPTERS   \bibliographystyle{ieeetr} \bibliography{JETCAS_2014_v2} \end{document}


confidence intervals for predicted values in linear regression

I have made this linear regression model:  mtcars_lm <- lm(mpg ~ drat + hp, mtcars)   Using the effects package, I can predict values of mpg for every value of hp between 70 and 150, plus get a confidence interval for each value of mpg:  library(effects) as.data.frame(effect("hp", mtcars_lm, xlevels = list(hp=seq(70, 150, 10))))     hp      fit        se    lower    upper 1  70 24.06201 0.9066002 22.20781 25.91622 2  80 23.54415 0.8355302 21.83530 25.25300 3  90 23.02628 0.7691351 21.45322 24.59934 4 100 22.50841 0.7087300 21.05890 23.95793 5 110 21.99055 0.6559716 20.64894 23.33216 6 120 21.47268 0.6128381 20.21929 22.72608 7 130 20.95481 0.5814753 19.76556 22.14407 8 140 20.43695 0.5638509 19.28374 21.59015 9 150 19.91908 0.5612604 18.77118 21.06699   And I can plot the result:  plot(effect("hp", mtcars_lm, xlevels = list(hp=seq(70, 150, 10))))     My question is: what is the maths behind the calculation of the standard error and confidence interval for every value of mpg?


Subset polygon data of SpatialPolygonsDataFrame by Distance to a Set of Coordinates in R?

I am learning and I made a very similar question when I hadn't learnt what a Spatial Polygons Data Frame was about 10 days ago: .  Now, I have discovered the magic of SPDF and choropleth maps and have in essence the same question but with different types of files. I am still wrapping my head around S4 objects and I can't figure out how to subset certain mini-polygons MUNICIPI from my data set.  To the point!  Context: I have a SPDF that contains these data:   Aim:  I would like to subset all MUNICIPI that are within a certain distance from the coast, clear data for the rest of the MUNICIPI and just work with the my new subset yet plotting the entire geometry.  A choropleth map of what I want   Let's say 20km as @urbandatascientist set in his answer to my first question and create a choropleth map of, for example, upper_trees with the subsetted MUNICIPI.  From the  post I also have the list.of.polygon.boundaries that we'll substract MUNICIPI coordinates from.  .   Once I subset the coastal MUNICIPI, I'm hoping the map will look   I have also tried to make sure that coordinates are in the same between list.of.polygon.boundaries.  So far, here's my chloropleth map for the entire region using upper_trees as an example:  tm_shape(catasense2)+   tm_fill(col="upper_trees",n=8,style="quantile")+     tm_layout(legend.outside =TRUE)


The information is good coming in. I debug it and get to the first writer and get a null exception, it is probably something very simple any comments and help would be appreciated.  public Json writeGame(Ship ship, Array<EnemyPlanes> enemyPlanesArray,                           FinalEnemy finalEnemy,int Level, int Difficulty){         Json json = new Json();         json.writeValue("Level", Level);         json.writeValue("Difficulty", Difficulty);         json.writeObjectStart(Ship.class,null);         json.writeField(ship.position.x, "X", float.class);         json.writeField(ship.position.y, "Y", float.class);         json.writeField(ship.hits, "Hits", int.class);         json.writeField(ship.missiles_OnBoard, "Missiles", int.class);         json.writeField(Constants.PLANE_MISSILES_ALLOWED, "Max Missiles", int.class);         json.writeField(Constants.PLANE_BULLETS_ALLOWED, "Max Bullets", int.class);         json.writeObjectEnd();          return json;     }   The stack trace is as follows:  Exception in thread "LWJGL Application" java.lang.NullPointerException     at com.badlogic.gdx.utils.Json.writeValue(Json.java:376)     at com.howlers.areoplanewars.game.Management.GameSave.writeGame(GameSave.java:85)     at com.howlers.areoplanewars.game.Stages.GameStage.(GameStage.java:103)     at com.howlers.areoplanewars.game.Screens.GameScreen.(GameScreen.java:23)     at com.howlers.areoplanewars.game.AreoplaneWars.create(AreoplaneWars.java:50)     at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:147)     at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)  This line is the problem, which means it is all a problem:  json.writeValue("Level", Level);


What happens to momentum when a car crashes into a barrier?

The law of conservation of momentum states that the total momentum in a closed system is conserved.   When a car crashes into a barrier, the barrier and the car may crumple but the car will come to a stop. How exactly is the initial momentum of the car conserved?


i try to get name by id. I have this model. public class Category() {   public int Id { get; set; }   public string Name { get; set; }   public int ParentId { get; set; } }  I want to see the id, the category name, and the subcategory name relative to parentId in the view, but I don't know how to do it.


Problem in Solving an Equation in Quantum Mechanics

I am trying to reproduce this paper :   But, somehow I am stuck at equation (7). The equation that I am trying to solve for particle outside the well is : (1/g)*(g'') + (1/(r*g))*g' - (k_o)^2 = 0  where g = Radial wave function. r = Distance from origin.   The solution I arrived at is : A*J_0(i*k_o*r) + B*Y_0(i*k_o*r) where J ,Y are Bessel functions of first kind of order zero & second kind of order zero respectively.   My queries are : 1.) How can I reduce the solution in the form of equation (7) , i.e. , Psi = A*e^(-k_o*r) / (r^0.5) ?  2.) Am I solving the correct differential equation?


Questions about $f: \mathbb{R} \rightarrow \mathbb{R}$ with bounded derivative

I came across a problem that says:  Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be a function. If $|f'|$ is bounded, then which of the following option(s) is/are true?     (a) The function $f$ is bounded.   (b) The limit $\lim_{x\to\infty}f(x)$ exists.   (c) The function $f$ is uniformly continuous.   (d) The set $\{x \mid f(x)=0\}$ is compact.   I am stuck on this problem. Please help. Thanks in advance for your time.


How to center figures at the top of the slide in LaTeX-Beamer

Using the 'Beamer'-documentclass, I have included several figures on different slides. I want all of these figures to be located at the same spot. Of course they differ in size, but I want them to start at the same top-line. For some reason the [t] - specification of the figure-environment doesn't seem to do the job. I am using both .tikz-figures and .png and .jpg - figures. Possibly the .png and .jpg - figures have some white background colour which is also filling the top of the figures ( I hope you know what I am talking about). But the difference shouldn't be that big.   \begin{frame}{Characteristics} \begin{figure}[t] \centering \input{pic/input_output} \caption{characteristics.} \end{figure} \end{frame}  \begin{frame}{Intermodulation} \begin{figure}[t] \centering \includegraphics[width=100mm]{pic/intermodulation.jpg} \caption{Intermodulation.} \end{figure} \end{frame}


Getting nullpointer when hide androic activity control form fragment class

i want to hide my layout which is in activity class and its visibilty handle in fragmetn class below is my code  Myfragment.java  Tags.mStringVarientSoldOut="yes"; ActivityDetailTest site = new ActivityDetailTest(); site.isSoldOut();   ActivityDetailTest.java  mLinearLayoutBottom is already declared in my onCreate() method of activity class  public void isSoldOut() {       if (Tags.mStringVarientSoldOut.equalsIgnoreCase("yes"))     {         mLinearLayoutBottom.setVisibility(View.GONE);     }     else     {         mLinearLayoutBottom.setVisibility(View.VISIBLE);     } }   when I run above code i m getting nullpointer error at line             mLinearLayoutBottom.setVisibility(View.GONE); any idea how can i solve this? your all suggestions are appreciable


Software Engineering UML modeling Tool For Ubuntu

I need UML modeling tool for Ubuntu such as . I need to design Sequences, Activity, UseCases for My Projects.


why the code adding 3 to all the lists ? lists = [[]] * 3 print(lists) print(lists[0]) lists[0].append(3) lists

why the code adding the 3 to all the lists inside a list ? i tried this in python lists = [[]] * 3  print(lists)    print(lists[0])  lists[0].append(3)  print(lists)  output for this code is : [[], [], []] [] [[3], [3], [3]]  Thanks in advance


Can I ever go wrong if I keep thinking of derivatives as ratios?

I have been forewarned about it, I have read the  here, but I haven't seen a counter example where it doesn't work. I know that it isnt really a fraction, but does it effectively get the same result in all cases, or are there counterexamples I must be warned about.   I do not mean obvious counter examples, like $$\frac{dy}{dx}+\frac{du}{dv} = \frac{dydv+dxdu}{dx dv}$$ which as far as I know doesn't really mean anything.


How do I get QUERY to return the right data?

So I have this spreadsheet with data in it, there are 29 columns and 54 rows.  On the 2nd sheet I'm trying to find all of the rows that fit a certain criteria.  For some reason, if I include the column X in my query data, the results are completely messed up. The 1st row of the result is just concatenating the first 23 rows together whether they fit the criteria or not. If I only include up to Column W the query is OK and it returns the correct results. But the problem is that I need to get data from Columns A and AB, so I need to include column X in my data range.  In this spreadsheet you can see the data on Sheet1, the query that includes column X on Sheet2, and on Sheet3 I have the same exact query except it only goes up to Column W and you can see the correct results there.  Basically, I need the query to return the value of Column A and Column AB for every row where Column B is marked with an "x".


Will a pure rolling cylinder stop on a rough surface?

Will a disc or cylinder (rigid body) executing pure rolling on a rough surface stop, neglecting air drag and other heat losses and rolling friction but not static and kinetic friction? If yes, due to which friction it will stop, static or kinetic and how? Assume surface has no rolling friction.


If $f:\mathbb R \to \mathbb R$ is uniformly continuous and $f(0)=0$ then prove that $|f(x)|\le k|x|$ for some constant $k$


What makes north pole of a magnet north pole in the first place?

This question might seem absurd and illogical to many. But it just popped out in my mind while I was reading about magnetism.   -Like in case of charges, positive and negative charge on an atom means absence and presence of extra electrons respectively. So my question is what aspect exactly makes a pole of magnet north or south? Is it absence or presence of something?  -I asked my teacher about this and he simply replied that north pole is something which attracts south pole. But this is more of a property to me rather than an exact meaning of what exactly is north pole of a magnet.


In python regular expression, raw string behavior is different.    import re m = re.match(r"\n","C:\some\nDay\n") print(m) a= re.match("\n", "C:\some\nDay\n") print(a)   In the first expression, it should consider \n as normal text and return the match position. but in both expression None is the output.


16.04 Live CD screen resolution problem?

I'm not sure if its me, but I have some problems with the 16.04 live CDs. See for yourself (using VirtualBox):     VirtualBox settings: Base Memory: 3000MB Processors: 1 Video Memory: 128MB No 3D Acceleration enabled.  The strange thing is that I tried Kubuntu 16.04 live CD on a HP Touchsmart 14 laptop and the same thing happened. It didn't happen with Xubuntu 16.04 (same laptop). What can be the problem?


I received a warning in Bing webmaster tools that one of my site pages was infected with malware. this message was delivered several days ago, and unfortunately I only was informed of it today. Currently the malware tab is empty. The message itself is very generic and does not include a specific URL that was affected. I checked the home page and it does not look like anything was injected there. Is there a way to know which page exactly was affected? Can I assume it was only one page and there is no threat now?


Problem:  The sides of a circular track contain a sequence of cans of gasoline. The total amount in the cans is sufficient to enable a certain car to make one complete circuit of the track, and it could all fit into the car's gas tank at one time. Use mathematical induction to prove that it is possible to find an initial location for placing the car so that it will be able to traverse the entire track by using the various amounts of gasoline in the cans that it encounters along the way.  I tried several ways to prove this, always got stuck when it comes to whether the possible solution in P(k) or P(i) where 0  My attempt:  Base case:  when there is one can, clearly P(0) is true.  Inductive step:  Assume P(k) is true for all k is integer  Consider the k+1 case:   There exists at least one can M that has sufficent fuel to reach its neighbor can N, otherwise the total fuel would not be enough for a traverse If we drive from M to N, dump all remaining fuel to N and ignore the distance from M to N, we then have a circle of k cans, which exists a starting can from where we can traverse the circle, let that trip be X.   HOWEVER, the direction of X doesn't have to be the same as the direction from M to N right? If they aren't the same, consider the case where N does not have enough fuel to get to M, from the inductive hypothesis we know it is possible that the car runs out of fuel upon reaching N and need the extra fuel from M to reach M itself (because we dump the remaining fuel from M to N). It is still possible that you may never reach M because in reality, if X has a reverse direction, you're "assuming" N has extra fuel from M while there actually isn't.  Answers online never mention the direction. Can anyone show me the a proof taking the direction of traverse into consideration or prove that the direction does not matter?


Under power management is a feature for "Selective Suspend" in which Windows will suspend devices as it sees fit to save power. Is there a way to manually set a device to be suspended, rather than wait on selective suspend? I'm trying to test the design of a USB device to handle waking up appropriately after it's been suspended.


Markdown italics with underscores look good in preview but not in answer

of mine has some italicized words containing underscores in the first line. These look good in the preview, but in the answer they appear non-italicized with surrounding asterisks.  Is this a known bug, and is there a workaround?


Which formulae should I use when calculating the frequency of an electron given its speed?

If I know the speed of an electron, how should I go about calculating its frequency?  For example, if the electron was travelling at $v$ $ms^{-1}$ there are two options I could take.   Calculate the momentum of the electron using $p=m_ev$. Then use the formula for de Broglie's wavelength to find the wavelength of the electron using $\lambda=\frac{h}{p}$. Then use the formula for wave speed, $v=f\lambda$ to get the frequency of the electron. Alternatively, I could find the kinetic energy of the electron using the formula $KE=(1/2)m_ev^2$. Then substitute the kinetic energy calculated into $E=hf$ to get the frequency of the electron.   The first method doesn't give me the right answer, but the second method does. Which step of the first method is incorrect and why?


I am trying to show the following identities  Suppose $X$ is a topological space and let $A \subset X$, then:  $(a) int(X \setminus A)=X \setminus \overline{A}$  $(b) \overline{X \setminus A}=X \setminus intA$  For the first one I couldn't do anything In (b), if I call the topology $\tau$, I can express $$X \setminus intA=X \setminus (\bigcup_{U \in \tau, U \subset A}U)$$. But $X \setminus (\bigcup_{U \in \tau, U \subset A}U)=\bigcap_{U \in \tau, U \in A} (X \setminus U)$.  Since $U \subset A$, then $X\setminus A \subset X \setminus U$, so $X \setminus A \subset \bigcap_{U \in \tau, U \in A} (X \setminus U)$. Since this subset is closed, by definition of closure we have $\overline{X \setminus A} \subset \bigcap_{U \in \tau, U \in A} (X \setminus U)$.  In order to complete th proof in (b) I have to show the other inclusion, I couldn't do that part. Any help with this and with (a) would be appreciated.


Show that $$1+\frac {1}{4} \bigg(1+\frac {1}{4}\bigg) +\frac {1}{9} \bigg(1+\frac {1}{4} +\frac {1}{9}\bigg)+.....$$  converges.  Can you find the exact value of the sum.  My effort:  I have proved the convergence with comparing to $$\bigg(\sum _1^\infty \frac {1}{n^2}\bigg)^2$$  I have not figure out the exact sum.  Any suggestions??


Pokemon go can see map but no pokemon on first time

I can't see any Pokémon, but I can see the map, and it won't let me tap the screen. There also aren't any Pokéstops nearby me.


Is the definition of the meter arbitrary?

From Wikipedia, the definition of the meter is      The meter is defined as the distance traveled by light in a vacuum in 1/299792458 seconds.   Why is this number of seconds chosen? Is there a motivation for this choice?


I am trying to install i-nex.  sudo add-apt-repository ppa:gambas-team/gambas3  : The repository 'http://ppa.launchpad.net/i-nex-development-team/daily/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


vector<pair<int,int> > v; for(i=0;i<5;i++){     cin>>b>>c;     v.push_back(make_pair(b,c)); } sort(v.begin(),v.end());   Is it possible to write a comparator for the sort function such that v[i].first is sorted in increasing order and for similar values of v[i].first, v[i].second is sorted in decreasing order? like:- i/p:      13 10    44 15    13 15    13 99     6 45     o/p:      6 45    13 99    13 15    13 10    44 15


Spooky scoping issues - C# - Switch - Case

So if I have a switch with 3 cases, each case has duplicate local variables declared in them. You would think that the variables would be local to that case so you should be able to use the same name repeatedly. However, this doesn't appear to be the 'case'.   Apparently the other case blocks can see the variables in each other.   Okay, no big deal right? Except that when you try and access that variable that it can obviously see, it says it can't see it???   int index = list.SelectedIndex;  switch(index){  case(0):    bool val = true;  //First declaration s'allll good    if(val) //No issues here either obviously       MessageBox.Show("Huh?");    break;  case(1):    bool val = true;  //Says it already exists??    if(val)        MessageBox.Show("Huh?");    break; case(2):    bool val3 = true; //Change the variable name so you can use it however,    if(val)  //When you try to access the val in case 0 it says it doesn't exist?????        MessageBox.Show("Huh?");    break; }   Is there an obvious syntax fold in space time I am missing here?


synchronizing io operation in java on a string method argument?

Basically, I have a class with 2 methods: one to serialize an object into an XML file and another to read an object from XML. Here is an example of synchronized part from the method that restores an object:      public T restore(String from) throws Exception {      // variables declaration         synchronized (from) {             try {                 decoder = new XMLDecoder(new BufferedInputStream(                         new FileInputStream(from)));                 restoredItem = decoder.readObject();                 decoder.close();             } catch (Exception e) {                 logger.warning("file not found or smth: " + from);                 throw new Exception(e);             }         }     // try to cast it     }   A similar approach is taken when serializing an object. Now, when I create a unit test which in turn creates 10 threads with each thread trying to serialize and instantly read either a Boolean or a String it would fail showing that ClassCastExceptions occur. This makes me think that I get serialization wrong (everything's ok in a single-threaded environment). If you've stayed with me down to this point :), here are the 2 issues I need your help on:   does it make sense to synchronize on a string argument passed to method (considering there's a string pool in java)? BTW, I've tried synchronizing on the XMLSerializer class itself with result staying the same. how do i correctly synchronize io operations on a single file?


Is it possible to extrude a curve surface (add a thickness to surface)?


How to know $(\mathbb Z /n\mathbb Z)^*$ is cyclic?

How can I show that $(\mathbb Z /n\mathbb Z)^*$ is cyclic or not for a given $n$?  If $n$ is small like 10 or 11 then we can compute the number of elements and then can find an element whose order is $\phi(n)$. But if $n$ is large enough then how can I say it is cyclic or not?  Here $(\mathbb Z /n\mathbb Z)^*$ denotes the set of all units in $\mathbb Z/n\mathbb Z$.  Need some help please..


Calculating interrater agreement for multiple choice questions

I'm trying to figure out how to calculate interrater agreement so I can aggregate raters' responses.  I'm asking 5 raters to select topics (out of 6 topics: A, B, C, D, E or F) that describe texts they read (1 = topic relevant to text, 0 = topic irrelevant to text). They can choose as many topics as they like (these are multiple choice questions).  For example, these are the ratings for the first text:  #          A  B  C  D  E  F # Rater_1  0  0  0  1  0  0 # Rater_2  1  0  0  1  0  0 # Rater_3  1  0  0  1  0  0 # Rater_4  1  0  0  0  0  0 # Rater_5  0  0  0  1  0  0  # Results for text 1: # 3 raters selected topic A # 4 raters selected topic D   And another example (second text):  #          A  B  C  D  E  F # Rater_1  1  1  0  1  0  0 # Rater_2  1  1  0  1  0  0 # Rater_3  1  1  0  0  0  0 # Rater_4  0  1  0  0  0  0 # Rater_5  1  0  0  1  0  0  # Results for text 2: # 4 raters selected topic A # 4 raters selected topic B # 3 raters selected topic D   What would be the right way to aggregate raters' responses for each text:  1) Should I select the topic with the most votes (e.g., for text 1, topic D; for text 2, topics A+B)?  2) Should I select any topic the majority selected, i.e., more than 3 raters said topic is relevant (e.g., for text 1, topics A+D; for text 2, topics A+B+D)?  3) Should I do it any other way?  Thanks!  Edit: Using R.