When I add the picture, the word and pdf is the full page and the Latex moves to the right of the page. How can I solve this problem?  this is my work. this is my work and pdf link: https://we.tl/t-cgDSwDuu8H  I couldn't stop the pictures from sliding right. What should I do to make the image look like the original PDF file? If I reduce the scale of the picture is centered but this time it becomes very small.  Is a situation caused by page margins?  \documentclass [12pt, a4paper]{article} \usepackage{color} %\usepackage[turkish]{babel} \usepackage{graphicx} \usepackage{tabularx} \usepackage{multirow} \usepackage{graphicx} %\usepackage[pass,showframe]{geometry} %\usepackage[T1]{fontenc}  \begin{document}  \definecolor{renkbir}{RGB}{0,32,96}  \begin{tabular}{ m{8,5cm} m{6cm} } \Large{\textbf{MsdasdasdN }} \large{\textbf{\textcolor{renkbir}{Firma Adı }}} &\small {Uçak Mühendisi \newline T.C No: asd \newline asd \newline asd \newline asd} \end{tabular} \ %Uçak mühendisi Tc No kısımını sağa yaslamak istedim fakat yapamadım.  \begin{center} \large{\textbf{\textcolor{renkbir}{KİŞİSEL BİLGİLER}}} \end{center}  \begin{center} \begin{tabular}{ l l r } Ad & Mehm & \multirow{9}{*}{\includegraphics[scale=0.15]{2.pdf}} \ Soyad & asdasd \ Doğum Tarihi & sanane (23 Yaşında) \ Adres & asd \ Telefon & asd \ Mail & asd \ Sigara Kullanımı & Hayır \ Ehliyet & B \ Askerlik & Tecilli (31.12.2020) \ \end{tabular} \end{center}  %\vspace{1cm} Burası boşluk bırakma komutu.  \begin{center} \begin{tabular}{ m{4cm} m{6cm} m{5cm} } \multicolumn{3}{c}{\large{\textbf{\textcolor{renkbir}{EĞİTİMLER}}}} \ \hline \multirow{2}{}{Üniversite(YL)} & asd \newline Makine Mühendisliği \newline Özel Öğrenci / Türkçe \newline Durumu : Devam ediyor & \multirow{2}{}{Eylül 2018 / } \ \hline \multirow{2}{}{Üniversite} & asd \newline Uçak ve Uzay Bilimleri Fakültesi \newline Uçak asd \newline Örgün Öğretim / İngilizce \newline Durumu : Mezun & \multirow{1}{}{Ekim 2013 / Haziran 2018} \ \hline \multirow{1}{}{Lise} & asd \newline Anadolu Lisesi (100 / 90,02) & \multirow{1}{}{Ekim 2013 / Haziran 2018} \ \end{tabular} \end{center}  \begin{center} \begin{tabular}{ m{3cm} m{4cm} m{4cm} m{4cm} } \multicolumn{4}{c}{\large{\textbf{\textcolor{renkbir}{YABANCI DİLLER}}}} \ \hline \textbf{İngilizce} &\textbf{Okuma:} İyi &\textbf{Yazma:} İyi &\textbf{Konuşma:} Orta \ \end{tabular} \end{center}  \begin{center} \begin{tabular}{ m{5cm} m{5cm} m{5cm} } \multicolumn{3}{c}{\large{\textbf{\textcolor{renkbir}{BİLGİSAYAR BİLGİLERİ}}}} \ \hline \multicolumn{3}{l}{Donanım - Ofis Programları} % donann ofis koyu yazmak istedim yapamadım. \ Ms Excel & Çok İyi & +5 Yıl \ MS Word & Çok İyi & +5 Yıl \ Ms Powerpoint & Çok İyi & +5 Yıl \ \hline \multicolumn{3}{l}{Yazılım Geliştirme} % donann ofis koyu yazmak istedim yapamadım. \ Office & Orta & 2-3 Yıl \ Matlab & Orta & 2-3 Yıl \ Phyton & Orta & 0-1 Yıl \ Fortran & Başlangıç & 0-1 Yıl \ C++ & Başlangıç & 0-1 Yıl \ Ansys & Başlangıç & 0-1 Yıl \ Miktex & Başlangıç & 0-1 Yıl \ \hline \multicolumn{3}{l}{Bilgisayar Destekli Tasarım} % donann ofis koyu yazmak istedim yapamadım. \ SolidWorks & Orta & 2-3 Yıl \ AutoCAD & Orta & 0-1 Yıl \ \end{tabular} \end{center}  \begin{figure} \includegraphics[width=\linewidth]{2.pdf} \end{figure}  \begin{figure} \includegraphics[scale=1]{2.pdf} \end{figure}  \end{document}   Latex SS is here:  PDF SS is here:


How to have num lock enabled by default on log on screen?

I'm using a PIN code to log on my computer. However, Num ⇩ is always turned off, even if on before shutting down my computer. This is quite annoying as I always have to retype my PIN.  I've tried the suggestions  (same as ). But with no result. If I don't enable num lock on log in screen and use the numbers above the normal keys, num lock turns on after log on. Then it's too late, unfortunately.  So, how can I make num lock enabled by default when logging in? Thanks.  Edit: While I still want to solve this, I've figured it is not such a big problem. I will need to press some key for the "enter PIN screen" to show, and using Num ⇩ works and enables num lock. But then, still annoying if the computer was only locked (with num lock on) and I turn it off, hehe.


Fantasy book where a princess encounters many fantasy tropes including a dragon

It was maybe in 2000-2012.  It was a fantasy book. I believe it combined a LOT of other fantasy works into one big story with a lot of popular characters from books and fairy tales and things. I'm pretty sure every chapter started with "In which" so and so happened.  Example- In which there was a dragon. In which the princess met a new friend. etc. I'm pretty sure the main character is a Princess. And there was likely a character, possibly a prince, named Touchstone.


I'm supposed to solve $u_{xx}-3u_{xt}-4u_{tt}=0$ with initial conditions $u(x,0)=x^2$ and $u_t(x,0)=e^x$.   So I factored the problem into $(u_x-4u_t)(u_x + u_t)$ and set each equal to 0 and found the 2 solutions to be $(x,t)=f(x+t/4)$ and $u(x,t)=g(x-t)$  Then I get $u(x,t)=1/2[\phi(x+t/4) + \phi(x-4)]$ + 1/2c $\int_{x-t}^{x+t/4} e^{s} ds$  =1/2[$(x+t/4)^2 + (x-t)^2$] + 1/2c[$e^{x+t/4}-e^{x-t}$]  I multiply out the first part then and get a solution of:  1/2[$5/2xt-15/16t^2$]+1/2c[$e^{x+t/4}-e^{x-t}$]  But the book has a solution of $x^2 + t^2/4 + 4/5[e^{x+t/4}-e^{x-t}]$  I don't understand how they get 4/5 in front of the exponentials and how $1/2[\phi(x+t/4) + \phi(x-4)]$ turns into $x^2 + t^2/4$ .  Can anyone see where I went wrong?


Do I need a transit visa for a 4h20min transit at Heathrow Airport?

I wish to know if I will need a transit visa to pass through Heathrow Airport. I will be visiting my kid sister in Spain on Friday August 19, 2016 using Norwegian Airlines to be back again in Denmark Sunday August 21, 2016 using British Airways.   My transit time is 4 hours 20 minutes at Heathrow Airport before my departure to Denmark where I have been living for 16 years and have a permanent resident.


Placing Tax withholding into a savings account instead of haivng it deducted from my paycheck

Typically one has a percentage (based on a W-4) of their pay withheld to cover one's taxes at the end of the year, it occurs to me that this is effectively like storing that money in an account with the IRS at 0% interest. Hypothetically would it not be better to calculate your withholding amount and just deposit that into a savings account every paycheck and just use that to pay your taxes. It seems to me that as long as a person is disciplined enough to not touch that account, one could generate some residual income that way. Also as an added bonus if you are in a state that treats a tax return as in income you are now not raising your taxable income. I am thinking there must be a flaw to my logic but I cannot figure out what it is. Is my reasoning valid?


I am importing a data table into a document and want the table to be within the text. When I import with \input{bodyrate}[htpb], the table is placed at the end of the document and [htpb] is printed instead. How do I get the table to be where I import it in the .tex file?  \documentclass[preprint]{aastex} \begin{document} \input{file}[htpb] \end{document}   the table file begins with:  \begin{deluxetable}{lccc} \tablecolumns{4} \tablewidth{0pc}


I have installed few software in Ubuntu. Some of these software are quite big and needs more than 400MB of space during installation. In Windows, when we install a software, it is saved in program files, where we can see all the files.  What is the path of the equivalent location for Ubuntu? I mean, in which path, I can see that, there is a folder for that particular application and entering that, I can see all 400MB+ data.


Where can I ask this question about CS terminology?

I have a topic which is difficult to discuss effectively, because I lack the terminology I need to discuss it or even look it up on Google, so my specific question is  What's the CS word which describes a type of computer system defined below?  I am happy to describe the specific question and believe it is hard to predetermine if it has a specific answer. My question is about computing machine classification. I know of some classifications which include "TTL", "temporal logic", "state machine", "push-down automaton" and "Turing machine". The question came up in a discussion about the multimedia environment . The documentation describes it as "a programming environment", but I'm not sure it really is. So as not to get into an argument about whether or not vvvv qualifies as a programming environment, or not, let's first define a computing-system of the type I seek a definition for, it's:  A computing system which maps a set of input-parameters to a set of output-parameters. For example: In such a system as vvvv you can take a mouse X-coordinate as input and map it to a pitch control, or do that and also take the mouse Y-coordinate and map it to a volume control.  You can also have more complex input and output arrangements, for example taking a potentiometer input and mapping it to a texture scale coordinate so it scales along with the pot rotation, you could add a timer input and map it to the texture Z-rotation so it also rotates over time and you could take that same timer and pipe it into a sine-phase which you then map into the texture X and Y scale, the result of which would be a shape whose size can be changed by changing the potentiometer state and which rotates and pulsates as time progresses.  In sum, the system takes in an arbitrary variety of real input states, usually from sensors, and maps them via an arbitrary variety of functions to arbitrary output end-states. Multiple inputs are mapped via arbitrary functions to multiple outputs. So my question is: To which sort of system classification or computing paradigm does such a thing belong?


If $p$ and $q$ are distinct primes and $a$ be any integer then $a^{pq} -a^q -a^p +a$ is divisible by $pq$.  Factorising we get $a^{pq} -a^q -a^p +a =a^p(a^q -1) - a(a^{q-1}-1)$ and we know $p \mid a^{p-1}-1$ and $q \mid a^{q-1}-1$.  I can't proceed further with the proof. Please Help!


Show $ (n+1)^{1/3}-n^{1/3} =O\left(n^{-2/3}\right) $ So we multiply both sides by $ n^{2/3}$ which should equal a constant, but I get $ (n^2(n+1))^{1/3}-n $ and when $n$ goes to infinity this equals zero?


How do I test for an empty JavaScript object?

After an AJAX request, sometimes my application may return an empty object, like:  var a = {};   How can I check whether that's the case?


