Stacked bar chart percentage label not showing

I have a stacked bar chart and surprisingly not all the percentage of the bars are shown. I only allowed values more than 3% to be shown, however some are clearly more than 3% and at the same time not shown (circled in red). I hope someone can rectify where's the problem. Thanks.      \documentclass[10pt,twoside,a4paper,fleqn]{report} \usepackage{xcolor,pgfplots} \pgfplotsset{compat=1.14} \begin{document} \definecolor{BIPV facade}{HTML}{83BA2B} \definecolor{conventional facade}{HTML}{3b5998} \definecolor{Column}{HTML}{fa8072} \definecolor{Core}{HTML}{666666} \definecolor{Drywall}{HTML}{794044} \definecolor{Foundation}{HTML}{66cccc} \definecolor{Roof Construction}{HTML}{daa520} \definecolor{Slab}{HTML}{ffc3a0} \definecolor{Window}{HTML}{ff00ff}   \begin{figure}[ht!] \centering \begin{tikzpicture} \begin{axis}[     xbar stacked,     legend style={     legend columns=8,         at={(xticklabel cs:0.5)},yshift=-5mm,         anchor=north,         draw=none     },     every node near coord/.style={     color=black,       check for zero/.code={         \pgfkeys{/pgf/fpu=true}         \pgfmathparse{\pgfplotspointmeta-3}         \pgfmathfloatifflags{\pgfmathresult}{-}{            \pgfkeys{/tikz/coordinate}         }{}         \pgfkeys{/pgf/fpu=false}       }, check for zero, xshift=3, font=\scriptsize},     nodes near coords={\pgfmathprintnumber[fixed zerofill,precision=0]{\pgfplotspointmeta}$\%$},     nodes near coords align=center,     ytick=data,     xtick=data,     xlabel= Percentage(\%),     ylabel= Environmental indicators,     axis y line*=none,     axis x line*=bottom,     tick label style={font=\footnotesize},     legend style={font=\footnotesize},     label style={font=\footnotesize},     xtick={0,10,20,30,40,50,60,70,80,90,100},     width=.9\textwidth,     bar width=6mm,     yticklabels={GWP, ODP, POCP, AP, EP(T), EP(FW), EP(M), ADP, CED},     xmin=0,     xmax=100,     area legend,     y=8mm,     enlarge y limits={abs=0.625}, ] \addplot [conventional facade,fill=conventional facade]  coordinates {(9.3,0) (6.7,1) (9.2,2) (13.7,3) (9.5,4) (7.5,5) (10.1,6) (6.9,7) (4.8,8)}; \addplot [Column,fill=Column]  coordinates {(7.6,0) (6.4,1) (7.9,2) (6.3,3) (6.8,4) (8.3,5) (7.1,6) (7.7,7)(4,8)}; \addplot [Core,fill=Core]  coordinates {(21.6,0) (18.3,1) (20.7,2) (16.8,3) (18.8,4) (20,5)(19.2,6)(30.4,7) (11.2,8)}; \addplot [Drywall,fill=Drywall]  coordinates {(10.4,0) (23.3,1) (12.1,2) (17.1,3) (18.8,4) (14.9,5)(15.4,6)(21.3,7) (52.8,8)}; \addplot [Foundation,fill=Foundation]  coordinates {(3.1,0) (1.9,1) (1.9,2) (1.6,3) (2.3,4) (1.0,5)(2.2,6)(1.4,7) (1.4,8)}; \addplot [Roof Construction,fill=Roof Construction]  coordinates {(0.2,0) (0.2,1) (0.2,2) (0.2,3) (0.2,4) (0.1,5)(0.2,6)(0.2,7) (0.2,8)}; \addplot [Slab,fill=Slab] coordinates {(38.58,0) (34.48,1) (39.00,2) (31.05,3) (33.96,4) (40.43,5)(35.30,6)(24.43,7) (20.71,8)}; \addplot [Window,fill=Window]  coordinates {(9.15,0) (8.63,1) (9.03,2) (13.30,3) (9.56,4) (7.72,5) (10.49,6)(7.68,7)(4.93,8)};  \legend{Conventional facade, Column, Core, Drywall, Foundation, Roof construction, Slab, Window} \end{axis}   \end{tikzpicture} \end{figure} \end{document}


I've been working on some problems in my introductory discrete mathematics course, and I am trying to figure out a proof that $R(3,3,3) \leq 17.$ I initially consider an instance where we have a $K_{17}$ colored in the arbitrary colors $c_1,c_2,c_3$. Consider a vertex $v \in K_{17}.$ It should have 16 edges coming out of it, so by the pigeonhole principle, it should have 6 edges coming out of it that are colored in one color. Without loss of generality, we can say that these are colored $c_1$. Consider these $c_1$ adjacent vertices $v_1,...,v_6$. If there is a $c_1$ colored edge between any one of them, we are done. Otherwise, I am not entirely sure what I can do with 6 vertices whose colors are arbitrary colored $c_2$ or $c_3$. Any recommendations for this problem?


In Bayesian terminology, what does evidence refer to?

In Bayes theorem of a parameter $\theta$ with data $D$, we have:  $$P(\theta|D) = \frac{P(D|\theta)P(\theta)}{P(D)}$$  where I know $P(D)$ as the marginal likelihood. Is it true that the marginal likelihood is referred to as evidence in Bayesian statistics? If not what is commonly refered to as evidence?


Documents I should provide to confirm my home address?

My question is about what documents should I provide to confirm/prove my home address?  I have not got a mortgage property or property deed because I do not own the place. Me and my husband just pay a rent every month can I provide a bank statement, or my personal phone bill, or health card?


difference fn(String... args) vs fn(String[] args)

Whats this syntax useful for :       function(String... args)   Is this same as writing       function(String[] args)    with difference only while invoking this method or is there any other feature involved with it ?


How to fix java.lang.OutOfMemoryError: Java heap space error?

I have a file with size of 32 MB, I have downloaded it from DocuShare server to DocuShare temp folder. I am trying to read the file content from it to create a file. I get error when I URL encode my base64 content. I am not getting any exception when I run the same code a simple java application. But when I use the same code in DocuShare service to get document content I get Exception. HTTP Status 500 - org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space  org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space  File file = new File(filePath); FileInputStream fileInputStreamReader = new FileInputStream(file); byte[] bytes = new byte[(int)file.length()]; fileInputStreamReader.read(bytes); String encodedBase64 = String encodedBase64 = java.util.Base64.getEncoder().encodeToString(bytes); String urlEncoded = URLEncoder.encode(encodedBase64);   How to fix this error?  Do I need to increase my tomcat heap size?


How to rewind time on just the main character?

I have a 2D sidescrolling game and I want the character to be able to rewind time on him if he messes up. I don't want anything else to change, just the main character's position. Any idea how I can do this?


Two sections on one page make fancyhdr takes the second one as page header

I have two sections on one page. Unfortunately fancyhdr takes the second one as the page header, which will result in something like seen in the image below.   I want to have the first section as the header title (in this case: Introduction).    Here is the code for the above image:  \documentclass[12pt, oneside]{article} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{\fancyplain{}{\leftmark }} \rhead{} \usepackage{lipsum} %only for dummy text  \begin{document}     \section{Introduction}         \lipsum[2]     \section{Overview}         \lipsum[2] \end{document}


How do I stop/start ssh? I've tried   /etc/init.d/ssh restart sudo service ssh restart sudo restart ssh   I get errors every time.


How to set Google Chrome as the default browser?

How can I set Google Chrome as the default browser? If I set it in the browser settings, nothing happens. The browser says it's default, but in preferred applications in Gnome, there's only Firefox to choose from. Clicking any link i.e in Thunderbird opens a blank Firefox window, not with the link embedded. Can I set the  default browser in dconf2 or any configuration file?


What is p-value in simple words and good non-mathematical examples?

Can someone explain in simple words and with many good down-to-earth examples what is the p-value and how do we find it?   Is it true that it shows what is the probability that the sample we have tested is true not simply by chance? Isn't that the point of the alpha level to guarantee that for an instance, for 95% of the time, it is not a chance that our hypothesis is true? For the rest of the 5% if it is true, it is by chance?  I will greatly appreciate if you can explain the difference between p-value and alpha level(significance level), how are they connected, what do they tell me for the "real world" and give me examples! (Because any mathematical explanation seems to confuse me more)   Thanks in advance!  PS: I am aware that there are questions about p-value with good explanations out there, would then just like to have answers for the other questions.


Sampling from marginal distribution using conditional distribution?

I want to sample from a univariate density $f_X$ but I only know the relationship:  $$f_X(x) = \int f_{X\vert Y}(x\vert y)f_Y(y) dy.$$  I want to avoid the use of MCMC (directly on the integral representation) and, since $f_{X\vert Y}(x\vert y)$ and $f_Y(y)$ are easy to sample from, I was thinking of using the following sampler:   For $j=1,\dots, N$.  Sample $y_j \sim f_Y$. Sample $x_j \sim f_{X\vert Y}(\cdot\vert y_j)$.   Then, I will end up with the pairs $(x_1,y_1),...,(x_N,y_N)$, and take only the marginal samples $(x_1,\dots,x_N)$.  Is this correct?


Inequality for convex function $f:(0,\infty)\to\mathbb{R}$

I have been working through the Exercises at the end of Chapter $1$ of Bollobas' Linear Analysis. Chapter $1$ is on inequalities, and the text is fairly brief. I have found the problems unexpectedly hard - I guess I am simply not familiar enough with the subject. In particular, I am stuck on this one:     Let $f(x)\ge0$ be a convex function. Prove that $$\int_0^\infty\ f^2 dx\le\frac23\max f\int_0^\infty f\ dx$$ Show that $\frac{2}{3}$ is best possible.   It is easy to show that $f$ is monotone decreasing $($unless $\int_0^\infty f\ dx=\infty$ in which case the inequality is trivial$)$. It is also easy to show that if $f(0)=a,~f(b)=0$ with $f$ linear on $[0,b]$ $($and $0$ for $x>b$$)$ then we get equality, so that $\frac23$ is indeed best possible. But I still cannot hit on the right way to prove the inequality.


Is there a USB female to male cable that converts 5V, 1A to 5V, 500 mA?

The car stereo has a USB port of 5V, 1A, and my problem is when I connect a USB memory stick it "blows" the circuits (makes the USB unreadable). It's my second USB in 8 months, so my question is can you have a USB female to male cable (that has like a resistor or something like that), that converts 1A to 500 mA without changing voltage?


I've written a script that has a few log outs with printf "..." 1>&2 inside a function. Running that script (build.sh) and I've noticed that if I want to redirect stderr to stdout and stdout to a file[0], success is dependent on order:  ./build.sh 2> /tmp/log.txt works (obviously) ./build.sh 1>/tmp/log.txt 2>&1 works ./build.sh 2>&1 1>/tmp/log.txt doesn't redirect to the file  And with echo:  echo "test" 2>&1 >/tmp/log.txt works echo "test" >/tmp/log.txt 2>&1 works  This was replicated in bash, zsh, and originally reported in mksh. When does the order of redirection statements in the command matter? Thanks! 0: Not sure why I'd do this, but a user of the script tried it and got confused when the redirection failed.


