I hope that this is not a duplicate. Consider the MWE  \documentclass[tikz]{standalone} \standaloneconfig{border=-3cm 0cm 0cm 0cm}  \begin{document} \begin{tikzpicture} \draw(0,-5) grid (10,5); \foreach \X in {0,...,10} \node[circle,fill,label=45:{\X}] at (\X,0){}; \node at (5,2) {border=\{$\langle\mbox{length}~(\mbox{left})~\rangle$ $\langle\mbox{length}~(\mbox{right})~\rangle$ $\langle\mbox{length}~(\mbox{bottom})~\rangle$ $\langle\mbox{length}~(\mbox{top})~\rangle$ \}}; \end{tikzpicture} \end{document}     The image gets cut at the left, which is consistent with the manual (top of page 9)    However, if I do  \standaloneconfig{border=0cm -3cm 0cm 0cm}    instead, I get     i.e. the image gets cut at the bottom (rather than right side).  Overall, I think that the standalone crops according to   border={left bottom right top}   What am I doing wrong?


Division ring if and only if it has no proper left ideals.

Let $R$ be an associative ring with $1$. Prove that $R$ is a division ring if and only if $R$ has no proper left ideals.    Clearly, if $R$ is a division ring and $I\neq\{0\}$ is a left ideal, then every nonzero $z\in I$ satisfies $1=z^{-1}z\in I$, hence $I=R$.  Now if $z\in R$ is nonzero and $R$ has no proper left ideals, then $I:=\{rz:r\in R\}$ is equal to $R$ and there exists $r\in R$ such that $rz=1$. However, we still need to prove $zr=1$. How can we do this?  Thank you.


Modular arithmetic ; Can I please get help with this math problem

I'm very confused at how this math problem is being set up... I just came across a page on my study on congruences. I've studied the theorems on it but I seem to be lagging behind in this direction.  Can I get help with these two questions and I would love to know more about the answer with steps to how the question was solved. Thanks in advance. (1) Find $2^{501} \pmod {17}$ (2) Solve for $41x \equiv 5\pmod {51}$


How to improve "grainy and yellow" interior photographs?

From time to time, I take interior photographs and notice that they often come out "a bit grainy", "a bit yellow", and generally not as the eye perceives them "in the flesh". I use a Pentax K-r DSLR with the image quality set to highest, RAW+JPG. I tend to leave the settings on Auto.  Here is the :  Exposure Mode: Manual exposure Exposure Bias Value: @.7 Metering Mode: Pattern Exposure Time: 1/40 FNumber: 9 ISO Speed Ratings: 800 Flash: Off, did not fire Saturation: Normal Contrast: Hard Sharpness: Hard White Balance: Auto white balance Lens Model: smc PENTAX-DA L 18-55mm F3.5-5.6 Focal Length: 18   Once I copy the image from the card, I use Photoshop to adjust the white balance, brightness, contrast, saturation, and other minor changes. Apart from that its pretty much as it comes out of the camera. Here is the un-post-processed JPEG, shot at the same time as the PEF. The image will be further compressed for display here, but the general gist of what's wrong with it should be visible.


Can we use two verbs together?  We recognize those who help prepare America's future leaders for a life filled with meaning, purpose and success.


Let $p$ be a prime number.  Let $S_p=\{1≤x≤p^2:p^2│x^{p-1}-1\}$.  Prove that $|S_p|=p-1$.  I managed to prove that $|S_p|\geq p-1$.   I took $g$, a primitive root modulo $p^2$, and then proved that $\langle g^p\rangle\subseteq S_p$ ...  Now, in order to finish, it is needed to show that $|S_p|\leq p-1$, for this I wanted to say something about number roots of the polynomial $x^{p-1}-1$ over $\mathbb{F}_p$, but it doesn't help since we are dealing with numbers in $\mathbb{Z}/p^2\mathbb{Z}$.


round() doesn't seem to be rounding properly

The documentation for the  function states that you pass it a number, and the positions past the decimal to round. Thus it should do this:  n = 5.59 round(n, 1) # 5.6   But, in actuality, good old floating point weirdness creeps in and you get:  5.5999999999999996   For the purposes of UI, I need to display 5.6. I poked around the Internet and found some  that this is dependent on my implementation of Python. Unfortunately, this occurs on both my Windows dev machine and each Linux server I've tried. .  Short of creating my own round library, is there any way around this?


which process cleans /tmp under systemd on 18.04LTS? (answered here, no duplicate)

There is no /etc/default/rcS anymore on my ubuntu 18.04 server (no GUI)  I had set TMPTIME=20 and after the upgrade from 16.04 this seems to be reverted to a much shorter time. How can I customize the cleanup of /tmp ?    There where also other variables in rcS like UTC=yes or FSCKFIX=yes. Where have those gone?


How can I "quickly" scan and digitize many negatives?

I've found a huge collection of old family photos that are the negative strips (roughly 6 pictures a strip). I had a scanner that would allow me to digitally save the photos from the negatives one at a time; however, this seems like it will take me a century to do them all.  What's my options in either hardware or taking them somewhere to get done that will go faster than my current method?   is a similar scanner to the one I'm using now.


Is there a QGIS tool or plugin that can identify multiple layers at once?

For anyone familiar with  (a UK government web-based GIS) I can shortcut this question by saying that I'm looking for the equivalent of the identify tool. For others, this is a tool which produces a report identifying the value of all the properties of any polygon from all selected layers on a click of the mouse.  So, say I had three layers, one with counties (name, population, area), one with nature reserves (name, area, type of reserve) and one with habitat (type, rarity, conservation status). I would like to be able to click on a point on the map (or draw a polygon), and produce a report which would list all the features from all the layers under that point, together with their attributes.  I'm using QGIS 2.18, but soon 3.


I am confused about why this doesn't work. Pls help me. MC 1.12.2  /setblock ~ ~ ~ minecraft:command_block 11 replace {Command:"/summon Item ~ ~ ~ {Item:{id:"iron_ingot",Count:1,tag:{}}}"}


Parsing INI Files with PowerShell and split data to files

(I've reviewed the other answers but didn't find it match my question) I have an INI file that looks like that:  [DATA] installerDir=C:\installerDir scriptsDir=C:\Scripts TargetDirName=MSI [DB] DB_Name="Database_2211" DistribDir=DataDist TargetDir=TarMSI   I want to get as an output 2 files that will look like that: First file will contain the following data:  installerDir=C:\installerDir scriptsDir=C:\Scripts TargetDirName=MSI   Second file will contain the following data:  DB_Name="Database_2211" DistribDir=DataDist TargetDir=TarMSI   Files names should be something_DATA.ini & something_DB.ini accordingly. Files content should not include the block name (i.e.: DATA -or- DB...) I found that code for bash but cannot find it for PowerShell.


What is the total observational energy of the universe?

Based on what is measurable, how much energy is in the universe if the initial time is the big bang and the final time is the present?


Why is the DRAM Frequency of an Asus ROG STRIX B-350F motherboard so low?

An  has an .  The memory is . It has only about 1000 MHz DRAM frequency:      Could anyone provide a clue on why the RAM speed is so low?  Am I missing some fundamental understanding of the speed numbers?


In the Duran Duran song "Hungry Like the Wolf", the definite article "the" is used instead of the indefinite article "a". Aside from artistic liberty, is there a reason this is done? What does "the wolf" convey as opposed to "a wolf"?  Lyrical Extract:     In touch with the ground   I'm on a hunt down after you   Smell like I sound I'm lost in a crowd.   And I'm hungry like the wolf.


How to draw a double-color line with TikZ?

I would like to draw lines which have two colors along the complete length. In principle I could draw two lines next to each other which are slightly shifted, however, this seems like a whole lot of fiddling with coordinates to get everything right. Is there some generic way to do this, or has somebody already written something like this and made it so that it is portable?  A short example:  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}   \node [circle,fill] (e0) at (5,1.5) {};   \node [circle,fill] (e1) at (0,0) {};   \node [circle,fill] (e2) at (10,0) {};   \node [circle,fill] (e4) at (5,3.5) {};   \draw [ultra thick, blue] (e1) to  (e2);   \draw [ultra thick, green] (e1) to (e4);   \draw [ultra thick, blue](e1) to (e4);   \draw [ultra thick, blue] (e2) to (e4);   \draw (e1) to (e2);   \draw [ultra thick, green] (e0) to (e1);   \draw (e0) to (e2);   \draw [ultra thick, green] (e0) to (e4); \end{tikzpicture} \end{document}   I would like the edge from e1 to e4 to be green and blue, with the green line running along the inside of the triangle and the blue line along the outside of the triangle.


$\# V(I) \le \text{dim}_K(K[X_1, \ldots, X_n]/I)$

Let $K$ be an algebraically closed field and $I \subseteq K[X_1, \ldots, X_n]$ be a zero-dimensional ideal, i.e. the set $V(I)$ is finite. This is equivalent to $\text{dim}_K (K[X_1, \ldots, X_n]/I)<\infty$. But the proof I know for this equivalence does not highlight any relation between $V(I)$ and $\text{dim}_K (K[X_1, \ldots, X_n]/I)$. I found recently that, in fact, one has the following inequality: $$\# V(I) \le \text{dim}_K (K[X_1, \ldots, X_n]/I)$$ Here $\# V(I)$ denotes the number of points in $V(I)$. I am trying to prove this result. I know that the dimension of $K[X_1, \ldots, X_n]/I$ over $K$ is precisely the number of monomials from $K[X_1, \ldots, X_n]$ which do not belong to the initial ideal of $I$ (the classes of these monomials modulo $I$ form a $K$-basis of the vector space $K[X_1, \ldots, X_n]/I$). How can I relate these monomials with the number of solutions $(x_1, \ldots, x_n)$ of the set of equations $\{f(x_1, \ldots, x_n) = 0 \ | \ f\in I \}$?


How long is the time allowed between exit and re entry from the U.S on an esta visa?

I have a valid two year Established Visa,and I would like to exit the U.S for a month, and then return after one month,  but i was told i needed three months between exit and re entry. Can someone clarify? I am from Australia.


TeX capacity exceeded using pgfplots with/without externalization