I am trying to make a game, I have made a basic launcher. This is just another version of it. I made it in python 3.  I have tried watching YouTube videos on how to do it but they are all using python 2. I still tried it, it didn't work.  import os print ("**Test Starting**") print ("") import time time.sleep (0.75) COMMAND = "SCRIPT_TWO.py" os.system(COMMAND)   SCRIPT_TWO.py  print ("Hello, it worked")   I still want it to launch the other script but also transfer the variables. I want it to be as simple as possible.


I remember clicking something like "Disable Unity Desktop." As soon as I did that, the dock disappeared, and I cannot access the top panel (where I can click gear icon, volume, network, etc.) I enabled "Wobbly Desktops" and then something else, and I accidentally clicked the wrong button "Disable Unity Desktop. My desktop is all blank, how can I get back the dock and such?


Say that I have a collection of points, as shown below with the circle, and I have a plane that I want to merge them onto. The points and plane are perfectly parallel, and the end goal is that the plane I'm merging onto doesn't move. Is there a way to do this? I think it could be done in a roundabout way with a boolean modifier, but there must be a better way.


WIll my BitLocker work after OS upgrade? If so how?

Currently working over at Windows 8.1 64 bit, I have protected one of my drives with BitLocker encryption lets say it as "D? and the OS resides at "C",  Now I decide to upgrade OS to Windows 10 64 bit. Will my BitLocker work after OS upgrade. I understand that both OS were at same, but I believe and doubt that OS encryption methodology present at OS part, So my questions were few :   Will  my BitLocker work after my os upgrade? If yes how it will get worked after upgrade since the main key verification part would be done at os part   I don't have any citation that key verification was done at OS drive but requesting clarification to the community.


Last night our adventure league group ran into an issue. Our barbarian who wields I think great swords (the damage dice were 2d6, that I remember for sure).  He rolled a critical hit and I and we here all know that this adds one damage die, but another player mentioned that the RAW may conflict with the RAI for this case.  Compare, 1d12 critical hit makes 2d12, whereas 2d6 critical hit makes 3d6.  This reason I am contending this is because both basic hits have the potential of hitting for 12hp, whereas the criticals potential is 24hp for one, but only 18hp for the other. That just doesn't seem to jive. Mathematically speaking 2d6 is intended to more often do more damage that 1d12, but when a crit is rolled, that advantage isn't transferred which is not-intuitive. The normally heavier hitting weapon has less potential to do heavy damage when a crit is rolled.  What should this really be; Is it a balance oversight, completely overlooked or is it really intended to be this way?  My opinion and opinion only is that the intention would for this case to add 2d6 to the normal 2d6, but I really want to hear from the experts what should really happen from both RAW (which is clear) and RAI (which is less clear in this case) perspectives.


Can I see more details of an aptitude dist-upgrade?

When I type  aptitude dist-upgrade   I get for example:  Reading package lists... Done Building dependency tree        Reading state information... Done Reading extended state information       Initializing package states... Done The following NEW packages will be installed:   bc{a} linux-image-2.6.32-24-virtual linux-image-2.6.32-308-ec2  The following packages will be upgraded:   apt apt-transport-https apt-utils base-files bijk-node binutils cloud-init grub-common grub-pc icedtea-6-jre-cacao ifupdown landscape-client landscape-common    libfreetype6 libfreetype6-dev libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 libmysqlclient16 libpcsclite1 libsmbclient libudev0    libusb-0.1-4 libwbclient0 libwww-perl lintian linux-ec2 linux-image-ec2 linux-image-virtual linux-libc-dev linux-virtual mountall mysql-client-5.1    mysql-client-core-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib python-apt    python-lazr.restfulclient sudo tzdata tzdata-java udev update-manager-core upstart ureadahead w3m wget  54 packages upgraded, 3 newly installed, 0 to remove and 2 not upgraded. Need to get 103MB of archives. After unpacking 89.4MB will be used. Do you want to continue? [Y/n/?]   What I would like to know is what changed in each upgrade candidate. Is there a way I can see a list of all the changes in those packages?  I know I can do  aptitude changelog mysql-server   And I could probably grep & awk the candidates and pipe them to the changelog command, but executing that takes a long time.  Is there a better way to get a full changelog of a dist-upgrade?


Do Morrocan-stye pickled lemons really need 5 to 10% salt?

I want to make Morrocan-stye pickled lemons, but I was only able to find , and it says:  In On Food and Cooking, Harold McGee suggests that a solution of five to 10% salt is needed to achieve a good North African-style preserved lemon  I make sauerkraut with 20 grams of salt per kilogram of cabbage, so 2%. So lemons taking much more salt than cabbage is surprising and confusing; since they start out acidic, I would expect them if anything to require less salt. I'm not worried about harmful microbes growing; I'm worried about the fermentation microbes not being able to grow. It's my understanding that higher salt concentrations with cabbage not only slow down fermentation, but actually .  had the same issues:  I've never quite understood the need for such excessive salting when making preserved lemons. They still ferment great at normal levels of salt, and you then need to worry less about them being overly salty to use in future recipes. As far as I can tell it's solely from tradition. Also, from checking out On Food and Cooking, it seems that McGee only points out that originally they are done with 5 to 10% salt content. I'm curious where you read/saw that he recommended such?  Does anyone have any text- and/or experience-based opinion agreeing or disagreeing with the "5 to 10%" figure?


He has  yet to receive an appointment.   He is yet to receive an appointment.      Is there any difference in meaning? Is one more correct than the other?


Let $a_{n}=(1-\frac{1}{\sqrt{2}})\ldots(1-\frac{1}{\sqrt{n+1}}), n \geq 1 $. Then $\lim_\limits{n \rightarrow \infty} a_{n} $

Options are  (A) equals 1 (B) does not exist (C) equals $\frac{1}{\sqrt{\pi}}$ (D) 0. I have multiplied each numerator with $\sqrt{n+1}+1$, $\forall n = 1$ to $\infty$ and then got $a_{n}=\frac{n!}{(2+\sqrt{2})(3+\sqrt{3})\ldots((n+1)+\sqrt{n+1})}$. So this must converge to 0 right since the fraction comes as $\frac{n!}{(n+1)!+\mathrm{something}}$ ?


I have a blend that keep getting stuck in the rendering stage. Initially it would just crash after a few seconds of trying to render. I was using Blender 2.79 so U downgraded to the stable 2.78. I have also opened a couple other blends that I have done in the past and it worked without an issue. I have also updated my drivers, I've changed the picture output folder and the display to full screen from image editor suggested by some people on forums. I've lowered and raised the tile count, I've turned down the threads to one or two instead of the autodetected four. I'm using GPU compute, but I've also switched to CPU. I've also tried switching to blender render. Nothing seems to work, on this particular blend.   I've also tried scaling down the image to a smaller size so that the details are cut in half. Still nothing. I've been able to render other images with more vertices that this one without issue. Below are some pictures of it in solid and rendered mode.   [![enter image description here][1]][1]    If I just let the render run I get the system fluctuating in memory and CPU resources to finally output this error:    Any help would be greatly appreciated.   Edit:  It has been stated that this may be a duplicate of another question. In looking at that question the answer does not satisfy this query. The solution presented in that question was to purchase a more powerful graphics card. As I am running a much more powerful card than the one mentioned in the question, I do not believe that solution to be the case here. For context I am running a GTX 1060 with 14214Mb of vram. The other card was only running 1024bm of vram using a GTX 750.


Why do we ignore rotational energy in monatomic gases?

I understand that the average energy of each degree of freedom in a thermodynamic system is $\frac12kT$. And so, for an ideal monatomic gas, there are three degrees of freedom associated with the translational components of each atom, which gives $E$ = $\frac32kT$ for each atom in this system.  For an ideal diatomic gas, there are the three degrees of freedom from the translational components plus two more degrees of freedom associated with the rotational components of each molecule. So we end up with $E$ = $\frac52kT$ for each molecule.  My question here is why did we ignore the rotational degree(s) of freedom in case of a monatomic gas ? Like why isn't there another degree of freedom for the rotational component of a single atom ? Also, if that is neglected for some reason, then when does it become significant and can no longer be ignored ? For example, shouldn't it be included in calculations under extreme conditions like temperature of millions of degrees ?


I am a Spanish linguist working on writing my dissertation using RMarkdown. My document was compiling fine into a pdf until I tried to add examples and glosses using the gb4e package. I am working on a Mac running Big Sur 11.1, pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020), R 4.0.3, and RStudio Version 1.3.1073. I started with a small rdm document until I had it working fine. I ran into the problem  when I moved the chunk into the actual manuscript that I get the error "TeX capacity exceeded, sorry [parameter stack size=10000]". Here's the toy document that does compile fine: --- title: "testing_latex" author: "Erwin Lares" date: "1/5/2021" output: pdf_document header-includes: - \usepackage{gb4e} ---  See (\ref{stm-n-lit}) shows the literal sentence. (\ref{stm-n-idm}) shows the idiomatic sentence. (\ref{stm-plain}) shows an unambiguous sentence that can only be interpreted compositionally.  \begin{exe} % sets up the top-level example environment \ex  \begin{xlist} % first embedding (alphabetical numbering) \ex\label{stm-n-lit}     \gll Mary kicked the bucket, she stubbed her toes. \\     Mary kick-PAST the bucket, 3S bruised-PAST 3S-POSS toe-PL \\     \trans ‘Mary made contact with the bucket with her toes forcefully ’ \ex\label{stm-n-idm}     \gll Mary kicked the bucket, she's dead. \\     Mary kick-PAST the bucket, 3S COP-PRE dead-adj \\     \trans ‘Mary is dead.’ \end{xlist} % end first embedding \ex\label{stm-plain}      \gll This example does not contain sub examples.\\      DEMO-SING example DO-helping NEG contain sub examples\\     \trans ‘This is a plain example’ \end{exe}  The problem comes up when I include this piece of code in my manuscript. When I try to knit my document, something breaks and produces the error in question. Here's a copy of the manuscript. I realize that the output in the YAML is different, but I need a pdf_document2 for the bookdown package. Any suggestions would be most appreciated. --- title: "Experimental Design" author: "Erwin Lares" date: "12/23/2020" output:   bookdown::pdf_document2: default   bookdown::html_document2: default header-includes: - \usepackage{graphicx} - \usepackage{float} - \usepackage{longtable} - \usepackage{gb4e} ---  <!-- code_folding: hide -->   {r loading-library, include=FALSE, echo=FALSE} #install.packages("networkD3")  #library(networkD3) library(tidyverse) library(DataEditR) #library(gt) library(kableExtra) library(tinytex) library(rmarkdown) library(bookdown) library(knitr) library(skimr) library(RColorBrewer) library(broom)  \begin{exe} % sets up the top-level example environment \ex  \begin{xlist} % first embedding (alphabetical numbering) \ex\label{stm-n-lit}     \gll Mary kicked the bucket, she stubbed her toes. \\     Mary kick-PAST the bucket, 3S bruised-PAST 3S-POSS toe-PL \\     \trans ‘Mary made contact with the bucket with her toes forcefully ’ \ex\label{stm-n-idm}     \gll Mary kicked the bucket, she's dead. \\     Mary kick-PAST the bucket, 3S COP-PRE dead-adj \\     \trans ‘Mary is dead.’ \end{xlist} % end first embedding \ex\label{stm-plain}      \gll This example does not contain sub examples.\\      DEMO-SING example DO-helping NEG contain sub examples\\     \trans ‘This is a plain example’ \end{exe}