There is something I've always been mixed up about with IP addressing. When a company purchases internet access from an ISP and obtains their inside global IP address that they'll use for NAT (lets say they're just using PAT and only in need of 1 inside global address to make things easy), do your private IP address schemes have to stick within the class of network you purchased from your ISP? When purchasing internet access from your ISP, does it coincide with network classes?  I'm mixed up about the process itself, considering my public IP at home for instance is 24.x.x.x (which traditionally is a class A network 0-127 range), but at home obviously we all have class C networks, so I'm confused about the whole thing.  I notice most companies use a 172.16-31.0.0 private address scheme and subnet further from there. Which is a class B private address scheme, but is this because they purchased a class B network? Or as a result of CIDR, there are no classes of networks to be purchased, the internet access is the only thing needing purchasing which you will then be given a public IP from your ISP, and the private scheme is left up to the company and Network Engineers to determine. Could a company purchase internet access from their ISP for instance, then make the internal network 10.0.0.0 and subnet from there giving themselves as many subnets and host IPs they could ever use?  If you're totally confused by my questions by now, just to sum up, I want to know basically whether or not the public IP a company is administered from their ISP when they purchase internet access (inside global IP) has any influence on your private IP address scheme (for instance, having to use 172.16.0.0/16 as a starting point instead of being able to use anything I want because of your inside global address), and then subnetting from there.  Any clarity on this would be greatly appreciated.  I apologize for the enormous length of this post!  Thanks everyone.


Different citation colour for page number

I try to cite a specific page in LaTeX using the following command:  \cite[p.~42]{Friedberg1995}. I use colorlinks and I have set a blue colour for my citations. After the compilation takes place I get the following result.  Friedberg  and Hunt (1995, p. 42)  I want you to imagine that in the aforementioned, what is in bold is actually blue. The point is why [p. 42] isn't in blue colour as well.   Here is a minimal example:   \documentclass[hidelinks,parskip=full,12pt]{article} \usepackage[utf8x]{inputenc} \usepackage{booktabs}                     \usepackage{multirow}                     \usepackage{booktabs,xcolor,siunitx}     \definecolor{lightgray}{gray}{0.9}       \usepackage{threeparttable}               \usepackage{threeparttablex}              \usepackage{colortbl}                    \usepackage{longtable}                     \usepackage[font=small,format=plain,labelfont=bf,up,textfont=normal,up]{caption} \usepackage{rotate} \usepackage{ucs}  \usepackage[leqno]{amsmath}               \usepackage{amsfonts, amssymb, amsthm} \usepackage{makeidx} \usepackage{graphicx} \usepackage{lscape} \usepackage{rotating} \usepackage[left=1in,right=1in, top=1in, bottom=1in]{geometry} \usepackage[sort]{natbib}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%  Customized citation style  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \bibpunct{(}{)}{;}{a}{,}{,~}      \usepackage[hyperfootnotes = true]{hyperref}  \hypersetup{colorlinks,                   linkcolor=red,                                filecolor=darkgreen,  urlcolor=darkred,  citecolor=blue}  \usepackage{paralist} \usepackage{enumitem} \setlist{itemsep=2pt,parsep=2pt,topsep=15pt}  \usepackage{setspace}   \title{My title}  \author{Cicero \\ \textit{Roman Empire}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%    DOCUMENT BEGINS    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \begin{document} \maketitle  {\doublespacing  \begin{center} \begin{minipage}[c]{13cm} ``\textit{After World War I, laws were passed severely limiting    immigration. Only a trickle of immigrants has been admitted since then ... By keeping labor supply down, immigration policy tends to keep wages high.}'' \end{minipage} \end{center}   As it is pointed out by \citet[p.~42]{Friedberg1995} ...   } \newpage \bibliographystyle{chicagoa}       \bibliography{mybib.bib}   \end{document}  }   and the bibliography is:   @ARTICLE{Friedberg1995,   author = {Rachel M. Friedberg and Jennifer Hunt},   title = {{The Impact of Immigrants on Host Country Wages, Employment and Growth}},   journal = {Journal of Economic Perspectives},   year = {1995},   volume = {9},   pages = {23-44},   number = {2},   month = {Spring},   timestamp = {2013.06.19} }


Which method to use for Initializing K means center?

There are different methods which are proposed for initialization of K means, but is there any literature that lists the merits and demerits of each one.(some sort of survey)  Most popular one is i guess k-means++ but why is it better than farthest point method ?


Spontaneously appearing and disappearing command line windows in Windows 10

I run Windows 10 (Version 1607, Build 14393.969) with up-to-dated Bitdefender Total Security 2017 and MalwareBytes Anti-Malware Home (Premium). There is no pirated software installed on the computer.  Less than 15 minutes ago, I saw 2 command line windows opening and closing very quickly on their own. I was just browsing the web and had not just restarted the machine. The first window appeared and disappeared too quickly so I couldn't see what was its content. For the second one, I only managed to see the words "ubuntu" and "multiverse" before the window closed by itself. The only "linux-related" things I have on this machine is Bash on Ubuntu on Windows and TightVNC with the latter running in the background.  How do I please figure out what happened? Specifically, which program / process opened those command line windows and, if possible, what command lines were being run? I saw this earlier post  and the comments focused on programs / processes that run on startup but I haven't restarted this machine for some time. I also installed  (Ver 161206) but so far has been unable to follow the instructions in the .


Can anybody help me to produce this? I couldn't find anything similar on the forum.  No need for a grid.     Thank you,  Mironas


I want to be able to filter the Stack Exchange front page to remove specific sites

The  contains hot questions from many sites. However, some sites I am not interested in and I want to permanently blacklist them. Can this feature be added (unless it is already present, in which case please tell me how to use it)? Note that I do not want to limit my attention to sites I already know about (i.e. subscription is not an answer). For example, I am interested in Lisp. SE has several sites which have Lisp questions: StackOverflow, Emacs.SE, CodeReview.SE, Programmers.SE &c (not to mention all the platform-specific sites like Unix.SE and Apple.SE which also have Lisp-related questions). This means that white-listing is not an option. However, there are now the Japanese-language Ja.SE and Portugese-language Pt.SE, and I understand neither and I don't want to ever see anything related to those sites. This makes black-listing imperative.


Issues with installing latest version of Ubuntu

I'm trying to install it on a HP Pavilion 524g that is running Windoes XP right now, however it's just stuck at this purplish screen and hasn't asked me to do anything.  Could it be a disc error or just taking it's time?


Website not shown as result on google search

I made a website that went online 3 months ago. Wen it went online i've added it to webmaster and added the url to google on . Every page  has a unique title and the following meta tags.   Keywords Description   I removed the robots.txt to be 100% sure there wasn't an error in there. I've checked my logs on the server and can't find any errors that points to downtime or other errors. From websmaster i've crawled the website successfully and there are no errors given. The website has a 'unique' name and there aren't many related titles. the only way I find the website on google is by googling the full url. Why isn't the website in the results and what can I do about it?   when searching in google with site:mydomain.com i can see it's indexed.  There are no crawl errors and i checked all the options on the answer from the question that is marked as duplicated.


I want to print "Hello - World" by using two char pointers but I have a "Segmentation fault (core dumped)" problem.   #include <stdlib.h> #include <string.h> #include <stdio.h> #define Hyphen " - " int main() {   char* x="Hello";   char* y="'World'";   strcat(x, Hyphen);   strcat(x, y);   printf("%s",x);   return 0; }


About a week ago, i bought a Desktop PC and decided to install Ubuntu 18.04 as it's starter OS (There were no files, no drivers, anything inside the HDD. It was clean), the installation (i made another un-answered thread about that here: ) was interrupted halfway through and tried again, this time leading to an un-ending 'Ubuntu' loading screen after it finished installing.  Tried installing Ubuntu 16.04 instead, had the same issue. Then Windows 10, had an eternal loading screen. And finally Windows 7, same thing as before.  I came to the conclusion the issue was the physical hard drive, but i'm not sure what exactly is the problem.


How can I programatically write a biblatex file, containing all and only the references in a given .tex file?

Sorry if this is a dupe. Searching for 'extract bibtex' or 'export bibtex' just gives me results about getting bibtex from other formats, like zotero.  I have a single, huge biblatex file, where I keep all of my bibliographic information. I keep all of my tex work (essays, papers, collated notes etc.) under version control and push most of it to a personal git forge. Part of the reason I like this is that my research and writing processes are transparent ('open source writing' I suppose?), and if they wanted to, anybody could download the sources and compile my paper in a bigger font, or just extract a single chapter, or whatever.  programatically generated edition of the TLP is a great example of this sort of thing. For this to work properly, all the data necessary to compile the file needs to be present in the repo. Obviously the text and formatting are there, but since I have a monolithic, locally stored bib file, the reference data for resolving citations is not. I could just copy/hardlink the file into the repo, but this would introduce a big file with lots of unneccessary data. In the case of hardlinking (preferable for this sort of thing) adding something new would make it look as if there were changes in the repo, even when the new entry wasn't relevant to (cited in) the paper that repo contained. So what I want is to be able to dump all the data of every citation in a given .tex file into a file. I can then just add a commented line and explanation in the preamble that this file contains all the data. Presumably this will be part of the compilation chain -- part of latexmk, or some bibtex processing in the preamble? Obviously, I'd also like to make sure that the resulting file is as similar as possible between runs, with new references being the only difference, so  it should probably be sorted somehow. I can't be the first person to think about this sort of thing, so I'm sure there must be a great solution out there somewhere. Thanks in advance.


How can I make a raster surface out of bathymetric points that are not equally spaced? The points are from a USGS hydrographic survey of a section of the Ohio River. I need to make a depth profile map for a school project. I have attached an example of the bathymetric points.


Why does bash set $? (exit status) to non-zero on Ctrl-C or Ctrl-Z?

From the bash manual, on the :     $? Expands to the exit status of the most recently executed   foreground pipeline.   I wonder why bash updates the $? variable on pressing Ctrl-C or Ctrl-Z:  $ echo $? 0 $ ^C $ echo $? 130 $ sleep 10 ^Z [1]+  Stopped                 sleep 10 $ echo $? 148


Do search engine robots crawl dynamic URLs that differ by only the value of a parameter in the query string?

I know there are a lot of similar questions and I searched around but I never completely found an answer, so here is my question:  Do search engine robots crawl my dynamically generated URLs? With this I mean html pages generated by php based upon GET variables in the url. The links would look like this:  www.mywebsite.com/view.php?name=something  www.mywebsite.com/view.php?name=somethingelse  www.mywebsite.com/view.php?name=something   I have tried crawling my website with a test crawler found here:  but it only visits my view page once, with just one variable in the header.  Most of the content on my website is generated by these GET variables from the database so I would really like the search engines to crawl those pages.


I have installed Ubuntu as dualboot with Windows 7. Now I'm no longer using Ubuntu so i removed the Ubuntu partition and added the unallocated space to my Windows 7 partition. But after I restart my computer it goes directly to the error:   error: unknown filesystem grub rescue >   I don't have the original Windows CD to fix the MBR. Is there a way to fix this error without using the Windows CD?


I want that when my users clicks on a link who is near to a text box, the content of the text box gets copied to the clipboard. How can I do this?


How to make a non-float subfigure environment?

I am writing a document class report that has a maximum page limit. I tend to stay away from float environments for tables and figures since I like to have them where I code them in (I try [h], and sometimes it works, sometimes it doesn't). For example, for figures I usually do this:  \begin{center}   \includegraphics[scale=0.6]{figure.png}   \captionof{figure}{caption}   \label{fig:figure} \end{center}   But I have to make a subfigure for some of my report's pictures. Here is the code for the subfigure:  \begin{figure}[h]   \centering   \begin{subfigure}{0.5\textwidth}     \centering     \includegraphics[width=\linewidth]{figure1.png}     \caption{caption}     \label{fig:figure1}   \end{subfigure}   \begin{subfigure}{0.5\textwidth}     \centering     \includegraphics[width=\linewidth]{figure2.png}     \caption{figure2 caption}     \label{fig:figure2}   \end{subfigure}   \caption{figures}   \label{fig:figures} \end{figure}   Is there a way to convert this into a non float environment or some package to ensure it will be always where I code it in?


How do you search for a "real" URL when it is obfuscated with markdown?  For example, if someone has this in a post: [bar](http://foo.com), searching for url: *foo* will return nothing.  I guess this could be handled more generally if there was a search option to search the raw text in a post without markdown formatting.  But I couldn't find anything like this.


Pass a generic type 'class' when only having a string

In C# I have a method  public string GetString<T>() where T : class   In the calling function I have only the name of the class which I want to pass to GetString()<T>. E.g. "MyClass". How can I convert "MyClass" to class? I tried it using Types but I couldn't find a conversion.  EDIT: The real example is from a database access class. The client asks for information for a specific hardware component. This component is specified by a string. Based on this string I want to access a table with a known name pattern. Not hard coding table names allows us to add/remove tables from the database without the need to change the C# code.  The function which returns the needed information exists already and needs a class as generic type.  E.g.  string tblName = "HW_" + hwComponentFromClient; string retValue = GetString<GetClassByString(tblName)>();   I need something like a method:  class GetClassByString(string);


Where can I find the installed documentation for a library that I have installed? For example: in synaptic package manager, I have installed opencv-doc. Where can I find this documentation.


I've read several threads about this, but none solves my problem. When I try to change font, it won't compile. Is there an other way to change font, that will still allow me to write stuff like: $\mu$ ?  Minimal working example:  \documentclass[10pt,twocolumn]{article}  \usepackage[swedish,english]{babel}  \usepackage[applemac]{inputenc} %Endast för mac. Om PC, ta bort. \usepackage{graphicx} \usepackage{amsmath} \usepackage{appendix} \setcounter{secnumdepth}{1} \usepackage[a4paper, top=1.5cm, bottom=1.5cm, left=1.5cm, right=1.5cm]{geometry} \usepackage{todonotes} \usepackage[super]{nth} \usepackage{sectsty} \usepackage{csquotes} %Engelsk version. \MakeOuterQuote{"} \sectionfont{\fontsize{14}{1}\selectfont} \subsectionfont{\noindent\fontsize{10}{1}\selectfont\normalfont\textit} \setlength{\parindent}{0.5cm} \setlength{\columnsep}{0.6cm} \usepackage[MnSymbol]{mathspec} \setallmainfonts{Times New Roman} \newcommand{\hs}{\,\hspace{0.8mm}} \usepackage{caption} \DeclareCaptionFormat{myformat}{\fontsize{9}{1}\selectfont#1#2#3} \captionsetup{format=myformat} \begin{document} This is a greek letter: $\pi$ \end{document}


I'd like to add a custom command to my doxygen documentation. Basically for each C function I'm writing doc for, I need to write which global variables are "touched" in read mode or write mode. It's like the "See also" list, just with a different caption.  In my file I'd like to write something like this:  /*  * \read-globals   #var1, #var2  *  * \write-globals  #var3  */   I tried with an alias like this:  read-globals = \par <b>Globals read</b>\n   It works but I fear that it's style sheet independent: If tomorrow I'll want to change css, then this custom command will generate output which looks different from seealso, author and all other sections.  Basically I just want to copy the format from other standard commands.  Another option is to use to the \xrefitem command, which works too, but it requires to introduce a section as second parameter which is totally useless in my case (maybe it can be hidden somehow?).  Is there a "right way" to achieve my goal?


Is there a way to partition USB flash drives, so that both/all partitions appear in Windows?

In Windows, 'removable' drives cannot be partitioned, without the partitions not appearing and receiving drive letters, apart from the first partition.  Partitioned flash drives work fine in Linux.  What I want to do is partition a 8GB flash drive into two, with the first partition containing various boot disc images, which can be selected to boot from, and have various portable apps, documentation, utilities, scripts, etc, on the other partition.  I currently do this using two separate flash drives, but I want to be able to use a single flash drive for everything, which I keep on my keyring.  It is not possible to do this without having at least two partitions, as the ISO boot selector for the boot disc images will not work otherwise.  I know there is a method where you can flip a bit, using Lexar's USB Format Tool, which fools Windows into thinking that the partitions are on a fixed hard drive.  However, this apparently makes it difficult to eject the flash drive.  Flash drives with  from SanDisk had two partitions, presenting itself to the host system as a USB hub with a CD drive and standard USB mass storage device attached.  This is what I would like to emulate, if possible.


Why was my answer deleted by a moderator on Stack Overflow?

I answered a question about URL Rewriting in asp.net. The question URL is    My answer to the question was pretty simple.     "Use the URL Rewriting dll available from  for removing extensions from the url."   I am no way affiliated with this open-source URL Rewriter. I have used it in many projects and found it really good for URL Rewriting.  I believe it was a valid answer and pointed the person in the right direction.  Is this how the moderators treat community members of Stack Overflow?


How to clean Windows\Installer folder in Windows 10?

My C:\Windows\Installer folder is huge: 14 GB. My understanding is that this is where failed updates go to die, and it should not be this big. What is the correct way to clean it on Windows 10?


Finding unused jars used in an eclipse project

Are there any plugins/tools available to go through the classpath of an eclipse project (or workspace) and highlight any unused jars?


I have searched a bit without finding a solution. I want to change the biblatex style (citation and bibliography), regarding the "number" field in periodics and others.  I would like to change this :     Zerrouk Yamina, « Gestion des sites et sols pollués et fiucie », JCP    9 (28 fév. 2014), p. 47.   Into this :     Zerrouk Yamina, « Gestion des sites et sols pollués et fiucie », JCP ,   n° 9 (28 fév. 2014), p. 47.   I already have bbx and cbx files, so I would like to add a potential change in those files. I didn't find anything in the documentation...  I use lualatex.  Thanks a lot for any help ! :)


Calculate $\lim_{x \to a} \frac{\log(x-a)}{\log(e^x-e^a)}$ without using L'Hopital

I can calculate this easily using L'Hopital Rule. Can anyone give me some pointers on how to do this without using L'Hopital?  $$\lim_{x \to a} \frac{\log(x-a)}{\log(e^x-e^a)}$$  I tried substitution by $n = x+a$ and then $\lim_{n \to 0}$ but that didn't work.


Is there an appropriate Stack Exchange site to ask for recommendations on good software technical interview problems?

I'm doing technical interviews for the first time, and need advice on good interview questions, or resources. Is  the correct site for this? Is there not one?


Is there a way to get the name of a class at class level in Python?  Minimum working example:  class TestClass:      print("We are now in the class {} at class level".format(WHAT SHOULD I PUT HERE?))  # Should return "We are now in the class TestClass at class level"     pass


Why would someone put drop bars on a bike upside down, with the brake levers pointing backwards?

A couple of time recently I've seen a bike being ridden near work with drop bars, but upside down and with the brake levers facing towards the rider.    By upside down, I mean as if the stem bolts were loosened and the bars rotated 180°, not set up like bullhorns. I'm inclined to assume that this is a misguided attempt to make the bike more comfortable, but it looked the right size for the rider, who was riding on the bar tops when I saw him this morning. It would seem like the brakes are almost impossible to reach quickly or to cover.  What benefit could this have for the rider?


Click event not works with buttons, generated by JS

When I select "Keyboard layout" it generate buttons using js - but click event not works with dynamic generated buttons. I think, it is because when document ready, element ".prices-tier" not exist. It generates, only when i select layout.    Part of my code:      require(['jquery'], function(){     jQuery(document).ready(function(){         const currencySymbol = jQuery('.price').text()[0];         var standartPrice = Number(jQuery('.price-wrapper').attr('data-price-amount'));            jQuery('.prices-tier').on('click','.btn', function () {             var quantity = Number(jQuery(this).attr("data-qty"));             var price = jQuery(this).attr("data-amount");             jQuery('.qty-default').val(quantity);             jQuery('#product-price-'+"<?php echo $_product->getId();?>"+' .price').html(currencySymbol+price);             // jQuery('.product-info-main>div>.price-box>.price-container>.price-wrapper>.price').html(currencySymbol+price);             jQuery('.qty-default').trigger('input');         }         );   Generated html elements:  <div class="prices-tier items w-75 btn-group">          <button type="button" class="btn btn-light border border-bottom-0 border-top-0 bg-primary" data-qty="25" data-amount="27.21" onclick="">          4%</button>          <button type="button" class="btn btn-light border border-bottom-0 border-top-0 bg-primary" data-qty="50" data-amount="26.5" onclick="">          6%</button> </div>


Hi I seem to have toggled wireframe and I can't get out of it or is this wireframe at all? I hit Z and nothing changes


After install Google Chrome in EC2 won't open from Ubuntu Server 14.04 LTS (HVM) command line

I have installed Google Chrome with following command line:  $ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - $ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' $ sudo apt-get update $ sudo apt-get install google-chrome-stable   When try to open Google Chrome from command line ($ google-chrome), I am getting following error:  [5426:5426:0808/041800:ERROR:browser_main_loop.cc(209)] Gtk: cannot open display:     How can I fix this issue to open the Google browser?


Should I contact the journal after "with editor" for two months?

I submitted a paper to an Elsevier journal two months ago. I checked the status today and it was "with editor". I understand the reviewing process may take a while, but apparently it is not under review yet. I did a bit research and found that most papers in the journal are accepted less than 6 months. I am wondering if it is appropriate for me to send inquiry message to the editor in this case? Or a more general question is how long should I wait till sending them inquiry/reminder messages. Thanks.


Why do C/C++ -Coding standard says that we should not have multiple return in function?

In my organisation, we follow MISRA coding guidelines. This coding guideline says that we should not have the multiple returns in a function.Do you have any idea on it? Why is it so?


How much influence do individual professor have on grad admissions?

Say I have emailed a professor a few times, and told him I would like to work with him for my PhD etc. and that professor is interested:  How much of a factor could this possibly be in my application?  What about the (not so exact) opposite: somebody in the department doesn't like me, I apply there to work with somebody else etc.?


Why do messaging apps color the user's messages brighter than the people they message?

You would think that the messages you receive are the primary focus of a messaging app, since you spend most of your time reading them. However, many big messaging clients like iMessage and Facebook Messenger highlight your own messages in bright colors, and color the other messages more neutrally. Because of this, the user's eyes are automatically drawn to their own messages.  Is there a reason for this? I know iMessage uses the colors to indicate whether a message was sent using SMS or data, however it doesn't seem to make much sense in other scenarios. What am I missing?


Finding the matrix of a specific scalar product

Let $V$ be the vector space over $\mathbb{R}$ whose basis is $(\sin(t),\cos(t))$. Let the scalar product be defined by $$\langle f,g \rangle =\int_{-\pi}^{\pi} f(t)g(t)\,\mathrm dt$$ What is the matrix of this scalar product with respect to the given basis?   $$\langle f,g \rangle = \int_\limits{-\pi}^{\pi} f(t)g(t)\,\mathrm dt = \int_\limits{-\pi}^{\pi}(\sin (t)+\cos(t))(\sin (t)+\cos(t))\,\mathrm dt = 2\pi$$  From a previous exercise with polynomials, I acquired this method. However I do not get a matrix but a number. Am I doing anything wrong? I do not know why people consider it a duplicate, if I am not getting the same result using the same method.   Thanks in advance.


Permissions for Wordpress on Ubuntu 18.04

On my web server - runnnig LAMP - I have a Wordpress installation, where I'd like to set the ownerships/permissions like this:  my-username is the owner of all files while the owner group is www-data (chown -R my-username:www-data). I've set chmod -R 775 on whole installation folder, so users in owner group should be able to write the files/folders. For some reason Wordpress can't write them, the only configuration when it works is when www-data is owner user (chown -R www-data:www-data).  The problem with that, is that I use Gulp to compile my assets, and Gulp can only run if the owner of the files it needs to write, is the user who runs Gulp from the command-line (my-username in this case). I've also tried setting chown -R www-data:www-data and include my-username in www-data group, so that my-username running Gulp would have write permissions (I can write files in the terminal), but Gulp would not work.  How should I set this up, so that both Wordpress(www-data) and Gulp(my-username) could have working write-permissions? Why is having group-permissions not enough?


which pronoun should I use for a singular third person in a scientific writing?

I want to write a research paper and I want to know how can I refer to a person using pronouns? For example I want to say:  If the player moves downwards, ... will be at the second square.  What should I use instead of ...? he/she or they or something else?


java.lang.NullPointerException with a game

i have been trying to a cards game with java but some how it keeps falling. this game an odd number of players and each of them has a queue of cards the first player that is card queue is empty wins. every time i compile it keep giving me java.lang.NullPointerException error. thank you for helping.  package cardgame; import unit4.collectionsLib.Queue;//importing the queue  public class Main {  public static boolean checkIsEmpty(Queue<Player> p){     boolean is=false;     p.insert(null);     while(p.head()!=null){         if(p.head().getC().isEmpty()){             is=false;             p.insert(p.remove());         }     }     p.remove();     return is; } public static int whoWin(Queue<Player> p){  p.insert(null);  while(p.head()!=null){      if(p.head().getC().isEmpty()){          return p.head().getIndex();      }  }  return 0; }  public static void main(String[] args) {   Queue<Player> players = new Queue(); //queue of players    for(int i=0;i<5;i++){   players.insert(new Player());   }    boolean isOver=false;    while(!isOver)       //the game is over when one player finished his cards   {       Player p = players.remove();       if(p.getC().head().greater(players.head().getC().head())==1){           p.getC().remove();           players.insert(p);           players.insert(players.remove());        }       else if(p.getC().head().greater(players.head().getC().head())==2){         players.head().getC().remove();         players.insert(p);         players.insert(players.remove());         }       else{         players.head().getC().remove();         p.getC().remove();         players.insert(p);         players.insert(players.remove());        }       if(checkIsEmpty(players)){         isOver=true;           System.out.println("the winner in this game is player number :"+whoWin(players));       }      }    }    }         package cardgame; import unit4.collectionsLib.Queue;   public class Player {  static int autonum=1; private Queue<Card> c; private int index;  public Player() { for(int i=0;i<7;i++){ c.insert(new Card());} this.index=autonum; autonum++;  }  /**  * @return the c  */ public Queue<Card> getC() {     return c; }  /**  * @param c the c to set  */ public void setC(Queue<Card> c) {     this.c = c; }  public int getIndex(){     return this.index; }  }     package cardgame; import java.util.Random;  public class Card { private int num ;  private int shape;  public Card() { Random r = new Random(); this.num = r.nextInt(9)+1; this.shape = r.nextInt(4)+1; }  public int greater(Card c){  if(c.getNum()<this.num)      return 1;  else {      if(c.getNum()>this.num){          return 2;       }      else{          if(c.getShape()>c.shape){              return 2;          }          else{              if(c.getShape()<c.shape){                  return 1;              }              else{                  return 0;              }                 }         }         }  }  /**  * @return the num  */ public int getNum() {     return num; }  /**  * @param num the num to set  */ public void setNum(int num) {     this.num = num; }  /**  * @return the shape  */ public int getShape() {     return shape; }  /**  * @param shape the shape to set  */ public void setShape(int shape) {     this.shape = shape; }  }


Can a zero-HP, unconscious and stable character be woken up prematurely?

Whenever you drop to 0 hp you become unconscious (and are dying). If you manage to stabilize you will wake up in 1d4 hrs with 1 hp.  We had a situation where an unconscious character was stablized, but the party had no healing magic left. The unconscious character rolled a 4 on the d4. Since the other party members were reluctant to wait for 4 hrs for him to regain consciousness, the question came up if this can be sped up. They took a short rest and wanted to know whether the unconscious character would be able to use his HD to regain hp.  As the DM I ruled that it was not possible to wake him up without healing magic, because with 0 hp you remain unconscious until your hp rises to at least 1. This only happens after 4 hrs naturally. If I had ruled that a successful medic check would have woken up the character then I'd effectively ruled that using the medic skill would restore hp. And that is not the case as far as the rules are concerned (RAW).  Also, spending HD during a short rest would require the injured character to be conscious so that wouldn't be an option, either.  Did I miss something? Are my characters actually able to wake their injured comrade prematurely, or are they unable as I suspected?


Automate Moving Items into Folders in a List

When I have large lists or new ones that could become large lists I would like to create an automated way to move items into folders to help with performance on the root level of the list.  For a custom list that has folders enabled I am aware that as an administrator I can use the content and structure part of SharePoint to move items into folders manually. I think it would be great to automate this in some way using workflows.  I was planning on moving items into folders by Year / Month biased on the created date of the items. Other things I could add to my lists would be a status to indicate when the archive move would be appropriate for the items to move into the folders such as a "completed" status of some sort.  My archive folder tree would be as follows   Archive 2016   January-16 February-16 March-16    etc...  Looking forward to your ideas around automatic folder archiving, This would be done on a SharePoint 2013 on prem site where 2010/2013 workflows could be used.


What's the difference between `chmod a+x` and `chmod +x`?

Found an article saying to use chmod a+x to add execute permission to a file. What is the difference between it and chmod +x? (And is there an easy way to search about these differences in man pages? "a" is too small to meaningfully search the man pages, and reading them throughoutly would take too long).


How can I update the version ubuntu if ph.archive.ubuntu is not working? When I tried to enter this in terminal sudo apt-get update then I received this error  Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease               Hit:3 http://dl.google.com/linux/chrome/deb stable Release                      Hit:5 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial InRelease  Hit:7 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease Hit:4 http://screenshots.getdeb.net xenial-getdeb InRelease                     Hit:8 http://ppa.launchpad.net/wiznote-team/ppa/ubuntu xenial InRelease         Err:9 http://ph.archive.ubuntu.com/ubuntu xenial InRelease                        Could not connect to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80] Err:10 http://ph.archive.ubuntu.com/ubuntu xenial-updates InRelease   Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80] Err:11 http://ph.archive.ubuntu.com/ubuntu xenial-backports InRelease   Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80] Reading package lists... Done W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Could not connect to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80] W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80] W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease  Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80] W: Some index files failed to download. They have been ignored, or old ones used instead.


Create shortcut to dial VPN connection in Windows 8

It was easy to create a shortcut that automatically dials a VPN connection in Windows 7 (e.g., see  ). But if I create that shortcut in Windows 8, double-clicking it opens the Networks panel (and doesn't establish the connection).  How do I create a shortcut in Windows 8 that dials a VPN connection?


Do you die "from" or die "of" cancer? Which preposition do you use?


Why does my home's power fade and surge when I plug things in?

I live in Texas.  I ran 300 ft of aluminum electric direct-bury 4-4-2 from the pole on street to my new home. The pole is metered and yes, I had my utility's blessing to do so.  Everything worked perfectly for 6 months, but now suddenly if I plug anything (lamp, heater, charger ) in my lights dim, or sometimes if I plug in elsewhere things get very bright or plug in heaters work better or worse depending.   There’s no rhyme or reason to any of it.    I have undone and redone every receptacle to be sure.  I installed 50 amp breakers in every slot of box on house to try to solve this problem to no avail. (I have never once tripped a breaker ever) I haven’t been able to put up sheetrock because I don’t want to have to remove it.


When somebody touches you in some sensitive areas of your body, like armpits, "it will make you laugh in some kind of way".  When you want to tell somebody that you are not going to touch them in that way, you can't say "I won't make you laugh again".  What is the proper expression to use instead ?


Are categories just multi-digraphs with extra restrictions?

From my (limited) understanding, a category is just a class of objects (which form the "vertices") and a class of morphisms between those objects, plus the requirement that associativity and identity hold.  Whenever I see them drawn, all I see are multi-digraphs.  This being the case, it seems that "category theory" boils down to graph theory.  I'm assuming this isn't actually true.  What can be expressed by category theory that can't be expressed just by interpreting a multi-digraph in a particular way?


I'm at the end of my mind. Why is it not possible to mix the top-alignment in a table?  \documentclass[a4paper, 12pt, bibliography=totocnumbered]{scrartcl} \usepackage{amsfonts}  \begin{document} \begin{table}[h]% \begin{tabular}{c|c|p{0.3\textwidth}|c} ID & Klasse & Beschreibung & Status \\ center & center & top Die Scriping-Umgebung kann zur Laufzeit String-Variablen in Maschinencode übersetzen und ausführen & \Huge\checkmark \\ \end{tabular}% \end{table}% \end{document}   Simply the table columns should be center | center | top | center. But I'm not able the get it.


I'm looking for certain themes for a project of mine and I would like to use sayings like "see no evil, hear no evil, speak no evil". However, I'm having trouble finding more good examples.  What I'm mainly looking for are short sayings that have popular imagery attached to them, such as the above saying and the three wise monkeys. So the saying should be short and sweet and have an image associated with it.  Is there a specific name for these kinds of sayings?


Is there a good Valgrind substitute for Windows?

I was looking into Valgrind to help improve my C coding/debugging when I discovered it is only for Linux - I have no other need or interest in moving my OS to Linux so I was wondering if there is a equally good program for Windows.


I am quite new to UXD and UXSE; I have checked previous answers but could not find what I am looking for, so here we go. I am designing a mobile-application and I was wondering if there is any standard about the size of selection buttons. In particular, is there a minimum size? Thanks


I was doing some debugging on my device, and when I pulled out my lead, my whole phones layout has now been reversed.  So for example usually the clock, wifi battery symbol etc, on the top right, but now it is on the top left. The screens on my home screen have also been reversed, e.g.  At present I have   screen with some apps weather widget Main screen screen full of apps   But now it is the other way round. That is 4 and 1 have been reversed.  Also notice the buttons at the bottom have also been reversed, the back button is on the right side now instead of the left  When I drag down from top of the screen, to see notifications, the icons are on the wrong side.     Click image for larger version  I have seen this type of bug before and have no idea what has caused it. Anyone know a solution? I really don't want to have to do a factory reset. And Yes I have tried turning it off and on.  Any suggestions would be helpful!!


Sometimes I have two (or more) figure environments which I want to layout on one page, and put a horizontal rule in the center. To acomplish this, I put a \vfill\hrule\vfill between the two environments. However, this only works if I create a minipage spanning the whole text-region of a page.  However, if I do this I get either a hbox or a vbox overflow, depending on the document class. For article it's a hbox overflow of 15pt, for phdthesis (a cls I grabbed of the web) it's a vbox overflow also of 15pt.  This is a minimal working example:  \documentclass{article} \newlength{\minipagewidth} \newlength{\minipageheight}  \begin{document}% %results in:  Badbox, line 9: Overfull \hbox (15.0pt too wide) in paragraph at lines 9-26 \setlength{\minipagewidth}{\textwidth}% \setlength{\minipageheight}{\textheight}% \begin{minipage}[t][\minipageheight]{\minipagewidth}% Top of the page  \vfill\hrule\vfill  Bottom of the page \end{minipage} % no vbox or hbox overflow: \addtolength{\minipagewidth}{-15pt}% %\addtolength{\minipageheight}{-15pt}% \begin{minipage}[t][\minipageheight]{\minipagewidth}% Top of the page  \vfill\hrule\vfill  Bottom of the page \end{minipage}% \end{document}   The second minipage results in no such warning, but I had to subtract 15pt from the width. Where does this 15pt come from? why is \textwidth wider than the textual area's width?


How to determine variables that make certain cluster different from others?

Say clustering was performed. My concern is to understand what characterizes certain cluster. Which variables differ most for a certain cluster? Are there any methods for performing such kind of analysis?  For example, say I have 50 variables and 10 clusters. The desired result would sound like: for a cluster 1 variables 5, 16, 23, 42 and 49 contribute to the biggest difference from other clusters.


What's the most preferred spelling of auto fill, auto-fill, and autofill?

When you are trying to say that something is automatically filled in, you use the word autofill, or if you were using past tense, autofilled.    I see 3 main ways that people use it:   auto fill / auto filled  auto-fill / auto-filled autofill / autofilled   Note: this also applies to pre fill, pre-fill, and prefill as well.  Which way is the most preferred spelling?


I realize that one uses set.seed() in R for pseudo-random number generation. I also realize that using the same number, like set.seed(123) insures you can reproduce results.   But what I don't get is what do the values themselves mean. I am playing with several functions, and some use set.seed(1) or set.seed(300) or set.seed(12345). What does that number mean (if anything)- and when should I use a different one.   Example, in a book I am working through- they use set.seed(12345) when creating a training set for decision trees. Then in another chapter, they are using set.seed(300) for creating a Random Forest.  Just don't get the number.


Non-existence of non-trivial clopen set in $\mathbb R$ without using connectedness

Show that the set of real numbers has no nontrivial clopen set without using connectedness of $\mathbb R$.    I tried to show this by showing that an open set in $\mathbb{R}$ is strictly contained in its closure.   My attempt:      Let $U$ is open in $\mathbb{R}$. Then $U$ can be written as union of disjoint open intervals. $U =  \bigcup_{n=1}^{\infty}A_n$ , where $A_n = (a_n, b_n)$. Now Closure of $U, Cl(U) = Cl( \bigcup_{n=1}^{\infty}A_n) =  \bigcup_{n=1}^{\infty}Cl(A_n)$ [ not true in general ] = $ \bigcup_{n=1}^{\infty}[a_n, b_n] \supsetneq U$. So the problem thus reduces to the problem, whether $Cl(\bigcup_{n=1}^{\infty}A_n) =  \bigcup_{n=1}^{\infty}Cl(A_n)$ holds for countably infinite intervals in $\mathbb{R}$. This surely holds for finitely many sets, but doesn't hold for countably infinitely many sets in general. Is this true? or there's another proof of this?


I have a Dell XPS M1210 with a Nvidia 7400GO and 3GB of RAM. I would like to run Ubuntu again but I have found it to be sluggish and slow with Unity, Even the Gnome Fallback seems sluggish. I don't know if it is simple as a drive problem or if it is 13.04. I remember that everything seemed fine with 12.04.  Should I go back to the LTS of Ubuntu or should I stick it out? Can anyone recommend a less resource intensive desktop environment?


I have to find an infinite set for $a,b,c,d$ such that $a^2+b^2+c^2=d^2$ and $a,b,c,d\in\mathbb N$  I have found one possible set which is $x,2x,2x,3x$ and $x\in\mathbb N$  But I want another infinite sets and how to reach them because I have found my solution by hit and trial .


I using the Win32 API and C/C++. I have a HFONT and want to use it to create a new HFONT. The new font should use the exact same font metrics except that it should be bold. Something like:  HFONT CreateBoldFont(HFONT hFont) {     LOGFONT lf;     GetLogicalFont(hFont, &lf);     lf.lfWeight = FW_BOLD;     return CreateFontIndirect(&lf); }   The "GetLogicalFont" is the missing API (as far as I can tell anyway). Is there some other way to do it? Preferrably something that works on Windows Mobile 5+.


Unable to install Inkscape on ubuntu 14.04

Hi I am new to Linux Ubuntu 14.04. I wanted to install Inkscape but it has shown following error(Dependencies as it says):  inkscape: Depends: python:any (>= 2.7.1-0ubuntu2) but it is a virtual package           Depends: libaspell15 (>= 0.60.7~20110707) but 0.60.7~20110707-1ubuntu1 is to be installed           Depends: libatkmm-1.6-1 (>= 2.22.1) but 2.22.7-2ubuntu1 is to be installed           Depends: libc6 (>= 2.7) but 2.19-0ubuntu6.1 is to be installed           Depends: libcairo2 (>= 1.10.0) but 1.13.0~20140204-0ubuntu1 is to be installed           Depends: libcairomm-1.0-1 (>= 1.6.4) but 1.10.0-1ubuntu3 is to be installed           Depends: libfontconfig1 (>= 2.9.0) but 2.11.0-0ubuntu4.1 is to be installed           Depends: libfreetype6 (>= 2.2.1) but 2.5.2-1ubuntu2.2 is to be installed           Depends: libgc1c2 (>= 1:7.2d) but 1:7.2d-5ubuntu2 is to be installed           Depends: libgcc1 (>= 1:4.1.1) but 1:4.9-20140406-0ubuntu1 is to be installed           Depends: libgdk-pixbuf2.0-0 (>= 2.22.0) but 2.30.7-0ubuntu1 is to be installed           Depends: libglib2.0-0 (>= 2.35.9) but 2.40.0-2 is to be installed           Depends: libglibmm-2.4-1c2a (>= 2.36.2) but 2.39.93-0ubuntu1 is to be installed           Depends: libgnomevfs2-0 (>= 1:2.17.90) but it is not going to be installed           Depends: libgomp1 (>= 4.2.1) but 4.8.2-19ubuntu1 is to be installed           Depends: libgsl0ldbl (>= 1.9) but it is not going to be installed           Depends: libgtk2.0-0 (>= 2.24.0) but 2.24.23-0ubuntu1.1 is to be installed           Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but 1:2.24.4-1ubuntu1 is to be installed           Depends: libgtkspell0 (>= 2.0.10) but it is not going to be installed           Depends: liblcms2-2 (>= 2.2+git20110628) but 2.5-0ubuntu4 is to be installed           Depends: libmagick++5 (>= 8:6.7.7.10) but it is not going to be installed           Depends: libpango-1.0-0 (>= 1.14.0) but 1.36.3-1ubuntu1 is to be installed           Depends: libpangocairo-1.0-0 (>= 1.14.0) but 1.36.3-1ubuntu1 is to be installed           Depends: libpangoft2-1.0-0 (>= 1.14.0) but 1.36.3-1ubuntu1 is to be installed           Depends: libpangomm-1.4-1 (>= 2.27.1) but 2.34.0-1ubuntu1 is to be installed           Depends: libpng12-0 (>= 1.2.13-4) but 1.2.50-1ubuntu2 is to be installed           Depends: libpopt0 (>= 1.14) but 1.16-8ubuntu1 is to be installed           Depends: libsigc++-2.0-0c2a (>= 2.0.2) but 2.2.10-0.2ubuntu2 is to be installed           Depends: libstdc++6 (>= 4.6) but 4.8.2-19ubuntu1 is to be installed           Depends: libxml2 (>= 2.7.4) but 2.9.1+dfsg1-3ubuntu4.3 is to be installed           Depends: libxslt1.1 (>= 1.1.25) but 1.1.28-2build1 is to be installed           Depends: zlib1g (>= 1:1.1.4) but 1:1.2.8.dfsg-1ubuntu1 is to be installed   What am I missing?


Why is the range of $\sqrt{9-x^2}$ actually $[0,3]$ instead of $[-3,3]$?

Why is the range of $y=\sqrt{9-x^2}$ $[0,3]$ instead of $[-3,3]$? Solving it algebraically, it is my understanding that the answer would be the second one. But that is apparently not the right answer. Could someone explain to me why this is? Thanks.  O shoot I'm sorry. thought the domain of the function was [0,3].


When I pressed the undo button in object mode it somehow brought me waaaay back in my steps and I wanted to know if there was a shortcut to undo the undo? Or a step forward shortcut?


Sort array of File[] based on file.lastModified

I have a array of files.  File[] toSort = videoFiles.listFiles();   I need to sort them based on lastModified. How do I achieve it in Android.


Limiting number of decimal digits in ArcGIS to have exported file in CAD with same format?

I am supposed to have some numeric values in ARCGIS 10.2 with 3 decimals Digits and then convert them to Microstation or AutoCAD. I did this Setting using field calculator and 'round' function in arcgis but when I convert it to CAD again it would come with more than 10 decimals which is not desired.


In the article "A Method for Obtaining Digital Signatures and Public-Key Cryptosystems", the original RSA article, it is mentioned that Miller has shown that n (the modulus) can be factored using any multiple of φ(n).   Imagine I know the public and the private key. But what I really want is the factors of n, the p and q but I connot use any factorization algorithm in a large number of n.   In the Miller's article it is suppose to say how I can find the two factores, knowing the public and private key. But I cannot understand how exactly it is done. Does someone know? Or have a small example?   Appreciated


I have this code, and Underfull \hbox (badness 1783) in paragraph at lines 42--44 error. Can anyone help me fixing this error?  \begin{IEEEkeywords} Decomposition Algorithm, Net Nodal Electricity Demands, Robust Optimization, Transmission Switching, Uncertainty Handling. \end{IEEEkeywords}


I'm using a multinomial logistic regression analysis to examine deer behavioural responses to camera traps in terms of 7 predictors (both singly and their interactions).   I have found that the model with the lowest AIC value is season and vegetation (AIC = 1005.023). However, the AIC value for season as predictor variable on its own is 1005.103. From what I have read I gather that this means that these 2 models are nominally equivalent in indicating the processes influencing reactions as the AIC value difference is less than 2 or 3. I'm wondering if it is okay to report both AIC models and say that the model season and vegetation indicates that these variables when combined have a strong influence on the underlying processes which influence behavioural responses to camera traps even though the AIC values are nearly the same? The AIC value for vegetation as an isolated predictor variable is 1008. 289.  Also, when I run various models based on my hypothses, the best models seem to centre around the 1008 AIC value mark. As the difference in AIC value between the model season and vegetation and these models is approximately 3, does this means that the models with an AIC value of ~1008 are equally as good at indicating the underlying processes influencing behavioural responses as the model season and vegetation?  Thanks a mil!


coloring the page numbers in the table of contents

I try to color the page numbers of my table of contents.  I'm using the package hyperref along with the options :  \hypersetup{   colorlinks,   linkcolor=wine-stain % custom color }      Here's the output :       The numbers remain black..  What should I do so the numbers become the same color as defined for the sections ?  I tried to \color{wine-stain}{\tableofcontents} but still that doesn't work since "Contents" is also colorized and the subsection numbers are remaining black.


Turn Custom Post Title into external link

I created a Custom Post Type called News, which supports Title, Editor, Thumbnail and Custom Fields. One of the Custom Fields is URL. What I need now is to turn the Title in a external link in the loop, using the URL provided in the URL Custom Field. Any ideas?


I created this question, but, I do not know the answer:     Is there a function $f: \mathbb R \to \mathbb R$ such that for every interval $I \subseteq \mathbb R$ we have $f(I)=\mathbb R$?   It seems to me that existence of such a function would violate almost everything that I know about analysis, but, on the other hand, it would be awesome if there is at least one such $f$, because it is known that there are many "pathological" examples in analysis. Also, many here are skilled in analysis more than I am, so I can expect an answer, curious about what it will turn to be.


Prove that the difference between Harmonic numbers not natural number

The harmonic number $H_n$ is defined as $$H_n = \frac11 + \frac12 + \cdots + \frac1n$$ I need to show that $H_n - H_k$ can't be a Natural number, when $n>k$. I understand that the sum is greater than $\ln\big(\frac{n}{k}\big)$ but I don't know how it helps.


What kinds of effects are present in digital images that are referred to as "noise"?    What are the different sources of noise?  What causes each type of noise? What are the characteristics of the different types of noise? How do the different types of noise visually manifest in the image? (i.e., do different kinds of noise "look different" is the resulting image, and how would they differ to the eye?) How can you minimize each type? What different post-processing techniques are most appropriate for each different kind?


how to solve the inequality $\lvert w \sigma^{'}{(wa+b)}\rvert \gt 1$?

when i read the book of neural networks and deep learning at  chapter 5 (the URL is, )i have encounter a problem to try to resolve the problem .  when we training the deep  neural network ,the vanishing gradient problem is often encountered. so we need to  adjust the w(weight) parameter to fit the problem,but what's the scope of w.intuitive ,the larger w is ,the problem fit better. but the w is related with the  $\sigma'(z) = \sigma'(wa +b)$,when w is larger,the value of  $\sigma'(z) = \sigma'(wa +b)$ is smaller(  the activity function is sigmod $\sigma(x)=\frac{1}{1+e^{-x}}$ and $\sigma'(x) =\sigma(x)(1-\sigma(x))$  ),and the product $|w   \sigma'(wa+b)|$ is changing to bigger or smaller, we do not know so we need to calculate the scope of w,so that make sure with a larger w , the product also become larger ,only with that we can solve the vanishing gradient problem .  the question's content is  Consider the product$ |w \sigma'(wa+b)|$. Suppose $|wσ′(wa+b)|≥1$. (1) Argue that this can only ever occur if $|w|≥4$. (2) Supposing that $|w|≥4$, consider the set of input activations a for which $|wσ′(wa+b)|≥1$. Show that the set of a satisfying that constraint can range over an interval no greater in width than \begin{eqnarray}     \frac{2}{|w|} \ln\left( \frac{|w|(1+\sqrt{1-4/|w|})}{2}-1\right).   \tag{123}\end{eqnarray} (3) Show numerically that the above expression bounding the width of the range is greatest at $|w|≈6.9$, where it takes a value $≈0.45$. And so even given that everything lines up just perfectly, we still have a fairly narrow range of input activations which can avoid the vanishing gradient problem.  Although it has related the deep learning ,but I know this is only a mathematical problems, the only need to do is solving equations and the inequation . due to my level of math, i can't  solve this problem ,can somebody help me to solve the problem . thanks very much.  and i have another problem can the inequation and the equation in this problem solved by MATLAB?


Prove that $n$ is even   $$\left(\dfrac {\cos A + \cos B}{\sin A-\sin B}\right)^n + \left(\dfrac {\sin A+\sin B}{\cos A- \cos B}\right)^n = 2\cot^n \left(\dfrac {A-B}{2}\right)$$  Please help. I didn't get any idea regarding this.


Calculate Confidence Intervals for Lognormal Distribution

Surprisingly, I can't find a discussion on calculating confidence intervals for the mean $EY=e^{\mu+\sigma^2/2}$ of the lognormal distribution. My question goes beyond what is covered in the link below, and is specific to the package EnvStats.    Say I have some lognormal data:  mydat <- data.frame(value = rlnorm(1000, meanlog = 6, sdlog = .5))   That looks like:   I use EnvStats::elnormAlt to estimate parameters for the lognormal distribution mydat.   elnormAlt(mydat$value, method = "mvue", ci = FALSE, ci.type = "two-sided",    ci.method = "land", conf.level = 0.95)   And obtain:  Results of Distribution Parameter Estimation --------------------------------------------  Assumed Distribution:            Lognormal  Estimated Parameter(s):          mean = 454.7097844                                  cv   =   0.5359667  Estimation Method:               mvue  Data:                            mydat$value  Sample Size:                     1000   When I change the argument ci = TRUE, I get the error:  Error in integrate(density.fcn.qlands.t, -pi/2, theta, nu = nu, zeta = zeta) :    non-finite function value   My questions are twofold:    Can someone succinctly explain the mathematical meaning of cv? What is the meaning of the error message I'm getting, and how can I calculate confidence intervals using the Land (Cox) method?


Why am I offered an upgrade from 14.04 to 15.10, instead of 16.04.1

I have been waiting for 16.04.1.  On 22/07/16, I received the email from Adam Conrad, informing that the upgrade was now available.  I opened Software Updater, but it only offered me an upgrade to 15.10.  Why is this?  Garry  The upgrade was offered to me late on Friday 29/07/16 (Australian EST).  Thanks for the comments...


It is known that sample proportions are normally distributed according to central limit theorem. A common rule of thumb for central limit theorem to work is the sample size should be greater than 30. However, for sample proportions to be normally distributed there are additional conditions which are $np>5$ and $n(1-p)>5$.   Why there are two additional rule of thumbs for CLT to work for sample proportions? Why the rule of thumb $n>30$ is not enough for CLT to work for sample proportions?


Shared folder in VirtualBox (Ubuntu and Windows 7)

I want to have a directory which is accessible on both Windows 7 installed on Ubuntu host, and the Ubuntu as well.  So I have installed the Virtualbox additions on both Windows and Ubuntu.  Then in Ubuntu:  sudo mkdir /media/win7share sudo mount -t vboxsf win7share /media/win7share   I get:  /sbin/mount.vboxsf: mounting failed with the error: No such device    What do I need to type in Shared folders in Virtualbox Manager settings? What do I need to set up on Windows?


I've got a sphere with a texture and a material and I'm using blender render. This is how it looks in material view.  []  And this is how the rendered image looks.  []  What am I doing wrong?  Heres my .blend file :   Note : Im posting the blend file because I've got an integrated graphics card and I've heard blender has got some issues with these. So maybe it works for you, and its just my computer.


Here are the two sentences where I have a doubt.   I had headache. or I had a headache.


Why does adding 0.01 in a while loop print weird numbers?


Guards not equipping the items I give them

So I have this weird problem - guards in my settlement don't equip the items I give them. I've given my guards some armor and laser rifles but whenever I go back to the settlement they still walk around in t-shirts, wielding a pistol. I've read that you can equip your guards but it doesn't seem to be working. Do I need to do something more than just give them the items or am I encountering a weird bug? Companions do equip everything I give them that's better than what they have, but settlement guards don't.


I want to receive a mail when a query is running for more than x seconds. I know I can set up a job running on the database but, is there any way to do the same using SQL Alerts? What kind of alert should I use?    Thanks.


Is $2^{\alpha} < 2^{\beta}$, where $\alpha$ and $\beta$ are cardinal numbers, such that $\alpha < \beta$?

Let $\alpha$ and $\beta$ be cardinal numbers such that $\alpha < \beta$. Isn't it always true that $2^{\alpha} < 2^{\beta}$ ? Because if I am not wrong, $2^{\alpha}$ denotes the immediate successor of $\alpha$ by GCH.  Can anyone please suggest me some good book which can clarify my concepts on cardinals, ordinals and cofinality. Thank you in advance.


how to redirect old html url to new php Url

How to  redirect old html page to new php page.  I used this code but it redirecting with full file path.  I'm using below code.   RewriteEngine On RewriteRule ^(.*).html$ $1.php


Given a fixed volume. Can we find the minimum surface area of any shape?

For a given fixed volume, can we find the minimum surface area of any shape? We kind of know the minimum surface area is a sphere(restrict our problem in 3 dim space). (correct me if the sphere is NOT a minimum surface area) How do we prove that the sphere is the minimum surface for a given volume?


In line with this question,  review queues should be added to the iOS app. Currently, they can only be accessed from a mobile web browser, where the editing and flagging interface can be hard to interact with.  So why not add Review Queues to the iOS app. If not then at least make the web browser on mobile devices more optimised.


What are the visa rules for UK conference speakers, at US conferences, who may be getting paid?

I'm a British Citizen. I've spoken at business conferences in the past in the US, but haven't been paid for speaking. This is acceptable under the Visa Waiver Program.  Let's say that one day I am offered the opportunity to be paid a fee for speaking, over and above the incidental costs of travel/hotel.  A B-1 business visa doesn't cover it, it appears. So what is actually required?  On reading up about this, it's fine to be paid US$8,000 for speaking  from a VWP country; I'm a bit confused by the outcome of this story.


When watching  by the Atari founder, he says (at 09:19):     If you're a true existentialist [...] you want to have an interesting life.   Thus, if someone says he or she is an existentialist, in the way he did, what might this mean in essence? I looked at the ; yet I'm still unsure as to what it means in a nutshell if stated in a colloquial way.


What happens when an embedded program finishes?

What happens in an embedded processor when execution reaches that final return statement Does everything just freeze as it is; power consumption etc, with one long eternal NOP in the sky? or are NOPs continuously executed, or will a processor shut down altogether?  Part of the reason I ask is I am wondering if a processor needs to power down before it finishes execution and if it does how does it ever finish execution if it has powered down before hand?


Display image from "Files"/ContentVersion in VisualForce

I'm working on a project where I'll be using VisualForce to render custom PDF service reports. So my page will take in the ID of a Service object (from Field Service Lightning) and populate all the data from there and its related records. One requirement is that we be able to take attached signature images and include them in the report.  I see there are many ways to attach files including "Notes & Attachments" and "Files". We'd prefer to use Files as it's a newer feature set. However I have only managed to do this successfully with Attachments so far. This is my working code that displays all related Attachment images:  <apex:repeat value="{!CKSW_BASE__Service__c.Attachments}" var="att">     <apex:image url="{!URLFOR($Action.Attachment.Download, att.id)}"         rendered="{!contains(att.ContentType, "image")}" /> </apex:repeat>   So you can see I grab the entire Attachments related list, I use the global $Action provider to generate a URL for the attachment, and then render it only if it is actually an image.  But what do I do if the image was attached using the Files feature (which I understand has the API name ContentVersion) instead of Attachments? What is the structure of the related lists I can use, if any, and can I fetch the URL using URLFOR rather than hard-coding /sfc/servlet.shepherd/version/download/{id}? I am not finding this to be well-documented.  EDIT: Okay I found the related list... I would have to iterate over CKSW_BASE__Service__c.ContentDocumentLinks and then get the LatestPublishedVersion property to have the ContentVersion ID. But I am stuck on finding a way to use URLFOR with this object.


It seems LaTeX can't tell whether it's on an even or odd page when it's at the beginning of a new page. I'm trying to put text in the margin using a custom sort of method in a book that I'm writing. marginpar and marginnote won't work for various reasons. I found this method . I don't fully understand the syntax but I can mostly tell what it's doing.   I've printed things to the margins in 3 places using marginpar marginnote and the custom method, mynote: once at the beginning of the document, once at the beginning of a new page of the document, and once at the beginning of a new page of the document that is created by \newpage. The 1st and 3rd instances put each of the text in the correct place, but the second instance puts the mynote in the wrong margin, as though it thinks it's still on the previous page.  I've tried \strictpagecheck, that doesn't do anything. I can't really think of anything else to try.   Can anyone give some insight? To clarify, I want to have the "My Note" on the second page be on the left, as it should be, and as the marginpar and marginnote are.  EDIT: As per @Werner 's recommendation, I have changed it to  \documentclass{book} \usepackage{marginnote} \usepackage{tabto} \usepackage{changepage}  \newcommand\mynote[1]{%     \checkoddpage\ifoddpage     \tabto*{\dimexpr\textwidth+\marginparsep}%     \else     \tabto*{\dimexpr-\marginparsep-\marginparwidth\relax}%     \fi     \smash{\begin{minipage}[t]{\marginparwidth}{#1}\end{minipage}}%     \tabto*{\TabPrevPos}% }  \begin{document}     \marginnote{Margin Note} \mynote{My Note} \marginpar{Margin Par}  \vspace{60em} \marginnote{Margin Note} \mynote{My Note} \marginpar{Margin Par}  \newpage  \marginnote{Margin Note} \mynote{My Note} \marginpar{Margin Par} \end{document}   But it still doesn't seem to get the My Note to the left on the second page for me, no matter how many times I compile. The output is   If it helps to know the context, I'm using this MyNote thing for my "Asides" in  on page 232.


There is no endomorphism $\phi : \mathbb R^5 \to \mathbb R^5$ with $\ker \phi = \text{Im}\phi$

Is it true, that we haven't any linear mappings (Let it be called $\phi$) between $\mathbb{R}^n \to \mathbb{R}^n$, where $n = 5$ and Ker $\ \phi$ = Im$\ \phi$ Where: Ker $\ \phi = \{v \  | \ \phi(v) = 0, v \in \mathbb{R}^n\}$ Im$\ \phi = \{\phi(v) \  | \ v \in \mathbb{R}^n\}$


Question marks in titles, in particular those beginning 'How to ...'

I found the following blog title without a question mark from :     How to ease Afghanistan’s progress in cricket   Is it grammatical, if we don't put question mark in questions of titles? I think this blog title should have been like this:     How to ease Afghanistan’s progress in cricket?   I also found the following blog title from  without a question mark:     Election rigging 101: How to steal a mandate   However, I found a question mark from other blog title of :     Elections 101: What is the ECP and what does it do on election day?


StackOverflowError serializing an object in java (Android 4.4)

My android app needs to serialize an object (RowCreation) to transmit it over the network. Obvisously the object class implements the Serializable interface. The class has the following structure:      public class RowCreation extends ClientSyncRequest {      private static final long serialVersionUID = 10001243L;       public int localID;     public int entity;     public Hashtable attributes = new Hashtable();     public byte[] bytes;     public long time = 0;     public String md5CheckSum; }  public class ClientSyncRequest extends SyncMessage {          private static final long serialVersionUID = 10001246L;           public int id = 0;          public int getId(){              return this.id;          }     }     public class SyncMessage implements Serializable{       private static final long serialVersionUID = 10001231L;   }   It happens that one of the app users reported a bug today, When I saw the stacktrace on the google play console was the StackOverflowError:  java.lang.StackOverflowError at java.io.ObjectStreamClass.lookupStreamClass(ObjectStreamClass.java:1064) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:1035) at java.io.ObjectStreamClass.createClassDesc(ObjectStreamClass.java:248) at java.io.ObjectStreamClass.lookupStreamClass(ObjectStreamClass.java:1067) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:1035) at java.io.ObjectStreamClass.createClassDesc(ObjectStreamClass.java:248) at java.io.ObjectStreamClass.lookupStreamClass(ObjectStreamClass.java:1067) at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1574) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1517) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1481) at java.util.Hashtable.writeObject(Hashtable.java:1079) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1053) at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1404) at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1671) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1517) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1481) at java.io.ObjectOutputStream.writeFieldValues(ObjectOutputStream.java:979) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:368) at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1074) at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1404) at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1671) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1517) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1481)