The following MWE compiles (for me)  \documentclass{article}  \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{external} \tikzexternalize[prefix=figures/externalized/]   \begin{document} \begin{figure}     \centering     \begin{tikzpicture}          \begin{axis}  %           \addplot3[surf,mesh/rows=129,mesh/cols=129,mesh/ordering=y varies] table[x=X,y=Y,z=psi] {figures/data/LidDrivenCavity/Lid_SPIKE_128x128_Re1000_psi.dat};              \addplot3[contour gnuplot,mesh/rows=129,mesh/cols=129,mesh/ordering=y varies] table[x=X,y=Y,z=psi] {figures/data/LidDrivenCavity/Lid_SPIKE_128x128_Re1000_psi.dat};          \end{axis}      \end{tikzpicture}     \caption{ciao} \end{figure} \end{document}   where the data file is . If I de-comment the first \addplot3 and comment the second one, then I get an error. The final part of the log file (the interesting one, I think) is  ===== 'mode=convert with system call': Invoking 'pdflatex -shell-escape -halt-o n-error -interaction=batchmode -jobname "figures/externalized/prova-figure0" "\ def\tikzexternalrealjob{prova}\input{prova}"' ======== \openout3 = `prova.auxlock'.  runsystem(pdflatex -shell-escape -halt-on-error -interaction=batchmode -jobname  "figures/externalized/prova-figure0" "\def\tikzexternalrealjob{prova}\input{pr ova}")...executed.  \openout3 = `prova.auxlock'.   ./prova.tex:22: Package tikz Error: Sorry, the system call 'pdflatex -shell-esc ape -halt-on-error -interaction=batchmode -jobname "figures/externalized/prova- figure0" "\def\tikzexternalrealjob{prova}\input{prova}"' did NOT result in a us able output file 'figures/externalized/prova-figure0' (expected one of .pdf:.jp g:.jpeg:.png:). Please verify that you have enabled system calls. For pdflatex,  this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or som ething like that. Or maybe the command simply failed? Error messages can be fou nd in 'figures/externalized/prova-figure0.log'. If you continue now, I'll try t o typeset the picture.  See the tikz package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.22    \end{tikzpicture}  ?  PGFPlots: reading {figures/data/LidDrivenCavity/Lid_SPIKE_128x128_Re1000_psi.da t} Runaway argument? {\pgfkeyssetvalue {/pgfplots/execute at begin plot visualization}{}\pgfkeyssetv alue \ETC. ./prova.tex:22: TeX capacity exceeded, sorry [main memory size=5000000]. <argument> ...5e-1],2Y7.753628e-3]}{2Y8.20894\ETC.  l.22    \end{tikzpicture}  If you really absolutely need more capacity, you can ask a wizard to enlarge me.   Here is how much of TeX's memory you used:  20761 strings out of 493054  547383 string characters out of 6134761  5000001 words of memory out of 5000000  23958 multiletter control sequences out of 15000+600000  3640 words of font info for 14 fonts, out of 8000000 for 9000  1141 hyphenation exceptions out of 8191  62i,4n,84p,728b,1519s stack positions out of 5000i,500n,10000p,200000b,80000s ./prova.tex:22:  ==> Fatal error occurred, no output PDF file produced!   similar (or the same) error appears if externalization is not enabled/used.  My TeX distribution is TeX Live on Mac OS X 10.9.5 and I use TeXShop as editor.  Once I (partially) solved a  on Windows+MikTeX+TeXniccenter by modifying/adding options to the command executed when compile button is pressed. I say partially since I actually solved the problem for some data file. Then I experienced the same problem with larger datafile and/or different plots (I don't remember anymore) and didn't find a way out, no matter how much I extended the memory.  What should I do now?


How to create tables that spill into the next page in ConTeXt?

I have a table like this in ConTeXt, per a workplace template, with borders around every cell.  \startsetups table:all     \setupTABLE[align={hyphenated, normal}]     \setupTABLE[frame=on] \stopsetups \startsetups table:three     \setupTABLE[column][1][width=0.333\textwidth, align=right, distance=0.05\textwidth]     \setupTABLE[column][2][width=0.333\textwidth, align=right]     \setupTABLE[column][2][width=0.333\textwidth, align=right] \stopsetups  \starttext     \startTABLE[setups={table:all, table:three}]         \NC column 1 \NC column 2 \NC \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth  \NC\NR     \stopTABLE \stoptext   The data in each column is very long, so unfortunately, the data disappears off the bottom of the page.  I tried split=yes, but that splits the table, not the middle of cells. Huge cells still run off the bottom of the page.  How can I get the table cells to be split in half so that the data continues onto the next page?


In the exercise they ask me to prove that $f : B_a \rightarrow \mathbb{R}^k$ define by $x \rightarrow \frac{ax}{\sqrt{a^2-||x||^2}}$ is a difeomorphism between $B_a$ and $\mathbb{R}^k$. Well I dem that $f$ is bijective and smooth, but I don't know how to prove that $f^{-1}$ is smooth, I think about obtaining the expression of $f^{-1}$ but I don't know if it is correct or not. Obs: $B_a = \{ x : ||x||^2 < a \}$


How to handle non-standard capitalization in formal letters

I am writing a letter to apply for entry into a graduate-level university program through my company. I am struggling on how to write the name of the company in the letter. The company's trademark is to write the name in capital letters (and we are encouraged to do so in work communication) but this seems out of place to me in the formal letter.  Example:   "... to apply for entry to the MYCORP Leadership program beginning in..." "... to apply for entry to the Mycorp Leadership program beginning in..."   I'm currently leaning toward option #2 even though this isn't consistent with the company's preferred branding.


How to point 2 CNAME records to same external address?

I am fairly new to DNS managing. I have been attempting for a while now to point both my root domain @ and www to my GitHub account page user.github.io.  I have a CNAME pointing www to user.github.io., but for some reason I can't do a CNAME that points @ to user.github.io..  The error I'm getting is CNAME records cannot share a name with other records.  I don't have the slightest clue what that's supposed to mean, please help.  If it makes a difference I'm using DigitalOcean's DNS controls


How do I recover my remote system from this mistake: sudo chown -R user:group /etc?

Using putty, by mistake, I've used this command to change the folder permission /etc:  sudo chown -R ec2-user:ec2-user /etc   Now when I'm trying to restart my Apache server the result is:  $ sudo service httpd restart  sudo: /etc/sudo.conf is owned by uid 500, should be 0 sudo: /etc/sudoers is owned by uid 500, should be 0 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin   How to recover of this situation? I don't have physical access, but I have WinSCP and I can change permission directly.


How to fix Error: Query was empty with query?

I am updating the data in database from php and Getting Up Error:Query was empty with query. I badly need help. Thanks in Advance  <?php $dbhost = 'localhost'; $dbuser = 'root'; $myDBname = 'jsv'; $conn = mysql_connect("localhost", "root"); mysql_select_db('jsv'); if(isset($_POST['update'])) { $nam = $_POST['namnid']; $mandag = $_POST['mandagid']; $tisdag = $_POST['tisdagid']; $torsdag = $_POST['torsdagid']; $fredag = $_POST['fredagid'];  $sql = mysql_query("INSERT INTO jsv(CA_ID,Name,Address,Amount)  VALUES ('$mandag', '$tisdag', '$torsdag', '$fredag') WHERE Setup_Box_No = '$nam'", $conn); if(!$sql ) {   die('Could not update data: ' . mysql_error()); } echo "Updated data successfully\n";  }  mysql_close($conn); ?>


Mckee believed WAS the Mary Rose Vs Mackee believed TO BE the Mary Rose

In 1967 , Edgerton's side-scan sonar systems revealed a large , unusually shaped object , which Mckee believed WAS the Mary Rose.  Shouldn't this be "Mackee believed TO BE the Mary Rose"?  Can somebody please explain the grammar?


I'm using Ubuntu 13.04 3.8.0-27-generic and I cannot use my TL-725N nano wireless adapter.  lsusb :   Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 003 Device 005: ID 0bda:8179 Realtek Semiconductor Corp. Bus 003 Device 004: ID 05e3:0727 Genesys Logic, Inc. microSD Reader/Writer Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 07d1:3300 D-Link System DWA-130 802.11n Wireless N Adapter(rev.E) [Realtek RTL8191SU] Bus 001 Device 004: ID 2232:1035   Bus 002 Device 003: ID 8087:07da Intel Corp.    I installed this :  But nothing appened, even after reboot. I still can not see the device in the network manager.  sudo modprobe r8712u did nothing and here is the result of iwconfig:  wlan1     IEEE 802.11abgn  ESSID:off/any             Mode:Managed  Access Point: Not-Associated   Tx-Power=15 dBm              Retry  long limit:7   RTS thr:off   Fragment thr:off           Power Management:off  eth0      no wireless extensions.  lo        no wireless extensions.  wlan0     IEEE 802.11bg  ESSID:"gagman"  Nickname:"rtl_wifi"           Mode:Managed  Frequency:2.462 GHz  Access Point: 00:13:A3:0A:B8:0D              Bit Rate:54 Mb/s   Sensitivity:0/0             Retry:off   RTS thr:off   Fragment thr:off           Power Management:off           Link Quality=89/100  Signal level=71/100  Noise level=0/100           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:0  Invalid misc:0   Missed beacon:0   dmesg | grep r87  [   12.628932] r8712u: module is from the staging directory, the quality is unknown, you have been warned. [   12.630039] r8712u: Staging version [   12.630049] r8712u: register rtl8712_netdev_ops to netdev_ops [   12.630050] r8712u: USB_SPEED_HIGH with 4 endpoints [   12.630511] r8712u: Boot from EFUSE: Autoload OK [   13.046262] r8712u: CustomerID = 0x0006 [   13.046264] r8712u: MAC Address from efuse = c8:be:19:de:b6:96 [   13.046264] r8712u: Loading firmware from "rtlwifi/rtl8712u.bin" [   13.046320] usbcore: registered new interface driver r8712u [   17.937068] r8712u: 1 RCR=0x153f00e [   17.937822] r8712u: 2 RCR=0x553f00e [   40.011329] r8712u: wpa_set_encryption, crypt.alg = WEP   Thanks


Topologist's sine curve is not path-connected

Is there a (preferably elementary) proof that the graph of the (discontinuous) function $y$ defined on $[0,1)$ by $$ y(x) =\begin{cases} \sin\left(\dfrac{1}{x}\right) & \mbox{if $0\lt x \lt 1$,}\\\ 0 & \mbox{if $x=0$,}\end{cases}$$ is not path connected?


Is it possible to turn a Minecraft single player map into multi-player server?

I've got some funky minecraft maps that I'd like to share with my friends. However, they're, more often than not, far away and unable to stop by my computer and see what I've wrought.  I was wondering if there was a way to transform a singleplayer map into a multiplayer one, such that I could share my singleplayer creations remotely?


I need to start learning Python, and I want to learn with version 3.x. I understand that QGIS--at least some plug-ins--relies on Python and Tcl/Tk, and probably on specific versions. Assuming that QGIS is dependent on Python 2, can anyone tell me how to set up parallel installations of Python 3 and Tcl/Tk such that QGIS will have what it needs and I can use Python 3 for other purposes?


Why are boolean operations so slow? If I try to cut into an object that has subdivisions or I array the cutter, Blender will freeze for up to 10 seconds, even though I have a 12 core CPU and a powerful GPU. Also, after adding the boolean to the modifier stack, the viewport will stall whenever I switch between Object and Edit Mode or toggle between some other settings.


Challenges in interpretation of variable selection from LASSO and OLS