Line emission spectrum of gases and solids

when a gas like hydrogen is heated it shows discrete line in its emission spectrum but in case of solids we see a continuous spectrum why it is so???i have searched it on internet and some people says that solids also shows line spectrum but the difference in energy levels of electrons in solids is very less so it shows very dense line which our eyes cannot detect? if is it true then how black body absorbs all the frequency of radiation and emits also it should emits energy only of discrete frequencies?


Why is \centering{}aligning text above it?? (basic question)

I am new to LaTeX and am trying to get used to the features of the language. I have typed   \indent Like all languages mathematics has a few basic rules upon which its complexity is built. The first, and most important rule is this:         \centering{No statement may be ambigous. That is, it must be either true or false. These statements are known as \underline{predicates}.}   SO I want the standard alignment except for the sentence I put in the centering brackets. Why is the whole paragraph ending up centered?


Listings package: is it possible to exclude keywords from a specific language?

I'm using the package listings to import R scripts from file (as they are quite long and already nicely typeset). I have defined the colors (blue for keywords) and style, and added a few keywords. Issues are (see also the MWE and output):   new keywords that contain a period (e.g. write.xlsx) are not recognized and are half black (also defining them as {write.xlsx} in the preamble doesn't work); Some basic keywords of R are also used as options or arguments, and are (incorrectly) colored blue (e.g. file, append, row.names).   How can I tell listings to format as keywords only those terms that are followed by a (?  Or alternatively is it possible to exclude some basic keywords?  \documentclass{article}  \usepackage{color}                                               \definecolor{codebackgr}{rgb}{0.95,0.95,0.95}     \definecolor{codeblue}{rgb}{0,0,1}     \definecolor{codegreen}{rgb}{0,0.5,0}     \definecolor{codegray}{rgb}{0.5,0.5,0.5}     \definecolor{codered}{rgb}{0.5,0,0} \usepackage{listings}                                            \lstdefinestyle{mystyle}{                                        language=R,         backgroundcolor=\color{codebackgr},         commentstyle=\color{codegreen},             keywordstyle=\color{codeblue},         numberstyle=\tiny\color{codegray},             stringstyle=\color{codered},         basicstyle=\footnotesize,         breakatwhitespace=false,                  breaklines=true,                          captionpos=t,         numberbychapter=false,                              keepspaces=true,                          numbers=left,                             numbersep=5pt,                           showspaces=false,                         showstringspaces=false,         showtabs=false,                           tabsize=2     }     \lstset{style=mystyle}     \lstset{         morekeywords={read.xlsx, write.xlsx}     }   \begin{document} \lstinputlisting[linerange={31-40}, firstnumber=1]{Script.R}  \end{document}     Basically I just want "write.xlsx" in blue and "file", "append" and "row.names" in black.  Thanks a lot!


update-manager says there are no updates, but sudo apt --dry-run dist-upgrade says that the sudo package needs to be updated.  $ sudo apt --dry-run dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required:   linux-headers-4.8.0-56 linux-headers-4.8.0-56-generic linux-image-4.8.0-56-generic linux-image-extra-4.8.0-56-generic linux-signed-image-4.8.0-56-generic Use 'sudo apt autoremove' to remove them. The following packages will be upgraded:   sudo 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Inst sudo [1.8.16-0ubuntu1.4] (1.8.16-0ubuntu1.5 Ubuntu:16.04/xenial-updates [amd64]) Conf sudo (1.8.16-0ubuntu1.5 Ubuntu:16.04/xenial-updates [amd64])   But update-manager says:   The system is:  $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"   Is this ever expected behaviour, or is there indeed something weird going on?  I'll hold off for a day or so on doing the update, in case more details are needed.  Thanks.


How to batch a model created with "model builder" in arcmap 10?

I created a simple model that selects iteratively elements from a point dataset and calculates a cost distance raster for each of these points.  It works fine when I run it for just one dataset, but when I try to batch it get the following error.  ERROR 000865: Input raster or feature source data: I_atlanta_OBJECTID does not exist. ERROR 000581: Invalid parameters. Failed to execute (Cost Distance).  Please any help will be greatly appreciate.  Here a link to a snapshot of the model


I am using Ubuntu 13.10 on laptop that has Intel i5 (4 logical cores). Question: Can I force Ubuntu to use only one or two cores?  Explanation: I want to test how my application performance scales when machine has more cores available. I know that it is easier to do it on virtual machine (and assign specific number of cores) but on virtual machine I am afraid, that amount of RAM memory will be not sufficient. Application consumes up to 3GB of RAM and my laptop has only 4GB of RAM.


Difference between passwd and passwd- file

Possible Duplicate:          I have a strange passwd- file in /etc, notice the trailing dash:  root@ubuntu:~# ls /etc/passw* /etc/passwd  /etc/passwd-   Notice the different permissions:  root@ubuntu:~# ls -hl /etc/passw* -rw-r--r-- 1 root root 2.0K Oct 26 13:38 /etc/passwd -rw------- 1 root root 1.9K Oct 26 13:38 /etc/passwd-   and the difference in content:  root@ubuntu:~# diff /etc/passwd{,-} 39c39 < mysql:x:119:129:MySQL Server,,,:/nonexistent:/bin/false --- > mysql:x:119:129::/nonexistent:/bin/false   What's happening here?  root@ubuntu:~# uname -a Linux ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux root@ubuntu:~# cat /etc/issue Ubuntu 12.04.1 LTS \n \l


How do I get an Acer Aspire One D270 working?

I was planning to buy Acer Aspire One D270 within a few days and as everybody installs linux on their netbook I was also planning to do that.  Now, my question is how is Acer's hardware compatibility with linux and specifically in respect to the new Acer Aspire One D270.  Has anybody tried installing linux on these new netbooks. It will be a great help if a D270 user can share his/her experience with linux usage.  I read on some forums that there is some linux driver issue with Intel GMA 3600 and that people are not able to adjust their brightness. So, as I am a linux noob is this a major issue or not.  Specs:  RAM : 2Gb DDR3 Processor: Intel N2600(Cedar Trail) Graphics: Intel GMA 3600 HardDisk: 320Gb 5400 rpm


How do I remap multi-key sequences to individual keys?

I just bought an IBM Model M keyboard. While awesome, it lacks a windows key and multimedia keys. While there are many programs out there that can map one key to another, or one key to a key sequence, are there any programs that will map a keyboard sequence to a single key?  Edit: OS = Win7


Word for: A river than splits into two, later rejoining into one? (fluvial terminology)

A  is river or stream that flows into a larger river.  A  a stream branching off a river.    Is there a word that combines both structures, the idea of a river that splits in two and later rejoins to become one river again?           /---------------\ ---------                 --------------------          \---------------/   My focus here is on the waterway, not the land. I’m looking for a word describing the behavior of the river splitting and later rejoining, without regard for the geography, and without regard for the cause or effect between land and water.


Dual Boot Windows 7 & Ubuntu-Win7 does not show in Grub menu

I recently installed Ubuntu onto my PC.  When I went to install it, there was no option to install alongside Windows, so I partitioned space for it myself.  Ubuntu booted up just fine, but when I went back to boot up Windows, it didn't show up in my Grub menu.  I tried "sudo os-prober" but got nothing in return from the Terminal.  I also tried updating Grub, but no cigar.   So my question is actually dual in purpose, because I want to learn about this kind of stuff:  1. How do I figure out what is still on all my disks, and 2. How do I recover Windows 7?  And I guess, finally, if worst comes to worst, I can do a clean reinstall of Windows from a buddy's system, correct?   Edit: "Disk /dev/sda: 750.2 GB, 750156374016 bytes  255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors  Units = sectors of 1 * 512 = 512 bytes  Sector size (logical/physical): 512 bytes / 4096 bytes  I/O size (minimum/optimal): 4096 bytes / 4096 bytes  Disk identifier: 0x0006e059    Device Boot      Start       End                   Blocks           Id      System  /dev/sda1    *      2048     1465147391   732572672   83     Linux"


Frequently, I type these commands in bash:  mkdir something cd something   I almost never do this:  mkdir something ls # something in the current directory, not ./something/   And never this:  mkdir something something2   How can I have mkdir cd into the newly-created directory? By that I mean if I mkdir something, than the command cd something is executed immediately after.  Example:  $ pwd /home/me $ mkdir something $ pwd /home/me/something


The equality for the probabilities of events

I found this problem in my textbook. The formulation is as follows:  Let $A_1, \cdots , A_n - $ be events and quantities $S_0, S_1, \cdots, S_n$ are defined as follows: $S_0 = 1$  $$S_r = \sum \limits_{J_r}P(A_{k_1}\cap\cdots\cap A_{k_r}); 1 \le r \le n$$  where the summation is over all unordered $r$-tuples $J_r=\{k_1, \cdots, k_r\}$ of disctinct elements of the set $\{1, \cdots, n\}.$   Let $B_m - $ be an event that means that exactly m events from $A_1, \cdots, A_n$ will occur at the same time. Prove that   $$P(B_m)=\sum\limits_{r=m}^{n}(-1)^{r-m}{r\choose m} S_r$$  Ok, we can rewrite $B_m$ as union of all events which mean "exactly m events from $A_1, \cdots, A_n$ will occur at the same time":  $$B_m = \bigcup\limits_{J_m}(A_{k_1}\cap\cdots\cap A_{k_m})$$   After that I tried to use inclusion–exclusion principle for $B_m$ $$P(\bigcup\limits_{J_m}(A_{k_1}\cap\cdots\cap A_{k_m})) = \sum\limits_{J_m} P(A_{k_1}\cap\cdots\cap A_{k_m}) - \sum_{\alpha>\beta \in J_m} P((A_{\alpha_1}\cap\cdots\cap A_{\alpha_m}) \cap (A_{\beta_1}\cap\cdots\cap A_{\beta_m})) + \cdots$$  First addend $$\sum\limits_{J_m} P(A_{k_1}\cap\cdots\cap A_{k_m}) = {m\choose m} S_{m} = S_{m}$$ is obvious.   But I don't know how to cope with the second and etc. So, how to prove, that $$\sum_{\alpha_r>\cdots>\alpha_1\in J_m} P((A_{\alpha_{11}}\cap\cdots\cap A_{\alpha_{1m}})\cap \cdots \cap (A_{\alpha_{r1}}\cap\cdots\cap A_{\alpha_{rm}}))= (-1)^{r-m}{r\choose m} S_r$$?


Can I get original JPEG image from CR2 file format?

I am not professional photographer , but i have a professional camera (Canon).  I had shoot my pre wedding photos with this camera. So when i was open , it will be converted into black and white after few second. So I found it is  cr2 format.  I don't know the photo editing, so what i have to do with this format.      How i can convert into jpeg format with same quality.   Some online converter can not revert actual image.


code1:   int main()     {         char tmp[20] = "1.04";         printf("float str is %s\n",tmp);         delcharPoint(tmp);         printf("%s\n",tmp);      }     void delcharPoint(char *pStr)     {         char *pTmp = pStr;         int flag_0 = 0;         printf("*pTmp = %s\n",pTmp);         printf("*pTmp = %s\n",pTmp);         if(*pStr == '0')         {             pStr++;             flag_0 = 1;         }         while(*pStr != '\0')         {             if(*pStr != '.')             {                 *pTmp++ = *pStr;                 pStr++;             }             else             {                 pStr++;                 if(flag_0 ==1 && *pStr == '0')                 {                        pStr++;                 }             }         }         *pTmp = '\0';     }   This code worked well and it print:  float str is 1.04 *pTmp = 1.04 *pTmp = 1.04 104   Code2:  int main()         {             char *tmp = "1.04";             printf("float str is %s\n",tmp);             delcharPoint(tmp);             printf("%s\n",tmp);          }         void delcharPoint(char *pStr)         {             char *pTmp = pStr;             int flag_0 = 0;             printf("*pTmp = %s\n",pTmp);             printf("*pTmp = %s\n",pTmp);             if(*pStr == '0')             {                 pStr++;                 flag_0 = 1;             }             while(*pStr != '\0')             {                 if(*pStr != '.')                 {                     *pTmp++ = *pStr;                     pStr++;                 }                 else                 {                     pStr++;                     if(flag_0 ==1 && *pStr == '0')                     {                            pStr++;                     }                 }             }             *pTmp = '\0';         }   This code doesn't work,it print:  float str is 1.04 *pTmp = 1.04 *pTmp = 1.04 Segmentation fault   The difference between two codes only is I use char[] in code1 and char * in code2.I have searched .But I still don't what cause the difference between these code.


Windows 7 is not accessible or can't be repaired after installing Ubuntu 11.10 using live USB

I've messed things up a bit.  I was running Windows 7 ultimate 64-bit in my HP laptop. I was using live USB of Ubuntu 11.10 and then I tried to install Ubuntu on hard disk using the same live USB.   To install Ubuntu, I chose 50 GB free partition and 325 GB swap space or something.   While installing Ubuntu, my pen-drive came out and everything stopped. Then I booted again using the pen-drive and finished installation of Ubuntu.   Now the problem is I can't access my Windows partition as they were in extended partition plus I am not able to boot Windows 7 from the booting screen and I can't even repair or recover it.   Whenever I try to boot Windows it shows the message HARDWARE INACCESSIBLE, TRY TO REPAIR YOUR WINDOWS USING DISC. When I tried using disc, there was no instance of OS available to repair.   I can't even install fresh Windows 7 as the setup asks me to load drivers of Hard disk.  I have important data in the Windows root drive as well as in other partitions. How can I recover that data?


Malaysia passport holder: do I need a visa?

I am Malaysian. I will transit for 15 hours through Heathrow airport. Where can I rest? Do I need a visa to go outside the airport?


How to attach uploaded files in Google Drive to another email

I have files uploaded to my Google Drive.  I want to send an email and attach to it one of my already uploaded files, without having to upload the file again. The file is classified as public.  How do I attach the already uploaded file to this new email?


Why is f continuous when $\mid f(x)-f(y)\mid \leq \mid x-y \mid$?

In a proof it was said that for a real value function $f$ that from $\mid f(x)-f(y)\mid \leq \mid x-y \mid$ it follows that f is continuous. Why is that?  Well in the problem the domain of the function was $[0,1]$ but it suppose it doesn't matter.


Hubble's constant $a(t)$ appears to be changing over time. The fine stucture constant $\alpha$, like many others in QFT, is a running constant that varies, proportional to energy being used to measure it. Therefore, it could be agued that all running constants have 'evolved' over time as the Universe has expanded and cooled. Both the local and global curvature of the Universe changes over time implying that so too does the numerical value of $\pi$. All these things are however constants (well, let's say parameters since they are not really 'constant'.)   In  with astronomer Sir Fred Hoyle, Feynman said "what today, do we not consider to be part of physics, that may ultimately become part of physics?" He then goes on to say "..it's interesting that in many other sciences there's a historical question, like in geology - the question how did the Earth evolve into the present condition? In biology - how did the various species evolve to get to be the way they are? But the one field that hasn't admitted any evolutionary question - is physics."  So have the laws of physics remained form-invariant over the liftetime of the Universe? Does the recent understanding of the aforementioned not-so-constant constants somehow filter into the actual form of the equations being used? Has advances in astronomical observations, enabling us to peer back in time as far back as the CMB, given us any evidence to suggest that the laws of nature have evolved? If Feynman thinks that "It might turn out that they're not the same all the time and that there is a historical, evolutionary question." then this is surely a question worth asking.  NB/ To be clear: this is a question concerning purely physics, whether the equations therein change as the Universe ages, and whether there is any observational evidence for this. It is not intended as an oportunity for a philosophical discussion.


