'fncychap' accidentally converts ToC bibliography entry from chapter to section
Make bibliography appear in toc as a chapter, not section
Simple as the title states: Can you use only Java commands to take a screenshot and save it?  Or, do I need to use an OS specific program to take the screenshot and then grab it off the clipboard? Python Script to Add Fields to Feature Classes I have to try to add a field called 'Name' to a bunch of different feature classes using python, and then access the name of the feature class to fill in the field. I have no idea how to even start this! I know I need a loop but that's all I know. Measures of residuals heteroscedasticity This wikipedia  lists a number of techniques to detect OLS residuals heteroscedasticity. I would like to learn which hands-on technique is more efficient in detecting regions affected by heteroscedasticity.  For example, here the central region in the OLS 'Residuals vs Fitted' plot seen to have higher variance than the sides of the plot (I am not entirely sure in facts, but let's assume it's the case for the sake of the question). To confirm, looking at the error labels in the QQ plot we can see that they match the error labels in the center of the Residuals plot.  But how can we quantify the residuals region that has significantly higher variance? Creating Workflow -> Error When I try to create a new WF in my Sharepoint Designer I get following error:     The list of workflow actions on the server references an assembly that   does not exist. Some actions will not be avaliable. The assembly   strong name is "Microsoft.SharePoint.WorkFlowActions,   Version=14.0.0.0,Cultureneutral,PublickeyToke=   Does any on know how to fix this problem? How do you find all subclasses of a given class in Java? How does one go about and try to find all subclasses of a given class (or all implementors of a given interface) in Java? As of now, I have a method to do this, but I find it quite inefficient (to say the least). The method is:    Get a list of all class names that exist on the class path Load each class and test to see if it is a subclass or implementor of the desired class or interface   In Eclipse, there is a nice feature called the Type Hierarchy that manages to show this quite efficiently. How does one go about and do it programmatically? Annoying lines ruining the image I was planning to do a 1920x1080 wallpaper from my favourite musician's cover. Everything was going good so far until I used correction brush which totally ruined my whole work. There are pixelated lines (how do I call these?!) everywhere! They're everywhere, it's very visible when zooming. Using Content-Aware Fill did nothing about it. I beg for help. Sorry if I did something wrong writing this post, i'm a beginner. Does light reflect if incident at exactly the critical angle? A lot of textbooks and exam boards claim that light incident at exactly the critical angle is transmitted along the media boundary (i.e. at right-angles to the normal), but this seems to violate the principle of reversibility in classical physics.  How would a photon or ray travelling in the reverse direction "know" when to enter the higher refracting medium?  It can't know, so I conclude that such light is simply reflected?  Is this correct? On convergence of Bertrand series $\sum\limits_{n=2}^{\infty} \frac{1}{n^{\alpha}\ln^{\beta}(n)}$ where $\alpha, \beta \in \mathbb{R}$ Study the convergence of $$\sum_{n=2}^{\infty}  \frac{1}{n^{\alpha}\ln^{\beta}(n)}$$ where $\alpha, \beta \in  \mathbb{R}$   I have proved that:   This series diverges when $\alpha \leq 0$. This series converges when $\alpha &gt; 1, \beta &gt; 0$ This series diverges when $0 &lt; \alpha &lt; 1, \beta &gt; 0$ This series converges when $\alpha = 1, \beta &gt; 1$      Question: What happens when $\alpha &gt; 0$ and $ \beta &lt; 0$?   There are other questions on MSE which ask about this series, but this question is distinct because   I would like an argument which does not rely on the integral test for series convergence, and this question considers all real $\alpha$ and $\beta$, while other questions ask only about $\alpha, \beta &gt; 0$, where we can apply Cauchy condensation criterion I have a stupid self-answered question. Should I accept my own answer? was genuine at the time, but I realised that  gave the right advice, but required me to restart my Linux (which wasn't mentioned in the solution).  It's a bit of a  question and  points to me not deleting it.  But it seems hugely self-aggrandizing to accept my own answer. Should I? Auto Package download for TeXLive I use MiKTeX on Windows and quite satisfied with it. Recently I started switching all my tasks toward open-source alternatives, and in the course I would love to use Linux. In Linux TeXLive is available as alternative to MiKTeX. The thing I really like about MiKTeX, is its ability to install packages automatically. Can I do the same in TeXLive too? Is there a way I can enable such or install some plugins for it?  I am using Fedora 18, if that's needed. Show $100+t$ is reducible in $\mathbb{Z}[[t]]$ $\mathbb{Z}[[t]]$ is the ring of formal power series with integer coefficients, and the problem asks to show that $100+t$ is reducible. This means I need to find two power series, $\sum_{i=0}^\infty a_i t^i$ and $\sum_{j=0}^\infty b_j t^j$ with $a_i,b_j\in\mathbb{Z}$, that when multiplied give $100+t$. Since the integers are an integral domain, I know that neither of these power series may be finite, but I'm having a really hard time figuring out how to come up with two series that will telescope properly. Any suggestions? I want to hit enemy's axe to break it. How this is properly played in D&amp;D 5e? And what about shield or armor? Can I attack these items to break it? How to disable USB storage device support I want to disable a particular USB storage device (a sandisk flash drive). I read somewhere that you can use the .config file. How do i use it to disable that? case insensitive find in mongodb for usernames in php String handling by OneHotEncoder I am reading everywhere on new questions and blogs that since version 0.20, OneHotEncoder is able to handle string features. Moreover, the documentation is what looks more ambiguous. Here are the first two lines from the documentation:  Encode categorical integer features as a one-hot numeric array. The input to this transformer should be an array-like of integers or strings, denoting the values taken on by categorical (discrete) features.  First line says it  encodes categorical integer features  and the next line says  input should be array like of integers or strings.  When i tried it, i still got the value error. print(X.columns) encoder = OneHotEncoder(categorical_features=[1,4,5]) encoder.fit(X)  Index(['age', 'sex', 'bmi', 'children', 'smoker', 'region'], dtype='object') ValueError: could not convert string to float: 'female'  I am aware of the means to handle encoding of string features with LabelEncoder, ColumnTransfomer and pd.getDummies() but specifically want to understand about this. Oneboxing is a handy feature in chat for quickly previewing links, but the list of supported sites is very small, and occasionally boxes for sites such as Wikipedia can break and fetch any image/text.  Instead of having to request additional sites to be added to the onebox list (, , , , , and of course ), we could let the sites themselves handle the oneboxing with some &lt;meta&gt; tags, such as:  &lt;meta name="onebox-title" content="The Onebox Title"/&gt; &lt;meta name="onebox-image" content="/image.png"/&gt; &lt;meta name="onebox-summary" content="This is the summary for a site's onebox"/&gt;   Then when a link is placed on its own in chat, the oneboxing spider would look for these tags and, if they are found, show the appropriate data.  Support for these tags would certainly be bad (for lack of any real better term) at first, though most users of SO chat could easily add it to their personal / company's sites (should they be in such a position) and writing friendly suggestions to other sites to implement them isn't exactly a gargantuan effort.  This would also present an opportunity for currently oneboxed sites to set in stone what should be shown, such as each Wikipedia article setting the main image to be oneboxed instead of SO's spider picking one willy-nilly.  Finally, sites implementing these tags would lay the foundation for other sites and services to develop similar features to the onebox, without having to write per-site scrapers. How to make existing public files private? I have a website that sells music artists posters. Each artists has a page containing a small bio, and a list of posters we are selling representing the artist.  Currently our HTML looks like that  &lt;h1&gt;{Artist name}&lt;/h1&gt; bio &lt;h2&gt;Posters&lt;/h2&gt; &lt;ul&gt;   &lt;li class="poster"&gt;...&lt;/li&gt;   ... &lt;/ul&gt;   We are redesigning this page, and we have a new template that we really like. Problem is that in this new version the &lt;h2&gt;Posters&lt;/h2&gt; does not appear anywhere on the page.  As you might expect, a significant part of our traffic comes from people typing something like : "{Artist name} poster" on Google.  I fear that, by removing the word "poster" from the page, we will reduce our chances of getting these people to come to the site, since Google might down rank us.  I see several options here :   Give Google a slightly altered page that contains the H2 tags. But I think this falls into the "Black Hat SEO" category. And I don't want that. Put the heading. Hide it with CSS. Everyone wins, including accessibility tools which can determine the structure of the page using the "invisible" heading. But I do not know if this is considered a good practice. Forget about the heading, and find other ways to tell Google that we really are about posters. (via keywords, but do they really have the same "weight" as an H2?) Adapt the design to our SEO need, and find a way to put that heading nicely.   Are there webmasters out there that have been facing the same issue, how did you resolve it? How come I can't give more than 500 rep? Why can't I give more than 500 reputation as a bounty at a time? The system won't let me choose an option more than 500.  Also, how were some users able to do so? On  the OP has given a single bounty worth 550 rep, but at the moment I have 844 rep and I can't give any more than 500 rep on a bounty.  Can you please tell us if this is a bug or not? Regular expression to extract URL from an HTML link I’m a newbie in Python. I’m learning regexes, but I need help here.  Here comes the HTML source:  &lt;a href="http://www.ptop.se" target="_blank"&gt;http://www.ptop.se&lt;/a&gt;   I’m trying to code a tool that only prints out http://ptop.se. Can you help me please?