I work as a consultant and I am often faced with variable  selection and prediction problems.   For my clients, I run OLS and I am recently pushing for penalized methods which can handle variable selection better than OLS.  I am familiar with how the LASSO works It aims to shrink coefficients to zero and can identify the non - zero coefficients. By looking at the solution paths, I can understand how the variable selection occurs.  However, I work with non-statisticians. They are quite comfortable with OLS and I have also observed that explaining OLS to my clients is often simpler. My question is this:  I know this is not the way to do variable selection. Lets say my OLS outputs the following model. I have scaled my response and predictors.  $Y = 0.25~X_{1} + 0.95~X_{2} + 0.65~X_{3} +2 ~ X_{4} + 0.1 ~X_{5}  $  My non-statistics friends say that we should select $X_{2}$ and $X_{4}$ in the model. They say this by observing two aspects:    Their coefficient values are high compared to the other variables The model output also shows that these 2 coefficients are significant (by significant I mean p-value < 0.05).   In conclusion, they say the reduced model $Y = 0.95~X_{2} + 2~X_{4}$ is sufficient.  I don't know how to explain that this is not the right way to go about variable selection. In fact at times they also overlook the fact that $X_{1}$ is a significant variable. But they think it is not important because its coefficient value is not high in magnitude.  What I am unable to explain and I admit that at times I myself don't understand   I know how to interpret coefficients. For instance keeping all other variables constant, a unit change in $X_{4}$ will cause a 2-fold change in the response. But how can one conclude that $X_{4}$ is IMPORTANT basis its magnitude and the fact that its p-value is < 0.05?   Could someone help with this? If indeed $X_{2}$ and $X_{4}$ are IMPORTANT should I say that we should be comparing two models and do some kind of a lack of fit procedure to ascertain this claim.   $Y = \beta_{1}~X_{1} + \beta_{2}~X_{2} + \beta_{3}~X_{3} +\beta_{4}~X_{4}  $ $Y = \beta_{2}~X_{2} + \beta_{4}~X_{4} $    Finally, if my understanding don't shrinkage methods like LASSO and ridge do variable selection keeping some end goal in mind like minimizing the mean absolute prediction error. OLS only minimizes the sum of squared error but how can one simply select variables in a model simply because their coefficients are high in magnitude.   If one only looks at coefficient values to select variables to enter the model, is one not ignoring the correlation structure of the predictor  variables.


Warnings during propensity-score matching: 1: glm.fit: algorithm did not converge 2: glm.fit: fitted probabilities numerically 0 or 1 occurred

I am doing a propensity score matching(nearest neighbor matching) in R with simulated data and I keep getting the above warning messages. please I need help.  The following is my code  m.out<- matchit(Trt_Grp~Age + Base_DBP + Gender + Race + Trt_Difference, data.frame(Data1), method = "nearest")  I generated my data using the following codes set.seed(12345) Age <- rnorm(100, 50, 10) round(Age, digits = 0) Base_DBP <- rnorm(100,95 , 8) round(Base_DBP, digits=0) Trt_Grp <-rbinom(100, 1, prob =0.5) print(Trt_Grp) Race <-rbinom(100, 1, prob = 0.8) print(Race) Gender <-rbinom(100, 1, prob = 0.5) print(Gender) Patient_ID <-seq(1, 100, by=1) print(Patient_ID) Post_DBP <-rnorm(100, 80, 10) print(Post_DBP) round(Post_DBP, digits = 0) n = 100; y1 = rnorm(n, 75, 5);  y2 = rnorm(n, 85, 5)  # same SD where y1 is post_DBP for drug and y2 for placebo w = rbinom(n, 1, .20)     #where w is Trt_grp   Post_DBP = w*y1 + (1-w)*y2   round(Post_DBP, digits = 0) round(y1, digits = 0) round(y2, digits = 0) summary(y1)  summary(y2) summary(Post_DBP) Trt_Grp <- ifelse(Post_DBP<=80, 1, Trt_Grp) Trt_Grp <- ifelse(Post_DBP>80, 0, Trt_Grp) print(Trt_Grp) summary(Trt_Grp) table(Trt_Grp) or <- cbind(Patient_ID, Age,  Race, Gender,Trt_Grp, Base_DBP, Post_DBP) round(or, digits = 0) Trt_Difference <- Base_DBP - Post_DBP round(Trt_Difference) Data <- cbind(Patient_ID, Age,  Race, Gender,Trt_Grp, Base_DBP, Post_DBP, Trt_Difference) round(Data, digits = 0)


What is taking so much space on my hard drive?

So, today I have realized that free space on my desktop was suspiciously low (I had only about 60 GB free space). I have a 500 GB SSD and a 500 GB regular hard drive for back up. I don't have a ton of programs installed to start with. Regardless, I uninstalled some unused programs, did a disk cleanup, and cleared my downloads folder.   Now, what is mind boggling is that I still have only about 100 GB empty space. If I grab everything in my C drive and check used space, it says 60 GB. I expect some discrepancy due to numerous reasons. But frankly, having 60 GB worth of files but 376 GB used space is confusing.  Any help is greatly appreciated. Also this is my first time posting, so go easy on me :P  Thank you.


Sequence Limit Problem: If $0 \leq x_{m+n} \leq x_n + x_m$ then limit of $x_n/n$ exists

If the sequence $\{x_n\}$ satisfies the property that $0 \leq x_{m+n} \leq x_n + x_m$ for all $n$, $m \in \mathbb{N}$ , show that the limit of the sequence $\left\{\frac{x_n}{n}\right\}_n$ exists. Provide an example of such a sequence.  I can show that it is bounded, but I don't know how to show that it is monotone increasing (I think it is monotone increasing, not sure).


script to open terminal with multiple tabs and different directories

I find myself opening the same set of terminals every time I startup.   I have 3 tabs in a certain directory, all with python venv's activated, and then one extra tab for ssh'ing if I need to. It takes quite a few keystrokes to do this, and I would like to automate it, but I am drawing a blank on how to do it, and my searches and preliminary attempts have failed.  How can I do this via script?


Auto-line break in table cell in many columns

How can I break the table cell data automatically to adjust the page width when data in both columns are exceeding? Below is an example of the problem.     \begin{center}     \begin{tabular}{|l|l|}     \hline     \textbf{Scrum}  & \textbf{Large Scale Scrum (LeSS)}\\     \hline     Comprises of one team and one product & \begin{tabular}{@{}ll@{}} Comprises of up to 8 teams\\      All Teams are in a common Sprint to deliver a common product\\     \end{tabular} \\     \hline     \end{tabular}     \captionof{table}{Comparison between Scrum and Large Scale Scrum }\label{LeSStable}     \end{center}  P.S: I am on a very beginners level


How can I make a list as shown in the picture?    I want to have a similar list of abbreviations/notions where everything is lined up as shown in the picture. I have tried to use the glossaries package, but that didn't give me the dots inbetween.  I have also tried to use \begin{description}, but then I had to manually enter the dots.  Can someone help me with this?


Show that if $M$ is closed ,then $(M^\perp)^\perp=M$

let $M$ be a subspace of a normed space $X$ and $N$ a subspace of its dual $X^{*}$. we define   $M^\perp=\{f\in X^{*}:f(x)=0,\forall x\in M\}$ and  $N^\perp=\{x\in X:f(x)=0,\forall f\in N\}$  Show that if $M$ is cloesd ,then $(M^\perp)^\perp=M$  i think $M\subset(M^\perp)^\perp$ is easy. but how to do other way. any hint


I need to display \listoffigures as a table

I need to display the list of figures in a table format as shown in the figure.  What should I do to customize the \listoffigures command so as to obtain things in this format.


Listing project layers in standalone PyQGIS script

I'm trying to load an existing .qgs project and get a list of the layers inside. I seem to be able to open the project, but I can't get the list of layers. I'm a little confused as to the basic PyQGIS syntax, and the cookbook doesn't cover this specific example.  from qgis.core import * from PyQt4.QtCore import QFileInfo   QgsApplication.setPrefixPath(r"C:\OSGeo4W\apps\qgis-ltr", True) qgs = QgsApplication([], False) qgs.initQgis() # Get the project instance project = QgsProject.instance() # Open the project project.read(QFileInfo(         r'C:\path\to\project\project.qgs')) print project.fileName() # Get the layers in the project layers = QgsMapLayerRegistry.instance().mapLayers()  print layers qgs.exitQgis()   Currently, this just layers returns an empty dict, despite the fact that the project exists and has many layers in it.


How to run a script without closing the terminal?

I have a script in file bla.sh and it is executable. When I click on it, the script is executed and the window is closed. I'd like the window to stay open.  Something like command cmd /k** command in Windows.  P.S. I don't want to use pause, but I want to able to write more commands after the script was executed.


using of rownum function with ">" sign in oracle

I want to select the number of rows which are greater than 3 by rownum function i_e "(rownum>3)" for example if there are 25 rows and I want to retrieve the last 22 rows by rownum function. but when I write the   select * from test_table where rownum>3;   it retrieve no row. can any one help me to solve this problem. thanks in advance


How to efficiently combine glossaries with custom commands for symbols