What can I type at my shell (which happens to be bash) that will list all the commands that are recognized?  Also, does this differ by shell? Or do all shells just have a "directory" of commands they recognize?  Secondly, different question, but how can I override any of those? In other words how can I write my own view command to replace the one existing on my Ubuntu system, which appears to just load vim.


Even in empty space virtual particles can constantly pop in and out of existence in pairs, when 1 of the pair fall into the black hole while the other escape this is hawking radiation but black hole feeds on virtual particles so I am confuse when people says black hole lose mass via hawking radiation. Are they mistaken or did I wake up on the wrong side of bed?


Etymology for “Mc‑” and “O’‑” prefix in surnames

There is clearly a prefix in names like McDonald, McChrystal, O’Brian, O’Neal.  What does this Mc- and O- prefix signify? It looks like Donald, Chrystal, Brian, Neal are perfectly fine names on their own, so why is there a prefix before it?


Propagation of uncertainty - which formula?

Can someone explain to me  when do I use this formula    ...and when do I use this one?


Function pointer to class member function problems

First of all I have to admit that my programming skills are pretty limited and I took over a (really small) existing C++ OOP project where I try to push my own stuff in. Unfortunately I'm experiencing a problem which goes beyond my knowledge and I hope to find some help here. I'm working with a third party library (which cannot be changed) for grabbing images from a camera and will use some placeholder names here.   The third party library has a function "ThirdPartyGrab" to start a continuous live grab and takes a pointer to a function which will be called every time a new frame arrives. So in a normal C application it goes like this:  ThirdPartyGrab (HookFunction);   "HookFunction" needs to be declared as:   long _stdcall HookFunction (long, long, void*);   or "BUF_HOOK_FUNCTION_PTR" which is declared as  typedef long (_stdcall *HOOK_FUNCTION_PTR) (long, long, void*);   Now I have a C++ application and a class "MyFrameGrabber" which should encapsulate everything I do. So I put in the hook function as a private member like this:  long _stdcall HookFunction (long, long, void*);   Also there is a public void function "StartGrab" in my class which should start the Grab. Inside I try to call:  ThirdPartyGrab (..., HookFunction, ...);   which (not surprisingly) fails. It says that the function call to MyFrameGrabber::HookFunction misses the argument list and I should try to use &MyFrameGrabber::HookFunction to create a pointer instead. However passing "&MyFrameGrabber::HookFunction" instead results in another error that this cannot be converted to BUF_HOOK_FUNCTION_PTR.   After reading through the  I think I understand the problem but can't make up a solution. I tried to make the hook function static but this also results in a conversion error. I also thought of putting the hook function outside of the class but I need to use class functions inside the hook function. Is there another way or do I need to change my whole concept?   EDIT 14.01.08: I tested the singleton workaround since I cannot change the third party library and the void pointer is only for data that is used inside the hook function. Unfortunately it didn't worked out of the box like I hoped.... I don't know if the static function needs to be in a separate class so I put it in my "MyFrameGrabber" class:  static MyFrameGrabber& instance() {         static MyFrameGrabber _instance;         return _instance; } long Hook(long, long, void*); // Implementation is in a separate cpp file   In my cpp file I have the call_hook function:  long MFTYPE call_hook(long x, MIL_ID y, void MPTYPE *z) {     return MyFrameGrabber::instance().Hook(x,y,z); } void MyFrameGrabber::grab () {     ThirdPartyGrab(..., call_hook, ...); }   But this gives me an error in static MatroxFrameGrabber _instance; that no matching standard constructor is found. That's correct because my MyFrameGrabber constructor looks like this:  MyFrameGrabber (void* x,                 const std::string &y, int z,                 std::string &zz);   I tried to put in an empty constructor MyFrameGrabber(); but this results in a linker error. Should I pass empty parameters to the MyFrameGrabber constructor in the singleton? Or do I need to have a separate Hook Class and if yes how could I access MyFrameGrabber functions? Thanks in advance.   SECOND EDIT 15.01.08: I applied the changes and it compiles and links now. Unfortunately I cannot test this at runtime yet because it's a DLL and I have no Debug Caller Exe yet and there are other problems during initialization etc. I will mark the post as answer because I'm sure this is the right way to do this.


How to Deploy Java Swing application for windows without revealing the source code

How to deploy Java Swing application as windows software  I have tried the following to do this  I have created jar file for my project after that created exe file using Launch4j and Advanced installer, exe file produced by both softwares are working fine but those are placing the jar file inside that exe file, My problem is any one who has that exe file can extract and view the source code by decompiling java class file. Is there any way to deploy java application without decompiling the code, Please help me


Why does retrieving fewer rows take longer?

I have a view that (left outer) joins multiple recursive CTEs. There are about 10k rows. The results of running SELECT * FROM MyView ORDER BY MyPrimaryKey, with statistics time and io on:   SQL Server Execution Times:    CPU time = 0 ms,  elapsed time = 0 ms.  (11063 row(s) affected) Table 'Worktable'. Scan count 49743, logical reads 296781, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableA'. Scan count 7, logical reads 23690, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableB'. Scan count 18832, logical reads 38207, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableC'. Scan count 6, logical reads 5458, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableD'. Scan count 2, logical reads 112, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableE'. Scan count 2, logical reads 184, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.   SQL Server Execution Times:    CPU time = 688 ms,  elapsed time = 881 ms.   The results of SELECT TOP 25 * FROM MyView ORDER BY MyPrimaryKey:   SQL Server Execution Times:    CPU time = 0 ms,  elapsed time = 0 ms.  (25 row(s) affected) Table 'Worktable'. Scan count 48353, logical reads 801727, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableB'. Scan count 9360, logical reads 20006, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableA'. Scan count 4, logical reads 7359, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableD'. Scan count 1, logical reads 17944, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableE'. Scan count 2, logical reads 184, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'MyTableC'. Scan count 5, logical reads 226, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.   SQL Server Execution Times:    CPU time = 29765 ms,  elapsed time = 30865 ms.   Why on earth are the execution times so drastically different?


Shadow impact of building on certain area

I have done some research but was not able to find a solution to my task!  What do I want:  Pretty simple - I have a building and I want to know how its shadow is influencing a certain site at different days of a year.  Questions asked:  --> How long (hours) is the building shading the site on a specific day?  --> When starts/ends (daytime) the impact by the buildings shadow on the site?  Whats the best way to do this? Can it be done using QGIS/GRASS? Or is ESRIs City Engine the only feasible solution?