The fastest way to get the most recent records

I am looking for the fastest way to return the most recent record for each reference number.  I quite liked , but it does not seem to work when I add a third condition (SequenceId). It appears to work only when I specify the Id and the creation date.  To understand my problem, You will need to create the modified sample table, which is essentially a copy of the table on the above referenced website but with a little twist.  CREATE TABLE [dbo].[TestTable](       [Id] [int] NOT NULL,       [EffectiveDate] [date] NOT NULL,       [SequenceId] [bigint] IDENTITY(1,1) NOT NULL,       [CustomerId] [varchar](50) NOT NULL,       [AccountNo] [varchar](50) NOT NULL, CONSTRAINT [PK_TestTable] PRIMARY KEY CLUSTERED  (       [Id] ASC,       [EffectiveDate] ASC,       [SequenceId] ASC ) ON [PRIMARY] ) ON [PRIMARY] GO  SET IDENTITY_INSERT [dbo].[TestTable] ON INSERT [dbo].[TestTable] ([Id], [EffectiveDate], [SequenceId], [CustomerId], [AccountNo])  VALUES (1, CAST(0xDF300B00 AS Date), 1, N'Blue', N'Green') INSERT [dbo].[TestTable] ([Id], [EffectiveDate], [SequenceId], [CustomerId], [AccountNo])  VALUES (2, CAST(0xDF300B00 AS Date), 2, N'Yellow', N'Blue') INSERT [dbo].[TestTable] ([Id], [EffectiveDate], [SequenceId], [CustomerId], [AccountNo])  VALUES (1, CAST(0xE0300B00 AS Date), 3, N'Red', N'Yellow') INSERT [dbo].[TestTable] ([Id], [EffectiveDate], [SequenceId], [CustomerId], [AccountNo])  VALUES (3, CAST(0xE0300B00 AS Date), 4, N'Green', N'Purple') INSERT [dbo].[TestTable] ([Id], [EffectiveDate], [SequenceId], [CustomerId], [AccountNo])  VALUES (1, CAST(0xE1300B00 AS Date), 5, N'Orange', N'Purple') INSERT [dbo].[TestTable] ([Id], [EffectiveDate], [SequenceId], [CustomerId], [AccountNo])  VALUES (2, CAST(0xE3300B00 AS Date), 6, N'Blue', N'Orange') INSERT [dbo].[TestTable] ([Id], [EffectiveDate], [SequenceId], [CustomerId], [AccountNo])  VALUES (3, CAST(0xE6300B00 AS Date), 7, N'Red', N'Blue') SET IDENTITY_INSERT [dbo].[TestTable] OFF GO   If I run a similar query as on the website, I get exactly the same result.  SELECT tt.* FROM dbo.TestTable tt LEFT OUTER JOIN dbo.TestTable ttNewer ON tt.id = ttNewer.id AND tt.EffectiveDate < ttNewer.EffectiveDate WHERE ttNewer.id IS NULL   However, the little twist is that I added a SequenceId column to the table as you may have noticed. The purpose of this column is because the client may want to do a post dated entry for a date in the past. This entry must supercede the other entries made on the same date which is in the past. If I run the query before I add the the post dated entries, I get the same result as previously.  SELECT tt.* FROM dbo.TestTable tt LEFT OUTER JOIN dbo.TestTable ttNewer ON    (              tt.id = ttNewer.id AND tt.EffectiveDate < ttNewer.EffectiveDate             AND tt.SequenceId < ttNewer.SequenceId       ) WHERE ttNewer.Id IS NULL   If I add two post dated entries as shown below, then I start to get interesting results.  INSERT INTO TestTable(Id,EffectiveDate,CustomerId,AccountNo) values (       2,'20090103','Blue','Orange' );  INSERT INTO TestTable(Id,EffectiveDate,CustomerId,AccountNo) values (       2,'20090105','Blue','Orange' );   What you should notice is that the two queries below no longer return the last record whether I use the one which is similar to what is on your website or I use the one which adds another condition (SequenceId)  SELECT tt.* FROM dbo.TestTable tt LEFT OUTER JOIN dbo.TestTable ttNewer ON tt.id = ttNewer.id AND tt.EffectiveDate < ttNewer.EffectiveDate WHERE ttNewer.id IS NULL  SELECT tt.* FROM dbo.TestTable tt LEFT OUTER JOIN dbo.TestTable ttNewer ON    (              tt.id = ttNewer.id AND tt.EffectiveDate < ttNewer.EffectiveDate             AND tt.SequenceId < ttNewer.SequenceId       ) WHERE ttNewer.Id IS NULL   What I would like the query to do is to return the last record for a reference number (Id) based on the last sequence number for any given day. In other words, the record with the last sequence number on the most recent EffectiveDate.