For math symbols or operators I open create a custom command such as  \newcommand{\prob}[2]{%     \ifthenelse{\isempty{#2}}%     {%         p( #1 )     }{%         p( #1 \mid #2 )%     }% }%   to capture the cases where I want to type a conditional or a un-conditional probability with one command, and to be able to change the notation easily if I find out that it is suboptimal.  Now, I also want to create a list of symbols and index using glossaries where I would use e.g.  \glsxtrnewsymbol[description={Probability density functon}]{prob}{\ensuremath{\prob{\cdot}}}   To get the glossary and index right, I would be obliged to use e.g. \gls{prob} (instead of \prob) also e.g. in an align environment and $$ math, correct? But in this case, I cannot make use of the function \prob that I defined beforehand.  Now the question: Is there an efficient way to deal with this? I.e. to define (complex) functions that capture multiple possible use cases and make use of the glossary?  Naively speaking, it would be perfect to 'overload' the \gls with the options declared for \prob, is that possible?


I have three questions:   I've read in some places that I should start designing for mobile and then build responsively out for tablet, then laptop, and finally different desktop sizes.  I've also read the opposite: to design top down, ending in mobile.  What should I do? What are the "traditional", or perhaps the best places to place breakpoints in my design for the website to be optimized for any and all devices? Related to the previous question: how large should my largest design (breakpoint) be?


I am using Ubuntu 17.10 and have recently installed and run rkhunter 1.4.4. I got the following warnings about suspicious shared memory segments:  /usr/lib/nautilus-desktop PID 1867   Is this a problem? Could there be a problem with rkhunter not playing well with the newest Ubuntu? Can I safely ignore this, especially if I don't get a warning when I am not running Firefox at the same time, and I do get a warning if Firefox is running?


I have very slow render times in cycles. I have done the BMW27 speed test and got this ( 8x8 = 19 min 3 sec, 16x16 = 19 min 3 sec, 32x32 = 19 min 43 sec, 64x64 = 19 min 34 sec, 128x128 = 20 min 4 sec, 256x256 = 24 min 3 sec, ) whit standard settings my pc specs are intel i7 870(2.8ghz, overclocked to 3.2ghz), 12gb ram, AMD radeon r9 270.(GPU does not work) how can I fix it?  Duarte Farrajota Ramos, my question is different because i am using the BMW file without setting changes to see how fast my render times are.


What is the reasoning behind using the GO statement after every SQL statement? I understand that GO signals the end of batch and/or allows the reputation of statements but what advantage does it have using it after every statement.   I am just curious as a lot of Microsoft documentation etc. have started using it after every statement  or maybe I've just started to notice.   Also what's considered best practice?


With Trinomial's, can someone explain the purpose of the first, second and third term. In layman terms.

I know that the first term is a quadratic and I suppose that lets us know we are dealing with identifying a curve, and the third term is our constant. I just can't quite put it all together as how they are actually working together. Such as what relationship that have to each other.. Help.


Looking for script to pull server stats and display on a web page I host

Does anyone know of a bash or similar script that will pull stats from a Linux server and display them on a centralized web page or send a report via email every "x" hours?  I've found services that offer something close but they are cost prohibitive and missing some of the stats I'd want and some functions just don't work, etc.  The idea would be to pull: - CPU load - RAM and SWAP - Disk used / free - TX and RX for a given time period (year to date, month, week and day) - Active processes - IPs attempting login (failures from secure log on my CentOS boxes)  I'd like to pull the reports to a central server and display them on a web page but having the reports emailed on a timed basis would be better than nothing.


What happened to the Joker after The Dark Knight?

So avoiding the obvious reason the Joker wasn't in The Dark Knight Rises, what was the reason in the film for The Joker not appearing? Is he locked up in Arkham? Clearly it's not Blackgate due to the breakout.


I have a rooted Huawei G700-U10 with android 4.2.1. I removed the Android Play Store and Services, but now I need it. How do I reinstall them?


I have inserted a List of case records with proper values but still, code is not covering as shown above. Can anyone please suggest to me?


If you had been my child, I would have demanded that such an irresponsible teacher be fired.   It is the subjunctive mood, I suppose. Why every verb in the sentence in the past, but be is in the present?


How to get the pid of a process and invoke kill -9 on it in the shell script?

I have an application server which we start by running this below command and as soon as we run the below commnad, it will start my application server  /opt/data/bin/test_start_stop.sh start   And to stop my application server, we do it like this -   /opt/data/bin/test_start_stop.sh stop   So as soon as my application server is running and if I do ps aux, this is what I get -   user@machineA:/home/user$ ps aux | grep gld_http user 20426  0.0  0.0   8114   912 pts/4    S+   13:33   0:00 grep gld_http user 40509  0.1  0.9 3878120 1263552 ?     Sl   Sep22   1:53 /opt/data/bin/gld_http   Now I am trying to make a shell script in which I need to stop my application server and then I will check whether my process is running after stopping the server or not, if my process is still running, then I need to do kill -9 of my application pid. And I am not sure how to get the pid of my process in the shell script and then kill it.  Below is my shell script which I have as of now which will shut down my app server and then check whether my process is still running or not and if by any chance it is still running, then I need to get the pid of my process and do kill -9 on that pid.  #!/bin/bash  /opt/data/bin/test_start_stop.sh stop  if ps aux | grep -v "grep" | grep "gld_http" then     echo "Server is still running"     # now get the pid of my gld_http process and invoke kill -9 on it else    echo "Server is stopped" fi   How can I get the pid of my process and do kill -9 on it in my above shell script?  UPDATE:-  So my final script will look like this -   #!/bin/bash  /opt/data/bin/test_start_stop.sh stop  if ps aux | grep -v "grep" | grep "gld_http" then     echo "Server is still running"      # Getting the PID of the process     PID=`pgrep gld_http`      # Number of seconds to wait before using "kill -9"     WAIT_SECONDS=10      # Counter to keep count of how many seconds have passed     count=0      while kill $PID > /dev/null     do         # Wait for one second         sleep 1         # Increment the second counter         ((count++))          # Has the process been killed? If so, exit the loop.         if ! ps -p $PID > /dev/null ; then             break         fi          # Have we exceeded $WAIT_SECONDS? If so, kill the process with "kill -9"         # and exit the loop         if [ $count -gt $WAIT_SECONDS ]; then             kill -9 $PID             break         fi     done     echo "Process has been killed after $count seconds."     else    echo "Server is stopped" fi


My physics professor explained to me that electromagnetic waves are consisted of two components - electric and magnetic - which cause each other.   Which part of the mirror actually reflects the wave? Which of those two wave components? Both? How come the wave doesn't get heavily distorted in the process?     I guess the actual electrons of atoms of silver play a role, but why isn't every material reflective, then? Because is isn't "perfectly" flat? If I lined up atoms of a non-metal element in a perfect plane (maybe several rows), would it reflect light just as mirrors do?


Replace environment variables in a file with their actual values?

Is there an easy way to substitute/evaluate environment variables in a file? Like let's say I have a file config.xml that contains:  <property>     <name>instanceId</name>     <value>$INSTANCE_ID</value> </property> <property>     <name>rootPath</name>     <value>/services/$SERVICE_NAME</value> </property>   ...etc. I want to replace $INSTANCE_ID in the file with the value of the INSTANCE_ID environment variable, $SERVICE_NAME with the value of the SERVICE_NAME env var. I won't know a priori which environment vars are needed (or rather, I don't want to have to update the script if someone adds a new environment variable to the config file). Thanks!


Error using sp_trace_create with parameters

I'm running the following SQL on SQL Server 2000:  exec sp_trace_create @options = 2,          @tracefile = N'h:\\trace.trc',          @filecount = 2   and am getting the following error and can't understand why:     Procedure expects parameter '@tracefile' of type 'nvarchar(128)'   If I pass all of the parameters in like so:  declare @id int  exec sp_trace_create @id output,          @options = 2,          @tracefile = N'h:\\trace.trc',          @filecount = 2,          @maxfilesize = 5,          @stoptime = '2013-8-15'   I get the error:     Procedure or function sp_trace_create has too many arguments specified.


I modeled the city scape. I pressed something and all I can see now is half of the model.


close vote reviews: are duplicates randomly selected or did people propose them?

In some close vote reviews (e.g. ) there are proposed duplicates.  However, in the close view, there appear to be zero votes for duplicate.  Are duplicates based on actual proposals or are they just selected randomly?


Prove that two mutually exclusive events with positive probabilities can’t be independent.

Let the two events be $A$ and $B$.The condition for both to be mutually exclusive is that their intersection should be a null set and the condition for independence is that their intersection should be equal to the product of the two probabilities. Now how do I proceed? Or do I just have to write that if the the events are both mutually exclusive and independent then one of the events will have zero probability ?


Prove there exist $2 \times 2$ matrix $B$ such that $B^3=A^2$, for every $A$.

Prove the following, for every $2 \times 2$ matrix $A$ with complex entries, there exist $2 \times 2$ matrix $B$ with complex entries, such that $$B^3=A^2$$ (working in the field of complex numbers) My attempt so far, take the Jordan decomposition of $A$ to get $$A=UJU^{-1}$$ then $$A^2=UJ^2 U^{-1}$$ I have  $J=D+S$ where $D$ is diagonal and $A$ is nilpotent, for $2 \times 2$ matrices the only nilpotent matrix is $$\begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}$$ Then $$J^2=(D+S)^2=D^2+DS+SD$$ Now chose $G$ such that $$G^3=J^2$$ (can I do that?) then finally I have $$B^3=UG^3U^{-1} =UJ^2U^{-1}=A$$. I am stuck at this point. Is this the correct approach? What should I do next?


Keyboard shortcut for "to the power of" (exponent) signs?

Is there a keyboard shortcut for "to the power of" signs?  Example: ²


Sine of the sum of two solutions of $a\cos\theta + b \sin\theta = c$

This is kind of a new type of question for me:  If $\alpha$ and $\beta$ are two different roots of the equation $a\cos\theta + b\sin\theta = c$, then show that $$\sin(\alpha+\beta) = \frac{2ab}{a^2 + b^2}$$  Could someone please explain the procedure to me?


this happens every time i load it, but i dont know how to fix it.  16:00:53    launcher    Preparing to launch minecraft client for 1.8.9   16:00:53    launcher    Checking installations.   16:00:53    launcher    Minecraft client 1.8.9 is ready to start.   16:00:53    launcher    Starting!   16:00:55    launcher    Using default game log configuration client-1.7.xml (outputs XML)   16:00:57    ave Setting user: ASUfan   16:00:57    ave (Session ID is token:4918f14dc0964316b0c451978a27eed3:9b055a259386464cb70d5f589d9e008c)   16:00:59    ave LWJGL Version: 2.9.4   16:00:59    ave Couldn't set pixel format org.lwjgl.LWJGLException: Pixel format not accelerated         at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at  org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at ave.ap(SourceFile:521)     at ave.am(SourceFile:363)     at ave.a(SourceFile:310)     at net.minecraft.client.main.Main.main(SourceFile:124)


What expressions/words are still used in Indian English that are no longer in British English?

I was traveling through India recently and noticed that many expressions that people used that I saw were somewhat older expressions, now disused in Standard English. Examples of these were:     Please do the needful   Out of station   HORN OK Please   – and a few others. I also saw a sign that said:     Please do not pluck the flowers.   Now I've heard of colonial lag and it seems that these are phrases that have fallen into disuse in the English language used in the west. I wanted to ask if there are other Indian English words/phrases that have retained their original meaning, but have fallen into disuse in (if I may, for said purposes) 'western English'?


Fantasy book set on a desert world with the protagonist mind-melding with a cat

I read a fantasy (?) series 25+ years ago, and it has strangely been on my mind. It took place on a desert-like world not unlike the Middle East.  Language was similar too.   Main character was a young man that mind-melded with a very large cat (reminds me of Avatar's character with the flying creature). He rode on his back. This image was on the cover.


Half exact functor which is neither right exact nor left exact

A half exact functor is a functor F (between abelian categories) such that for every short exact sequence: $$ 0 \to A \to B \to C \to 0$$ then $$F(A) \to F(B) \to F(C)$$ is exact. Does anyone has an example of a half exact funtor that is not right nor left exact? What about a functor between abelian categories that is not right nor left nor half exact?


Does "corresponding author" carry an implied meaning?

After reading the question , I got the impression that (at least in the writers' field) the "corresponding author" flag could carry an implied meaning, such as "did more work than the other authors", or "is a more senior author". Is it the case?  I am in mathematics, a field where we typically sort the authors alphabetically, and I've never given any importance to that role (apart from "this author is willing to answer a couple of extra e-mails, if needed").


Let $U$ be the open right half-plane. Suppose $f$ is a nonzero analytic function on $U$ whereby there exists $\theta \in (-\frac{\pi}{2}, \frac{\pi}{2})$ such that  \begin{equation}\lim_{r\to \infty}\frac{\ln |f(r\exp(i\theta))|}{r}= - \infty.\end{equation}  Then $f$ is unbounded.  It feels to me like it’s an application of Hadamard three-circle theorem.


Is it okay to use a ntfs partition for data to be accessed by windows 7 and ubuntu?

Constantly, I use windows and ubuntu and need to access files on both systems. It sucks to be copying files back and forth and sometimes I forget some file and I have to restart several times. To resolve this I created the following partitions   Device     Boot     Start             End   Blocks      Id System  /dev/sda1    *       2048         1026047   512000       7 HPFS / NTFS / exFAT  /dev/sda2       1,026,048      35,842,047   17,408,000  27 Hidden NTFS WinRE  /dev/sda3        35842048       247212031   105684992    7 HPFS / NTFS / exFAT  /dev/sda4     247,214,017   1,250,263,039   501,524,511+ f Win95 (LBA) Extended Partition  /dev/sda5       247214080      1053323263   403054592    7 HPFS / NTFS / exFAT  /dev/sda6   1,053,327,360   1,233,903,615   90,288,128  83 Linux  /dev/sda7   1,233,905,664   1,250,263,039    8,178,688  82 Linux swap / Solaris   Some people and websites say that doing so is not recommended. Will I have problems?


Increment Counter in a while loop after X seconds

I am trying to run a script which takes input from text file and based on the number of entries in it, a command is executed as many number of times.  Below is an overview:  cat /tmp/file.txt | while read name do <<execute a command using value of $name>> done   What is happening is sometimes the command executed for particular $name is getting hung due to known issues. Therefore I need in such cases that the command on every value of $name runs only for X number of seconds and if it is not able to complete within that stipulated time, terminate the process and increment loop counter.  I was able to make use of sleep and kill but it is terminated the entire loop. I want the next values to be processed in case command gets hung on a row/value. Please advise.


How to leave the Philippines by boat to Taiwan, China or Hong Kong?

We are now trying to do a world tour without flying, and after a bit more than two years we are facing one of the biggest challenges of our journey, crossing the Pacific. We know there are few opportunities to get a freighter to the US from HK or several cities of China.  As we are currently in the Philippines, the challenge is now to reach HK or China. The latest can easily be done from Taiwan. Any idea (best harbour to look for info, shipping companies name, unexpected new ferry company..) or contact that may help to go from the Philippines to one of the place stated before?  I know a very  was already asked, but it was unclear if the asker managed to reach Taiwan or not.


Pad number within string and rename file

I have some filenames as such.  a2.txt.gz d12.txt.gz k5.txt.gz m4.txt.gz ...   one character followed by 1 or 2 numbers followed by .txt.gz. I would like to add single numbers with a zero before the number like below.  a02.txt.gz d12.txt.gz k05.txt.gz m04.txt.gz ...   I tried something like this but it doesn't seem to work.  find . | grep -E "[a-z][0-9]{1}\.+" | sed -er s/\([a-z]\)\([0-9]{1}\)\(.txt.gz\)/\10\2\3/   My logic was to first grep single digit filenames, then split into 3 parts character, number and .txt.gz and then add add 0 before number. But I can't get it to work. And I am not sure about the rename part.


How can I change this method to query my master detail object?

I am new to Apex trying to do some practice assignments and have gotten stuck on this junction object query.  Task: Edit the current getUser() method to do the following:  Return a custom object (that you define in the class) with the current getUser method's query data, and the list of teams the person belongs to (by querying the team assignments).   Parent Object 1: User (Standard Object) Parent Object 2: Team (Custom Object) Junction Object: Team Assignments (Custom Object)    **Original Class & getUser Method** global class CTI {     global class CTIException extends Exception {}      global static User getUser() {          return [SELECT Id, Name, ProfileId, Profile.Name, UserRoleId, UserRole.Name, Username                  FROM User WHERE Id = :UserInfo.getUserId() ];     } }


How to create a tuple with a method that returns the n'th element

The code :      template< typename... TemplateArguments >     class Tuple     {}      template< typename ExposedType, typename... TemplateArguments >     class Tuple< ExposedType, TemplateArguments... > : public Tuple< TemplateArguments... >     {     public:          template < uint64_t ArgumentNumber >         typename std::enable_if< ArgumentNumber != 1, typename TypeHolder< ArgumentNumber, Tuple< ExposedType, TemplateArguments... > >::m_type& >::m_type Entry();          template < uint64_t ArgumentNumber >         typename std::enable_if< ArgumentNumber == 1, typename TypeHolder< 1, Tuple< ExposedType > >::m_type& >::m_type Entry();          ExposedType m_data;      };      template< uint64_t ArgumentNumber, typename ExposedType >     class TypeHolder     {};      template< typename ExposedType, typename... TemplateArguments >     class TypeHolder< 1, Tuple< ExposedType, TemplateArguments... > >     {     public:          typedef ExposedType m_type;      };      template< uint64_t NumberOfArguments, typename ExposedType, typename... TemplateArguments >     class TypeHolder< NumberOfArguments, Tuple< ExposedType, TemplateArguments... > >     {     public:          typedef typename TypeHolder< NumberOfArguments - 1, Tuple< TemplateArguments... > >::m_type m_type;      };   And the implementation of the entry methods :      template< typename ExposedType, typename... TemplateArguments >     template < uint64_t ArgumentNumber >     typename std::enable_if< ArgumentNumber != 1, typename TypeHolder< ArgumentNumber, Tuple< ExposedType, TemplateArguments... > >::m_type& >::m_type Tuple< ExposedType, TemplateArguments... >::Entry()      {         Tuple< TemplateArguments... >& baseTuple = *this;          return ( baseTuple.EntryL< ArgumentNumber - 1 >() );     }      template< typename ExposedType, typename... TemplateArguments >     template < uint64_t ArgumentNumber >     typename std::enable_if< ArgumentNumber == 1, typename TypeHolder< 1, Tuple< ExposedType > >::m_type& >::m_type Tuple< ExposedType, TemplateArguments... >::Entry()      {         return ( m_data );     }   The point is to create a tuple object that has a method that returns a reference to the required element, when the use should be like this :  Tuple< int, int > tuple_1( 8, 10 );  tuple_1.Entry< 1 >() = 14;   When trying to compile this I get the error :  error: expected primary-expression before ‘)’ token  return ( baseTuple.Entry< ArgumentNumber - 1 >() );                                                 ^   Can anyone help with this problem? or to show the right way how to do this?  Thank you!!  Edit:  It works if I add true :  return ( baseTuple.EntryL< ArgumentNumber - 1 >( true ) );   Why??


Have content type Article. Content type Article has a field, called "Need Further Review", of boolean type. This field is not required, default value FALSE. The articles has value TRUE, FALSE, NULL for this field. TRUE: select true FALSE: select false NULL: the previous articles still have no value for this field. Have a view to list articles. It uses SOLR search. A filter criteria is this field "Need Further Review", and is exposed. It has options: Any, TRUE, FALSE. When users select TRUE, it will list articles with TRUE value of this field. When users select FALSE, it usually lists articles with FALSE value of this field. Now I want to list articles with FALSE and NULL value of this field when selecting FALSE. How to use SOLR search hook_search_api_solr_query_alter to do it?


Inductive proof that every person supports the same team

I can't find what's wrong with this.  Proof:  Every person supports the same team.  We can observe that in a set with only one person, all people within it support the same team. Now suppose that the statement is true for every set with cardinality $≤ n$. Then if there are $n + 1$ persons in a set, we take one of them and, by the hypothesis, all $n$ persons support the same team. Now put this person back to the initial set and remove a different one. Again, all the $n$ persons left support the same team. Therefore all $n + 1$ persons support the same team, and for every $k$ in $\mathbb N$, those $k$ people support the same team.


Mathematical Induction - Postage Stamp Problem

"Find the smallest value of a such that for every integer ≥ a, it is possible to produce n cents of postage using 4 cent and 7 cent stamps."  My only guess of how to start this is to set a = 11 cents because it is the smallest value obtained with both coins.   Am I on the right track? Where do I go from here? Frankly, I'm not sure I even entirely understand what the problem is asking.


How can I fix this message:  Fontconfig warning: "msfonts-rules.conf", line 23: Having multiple values in <test> isn't supported and may not works as expected


Why linear regression one variable uses squared cost function?

This is about linear regression course given by Andrew Ng on Coursea about machine learning. why cost function is $$  \frac{1}{m} \sum _{i=1}^m \left(h_\theta(X^{(i)})-Y^{(i)}\right)^2 $$  and not simply: $$  \frac{1}{m} \sum _{i=1}^m \lvert h_\theta(X^{(i)})-Y^{(i)} \rvert $$


How to prove or disprove $\forall x\in\Bbb{R}, \forall n\in\Bbb{N},n\gt 0\implies \lfloor\frac{\lfloor x\rfloor}{n}\rfloor=\lfloor\frac{x}{n}\rfloor$.

How to prove or disprove $\forall x\in\Bbb{R}, \forall n\in\Bbb{N},n\gt 0\implies \left\lfloor\frac{\lfloor x\rfloor}{n}\right\rfloor=\left\lfloor\frac{x}{n}\right\rfloor$.  So we want to prove $\left\lfloor\frac{\lfloor x\rfloor}{n}\right\rfloor\ge\left\lfloor\frac{x}{n}\right\rfloor$ and $\left\lfloor\frac{\lfloor x\rfloor}{n}\right\rfloor\le\left\lfloor\frac{x}{n}\right\rfloor$  Since $\lfloor x\rfloor\le x$, we can just start from here and prove  $\left\lfloor\frac{\lfloor x\rfloor}{n}\right\rfloor\le\left\lfloor\frac{x}{n}\right\rfloor$  But for $\left\lfloor\frac{\lfloor x\rfloor}{n}\right\rfloor\ge\left\lfloor\frac{x}{n}\right\rfloor$, I have no idea how to start.


Probability a random walk is back at the origin

I have a symmetric random walk that starts at the origin. With probability $1/6$ it goes right by one and with probability $1/6$ it goes left by one. With probability $4/6$ it stays put.  After $n$ time steps, what is the probability that it is at the origin?  The answer should be the probability that you go left by the same amount you go right.  I am having difficulty working this out however.


Unable to change payment information to NONE in iOS Appstore

Ever since adding an iTunes gift card to my account, I'm getting verification requests like crazy. I can't even download free apps. It takes me to my payment info and when I try to select none, I continually get a message under the payment info that says "you must verify your payment info to continue"  I don't want a credit card on file and would really like the none option to work. My ID shows I still have iTunes credit.


How to create a Kaplan-Meier plot using ggplot2 with the number at risk table beneath

I want to create a Kaplan-Meier plot using ggplot2 with a number at risk table beneath. The number at risk table should be aligned to the x-axis ticks of the Kaplan-Meier plot.   I found how to determine the number at risk with the following result for my example:     Group.A Group.B 1      630    1220 2      518    1024 3      416     850 4      360     760 5      318     702 6      288     652 7      185     438 8       75     179 9       13      29 10       0       0   But how can I add these numbers at risk aligned to the x-axis ticks beneath the Kaplan-Meier plot (row names of the above shown data frame = year - 1 ... not all rows will be used, since I truncated the plot after 5 years)? The  function does not help me here, since I would like to write my own more flexible plot.  I wrote the following example.  library(survival) data(colon) library(Hmisc)  d <- colon[, Cs(time, status, rx)] rm(colon) names(d) <- c("days", "event", "group") d$group <- ifelse(d$group == "Obs", 1, 2)  fit <- survfit(Surv(days,event)~group, data=d) diff <- survdiff(Surv(days,event)~group, data=d)  risksets <- with(na.omit(d[, Cs(days, event, group)]), table(group, cut(days, seq(0, max(days), by=365) ) )) number.at.risk <- sapply(1:nrow(risksets), function(i) Reduce("-",  risksets[i,], init=rowSums(risksets)[i], accumulate=TRUE)) number.at.risk <- data.frame(number.at.risk) names(number.at.risk) <- c("Group.A", "Group.B") number.at.risk  ### p.value <- round(1 - pchisq(diff$chisq, 1), digits=4) p.value <- ifelse(p.value < 0.001, "<0.001", paste("= ", p.value))  d.mortality <- data.frame(time=fit$time, surv=fit$surv, strata=summary(fit, censored=T)$strata) zeros <- data.frame(time=0, surv=1, strata=unique(d.mortality$strata)) d.mortality <- rbind(d.mortality, zeros) levels(d.mortality$strata) <- c("Group A", "Group B") d.mortality$surv <- (1-d.mortality$surv)*100 # event free to events and in % ### g <- ggplot(d.mortality, aes(time, surv, group=strata)) +       geom_step(aes(colour=strata), size=1) +      theme_bw() + # white background      theme(           plot.background = element_blank(),            panel.grid.major = element_blank(),           panel.grid.minor = element_blank(),           panel.border = element_blank(),           legend.position="none",           axis.line = element_line(color = 'black'),           axis.text.x = element_text(size=15),           axis.text.y = element_text(size=15),           axis.title.x = element_text(size=17, hjust=.5, vjust=.25, face="bold"),           axis.title.y = element_text(size=17, hjust=.5, vjust=1.5, face="bold"),           plot.title = element_text(size=20, hjust=-.1, vjust=1, face="bold")      ) +      scale_y_continuous("Cumulative event rate [%]", limits=c(0, 60)) +       scale_x_continuous("Time [years]", limits=c(0, 1825), breaks=seq(0, 1825, 365), labels=c(0, 1, 2, 3, 4, 5)) +      annotate("text", x = 1000, y = 45, label = "Group A") +      annotate("text", x = 1000, y = 30, label = "Group B") +      annotate("text", x = 1000, y = 55, label = paste("P ", p.value, "by log-rank test", collapse=""))  print(g)


Order of elements is lcm-closed in abelian groups

How can I prove that if $G$ is an Abelian group with elements $a$ and $b$ with orders $m$ and $n$, respectively, then $G$ contains an element whose order is the least common multiple of $m$ and $n$?  It's an exercise from Hungerford's book, but it's not homework. I could not solve it when I take the course on groups and I think it should be easy. There is a hint that says to first prove when $m$ and $n$ are coprimes. I did this part. But I have no idea how to solve the general case.  Thanks.


I am trying to compile a document which has this reference:  @article{7103024,     Abstract = {The complexity of indoor radio propagation has resulted in location-awareness being derived from empirical fingerprinting techniques, where positioning is performed via a previously-constructed radio map, usually of WiFi signals. The recent introduction of the Bluetooth Low Energy (BLE) radio protocol provides new opportunities for indoor location. It supports portable battery-powered beacons that can be easily distributed at low cost, giving it distinct advantages over WiFi. However, its differing use of the radio band brings new challenges too. In this work, we provide a detailed study of BLE fingerprinting using 19 beacons distributed around a ~600 m2 testbed to position a consumer device. We demonstrate the high susceptibility of BLE to fast fading, show how to mitigate this, and quantify the true power cost of continuous BLE scanning. We further investigate the choice of key parameters in a BLE positioning system, including beacon density, transmit power, and transmit frequency. We also provide quantitative comparison with WiFi fingerprinting. Our results show advantages to the use of BLE beacons for positioning. For one-shot (push-to-fix) positioning we achieve <; 2.6 m error 95% of the time for a dense BLE network (1 beacon per 30 m2), compared to <; 4.8 m for a reduced density (1 beacon per 100 m2) and <; 8.5 m for an established WiFi network in the same area.},     Author = {R. Faragher and R. Harle},     Date-Added = {2017-10-27 13:12:59 +0000},     Date-Modified = {2017-10-27 13:12:59 +0000},     Doi = {10.1109/JSAC.2015.2430281},     Issn = {0733-8716},     Journal = {IEEE Journal on Selected Areas in Communications},     Keywords = {Bluetooth;indoor navigation;indoor radio;mobility management (mobile radio);radiowave propagation;BLE radio protocol;Bluetooth low energy radio protocol;WiFi signal;continuous BLE scanning;dense BLE network;empirical fingerprinting technique;indoor radio propagation complexity;location awareness;location fingerprinting;one-shot positioning;radio map;Advertising;Aggregates;Batteries;Bluetooth;Fading;IEEE 802.11 Standards;Interference;Bluetooth Low Energy Positioning;Bluetooth Positioning;Indoor positioning;Location fingerprinting;bluetooth low energy positioning;bluetooth positioning;iBeacons;location fingerprinting},     Month = {Nov},     Number = {11},     Pages = {2418-2428},     Title = {Location Fingerprinting With Bluetooth Low Energy Beacons},     Volume = {33},     Year = {2015},     Bdsk-Url-1 = {http://dx.doi.org/10.1109/JSAC.2015.2430281}}   But lualatex somehow crashes after I run the biber command. But if I remove the entry named above everything works. Does the abstract somehow contain a character which is not allowed?


linear versus nonlinear dimensionality reduction techniques

I was going through a short tutorial on dimensionality reduction techniques. Some of these techniques are linear while others are non-linear. What is the distinction between them? Why the terms 'linear' and 'non-linear'?


Adjust thresholds in multi-class classification

I have trained a random forest classifier on a (highly-imbalanced) 3-class problem (A 1% of the data, B 96%, C 3%) and obtained probabilities for each of the three classes.   Currently I assign an observation to the class with the highest probability.  Is there a possibility to adjust the thresholds so I can make a statement like "With maximal 1% probability we will be predicting B though it is actually A"? How can this be done? I really need to control for this type of error while other errors are not that important.


"JQMIGRATE: Migrate is Installed" How do I find the problem code?

I have a site and since updating to 4.5 it has a very subtle display bug that seems jQuery related (full bleed images have a white border that snaps away into correctness when you resize window).   The theme hasn't been updated since 2014.  The only lead we have is this in the console:  JQMIGRATE: Migrate is installed, version 1.4.0  My understanding is that this indicates some of the jQuery in the plugins or theme is using old API's and this adds compatibility.     How can I figure out the code that's causing it?  I suspect that the display problem is related, and even if it isn't I figure I should start there either way.   Thanks for any help!


Attaching different eventListeners for each item in for-of-loop

For this exercise I am trying to create a mailbox mostly based on javascript. After all the emails are fetched, I display them with a for-of-loop. What I need to do now is provide an event listener to each email that runs the "show_email" function when I click on the mail. Unfortunately when I run this code and then try to click on an email, it always loads the email with the email.id that is 1, instead of the email with the email.id according to the loop position. Right now I have no idea how to fix this. Thanks for any help! function inbox() {   console.log('running function inbox');   fetch('/emails/inbox')   .then(response => response.json())   .then(emails => {     // looping through all mails to display them on the screen     for (email of emails){       const element = document.createElement('div');         element.innerHTML = `
         ${email.sender}         ${email.subject}         ${email.timestamp}
`;       // Link to open individual email (here it does not do what I want)       element.addEventListener('click', () => show_email(email.id));       document.querySelector('#emails-view').append(element);     }        }); }  function show_email(id) {   console.log(`Email ${id} is loaded...`) }


I need to take a 2-minute exposure shot of a landscape scene on a regular sunny day at, let's say, f/4.5. I suppose I'll need to use ND filters for this purpose, but how do I figure out how many filters will I need to buy?


Monitoring a keyboard in a non-active window

How would one listen to key presses on a specific keyboard in a background c# process?  Context: We have a barcode scanner which currently requires a window to be active to read what's scanned.  At the moment the window has to be active which isn't ideal.


Why is Stack Overflow's meta also the meta of the whole Stack Exchange engine?

I've just asked six questions on , and one has been referred to this site.  Looking closer, I realized that this meta site is not just for Stack Overflow, as it seems from its name.  I think I'll need to transfer a couple of my questions over here.  Why are the two metas (the one for Stack Overflow and the one for all sites) merged into one instead of being separate?


How can I apply a modifier to selection only?

I'm making a cookie cutter model to 3D print, and I want to extrude the upper ring of faces to be wider on the top (or just make it thicker on X/Y axes)    I've tried selecting the upper ring and separating it, then applying solidify modifier and later joining both meshes with CTRL+J into one. It looked kind of like I wanted to, but as a side effect I got a few unfixable non-manifold edges so in the end my 'solution' was garbage. Any other ways?


Can you explain this line of linear search algorithm?

So what's this line means? int n = sizeof(arr) / sizeof(arr[0]) Why are we dividing arr with arr[0] and whats the use of n here? #include <iostream> using namespace std;   int search(int arr[], int n, int x) {     int i;     for (i = 0; i < n; i++)         if (arr[i] == x)             return i;     return -1; }   // Driver code int main(void) {     int arr[] = { 2, 3, 4, 10, 40 };     int x = 10;     int n = sizeof(arr) / sizeof(arr[0]);         // Function call     int result = search(arr, n, x);     (result == -1)         ? cout << "Element is not present in array"         : cout << "Element is present at index " << result;     return 0; }


What is supposed to happen in Verilog if a signal of one width is assigned to another signal of a different width?

As in these two cases:  wire [3:0] A, B; wire [4:0] C, D;  assign A = C;  // larger width to smaller width assign D = B;  // smaller width to larger width   What should A and D look like in terms of C and B respectively?


Android-app renders posts with huge vertical gaps

This is not a duplicate of  or , because there the post is not readable at all.   What I experience now is that the post is complete but with a huge blank gap in between.      Both screenshots show the same post, I have to scroll at least one whole screen between them, refreshing the view will sometimes help, sometimes a third refresh will bring the gap back.  The post in this example is   I am using 1.0.73 on a S3-mini (GT-I8190), Cyanogenmod 11.


Show that any four polynomials in $P_2$ are linearly dependent

[I attempted this question but just wanted to check if I'm on the right track.   I started the question by :  Let { ($a_o$+$a_1$$x^2$), ($a_o$-$a_1$$x^2$), ($a_1$$x^2$-$a_0$), ($a_1$$x^2$-$a_2$x) ∈ $P_2$  Followed by putting in vector form and into a matrix, reducing it to row echelon form and comparing the rank to the number of columns to determine it is lenearly dependent. Am I right to do it this way?


My input is not taken by if else if statment

I'm generating a random number from 1 to 100 and showing it to user and then I will get 20 chances to to guess that random number. The response should be either YES or NO but right now when I run this program it just takes input from user and end the execution it is not visiting the if else if loop    Code  public static void main(String args[]) {     Random rand = new Random();     int rand_int1 = rand.nextInt(100);     System.out.println("Random value is = " + rand_int1);      int n = 20;      Scanner userinput = new Scanner(System.in);      System.out.println("is your number is form 0 to 50 ?");     String ans1 = userinput.nextLine();     System.out.println("ans : " + ans1);      if (ans1 == "yes") {         System.out.println("number is more then 50");     }     else if (ans1 == "no") {         System.out.println("number is less then 50");     } }   Example Output  Random value : 23  is your number is more then or equal to 50? ans : No   Later, I will add more code so this will also be in the output:  is your number is less then or equal to 25? ans : Yes


Using enumerate environment within a theorem environment

I am writing a math article, and when I am in a theorem environment and I try to use the enumerate environment, everything is italicized where, out of the theorem environment, it wouldn't be.  Is there a way to get my item labels to look like (I), (II), etc., instead of the italicized forms of these item labels that I am currently getting?


Should I use "ORing" or "OR'ing" when referring the verb of the Boolean logical operator "OR"?

I'm not sure whether I should use ORing or OR'ing when referring to the action of applying the Boolean operator OR to two terms. I am a native English speaker and I know that someone would understand what I mean (in the context of computer science), but I am not sure if this is an actual word. I haven't found any meaningful results in a reputable dictionary, though I have seen OR'ing used. My gut feeling is that an apostrophe should be used because it would clearly separate the noun in the word and help the reader identify that this is an unusual word. Another example of this would be how butter is a noun and buttering is a verb meaning to apply the related noun to something; however, this is a commonly used word. Something more unusual, yet feasible, would be mayonnaise'ing (or mayonnaising).   Aside: I lack knowledge of linguistics to beable to include relevant jargon and terms to this question. My instinct is that this question title can be phrased to be more general and helpful to others; if someone has a suggestion to reword the question title to be of more help to others, I would be happy to do so. Also, I tagged this as best as I could and would not be opposed to improving the tagging by suggestions from knowledgeable users.


How can a railcar withstand high pressure but fail under a vacuum?

A 25,000 gallon (95,000 litre) bulk chemical storage railcar can store products with vapor pressures in excess of 200 psia (1.38 Mpa). The same railcar can not withstand a vacuum when being unloaded. I want to understand why.   A bulk chemical storage car in this example (assume refrigerant on a warm day) is unique in it's design in the sense that it is a pressure vessel contains well over 200 psig (1.38 MPa) internal pressure whereas many metal tanks are rated for far lower pressures thus the pressure differential between atmosphere and the inside of the metal tank may be typically be close to the difference found in this example, 14.7 psi (101 kPa) or less.  The definition of a metal tanks can be open to interpretation not only with regard to pressure ratings but also wall thicknesses. One of the answers posed refers to plastic or aluminum soda containers. The material properties are far different than those typically found in the types of rail cars I have presented here.


Item: "Documents", Kind "Unknown" in Login Items

In my Login Items on Mac OS 10.11.3 I see an item called "Documents". The Kind is specified as "unknown" and there is a yellow warning sign at the end of the line.   No further information is shown when I hover or click the warning sign or the item. I checked the loginwindow.plist, but couldn't see anything relating to the item in question.  I don't want to .   Does anyone know what this item is supposed to do and how I could further inquire what is wrong with it?


Have object with texture, import and there is no texture on object

I'm trying to do some Minecraft animation, so I get some textures and rigs and did this.     But when I import that object I´ve got this    I'm little bit newbie and I want to join to Blender community.


Calculation of population mean and standard deviation using a vector of sample means and standard deviations

I need to calculate the average and standard deviation of a population. However, I only have the information of sample means and standard deviations.  To be more precise, I have a vector of means $\bar{\mathbf{x}}=(\bar{x}_1, \bar{x}_2, \ldots, \bar{x}_N)$ with corresponding vector $\mathbf{n}=(n_1, n_2, \ldots, n_N)$ of sample sizes and a vector of standard deviations $\mathbf{s}=(s_1, s_2, \ldots, s_N)$. I need to compute the overall average and standard deviation.  To obtain the overall mean, I calculated it using the formula $$\bar{x}=\dfrac{\sum_{i=1}^N\bar{x}_in_i}{\sum_{i=1}^Nn_i}.$$ Whereas, for the overall standard deviation, I can compute it from the overall deviation $$Var=\frac{1}{n−1}\left(\sum_{j=1}^N(n_j−1)V_j+\sum_{j=1}^Nn_j(\bar{x}_j−\bar{x})^2\right)\,\;,$$ where $V_j$ is the deviation of the of the $j-$th sample.   Is there a way that I could compute these values in a "online" /  "streaming way" (e.g., when the vectors are infinite) using only the aforementioned vectors?  Thanks in advance  Note that this question can be seem as complement to:   https://stats.stackexchange.com/questions/216047/how-does-one-go-about-determining-the-standard-deviation-of-an-entire-sample-dat, where the above formula for deviation is presented and https://stats.stackexchange.com/questions/72212/updating-variance-of-a-dataset, where the mean and deviation are update at each new observation. In my case, I do not have access to the observations.


Ring isomorphism (polynomials in one variable)

Find an explicit isomorphism of the map $h: \Bbb F_5[x]/(x^2+x+2) \to \Bbb F_5[x]/(x^2+4x+2)$  I take the question to mean showing the 2 rings are isomorphic by finding an explicit mapping of each element.   I think $x^2+x+2$ and $x^2+4x+2$ are irreducible over $\Bbb F_5$, so these are both fields.  Also $x^2=4x+3$ in the first case and $x^2=x+3$ in the second.  But beyond these basic facts I'm not sure how I should proceed.


We are looking at buying a domain and all .com options are gone. I was thinking to get something like <businessname>.store but i was wondering if .store would effect SEO of the website? is it better or is it bad? Or does it even matter now a days.   I am not sure if i am using correct terminology for TLD so i couldn't find an answer when i was trying to google. So any help would be appreciated.


No discovered URLs and index covered button is disabled

I am using Rank Math as an SEO plugin As per there recommendations as well as google recommendations, I should only add the index XML file  But I got discovered URLs= 0 and index coverage button is disabled    PS: the site map index has been added 1 month ago!


Creating rainbow method for expansion in latex

I am looking to typeset this in latex.    Could anyone suggest a method or package that would enable me to do this?  Thank you!


Bluetooth is not detecting devices Ubuntu 16.04 LTS

I have been using the Windows 8.1 and Ubuntu 16.04 on my laptop, everything works fine in the Ubuntu except the ubuntu. The Bluetooth device is working great on the Windows 8.1 But it is failed to detect devices in the ubuntu 16.04  The Output of the  lspci -knn | grep Net -A3; lsusb is  08:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)     DeviceName: Broadcom BCM43142 802.11bgn 1x1 WiFi Adapter + BT 4.0 combo adapter     Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:2230]     Kernel driver in use: wl Bus 001 Device 004: ID 0a5c:216c Broadcom Corp. BCM43142A0 Bluetooth Device Bus 001 Device 003: ID 0bda:5775 Realtek Semiconductor Corp. HP "Truevision HD" laptop camera Bus 001 Device 002: ID 8087:8000 Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 078: ID 045e:0797 Microsoft Corp. Optical Mouse 200 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   The Output of the dmesg | grep -i blue is  [   42.023723] Bluetooth: Core ver 2.22 [   42.023742] Bluetooth: HCI device and connection manager initialized [   42.023745] Bluetooth: HCI socket layer initialized [   42.023747] Bluetooth: L2CAP socket layer initialized [   42.023758] Bluetooth: SCO socket layer initialized [   42.214949] Bluetooth: hci0: BCM: chip id 70 [   42.230868] Bluetooth: hci0: BCM43142A [   42.230873] Bluetooth: hci0: BCM (001.001.011) build 0000 [   42.496550] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2 [   42.496553] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found [   44.530794] Bluetooth: hci0 command 0x1003 tx timeout [   46.890863] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   46.890865] Bluetooth: BNEP filters: protocol multicast [   46.890868] Bluetooth: BNEP socket layer initialized [   62.204031] Bluetooth: RFCOMM TTY layer initialized [   62.204038] Bluetooth: RFCOMM socket layer initialized [   62.204043] Bluetooth: RFCOMM ver 1.11 [21512.291179] Bluetooth: hci0 command 0x1003 tx timeout   Could anyone help me out


Get quantile function of dynamic mixture model

I have a dynamic mixture distribution fitted to my risk data (i.e., I have all parameters) of Weibull and Generalized Pareto, with a Cauchy CDF mixing function, that can be written as:   \begin{align} \newcommand{\mixture}{{\rm mixture}} \newcommand{\Weibull}{{\rm Weibull}} \newcommand{\Cauchy}{{\rm Cauchy}} &\mixture(x): x\in\mathbb{R^{+}} \to \mixture(x) \in [0,1]  \\ &\mixture(x)=\big\{1-\Cauchy_{CDF}(x)\big\}\times\Weibull(x)+\Cauchy_{CDF}(x)\times GPD(x) \end{align}  in R, this gives:  mixture = function(x){   ((1 - pcauchy(x, location=535, scale=4.21e-04))*dweibull(x, shape=1.22, scale=62.31) +         pcauchy(x, location=535, scale=4.21e-04)*dgpd(x, xi=0.23, mu=0, beta=92.25))[1] }   I want to know if the following is the correct way of writing the quantile function of my mixture (where the $q$ subscripts stand for the quantile functions):  \begin{align} &\mixture_{q}(y): y\in [0,1] \to \mixture_{q}(y) \in\mathbb{R^{+}}  \\ &\mixture_{q}(y)=\big\{1-\Cauchy_{CDF}(\Weibull_{q}(y))\big\}\times \Weibull_{q}(y)+  \\ &\hspace{32mm} \Cauchy_{CDF}(GPD_{q}(y))\times GPD_{q}(y) \end{align}  in R, this translates to:  mixture.quantile = function(y){   ((1 - pcauchy(qweibull(y, shape=1.22, scale=62.31), location=535, scale=4.21e-04)) *          qweibull(y, shape=1.22, scale=62.31) +          pcauchy(qgpd(y, xi=0.23, mu=0, beta=92.25), location=535, scale=4.21e-04) *          qgpd(y,xi=0.23,mu=0,beta=92.25))[1] }   The only thing that changes is that because we are going from $[0,1]$ to $\mathbb{R^{+}}$, but $\Cauchy_{CDF}$ goes from $\mathbb{R^{+}}$ to $[0,1]$, the weighing has to be performed based on the values of the quantile functions and cannot be done based on the values of $x$ anymore (hence the  $\Weibull_{q}(y)$ inside the $\Cauchy_{CDF}(.)$ for instance)... Is that correct??  With this quantile function I can get a Q-Q plot, or directly compare the quantile function of the mixture model with that of my data:  # load packages libs = c("repmis","fExtremes","evmix","evir") lapply(libs, library, character.only=TRUE)  # load data data = source_data("https://www.dropbox.com/s/r7i0ctl1czy481d/test.csv?dl=0")[,1]  # get quantile function values     mixture.quant = numeric(length=length(data)) vector.quant  = ppoints(length(data), a=0) for (i in 1:length(data)){   y                = vector.quant[i]   mixture.quant[i] = mixture.quantile(y) }  # Q-Q plot plot(mixture.quant, sort(data), xlab="theoretical quantile", ylab="sample quantile") abline(sort(data), sort(data), col="red")  # empirical CDF with mixture quantile function overlaid plot(mixture.quant, ppoints(length(data),a=0), col="red", type="l") lines(quantile(data, ppoints(length(data),a=0)), ppoints(length(data),a=0), type="l")       PS: see these other related threads for background: , .


Let p be an odd prime, where a,b are integers such that pł a and płb. Show that the congruence (x^2-a)(x^2-b)(x^2-ab) ≡ 0(modp) is always solvable.

Let p be an odd prime, where a,b are integers such that $p\nmid a$ and $p\nmid b$. Show that the congruence $(x^2-a)(x^2-b)(x^2-ab) \equiv 0\bmod p$ is always solvable.    I know that (a/p) and (b/p) is equivalent to $(-1)^{(p^2-1)/8}$


App keeps crashing after clicking button in emulator

Whenever i run the app, enter the name and press the submit button the app crashes.Here's the code   public class MainActivity extends AppCompatActivity {  int x, sum=0;  String str,str2;  @Override  protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     Toolbar toolbar = findViewById(R.id.toolbar);     setSupportActionBar(toolbar);      final Button chk = findViewById(R.id.check);     final Button sub = findViewById(R.id.submit);     final EditText name = findViewById(R.id.name);     chk.setEnabled(false);      sub.setOnClickListener(             new View.OnClickListener() {                 public void onClick(View view) {                     x = str.length();                     str = name.getText().toString();                     if (x >= 4 && x <= 10)                         chk.setEnabled(true);                 }             });   And here's the xml code for the submit button       <Button      android:id="@+id/submit"      style="@style/Widget.AppCompat.Button.Colored"      android:layout_width="wrap_content"      android:layout_height="wrap_content"      android:layout_marginBottom="8dp"      android:layout_marginEnd="8dp"      android:layout_marginStart="8dp"      android:layout_marginTop="8dp"      android:text="@string/submit"      app:layout_constraintBottom_toBottomOf="parent"      app:layout_constraintEnd_toEndOf="parent"      app:layout_constraintStart_toStartOf="parent"      app:layout_constraintTop_toTopOf="parent" />   I'm a beginner and it's my first app so please excuse me if you find it a naïve question. The following is the logcat message:  12-11 22:55:20.678 4277-4277/com.example.shantanu.namerank D/AndroidRuntime: Shutting down VM  12-11 22:55:20.702 4277-4277/com.example.shantanu.namerank E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.shanu.namerank, PID: 4277 java.lang.NullPointerException: Attempt to invoke virtual method 'int'java.lang.String.length()' on a null object reference  at com.example.shanu.namerank.MainActivity$1.onClick(MainActivity.java:32)  at android.view.View.performClick(View.java:5610)  at android.view.View$PerformClick.run(View.java:22265)  at android.os.Handler.handleCallback(Handler.java:751)  at android.os.Handler.dispatchMessage(Handler.java:95)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6077)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)


I need to show that there is no subsets of $\mathbb{R}$ of order type $\omega_1$.  This is a very tricky one, because I was first trying to prove that there are no subsets with cardinality $\omega_1$ by showing that every uncountable subset of $\mathbb{R}$ has cardinality of $P(\omega)$ and thus not $\omega_1$, but I that was not true as there are subsets with cardinality $\omega_1$. The trick for me is to work with order type instead of cardinality.


$xT=x$ iff $x=e$ implies that every $g$ may be written as $x^{-1}(xT)$ for some $x\in G$.

Let $G$ be a finite group, $T$ an automorphism of $G$ with the property that $xT=x$ for $x$ in $G$ if and only if $x=e$. Prove that every $g$ in $G$ can be represented as $g=x^{-1}(xT)$ for some $x$ in $G$.   I don't understand how I should start to pursue a solution.  Can you please give me a hint instead of a whole solution?  Which properties of automorphisms should I use?  Thanks.


Is it really that bad to catch a general exception?

Whilst analysing some legacy code with FXCop, it occurred to me is it really that bad to catch a general exception error within a try block or should you be looking for a specific exception.  Thoughts on a postcard please.


Search boxes and similarly dependant items (like the "Questions that may already have your answer" div) should return answers from all sites.  Rationale:   Search box: If a casual user is searching for something, they shouldn't need to know which site to search. At the moment the process is that they go to the most likely site based on site title and search there. Not everybody knows the 90+ sites we have. Questions that may...: A user could notice that the same question they are asking belongs to another site, or has been answered elsewhere and thus not create an off-topic question on the site.   This specifically refers to the searches on the single sites and it is a different request from .


The material requirement for the spell chromatic orb is a diamond worth at least 50 gp, but in the Dungeon Master's Guide a diamond is listed under the 500 gp gem list. How small would a diamond be that is only worth 50 gp?


Consider the sequence: $x_1=3, x_{n+1}=\frac{x_n}{2}-\frac{2}{x_n}$. This sequence is bounded or is unbounded?   Attempt  Checking a few terms we get $x_1 = 3, x_2 = \dfrac{5}{6}, x_3 = -\dfrac{119}{60},x_4 = \dfrac{239}{14280},\cdots$. I will prove by contradiction that it is bounded. Suppose that the sequence is bounded. Then there exists some $x_k$ such that $x_k \geq \dfrac{x_n}{2}-\dfrac{2}{x_n}$ or  $x_k \leq \dfrac{x_n}{2}-\dfrac{2}{x_n}$ for all $n$.  I seem to get stuck here.


If the matrix rings are isomorphic, then the scalars rings are isomorphic

I'm solving exercises of noncommutative ring theory and I have find across the following problem.     If $D$ and $D'$ are division rings and $M_m(D)\simeq M_n(D')$, show that $D\simeq D'$ and $m=n$.   I have already tried to attack in various ways and I understand that this exercise says that, by the Wedderburn-Artin theorem, a simple Artinian ring $R$ is a ring of matrices over a division ring $D$ unique up to isomorphism.  Any suggestion is appreciated. Thank you.


java (eclipse): the literal of type int is out of range (but I set it as a long)

Eclipse gives me this error message: The literal [number] of type int is out of range. I know that's impossible to define an int with a number which is higher than  2147483647 or lower than -2147483647. The numbers which I want to set as an int are mobile phone numbers (in Switzerland they can have maximum the value of 0999999999 - Isn't this already enough low to define it as an int??).  I changed the variable type of the attributes date and number in the class Person to long. Now I receive the error message which I mentionned above. Why? How can I fix this?  Thank you.   Here is my code:  public class PhoneBook {      public static void main(String[] args) {              Person sister = new Person ();             Person brother = new Person();             Person mother = new Person();             Person father = new Person();              mother.name = "Gertrud";             mother.date = 12041969;             mother.number = 0792467286;              sister.name = "Theresa";             sister.date = 02112002;             sister.number = 0794567843;              brother.name = "Megnitz";             brother.date = 01041999;             brother.number = 0775685421;              father.name = "Randolph";             father.date = 21071966;             father.number = 0764532178;       }  }  ___________________________________________________________________________________________________    public class Person {      String name;     long date;     long number;      public void print() {         System.out.println(name + ", " + "born on " + date + " / " + number);     }  }


How to add an automatic "last edited" timestamp and the user who edited entry to Google Docs?

Is there a way to insert an automatic "last edited" timestamp in the footer of a Google Document?  I would like to make sure that time stamp is on the document when I print. I figure out how to enter a "today" time stamp but need a script to pull "last edited" and, if possible, the user that last edited.


Tourist visa with cancelled old passport and have renewed passport in hand

I got a tourist visa for UAE with my old passport number which was renewed on January 2015.  I got the new passport with new number and in the last page old passport number also mentioned. Can I travel to UAE with this visa by keeping both passports?


Reputation loan for new users to use sensibly?

I am a new StackExchange user and was frustrated to find that the only way to gain reputation at first was to ask a question or answer one quickly. I feel this incentivises new users to post poor-quality answers.  I feel that I have plenty to contribute to scicomp.stackexchange, I just don't have a massive list of new questions to ask.  Can anyone suggest any modifications to the reputation system to aid new users? Perhaps a short-term loan of reputation to perform a few actions - if used sensibly, they get to keep the reputation?  P.S. tried to tag this discussion with 'scicomp.stackexchange' but I need 500 reputation?! Surely this reduces the usefulness of the tags because everyone spams #discussion etc? I redirect you to the question above!


How to upgrade to the latest version from my current Ubuntu version 11.10 without data loss

How can I upgrade to the latest Ubuntu version from the present version 11.10 on my DELL Inspiron N5050 laptop without data loss. Also inform how can download the latest version.


I'm trying to format my thesis to university requirements. My university requires; Second and Third Page of bibliography's title must be "KAYNAKLAR DİZİNİ (devam)" I can't add title to bibliography's second or third page.  \printbibliography[ title={KAYNAKLAR\space DİZİNİ}] %numaralı olsun istersen  optionlarda heading=bibnumbered, yaz \defbibheading{bibliography}[\refname]{%   \section*{#1}%   \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}  \end{document}


For a particle moving in a circle,can $a_t\neq 0$ and $a_r= 0$?

I know for a fact that if a particle is moving in a circle such that the value of radial acceleration is non-zero and the value of tangential acceleration is zero ,then it can be classified as circular motion.But I was wondering if the opposite can be true ,i.e. $a_t\neq 0$ and $a_r= 0$ ? Would the particle be moving in a circle if this was to happen?


I have the following list of strings:  data = ["1","0","1","<>","0","1","0","<>","1","0","1"]   What I'd like as a result is:  [[1, 0, 1], [0, 1, 0], [1, 0, 1]]   E.g. a list of lists where each list is delimited by <> and the resultant strings converted to integers.


theoretical basis for logistic regression

Sorry if this is obvious but why does it seem that some papers/studies (usually in economics discipline) use utility theory as a basis for discrete choice models while others (often social science) do not? If what is being modelled is a binary choice, is a specification of the reasons why this choice is being made (as in, to maximise utility) and an accompanying utility model necessary? It just seems some use it and some don't, even when what is being modelled is essentially the same thing. Thanks


Includes() does not work in Vue! is there something else to use?

So even though I have the same objects, array.includes() does not work in Vue unfortunately. My guess is that behind the scenes Vue alters the object, thus includes() sees it as a different object.  export default {     props: ['sellitem'],     data(){         return {             sells: [ this.sellitem ]         };     },     watch: {         sellitem(value){             if( ! this.sells.includes(value)) this.sells.push(value);         }     }, }   Periodically the component gets new Prop values so I add them to the array sells. But of course when something is already in the array it should not be pushed inside.


I'm new with shell programming. My goal is to give the user a selection which file should be run. I catch all available scripts in one var with:  var=$(find script*)   so far so good, this is the output:      echo $var     script1 script2 script3 scr...   now I want to store each file in a singel variable to run it in later selection  select SEL in script1 script2 script3 .......... case $SEL in         $Script1) echo ($Script1 will start) && ./$script1 ;;         $Script2) echo ($Script2 will start) && ./$script2 ;;         $Script3) echo ($Script3 will start) && ./$script3 ;;         $Sc..) echo ($Scr.... will start) && ./$scrip.... ;;         $Sc...) echo ($Sc...... will start) && ./$scrip..... ;;         *) echo "choose on of the availabel files";;     esac done   I don't have a clue how should I should separate all files if I don't know how many and the exactly length of each file.  I tried to split with echo ${var[1]} and echo $var[1] but this dosn't work. I recive either a empty output or the whole string.


Is there a program for Windows 10 which will give a preview of the output to a monitor in a window?  The use case is for a presentation context, I'd like to mirror the projector onto the stage display monitor (a separate monitor from the primary monitor), whilst also showing additional information on the stage display.


Image viewer without large window borders

I am looking for an image viewer software without very large window borders. I don't need any type of toolbar, just a simple image viewer.   It would also be fine if there is no top bar to close, minimize or maximize window.