Show that $\mathbb{Q}(\sqrt{a} + \sqrt{b}) = \mathbb{Q}(\sqrt{a}, \sqrt{b})$

Let $a$ and $b$ be rational numbers. Show that $\mathbb{Q}(\sqrt{a}, \sqrt{b}) = \mathbb{Q}(\sqrt{a}+ \sqrt{b})$.  I think this question might have been asked before, but Google and the stackexchange search don't show anything.


I accidentally did something in Destiny and now I'm "Fireteam Leader". How do I leave it?

I basically don't know how to leave or abandon fireteam.


Does Google count a text only link as a backlink?

I would like to know if anyone knows whether a text only mention in a post i.e. www.example.com (NOT placed in <a> tag) counts as a backlink and actually gets followed and carries any weight in terms of PageRank (link juice)?  According to  they have made up their mind that it definitely does count, but not sure how knowledgable these folks are...


Java Null Pointer exception on scanner.nextint()

I am new to java language and this my first time using scanner lib. I pretty sure I prevent null pointer happen in the method, but when I run the main, the stack trace says:     Exception in thread "main" java.lang.NullPointerException     at   Big_data_package.sort_test_main.readintoarr(sort_test_main.java:22)     at Big_data_package.sort_test_main.main(sort_test_main.java:60)   It happen on nextInt function on scanner method. could you guys help me point the error in my code? Thanks alot.  public class sort_test_main{  static File inputfile = new File("E:\\Java_workspace\\Big_Data_Sort\\io\\input.txt"); static mergeSort merge = new mergeSort(); static Scanner scanner; static int[] inputarr;  public static int[] readintoarr (int[] list, Scanner scanner) throws IOException{     int i = 0;     boolean endfile = false;      scanner = new Scanner(inputfile);          while(!endfile)         {             if(scanner.hasNextInt()){              list[i++] = scanner.nextInt();             }             else{                 endfile = true;             }         }         scanner.close();      return list; }// end of readintoarr  public static void arrtofile (int[]x) throws IOException{      File file = new File("E:\\Java_workspace\\Big_Data_Sort\\io\\output.txt");      // if file doesnt exists, then create it     if (!file.exists()) {         file.createNewFile();     }      BufferedWriter outputWriter = null;         outputWriter = new BufferedWriter(new FileWriter(file));       for (int i = 0; i < x.length; i++) {         // Maybe:         outputWriter.write(x[i]+"");         // Or:         outputWriter.write(Integer.toString(x[i]));         outputWriter.newLine();       }       outputWriter.flush();         outputWriter.close();   }//end of arrtofile  //test public static void main(String[] args)throws IOException {      readintoarr(inputarr,scanner);     merge.mergeSort1(inputarr,0,inputarr.length);     arrtofile(inputarr);  }}


Should I use Singular or Plural for "Donor(s) List"?

To be recognized in the Saddle River Donors List and help the Saddle River community, please include your tax free donation:   Should it be Donors or Donor?


I am tangled with the problem of using affect /effect.  In an experiment,  The defocusing of projector lens blurs the projected images that are projected onto an object.The projected images are used to generate the shape of the object using a method X.  Now I want opinion regarding these cases   Projected images are effected/affected by defocusing The defocusing of images further effects/affects the method X. The method X is effected/affected by defocusing. The defocusing of projected images further effects/affects object's shape.


I see a lot of implementation of maximum entropy. Can someone explain why it is possible to estimate the parameter based on maximum entropy?


Advice on installing Ubuntu along side Windows 10

I’m running Windows 10 on a laptop with a 485gb SSD and a 2.0gb HD. All software is on a 452gb OS (C:) partition on the SSD.     (The SSD also has an EFI partion, 3 OEM partitions,      and 19mb of unallocated space.)   All data is on the lone 1863gb (D:) partiion on the HD.    I want to add Ubuntu as a native dual boot.  With tons of free space, I plan to shrink the OS (C:) partition by 200gb for Ubuntu and additional Linux software (I have already been using LibreOffice for the past year.), and do not see any problem accessing data on the (D) partition from either Ubuntu or Windows.    Am I missing anything?


gparted has no installation candidate (Ubuntu 20.04 LTS)

So I'm about to partition my Ubuntu hard drive to install Windows 10 on the other half.  I go to install gparted to do the partitioning, and I get a Package 'gparted' has no installation candidate error. Here's the full output: Reading package lists... Done Building dependency tree        Reading state information... Done Package gparted is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'gparted' has no installation candidate  I do $ apt-cache search gparted and get this returned: partitionmanager - file, disk and partition management for KDE Does this mean that my computer cannot use gparted, and I should use this instead?  What's going on here?


I am facing a problem with Firefox when logging onto my Stack Overflow account.  I click on "log in," then I choose "connect with Facebook."  But after that, nothing happens, except for the redirection to the main page.  If I try to log in again, a message displays on the top of the page telling me that I am already connected.  Notice: this problem did not exist on Chrome in my case.  This is the picture of my case:


I proposed a programming puzzle, where the question is to generate gramatically correct sentence with the shortest program (see: [).  One suggested solution was "Hello, World!", this is an standard output at a special language where no code is written.   My question is: Can "Hello, World!" be rated as a correct English sentence? My feeling is, that it is not, because there is no verb in it. But since I'm not clear what is the correct definition of a sentence, I want to raise the question to the linguistic experts here.  Edit:  Based on the feedback I got here, there are several different possiblities on how to define a sentence. This was a bit of a suprise to me. Since the answer to this question seems to be opinion based. I suggest to close this question.


Show that $n$ lines separate the plane into  $\frac{n^2+n+2}{2}$ regions if no two of these lines are parallel and no three pass through a common point.   I know we start with the base case, where, if we call the above equation P(n), P(0), for 0 lines would be 0.  But I really have no idea how to begin the inductive step.  How do we know what k+1 we're supposed to arrive at?  Thanks!


For a continuous function $f$ show $\exists c\in (0,1)$ s.t $f(c)=3c^2$

Let $f: [0,1] \to \mathbb{R}$ be a continuous function such that $$\int_0^1 f (t) dt =1 .$$ Show that there exists a point $c \in (0,1)$ such that $ f(c)=3c^2$.  I tried using mean value theorem of integrals on $f (x)$, so $$\int_0^1 f (t) dt = f (c) =1,$$ but it should be $3 c^2$. What is going wrong?


Why won't my if, else statment work in python in the while loop

My If/else statements are not working in my while loop. The purpous of this program is "for the user to enter a number, print every number leading up to it, tell if the number is even or odd, print the sum. And then have the user enter if he wants to repeat the process or not" Here is the source code (Keep in mind that I am a student and very new to coding):  print("Christian Dooley") print("Lab #5") import sys  def calculation():  counter = 0  NumberOfElements = 1  numbers = []  sum = (0)  for i in range(NumberOfElements):      value=eval(input("Enter a new number:"))      numbers.append(value)  while counter <= value:      print(counter)      sum+=counter      counter+=1      if counter % 2 != 0:          print("This number is even")      else:          print("This number is odd")  print(sum)  while True:  calculation()  repeat = input("Do you want to 'count' another number \n Awnser yes or no: ")  if repeat == "Yes" or "yes":       calculation()  elif repeat == str("no") or str("No"):       break   This is the part of the code that is giving me trouble:  if repeat == "Yes" or "yes":           calculation()      elif repeat == str("no") or str("No"):           break   The if statement will keep running over and over, no matter what I enter for the repeat variable, can anyone tell me why.


Will Ubuntu phone edition work with snapdragon CPUs?

I have been following the project for a while now and I have been refurbishing PCs with Ubuntu for years now. Because of what I've seen of Ubuntu, I would love to see it go further into the mobile world. Does anyone know what CPUs will be supported? All the official page says for the supercomputer edition is a cortex a9 or atom.


What can we say about $\alpha$ if $\lim_{x\to \infty}f(x)=1$ and $\lim_{x\to \infty}f'(x)=\alpha$ for a differentiable function $f$ on $\mathbb{R}$?

For what values of $\alpha$ would the given conditions hold? I don't know how to proceed.


After running the following command:  nmap -v -p 515 127.0.0.1   Ubuntu Show this Message:  PORT    STATE  SERVICE 515/tcp closed printer   How To Change Closed to Open ?


In standard least squares regression, we find constants $\beta_1$ and $\beta_2$ such that the square of the average error, $\epsilon = y_i - (\beta_1 + \beta_2x_i)$, is minimized, and so the 'line of best fit' is given as:  $$y_{\textrm{avg}}(x)=\beta_1 + \beta_2x$$  Now, my question is, if you had to put associated error terms for each of the obtained terms (i.e. $\Delta\beta_1$ & $\Delta\beta_2$), what would they be? My guess is that for $\beta_1$, the 'error term' that I'm looking for would be the standard deviation $\sigma$, and so for the 'error term' for $\beta_2$ we would get the upper and lower bounds for the slope of the line within the 'wiggle room' defined by $\sigma$. [See picture]    Please give me some direction on this problem of mine if you can.


If you could bottle a photon would it have mass?

Ok. A photon has no rest mass for the good reason that it has no rest energy. But what about a standing wave? There is fair belief that particles are standing waves, so perhaps nothing rests.  So. Take a photon and bottle it. This presumes a bottle with a perfect mirror finish but not impossible in principle. The photon is now a standing wave. So does it have mass?   If it does then put the bottle in a gravitational field. The photon's path will be bent by gravity acting on a mass. Will that path be different for an unbottled photon?  Edit: Um. Not editing this, because I already have the answer I needed. Also because frankly I have no idea how to edit it to make it what you want. By all means close it or edit it to your preference. Me, I find it exciting that a basic assumption used in astronomy has so clearly been refuted (clearly, admittedly not necessarily correctly), but if you feel they have no need to read an answer that points to a very exciting paper then by all means kill it.   Me, I'm excited because as far as I can figure it if light is bent by simple gravity acting on mass rather than curved space then there are no black holes. Things very much like them but not singularities. Just as Einstein always insisted.


Asking the Editor-in-Chief about the reason of the review delay

I have submitted a manuscript to one of the top-tier journal of my field at six month ago. The recent status of the paper is "under review" which status is there for last four months.   My question is:  In that situation is it ok to ask the Editor-in -Chief of that journal about the reason of the review delay?  Also could anyone please help me by giving a useful reference to a template of such mail (to the Editor-in-Chief), which ask the above question to the editor in a polite and effective manner.


Startup script to unmount and re-mount a USB device

I have a Microsoft wireless mouse and it has a scrolling issue in Ubuntu. The scrolling is too sensitive. I've read in other threads that the solution to this is unplugging the USB receiver of the mouse and then plugging it back. This indeed works but is a very uncomfortable solutions.  My question is: Is there a script I could run on startup to unmount the USB and mount it back, and if so how would I do something like that?  Thanks in advance!


Ring of fractions of $R$ is integral over $R$

Let $R$ be a commutative ring and let $S\subseteq R$ be a multiplicative closed subset containing 1.     I need to show that if $S^{-1}R$ is integral over $R$, then $S^{-1}R=R$.   I don't see how to get started.


UnicodeDecodeError problem with mechanize

I receive the following string from one website via mechanize:  'We\x92ve'   I know that \x92 stands for ’ character. I'm trying to convert that string to Unicode:  >> unicode('We\x92ve','utf-8') UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 2: unexpected code byte   What am I doing wrong?  Edit: The reason I tried 'utf-8' was this:  >> response = browser.response() >> response.info()['content-type'] 'text/html; charset=utf-8'   Now I see I can't always trust content-type header.


I would like to remove a java process in the system tray called LRAT.  When I right-click on the icon there is no context menu and no exit option.  When I double-click on it, nothing seems to happen.  I noticed it first after I updated the Adobe Flash player plugin, but I doubt it had anything to do with it.  Nothing in the Process Explorer is called LRAT, and a search on the net produce nothing except links to RAT Trojan horse.  Any help is greatly appreciated.


Radioactive Dating Accuracy After 60,000 years

Why is radioactive or Carbon 14 dating only accurate for 60,000 years? In theory, there should always be at least SOME Carbon 14 in everything that was living at any given time. This is because no matter how many times you multiply something by 2, there will always be an answer (as long as the number is real). So why only to 60,000? Also, there are records of things existing for upwards of 4.28 billion years old (link:), if Carbon 14 dating is only accurate for 60,000 years, how do we know how old some of these microfossils are?


Unable to redirect stdout/stderr to log file

I have a script tmp.sh  #!/bin/bash  echo hello sleep 3 echo 3   I want to log the script running time (as well as script stdout) to a log file.   user$ time ./tmp.sh >& log.tmp  real    0m3.003s user    0m0.000s sys     0m0.003s   does not work.  user$ time ./tmp.sh 2>&1 log.tmp hello 3  real    0m3.003s user    0m0.002s sys     0m0.001s   this also does not work.   What is the correct way to log the output of time command to log file?


Why is the polynomial best approximation to an even function itself even?

I have seen this stated and it seems intuitively obvious but I cannot prove it. I have a feeling it may be because a non-even best approximant would not satisfy the equioscillation property of the best approximation (that if |f-p|=d, where p is the best polynomial approximation of order n, there are at least n+2 successive points in the interval under consideration where alternately |f-p|=+-d ).  Note: By "best approximation" I mean the polynomial that minimizes |f-p| on [-1,1] where |.| is the sup norm. So e.g. the best approximation of order n would be p in Pn={polynomials degree<=n} which does this.


Where do I start to create my own Ubuntu derivative?

I would like to create my own Ubuntu derivative with my desktop environment of choice and my preferred set of prepackaged programs.  What base should I start with and what modifications should I start adding?  I know two possible starting points:   , an official set of bare necessities () that seems suitable for creating appliance firmware or one's very own Linux distribution. Unlike , this is not a complete distribution, as it lacks a bootable image with an installer or a boot loader. , a fully working Ubuntu livecd containing only the minimal set of software to make the system work; not an official Ubuntu project. probably I could use  or something else as a base.   Then, I need to customize my distribution. I know of the following tools:        that should allow for me to easily customize my installation media. But what if I need not just something to create a one-off remix of Ubuntu for my own enjoyment, but a maintainable project with all its trappings: I guess I need to have a set of scripts trackable by version control system, amenable for automated testing and building with some build infrastructure. That's how they build a halfway decent OS distribution, right?  How should I best start creating my own Ubuntu derivative in a way that could naturally transcend a one-off custom CD for myself, and be built in a more controlled, robust manner, like proper Ubuntu derivatives supposedly do?


I am trying to convert an integer number in C into an array containing each of that number's digits  i.e.  if I have   int number = 5400   how can I get to   int numberArray[4]   where   numberArray[0] = 0; numberArray[1] = 0; numberArray[2] = 4; numberArray[3] = 5;   Any suggestions gratefully received.


Measuring total solution build time in Visual Studio

Does any know if there is any native mechanism to report on the total solution build time in Visual Studio 2008? You can change the build verbosity to report build times per project as discussed  or report total build time from msbuild  but I’d like to see this in the IDE across an entire solution containing many projects. Short of creating custom pre and post build events, does anyone know if there’s any native output for total build time? Thanks!


On what systems is //foo/bar different from /foo/bar?

Throughout the POSIX specification, there's provision (, , ...) to allow implementations to treat a path starting with two / specially.  A POSIX application (an application written to the POSIX specification to be portable to all POSIX compliant systems) cannot assume that //foo/bar is the same as /foo/bar (though they can assume that ///foo/bar is the same as /foo/bar).  Now what are those POSIX systems (historical and still maintained) that treat //foo specially? I believed (I've now ) that POSIX provision was pushed by Microsoft for their Unix variant (XENIX) and possibly Windows POSIX layer (can anyone confirm that?).  It is used by Cygwin which also is a POSIX-like layer for Microsoft Windows. Are there any non-Microsoft Windows systems? OpenVMS?  On systems where //foo/bar is special, what is it used for? //host/path for network file systems access? Virtual file systems?  Do some applications running on Unix-likes —if not the system's API— treat //foo/bar paths specially (in contexts where they otherwise treat /foo/bar as the path on the filesystem)?    Edit, I've since  about the origin of //foo/bar handling in the spec, and the discussion is an interesting read (from an archaeology point of view at least).


I know it has been asked before but I never receive notifications, even after weeks. I suppose setting it in my account settngs should be enough, isn't it?        EDIT  I don't think it's a duplicate because in my case I don't click on inbox for weeks, or even access stackexchange for such periods, nevertheless I don't get notified of messages (that I only see when I get back to stackexchange)


Determine the center of the group $GL_n(\mathbb{R})$?

Determine the center of the group $GL_n(\mathbb{R})$.   The center of a group $G$ is the set of elements that commute with every element of $G$. I think the answer is $Z(GL_n(\mathbb{R}))=\{\lambda \times I $|$ \lambda \in \mathbb{R}\}$, where $I$ is the identity matrix. However I'm not sure how to prove it. Is this correct? And if so, what's a good way to go about showing this is the center of the group?


I was asked to prove the following : Let $G,H,$ and $K$ be finite abelian groups. If $G \times H \cong G\times K$ then $H\cong K$. It seemed very intuitive to me but I am having a hard time writing it formally. I found this :  which is the same question but the explanation there is not really formal and I feel as if they only reduced the problem to an equal one: 1. first me decompose to cyclic groups 2.we say that G is of course decomposed in the same way in the two products 3. since the decomposition are isomorphic and G's decomposition is the same we conclude that K's decomposition is isomorphic to H's decomposition. But isn't it the same as saying the same argument without decomposing at all? What am I missing here? What does the decomposition really gives us apart from writing the same thing in a different way?


SSD versus microSD: Does physical size matter?

I see microSD cards up to 400GB, as well as SSD up to 400GB. My question is related to the size: If you can fit 400GB in a microSD card, why do we need the size of a SSD (more commonly, 2.5 in)? What other electronics or components are in a SSD that its size is so much bigger than a microSD, while having same storage?


Intel® Core™2 Duo Processor E4300 - Is it a 64 Bit Processor?

I have a PC with an Intel® Core™2 Duo Processor E4300 - I ran CPU-ID on it, and here are the results:    Is this capable of running Windows 64-bit?


So with the Steam Summer Sale in full swing, I've finally taken notice of the Steam Mascots.  Judging by the latest background, the black one, at least, has a name: Cyl.  Do the other two have names as well? Are there only these three?   What's their story?


Ubuntu 13.04 Unable to locate package package-name

I was using Ubuntu 12.04. But today I just made format my system and installed Ubuntu 13.04. I have made copied the archive file (/var/cache/apt/archives) from Ubuntu 12.04 and made paste to 13.04 . After I made the system update by doing commands (sudo apt-get update) terminal. Then after that whatever I am trying to install on my system it is showing error like   Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package package-name   Even I tried to install apache server by using sudo apt-get apache2. It is showing the error like   Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package apache2   So can someone kindly tell me how to solve this issue. Any help and suggestions will be really appreciable. Thanks


Calculating length of road network within a polygon

I have a road network stored in a gdb and some polygons in another gdb.  I want to populate an attribute for each polygon with the total length (in km) of the road network that it overlaps.  Any idea on how to do that?


How do I run an executable file with a double click?

I'm trying to run an executable (testdisk) but double click doesn't work. The only way is to run:  sudo ./testdisk   from terminal. But I'd like to open executables with double click in future. How can I do this?


How can I upload an SSH key to a system that doesn't use passwords?

I would like to create a public/private keypair and upload the public key to a server that I want to log onto.  However, that server has already been configured to allow no password authentication of any kind - only key based authentication is allowed.  How do I upload my public key to that system ?  I have no way to log in ...  Just to be clear - I understand very well how to scp my public key to the remote .ssh/authorized_keys file - that is not the issue - the problem is, if password auth is disabled, how can I get the key to them in the first place ?


Is there a way to hide ubuntu dock and top bar using terminal?

I want a shortcut to hide the top bar and dock, so I thought the best way to do that would be to figure out a terminal command which does the same.So, can someone tell me the command to do so or another way to make the shortcut work?


I have a number of staging and test servers that I need to constantly modify my hosts file to access (they depend on the domain name, so I have to change the hosts file to get them to work).  I find this annoying. I'd like to setup a portable browser of some kind for each kind of site I want to work with. Is there any version of any graphical web browser (including browsers based on the rendering engines of other browsers) that will do this?  This way I can simply launch the instance that's already configured to work with staging if I want to test staging.    Any ideas?  EDIT: The important feature is the ability to run two browsers concurently, both browsing to some-address.com, but with one browser directing the reqests to the server at 1.2.3.4 and the other browser directing the requests to the server at 5.6.7.8.  EDIT: (3/16/14)  This question was asked several years ago, and I still don't know of a decent way to do this.  Let me try to explain further, because people seem to misunderstand the problem.  It's not something that can be easily fixed just by using a proxy server.  I suppose it might be possible to write extensive rules in a proxy server to solve the problems, but that's a huge complex solution to what should be a simple problem.  So to clarify:  There are three web servers.  Production, Test, and Development.  Each runs a multi-tenant application that customizes itself based on the hostname used to access it.  Conceptually, this is similar to a Content Management System or blog engine that allows multiple sites to be run off the same server instance.  You just point the hostname to the server, and whichever hostname is used to access it via HTTP 1.1 hostname mapping, is the site it displays.  Any solution which simply rewrites the host file doesn't work because of the requirement to run multiple browser windows at the same time to the different sites, production, development, test, etc...  So simply constantly altering the host file doesn't work because it affects all browser instances.  If you change the mapping for one browser, then the other browsers are also now mapped to that server so any subsequent requests will go to the wrong server.  All i'm looking for is a way to force this browser instance to use this host file, and that browser instance to use that host file, such as through a command line parameter.  I don't even care if I need to install multiple copies of the browser.    This may be doable with firefox portable, since I think it uses its own config files per installed copy, but the problem is that the third party software used to administer the sites does not work with firefox (the sites themselves do, but the admin tools do not, they work fine with chrome and IE and Opera, however.. and I have no access to the source for this to fix it).


What is the 2.8 shortcut for "Operator Search" on Mac?

I would like to know what key or key combination opens the search field in Blender 2.8 on a Mac. Can anyone answer this? "F3" does not do it.  Thanks!


How to ask for clarification of an answer?

Suppose an answer provided by somebody else requires clarification. How do I ask them to clarify their answer?  Note: The original question need not be mine.


Ubuntu 18.10 - cannot disable on-screen keyboard on touch screen laptop

This keyboard is super broken and pushes/pulls my windows off the screen every time it appears, which is every time I'm in a text input box.  There has to be a way to disable this system-breaking feature.  Setting on-screen kbd to off in Accessibility Options did nothing.


Can a Person Be Chosen By More Than One Wand?

A spin off of  wherein it's asked whether there are any canon examples of a witch or wizard owning more than one wand for practical reasons. As DVK's question doesn't specify regarding The wand chooses the wizard, I'm going to ask about that particular aspect.   Can a witch or wizard be chosen by more than one wand?  We've seen numerous examples in Harry Potter of individuals using wands that belong(ed) to someone else, or had a new wand made for them with Ollivander1 being under duress (Wormtail), but are there any examples in canon where a person is chosen by more than one wand?   Is a child's first purchase from Ollivander's the one and only time they can be "chosen" by a wand? Or, should they break their wand, want a second wand, or lose their wand, and need a replacement, would they be able to be chosen a second time by a totally new wand?  For reference if interested: ; ; ; ;  [Pottermore/Flickr] ETA:  and   1: I know there are other wandmakers in HP, but I am using Ollivander as my example because he is the best known in the series.


Is it possible for individual faces to have separate materials from the rest of a mesh?

I've only got maybe a week's worth of total experience with Blender and I figured it would be fun to attempt something that isn't overly complex, i.e. something cube-like, so I decided to recreate the Companion Cube from Portal 1.    In modeling and figuring out the center circle pieces I noticed something I missed earlier though. See how to the top of the center circle the pink actually continues into the base of the circle?  I thought I could use loop cuts aligned with the cut out parts of the cube core  which I would then separate from the rest of the mesh in order to have separate materials but I learned that with a subdivision surface modifier involved the results are not that great.  Is there a way for only the two faces resulting from loop cutting to have the pink material and also not go wacky or am I going about this in a way that won't work? Thanks in advance for any and all help, assistance, and advice given and shared.


Two radio buttons are present with two options to select. User can select only one .
        <input id="Quarterlyselector" type="radio" name="myRadio" value="Q" checked="checked" > Quarterly </input>

     <input id="Monthlyselector" type="radio" name="myRadio" value="M" > Monthly </input>
   What would be the syntax to assign the user selection to a variable , so that it can be passed on to apex as a method parameter?


MySQL Access denied with "here document"

I'm trying to access MySQL and execute multiple large queries with a "here document" in a shell script.  Running the following command works perfectly fine:  /usr/bin/mysql -u username -ppassword -h localhost database   Running this command results in an Access Denied error:  /usr/bin/mysql -u username -ppassword -h localhost database << EOF --MySQL queries here EOF   This is the error I receive:  ERROR 1045 (28000) at line 3: Access denied for user 'username'@'localhost'  With the only difference in the two methods being the << EOF, why am I all of a sudden receiving an error?


For $x,y \in \mathbb R$, let $d(x,y) = |x-y|/(1+|x-y|)$. Determine whether $d$ defines a metric on $\mathbb R$. If it does, determine whether $\mathbb R$ is compact under $d$.  Since $|x-y|=|y-x|$, $d$ is symmetric. If $x \ne y$, then $|x-y|>0$, so $d(x,y)>0$. Since $|x-x|=0$, then $d(x,x)=0$. So, $d(x,y) \ge 0$ with equality if and only if $x=y$. I am having trouble showing the triangle inequality $$\frac{|x-y|}{1+|x-y|} \le \frac{|x-z|}{1+|x-z|}+\frac{|z-y|}{1+|z-y|}.$$ Trying a few values, I'm guessing triangle inequality holds.


How to stop object being used as a camera?

I accidentally turned on 'use object as camera' by pressing ctrl + numpad 0 and now I can't get it to stop doing that. I deleted all the cameras, and then created a new one, and still it keeps trying to use that object as a camera, and I can't get Blender to switch to a different camera.  I'm adding the file in case there is something glitchy here.


It's fairly easy to rotate the entire desktop's orientation on MS Windows. However, I'm looking for a way to rotate a single window's orientation. Are there any easy tricks to do this?


Why is JS giving me an undefined error when I import the script?

I have two files: testing.html with a numeric input, that runs cdv(value) from script.js everytime its value changes. <!DOCTYPE html> <html lang="en">  <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>JS Testing HTML</title> </head>  <body>     <input type="number" onchange="cdv(value)">     <script src="script.js"></script> </body>  </html>  script.js with a function that receives a number and calculates a specific digit... let cdv = (T) => {     var M = 0, S = 1;     for (; T; T = Math.floor(T / 10))         S = (S + T % 10 * (9 - M++ % 6)) % 11;     //return S?S-1:'k';      alert(S ? S - 1 : 'k'); }  But when I run it, the console says that cdv() is not defined. But if I try: <body>     <input type="number" onchange="cdv(value)">     <script>         let cdv = (T) =>         {             var M = 0, S = 1;             for (; T; T = Math.floor(T / 10))                 S = (S + T % 10 * (9 - M++ % 6)) % 11;             //return S?S-1:'k';              alert(S ? S - 1 : 'k');         }     </script> </body>  It works. Why can't I run the function from sourcing the script?


How to cross-reference a list of sub figures at once?

How can I define a command similar to \ref for referencing a list of subfigures at once? Just like what cite package does for citations.  A command like \myref{a,c,d} which can be tuned to generate the following outputs for the below MWE: 1a,c,d, 1(a,c,d).   It would be great if it can group the labels together for example \myref{a,b,c,d} will generate 1a--d.  Is there any package which implements this kind of cross-referencing?  \documentclass{article} \usepackage{subfig} \usepackage{hyperref} \begin{document} \begin{figure} \subfloat[][]{Plot 1 \label{a}}  \subfloat[][]{Plot 2 \label{b}}  \\ \subfloat[][]{Plot 3 \label{c}}  \subfloat[][]{Plot 4 \label{d}}  \end{figure}  \noindent Note: \\ Fig.~\ref{a} \\  Fig.~\ref{a},b \\ How to generate the following cross-references? \\     Fig.~1a,b \\  Fig.~1a,b \\ Fig.~1a,c,d \\ Fig.~1a--d \\  \end{document}


String comparison in java does not gives the desired results

I tried with the following class :  public class EqualMethodTestWithNew {     public static void main(String[] args) {         String value = "xxx";         String name = new String("xxx") ;          System.out.println("hascode : value : "+value.hashCode());         System.out.println("hascode : name  : "+name.hashCode());          if (value == name) {             System.out.println("equal == 1");         } else {             System.out.println("false == 1");         }      } }   though the hasCode is same for the both variable it prints the false == 1. could some one explain the reason why?  thanks


Many (particularly sci-fi) shows or books invent words to replace real words, for example 'frak' in Battlestar Galactica replaces the 'F' word to get through censorship.  Is there a word to describe a word like 'frak', a word used in place of another? Not necessarily always replacing a curse word, I'm only using this as an example. My first thoughts were proxy or intimation but that's not quite right.


I can't log into Minecraft Launcher nor minecraft.net on my Mac

I got Minecraft on July 2, 2019. I put in the code, entered the username and password, and logged into minecraft.net.  Once I put in my email and password, it says "Invalid username or password." I tried waiting for a while but the output remains. I tried my HP laptop and it worked somehow, but on the Mac it doesn't work.   I know that my username should be my email, but it still doesn't work. I've waited for 1-2 days now, but it still doesn't work.


How to check for empty xml files when parsing through multiple xml files

I am trying to loop through a directory to search all xml files. I got this accomplish by doing Directory.EnumerateFiles and by finding every .xml type. The thing is now, there are some random xml files that are empty with no information written in them. I want to check for all files that do not have any information in them.  Code  foreach (string file in Directory.EnumerateFiles("/xmlFiles", "*.xml", SearchOption.AllDirectories)) {     //Find the XML File     XDocument doc = XDocument.Load(file);      //Check if the XDocument doc has no root element      if (doc == null)     {         Console.WriteLine(File + " has NO root element");     }     else     {         Console.WriteLine(File + " has a root element");     } }   I tried doing a if else statement comparing the file to null after parsing the xml file but I get a error when loading my file before I can compare it.  Error: System.Xml.XmlException: 'Root element is missing.'


what is apt.conf in simple and understandable slang?

I have gone though man apt.conf. I feel the information there is quite overwhelming and difficult to understand for beginners moving to Ubuntu/Debinan Platforms. Could some one explain in simple english what is the use of this file and how it can benefit an apt user. Further this file seems be not setup on my machine - so I think it's not required for normal usage, but I am trying to understand advanced usage. so want to dig in to it. ll /etc/apt/apt.conf ls: cannot access '/etc/apt/apt.conf': No such file or directory  Edit: I feel trying to understand the apt conf part on a whole makes sense as every thing should be some or the other way related. On going to /etc/apt and doing an ls -l /etc/apt$ ll total 72 drwxr-xr-x   7 root root  4096 Aug 28 23:46 ./ drwxr-xr-x 144 root root 12288 Sep  1 15:53 ../ drwxr-xr-x   2 root root  4096 Sep  1 15:53 apt.conf.d/ drwxr-xr-x   2 root root  4096 Apr  9 15:51 auth.conf.d/ drwxr-xr-x   2 root root  4096 Apr  9 15:51 preferences.d/ -rw-r--r--   1 root root  3412 Aug 31 20:35 sources.list drwxr-xr-x   2 root root  4096 Aug 31 20:34 sources.list.d/ -rw-r--r--   1 root root  3410 Aug 31 20:35 sources.list.save -rw-r--r--   1 root root 14771 Aug 28 23:46 trusted.gpg -rw-r--r--   1 root root  8497 Aug 27 01:28 trusted.gpg~ drwxr-xr-x   2 root root  4096 Aug 28 23:46 trusted.gpg.d/  Evey thing here is understandable after bit of digging. Except for apt.conf.d/ (and  auth.conf.d/, which seems to be empty and I am not bothered about this in this Q). Now on entering - apt.conf.d/ and doing ll you see bunch of more files - /etc/apt/apt.conf.d$ ll total 96 drwxr-xr-x 2 root root 4096 Sep  1 15:53 ./ drwxr-xr-x 7 root root 4096 Aug 28 23:46 ../ -rw-r--r-- 1 root root   49 Aug 18 01:22 00aptitude -rw-r--r-- 1 root root   40 Aug 18 01:21 00trustcdrom -rw-r--r-- 1 root root  630 Apr  9 15:51 01autoremove -r--r--r-- 1 root root 1349 Sep  1 15:53 01autoremove-kernels -rw-r--r-- 1 root root   92 Apr  9 15:51 01-vendor-ubuntu -rw-r--r-- 1 root root  168 Aug 31 20:32 10periodic -rw-r--r-- 1 root root  108 Apr  2 16:55 15update-stamp -rw-r--r-- 1 root root   85 Apr  2 16:55 20archive -rw-r--r-- 1 root root  168 Aug 31 20:32 20auto-upgrades -rw-r--r-- 1 root root  243 Dec 16  2009 20dbus -rw-r--r-- 1 root root 1040 Mar 12 18:50 20packagekit -rw-r--r-- 1 root root  114 Jun  5 18:43 20snapd.conf -rw-r--r-- 1 root root 2592 Jan 18  2020 50appstream -rw-r--r-- 1 root root 2164 Feb  9  2019 50apt-file.conf -rw-r--r-- 1 root root  625 Oct  7  2019 50command-not-found -rw-r--r-- 1 root root 5459 Apr 14 04:07 50unattended-upgrades -rw-r--r-- 1 root root  435 Jan 18  2020 60icons -rw-r--r-- 1 root root  251 Jan 18  2020 60icons-hidpi -rw-r--r-- 1 root root  182 Aug  3  2019 70debconf -rw-r--r-- 1 root root   32 Aug 28 12:34 99synaptic -rw-r--r-- 1 root root  305 Apr  2 16:55 99update-notifier  So through this Q, I am looking for answers regarding the significance of apt.conf and the set of files in apt.conf.d/ - what kind of configurations does these files enable ( and of course man apt.conf is not quite understandable at least for beginners) Second Edit following user535733 response - How are the files in the apt.conf.d named. Do they follow some naming convention that simplifies understanding what config aspects go where.


TikZ: how to draw arrows from the y axis to a curve?

I should draw this:    This is what I have done so far.    I do not know how to draw the horizontal arrows. Besides, in order to draw the dashed line from point Q to point P, I wrote  \draw [fill] (0.3,2) circle (1.5pt) node [above] (Q) {Q}; \draw [fill] (1.1,-1.6) circle (1.5pt) node [left] (P) {P}; \draw [thick,densely dashed] (0.3,2) -- (1.1,-1.6);   Is there a faster way, something like  \draw [thick,densely dashed] (Q) -- (P);   ? This is my code:  \documentclass[border=3cm]{standalone} \usepackage{tikz}  \begin{document} \begin{tikzpicture} % \draw [help lines] (0,0) grid (7,7); \draw plot [mark=none, smooth] coordinates {(1.16,-2.4) (1.6,-0.8) (2,1.6) (2.04,2.8)}; \draw [thick,-latex] (0,0) -- (5,0.0) node (xaxis)[below] {$x$}; \draw [thick,-latex] (0,-4) -- (0,4) node (yaxis)[left]  {$y$}; \node at (2.5,2.6) {$U(y)$}; \draw [thick,latex-latex] (3,1) -- (3,-1) node [midway,xshift=0.4cm,yshift=0.3cm]  {$2l_{m}$}; \draw [thick,-latex] (1.3,-0.2) -- (2.2,-0.2) node [below]  {$\tau_{xy}$}; \draw [thick,-latex] (0.5,0.2) -- (-0.5,0.2) node [above]  {$\tau_{xy}$}; \draw [fill] (0.3,2) circle (1.5pt) node [above] (Q) {Q}; \draw [fill] (1.1,-1.6) circle (1.5pt) node [left] (P) {P}; \draw [thick,densely dashed] (0.3,2) -- (1.1,-1.6); \end{tikzpicture} \end{document}   Edit: thanks to  and  I managed to draw the arrows. Here is the code and the output:  \documentclass[border=3cm]{standalone} \usepackage{tikz} \usetikzlibrary{intersections}  \begin{document} \begin{tikzpicture} % \draw [help lines] (0,0) grid (7,7); \draw [thick, name path=curve] (1.16,-2.4) .. controls (1.6, -0.8) and (2, 1.6) .. (2.04, 2.8); \draw [thick,-latex] (0,0) -- (5,0.0) node (xaxis)[below] {$x$}; \draw [thick,-latex] (0,-4) -- (0,4) node (yaxis)[left]  {$y$}; \node at (2.5,2.6) {$U(y)$}; \draw [thick,latex-latex] (3,1) -- (3,-1) node [midway,xshift=0.4cm,yshift=0.3cm]  {$2l_{m}$}; \draw [thick,-latex] (1.3,-0.2) -- (2.2,-0.2) node [below]  {$\tau_{xy}$}; \draw [thick,-latex] (0.5,0.2) -- (-0.5,0.2) node [above]  {$\tau_{xy}$}; \coordinate (Q) at (0.3,2); \coordinate (P) at (1.1,-1.6); \fill (Q) circle (1.5pt) node [above] {Q}; \fill (P) circle (1.5pt) node [below,xshift=-1mm] {P}; \draw [thick,densely dashed] (Q)--(P); % \foreach \y [count=\yi] in {-2,-1.6,...,2}{%     \path[name path=a\yi] (0,\y) --++ (3,0);     \draw[name intersections={of=curve and a\yi},semithick,-latex] (0,\y) -- (intersection-1); } \end{tikzpicture} \end{document}


How to delete the unused Bibtex items in JabRef?

I'm writing the notes and using the software--JabRef v2.10 for managing the references. However, after revising my notes several times, I find that there are some unused Bibtex items.   So how to delete those unused Bibtex items?


bash script updates wallpaper in terminal but not in cron

I have written a script to manipulate my wallpapers. It works fine in the terminal, but not in cron. Upon careful investigation I have found the offending line in the script: gsettings set org.gnome.desktop.background picture-uri "file://$wpp"  Where $wpp contains the full pathname of the image.  All of my other variables that are saved to disk as text files are properly written.  I find that the 'wallpaper index number' in increasing, as it should, but the org.gnome.desktop.background picture-uri  is unchanged. In a terminal I can enter gsettings set org.gnome.desktop.background picture-uri "file:///fullpath/new-pic-name.jpg"  and the background changes.  But future iterations of the cron job leave the background unchanged. I want this little bash script to automatically update MY wallpapers, not those that come with my system. This should be accessed in alpha order; not in file/directory order as it would be if I were updating automatically in Gnome Settings. And there's something else I don't understand: when I select a background from the gnome settings panel, the org.gnome.desktop.background picture-uri doesn't change. What's going on here?


Will my Irish passport number change on renewal?

I am about to renew my Irish passport, and want to know if the passport number that I have will change? I have the newer type of passport that can be renewed online.


How do I disable the swipe to unlock curtain?

My computer is not a phone. This swipe to unlock thing is ridiculous.  Yes, I know Esc is supposed to substitute for the swipe, but the whole curtain thing does not interact well with my video setup.  I want to disable the curtain completely.  When I wake my computer from sleep, I want to instantly see the desktop.  How do I do this?  Some stuff about my setup:  $ lsb_release -a LSB Version:    core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch Distributor ID: Ubuntu Description:    Ubuntu 18.04 LTS Release:    18.04 Codename:   bionic     xorg-server 2:1.19.6-1ubuntu4     $ gdm3 --version GDM 3.28.2     $ ps auwwwx | grep session | cut -c65-  gdm-session-worker [pam/gdm-launch-environment]  /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart  /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only  /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart  /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session  gdm-session-worker [pam/gdm-password]  /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu  /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only  /usr/lib/gnome-session/gnome-session-binary --session=ubuntu  /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu  /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session


Use binomial expansion to show the following inequality

I wanted to show $\left(1+\frac{x}{n}\right)^n\leq\left(1+\frac{x}{n+1}\right)^{n+1}$ using binomial expansion for $n\geq 2$ and $x\geq 0$.  So my idea was to expand both using binomial expansion and try to compare term-wise. The $k^{th}$ term of $\left(1+\frac{x}{n}\right)^n$ is $n\choose k $$\left(\frac{x}{n}\right)^k$, and similar for the other expansion the $k^{th}$ term is $n+1\choose k $$\left(\frac{x}{n+1}\right)^k$. I tried to compute the difference and tried to divide one by the other, neither yields any sufficient results. How should I approach this question?


For a vector field $X$, the divergence in coordinates is given by $\nabla\cdot X=\sum_n\frac{X^i}{\partial x^i}$. In polar coordinates, the metric is $\begin{bmatrix}1 & 0\\ 0 & r^2\end{bmatrix}$, and so $\frac{1}{\sqrt{g(\frac{\partial}{\partial r},\frac{\partial}{\partial r})}}\frac{\partial}{\partial r}=\frac{\partial}{\partial r}$ and $\frac{1}{\sqrt{g(\frac{\partial}{\partial\theta},\frac{\partial}{\partial\theta})}}\frac{\partial}{\partial\theta}=\frac{1}{r}\frac{\partial}{\partial\theta}$ are unit vectors. Then for $X=X_{r}\frac{\partial}{\partial r}+X_{\theta}\frac{\partial}{r\partial\theta}$,  $\nabla\cdot X=\frac{\partial X_r}{\partial r}+\frac{\partial}{\partial\theta}\frac{X_{\theta}}{r}=\frac{\partial X_r}{\partial r}+\frac{1}{r}\frac{\partial X_{\theta}}{\partial\theta}$. But this disagrees with the usual formula given in vector calculus books. Does anyone see the error?


Proving a set X is dense in [0,1] equivalence relation

Let the relation in $\mathbb{R}: x \equiv y \ \mbox{mod} \ \mathbb{Z}$, when $x-y \in \mathbb{Z}$. For each $n \in \mathbb{N}$, let $x_n \in [0,1)$ such that $x_n \equiv \sqrt{n} \ \mbox{mod} \ \mathbb{Z}$. Prove $X = \{x_n : n \in \mathbb{N} \}$ is dense in $[0,1]$. I don't know where to start, but I have doubts about using the greatest integer.


I am from the Philippines. I have a Schengen visa application scheduled on June 01 via the German Embassy. The nature of the Schengen visa application will be for the purpose of business with a (target) travel date of June 26 to June 29/30.  I have an ongoing Schengen visa application via the Netherlands Embassy for a vacation trip on July 12 to 24 for these countries   Netherlands, Amsterdam Croatia, Split Italy, Rome   Assuming that my Schengen visa application for the Netherlands is approved, would there be any concern regarding my Schengen visa application for Germany?


I have a problem to install Ubuntu12.04.3 LTS in my computer.  My Computer is DELL(CPU: P4, 3GHz RAM: 1GB HDD: 20GB).  I downloaded Ubuntu12.04.3 LTS and installed this by using wubi.  Then it was installed on rootfs.img file in FAT32 file system.  But I want to install Ubuntu on EXT4 file system.


At the end of the game, can you play a route that is longer than your number of trains?

A recent quandary came up with some friends in a game of Ticket to Ride.  If, in the last turn, you have the cards to play a route longer than the number of trains that you have left, can you do so?  Or are you limited by your number of trains?


Get all the classes with a specific annotation in a java project

In my current spring project, I need read in my service class all classes with a specific custom annotation (@MainForm) and return a List> to the controller. The class which should be read are placed on the package com.spring.loja.model. Anyone knows a way to do that?