Confidence Interval for variance given one observation

This is a problem from the "7th Kolmogorov Student Olympiad in Probability Theory":     Given one observation $X$ from a $\operatorname{Normal}(\mu,\sigma^2)$ distribution with both parameters unknown, give a confidence interval for $\sigma^2$ with a confidence level of at least 99%.   It seems to me that this should be impossible. I have the solution, but haven't read it yet. Any thoughts?  I'll post the solution in a couple days.  [Follow-up edit: Official solution posted below. Cardinal's solution is longer, but gives a better confidence interval. Thanks also to Max and Glen_b for their input.]


How old should you be when you begin Jedi training?

Anakin Skywalker was about nine years old (see script link, below) during "The Phantom Menace". Yet according to various people, he was too old (or even "far too old") to begin training as a Jedi:   QUI-GON: "I'm afraid not. Had he been born in the Republic, we would have identified him early, and he would have become Jedi, no doubt...he has the way. But it's too late for him now, he's too old." OBI-WAN: "The boy will not pass the Council's tests, Master, and you know it. He is far too old." MACE WINDU: "He is too old. There is already too much anger in him." and even ANAKIN himself: "I'm with Qui-Gon...but...they're not going to let me be a Jedi. I'm too old."   All quotes above from .  However, during "The Empire Strikes Back" Yoda gives Luke's age (18 in chapter IV according to the ) as the reason to deny him training only after first saying that Luke is:   too impatient too angry not ready is unfocused ("Never his mind on where he was") and reckless   All from .  I would have thought that, if at 9 Anakin was too old, Yoda would have seen Luke at 18+ and started off by saying, "No chance, he has".  So, what is the age to begin Jedi training?


I ordered Lenovo desktop PC M710t, which is freeDOS OS.  Usually Windows is installed first, and Ubuntu after for dual boot.  Can I switch the OS installation order?  Because I haven't purchased Windows 10 OS yet.


What routes are there to cross the Pacific (without flying)?

This question is similar to  but broader.  If you depart from North America, how can you reach any East Asian destination by cruise, ferry, cargo ship or anything that doesn't fly?   Are there regular cruises Seattle - Hawaii - Tokyo? Or something similar?


Trying to understand formula for counting regions of hyperplane arrangements in $\mathbb{R}^2$

There are up to $\binom{n}{2} + n + 1$ regions created by a hyperplane arrangement in $\mathbb{R}^2$ containing $n$ hyperplanes.  I want to understand this in a demonstrative way. Each hyperplane splits each region it passes in two regions. A newly added hyperplane therefore creates a new region each time it crosses another hyplerplane or the plane. So the number of regions should be $1$ (plane) $+ \binom{n}{2}$ (number of intersections of $n$ lines). But as I know the answer, I know that I am missing $n$ regions.   Do you know where my mistake is? Why do I have to add the number of lines to get the max. number of regions?


Which of the following is grammatical?        He had lollies be they red or blue?    He had lollies be them red or blue?      It seems as if it could be them as an object of be.


Let F be the ring of continuous functions from $R$ to $R$. Let  $A =\{f \in F \; | \; f(0)=0\}$ Show that $A$ is maximal in R.  Please check my attempt below:- (This question has been posted already but I haven't studied homomorphism as of now, I just need to know if my attempt is fine)  First of all, it can be shown that $A=<x>$ ,i.e, it is the Principle Ideal generated by $x \in F$ and hence it is an Ideal of $F$  To show it is maximal, I am showing $\frac{F }{<x>}$ is field  Since $F$ is a commutative ring with unity $= 1$ $\rightarrow \frac{F}{<x>}$ is commutative ring with unity $= 1 + <x>$  Consider,  $\; x\in <x>$   $\rightarrow x + <x> = <x> \; \rightarrow x = 0 \;$ in $\frac{F }{<x>}$   $\frac{F}{<x>} = \{ f \; \;+\; <x> \; \; | \; \; f \in F \} = \{\; k \; + \; <x> \; | \; k \in R\}$ (where $R$ is the set of real functions)  Consider non zero element $k + A \; \in \frac{F}{<x>} \; \rightarrow k\neq 0$ $\; \; \exists \frac1k \; \in R \; \;$ such that $(k+<x>)(\frac1k + <x>) = 1 + <x> = (\frac1k + <x>)(k+<x>)$  Hence $\frac{F}{<x>} $ is field and $<x> $ is maximal.  I am not very sure if this is correct because my textbook has shown $A$ as maximal directly without showing the factor ring is field.


PHP mail() function not using "from" address

$to = "me@mydomain.com"; $subject = "Auction Registration Confirmation"; $from = "From: donot-reply@mydomain.com"; $body = "Test Message"; if (mail($to, $subject, $body, $from)) {     echo("Message sent");     header( "Location: http://www.mydomain.com/thankyou.html" ); }  else {     echo("Message failed"); }   Now the problem is that when an email is sent, the from address is not what I require, but the server login name.  Any ideas as to replace the server login name with the from email id.


Should magic items which allow to cast spells be considered as material components?

For using Counterspell, a spell needs to contain some kind of component, otherwise it cant be countered.  When casting spells from magical items the spell is cast at the lowest possible spell level, doesn't expend any of the user's spell slots, and requires no components, unless the item's description says otherwise. DMG p141. spells you cast from items can be countered   So, does it mean that the magic items are considered as the material components of the spell?


Android Studio lists device as "???????????????? [null]"

I am an android developer working with my office mac. But now I want to migrate the projects to Ubuntu.   I installed Android studio and trying to run project on my device ASUS Zenfone 5 (Kitkat).  But the device list is showing as ?????????????????[null]   I tried to run in Nexus 7, its working fine and no issues found.   Is there any issues in my device settings ? Or any settings change in my Android studio.. ?


For which values this integral converge?

This question is realy hard for me and I'd like to get some advises:  $$f(x) =   \begin{cases}      x^{\alpha}(1-\cos(1-x))^{\beta} &  x\in (0,1)\\[6px]     \dfrac{1}{x^{\alpha}+x^{\beta}}  &   x\ge 1   \end{cases}$$  I need to find the values of $\alpha$ and $\beta$ that make $\int_{0}^{\infty}f(x)\,dx$ converge.  Now I think I need to split the integral to $\int_{0}^{1}f(x)\,dx$ and  $\int_{1}^{\infty}f(x)\,dx$ and check the converge for each integral. But I'm stuck here.


Can less be used without any comparison?

Can I use "less" in sentences like this:  1 Why do we have so less number of students for this class? 2 My song collection is very less.  "Small" sounds better in both examples, but I would like to know if using "less" in these sentences is correct?


Is it possible to change the Android ID with root access? (On Android 10)

I have an Android 10 phone (Motorola Moto G9 Play) and I want to change the Android ID (I think that's what apps use to identify you sometimes). I have a cell phone with: ROOT + Magisk + EdXposed I always changed my "Android ID" using "Titanium Backup". But there is currently no option to change. Is it possible to change the "Android ID" just using a few tools, command line, applications, something that can modify the "Android ID"? Please, I need it so much. Reason: Some applications when they are going to ban accounts, they block the "Android ID" and I need to modify it and then use it again! (By Google Translator, sorry!) =(


I am reading this paper  $ <$Interlacing Families IV: Bipartite Ramanujan Graphs of All Sizes$>$, which proved the existence of the Ramanujan Graphs of all sizes.  This paper uses the notion of Haar measure on $O(n)$, the orthogonal group on $\mathbb{R}^n$.  I searched on Google and Wiki about this  but it is too hard for me since I am not familiar  with abstract measure theory.   I am wondering if there is an easier way to understand the specific example, which is the Haar measure on $O(n)$. What I know about measure theory is the Lebesgue meausre and to construct the integral given an meausre.


Is gravity's acceleration rate - squares of all natural numbers?

I've seen some science\history documentary in which they made a replica of Galileo's inclined plane experiment.  They rolled a ball down the plane; and it's progressed in length units each unit of time was - 1, 4, 9, 16 etc. I realized it was squares of natural numbers; but I didn't really understand why this happens. I expected it to be exponential; as in - 1, 2, 4, 8, 16 etc.  I've checked a few more videos since; and now I understand that this progression is "time squared". That makes sense; but I still don't exactly understand why it works this way.  Also in some other video, which is a segment from some science show, they said the ball suppose to roll - 1, 3, 5, 7 etc. Did they just got it wrong?  So why does it work this way - time squared; and what other basic things in physics progress this way; can you give some examples? What about energy needed to accelerate mass?


Childhood savings account closed years ago due to parents negligence. Can I reclaim it?

Years ago, my parents received notice that my savings account was being closed. I was too young to do anything myself, and I guess my parents too lazy. There was only about $130 dollars in the account. Is it possible in the state of Nebraska to reclaim this account? Will their be anything even left in it?  (I've tried asking elsewhere and can't get anything, I don't know this site well or if this is the type of question accepted here. Sorry)


How do I make every Monday Bold in the monthCalendar control?

I am developing an application. I initially wanted to allow the user to ONLY select a Monday. After spending a considerable amount of time, I found out that that wont be possible unless i create my own control.  Therefore i wanted to know how do I make Monday's Bold (and even change the background color) so it's more noticeable?  Is there a way to programatically select a Monday (of the same week) no matter what day is selected on the week?  For example, if they click 2/16, that 2/13 would automatically be selected.


Prevent Firefox addons from opening update tabs

I have lots of Firefox addons installed and sometimes, when one addon is updating itself, at the next start of Firefox it'll open a new tab with update info (e.g. NoScript does that).  Is there a way to prevent this? I don't mind update notifications but opening some webpage is too much intervention imho.


How can I backup an app I bought from Google Play so that I can install it on my phone later?   I tried to copy /mnt/asec/[appId]-1/pkg.apk but it doesn't work.  Can someone help?


The world may never eradicate coronavirus, but it can get it under control.  The world may never eradicate coronavirus, but it could get it under control.  The world may never eradicate coronavirus, but it might get it under control.   I know the difference between 1) and 2).What is the difference between 2) and 3)?


Travelling to the US on tourist visa (Covid 19)

I am an Indian passport holder having a German Permanent Residency. I have a 10 year US B1/B2 visa. I am going to the US (transiting in Mexico for 30 days). Do the entry restrictions apply to tourist visas? if yes, does anything change if I am not flying from India or the Schengen region?


What is the optimal placement for the RSS icon? is there any?

I think for all websites it would be a MUST to ensure the RSS icon is displayed in the address bar!  But there are tons of pages, who don't care and even hide the RSS icon somewhere on the site.  What do you offer your clients, where to place the RSS icon?  Is there a so called optimal placement? Is there any study on this topic?