what I want is to center the anchor tag texts vertically also I want the "contents" div to fit the screen so that if the screen gets smaller or bigger the anchor tag doesn't run off the margin creating overflow which I don't want, I tried a bunch of different ways to fix this but none seem to work, any help is appreciated! here's the code...   $(function() {    $(".menu-link").click(function(e) {     e.preventDefault();      $(".menu-overlay").toggleClass("open");     $(".menu").toggleClass("open");    });  });  $('.menu-link').click(function() {   $('body').toggleClass('no-scroll'); }); .nav {     display: flex;     justify-content: space-between;     padding: 0 5%; }  #brandname {     color: black;     font-weight: bold;     font-family: Circular Std Black;     line-height: 60px;     font-size:20px;     margin-top: 45px; }  .menu {   position: absolute;   margin-top: 50px;   right: 5%;   height: 46px;   width: 46px; }  .menu-link {   width: 100%;   height: 100%;   position: absolute;   z-index: 1002;   cursor: pointer; }  .menu-icon {   position: absolute;   width: 20px;   height: 15px;   margin: auto;   left: 0;   top: 0;   right: 0;   bottom: 1px; }  /* ------------- */ .menu-line {   background-color: white;   height: 3px;   width: 100%;   border-radius: 2px;   position: absolute;   left: 0;   transition: all 0.25s ease-in-out; } .menu-line-2 {   top: 0;   bottom: 0;   margin: auto; } .menu-line-3 {   bottom: 0; } .menu.open .menu-line-1 {   transform: translateY(7.5px) translateY(-50%) rotate(-45deg); } .menu.open .menu-line-2 {   opacity: 0; } .menu.open .menu-line-3 {   transform: translateY(-7.5px) translateY(50%) rotate(45deg); }  /* ------------- */ .menu-circle {   background-color: #E095F0;   width: 100%;   height: 100%;   position: absolute;   border-radius: 50%;   transform: scale(1);   z-index: 1000;   transition: transform 0.3s ease-in-out; } .menu:hover .menu-circle {   transform: scale(1.2); } .menu.open .menu-circle {   transform: scale(60); }  /* ------------- */ .menu-overlay {   transition: opacity 0.2s ease-in-out;   opacity:0;   display:hidden; }  .menu-overlay.open {   position: fixed;   top:0;   left:0;   height: 100vh;   width: 100vw;   opacity:1;   display:block;   z-index: 1001;   background-color: black;   overflow: hidden; }   .no-scroll{     overflow: hidden; }   /***********anchor tag************/ .contents {     display: table;     margin-left: 5%;     margin-right: 5%; }  .contents a{     display: table-cell;     text-decoration: none;     font-family: Circular Std Book;     font-size: 30px;     padding-left: 60px;     padding-right: 60px;     color: white;     vertical-align: middle; }
Test

             Home             About             Home             About

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


I want to know which article to be used with the word attachment and which is correct is these two sentences "Please find the attachment" Or "Please find an attachment"

I can’t for the life of me figure out where to use a and where to use the — and where there is no article at all. Is there a simple rule of thumb to memorize?   The standard rule you always hear:     “If a person knows which item you are talking about then use "the"   . . . doesn’t clear things up for me, as I have no idea whether or not they know.


am totally new to linux, recently i have installed ubuntu 14.04 on my windows 7 professional desktop, on windows i had 3 partitions (except windows partition) while installation i had not selected any partition to install ubuntu 14.04, while in ubuntu installation i only selected replace windows option and not selected any partition selection options. after installation my desk top has only one hard disk with space of 160 gb. disk showing 5 swap partitions. So, i read and used testdisk to recover erased partitions while running testdisk some problems are facing, attached screen shot.  So, Kindly help me how to use testdisk to recover 3 partitions step by step, what are the requirements to use testdisk, and how to recover successfully without errors.  Thanks in advance,  Tell me next step form here, what to select and what to do ?  from above screen by pressing enter to continue, below screen appear. from this again next step to do ?  Regards Raju B

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


Noticed that the integral $$\int_0^\infty \frac{1}{x^n+1} dx$$ is often approached with partial fraction decomposition, but this gets increasingly ugly as $n$ gets bigger.  Is there a neat trick to do these all in one fell swoop? Or a famous name for these integrals that I can look up for more info?

I have found a proof using complex analysis techniques (contour integral, residue theorem, etc.) that shows $$\int_0^{\infty}\! \frac{\mathbb{d}x}{1+x^n}=\frac{\pi}{n \sin\frac{\pi}{n}}$$ for $n\in \mathbb{N}^+\setminus\{1\}$   I wonder if it is possible by using only real analysis to demonstrate this "innocent" result?  Edit A more general result showing that  $$\int\limits_{0}^{\infty} \frac{x^{a-1}}{1+x^{b}} \ \text{dx} = \frac{\pi}{b \sin(\pi{a}/b)}, \qquad 0 < a <b$$ can be found in


Obviously it's not missing from this Meta, but it is on the .  It's not just an idiosyncracy of the themes being used for this beta site, it also appears to be the the case on other SE sites.   Is there any reason for this? Why must I go to the main SE site to edit my profile, why can't I do it from the site's Meta as well?  Edit: I forgot to add the screen shots, first is the main site, second is the Meta:

Here's what happened to me just now:   (It took me an embarrassingly long time looking for an edit option on my meta profile to get to this step though)  So, I realize that it makes sense that we don't have separate profile information for site Meta accounts. And it also makes sense that we do have separate settings options for Meta (there are meta-only tags, people might be less interested in the questions and not want to receive email updates, etc.) But, instead of having the functionality change based on which site you're on, perhaps we could just make it so that you can edit your main-site profile from Meta? Or maybe keep them different, but make it a smaller difference: after clicking the "Edit profile and settings" horizontal tab on Meta, the vertical tab that you start out on is "Preferences" rather than "Edit Profile" by default, and if you click on "Edit Profile" you're automatically taken back to the main site page for that.


Hi i have been pondering the sorting of string, using linq, which is in the format of   L-NN-L-NN-L L= A->Z (for all three placements) NN = 1->99 (first NN) NN = 1->99 (second NN group by odds then evens)   The code i have so far has brought me to the of running a foreach loop on the first L and adding to a List the sorted arrangement, based on the remaining NN-L-NN-L structure.  It would be nice if the sorting of the NN-L-NN-L was a one-liner  any thoughts on this?  |Thanks

Anyone have a good resource or provide a sample of a natural order sort in C# for an FileInfo array?  I am implementing the IComparer interface in my sorts.


Sorry but I am quite new to Java.  I wanna write java code to read a text file which is in the same folder of the Java file. Can you guys give me some example codes? Many Thanks!

My code runs inside a JAR file, say foo.jar, and I need to know, in the code, in which folder the running foo.jar is.  So, if foo.jar is in C:\FOO\, I want to get that path no matter what my current working directory is.


I need some information from person A. Person A is not willing to give it to me. So instead of asking directly I keep asking secondary questions hoping that he may say something that might (partially) hint me the information I need. I may even ask other people. Or keep asking so many times that person A would have had it and just told me because he can't stand my questions any more.   It's like extorting, but without using threats or violence, but cunning and perseverance. What word am I looking for?     Although he refused to tell me where he got the money from, I persevered and finally <???> the information from him.

Sometimes, others just inform us about things without us asking them, other times they do not do that even if we ask them. I want a verb for when others do not give us information — whether because they do not like to or they just don't give it, but we cannot directly ask them to — but we actively extract the information from them sometimes without them being aware of it.   So the word I am looking for shouldn't be only for cases where we coerce or force others to give us information, and it shouldn't be only for cases where others do not like to give us information.  Example:     I needed that information. But I couldn't ask her for it, or most   probably she would not give to me even if I asked her. So, I ....   the information I wanted.   It could be a phrasal verb and so not just a single word, but I couldn't devise a  blank suitable for all possibilities!   Two verbs I've already had but I think are not suitable:  to give someone the third degree   To prize something from/out of somebody


The tag list on the right of the Question happens sometimes, perhaps depending on ip address:    I haven't checked with any browser other than Firefox (26 and 27).

This is on Stack Overflow. On Meta I'm able to see what the tags are on the right side of the screen. In fact, I think yesterday or some point earlier today I saw tags on the right side of the screen (I can't screenshot or remember correctly).  It's right above the asked and active heading.  I know this is minor but what happened to it? It might be useful for browsing instead of having to look at the bottom of the question post.    Found an image on Google and it shows the tags on the right side of the screen:


I want to write:  "We design color-based and size-based models."  Meaning that we design a color-based model and also a size-based model.  Isn't it more appropriate to write:  "We design color/size-based models."?

If multiple hyphenated terms share the same latter half, and I wish to list them without repeating that latter half, how should the hyphens be placed?  For example:     I will be investigating control issues in ground-based, water-based, and air-based robots.   If I do not want to repeat based, could I write:     I will be investigating control issues in ground-, water-, and air-based robots.   Is it correct to just leave a hyphen dangling after ground and water?  If not, how should it be written? I know the original sentence doesn't sound too bad, but I really just want to know the punctuation rule (or the convention in American English if there is no rule).


Screenshot today. It popped up about six times in a row.

I encountered a popup similar to this one this morning while checking the weather report at  in Safari, though I have not been able to reproduce it.  The title is "about://(null)" and the text "Why you no play Candy Crush!!"  The popup occurred twice.  I tapped Cancel both times.  I suspect the source of this is rogue JavaScript in an ad network, judging from the fact that the screenshot below shows it in an ad-supported application, and when I saw it, I was on an ad-supported website.  My phone is not jailbroken.  I'm wondering if anyone is able to identify the source of the popup definitively.  Speculation is running rampant on Apple's support communities and elsewhere, from push notifications (delete Facebook and all your games!) to carrier notifications (which don't work on iPod Touches…), and my gut tells me little of it is helpful.  But I could also be very wrong.  (This is not my screenshot; it comes from .)    UPDATE 1: The Candy Crush people have this to say, but I'm not (yet) convinced there's actually something installed that is to blame:   UPDATE 2: Just reproduced it in the iOS Simulator while clicking around woodtv.com, but I'm not sure how to track it down further from here.


Let’s say, as a thought experiment, that we drilled a hole straight through the Earth and out the other side. Let’s ignore things like heat and what a massive undertaking this would be. We would have a hole with no bottom. If you could look through the hole and somehow see out the other side clearly, you would see the sky. We then drop an object into the hole. Does the object fall all the way to the center and out the other side at an extreme speed due to the acceleration of gravity? Or does it fall to the center, rise “up” the other way, only to fall back “down” again? (and if so, how long would that yo-yo action continue for?) Or would something else happen? How does gravity work in this situation?

...And you jumped in.  What would happen when you got to the middle of the Earth? Would you gradually slow down, until you got to the middle and once you were in middle would every direction feel like it was up?


There are N people in a room, each wearing a different hat. They all take their hats off, put them together and then each randomly picks one up. What is the probability of no person getting their own hat back (denote this event by A)? What does this probability become as N → ∞ ? Can somebody give me some ideas, please?

I am trying to solve interesting probability problem which I found in the book "50 Mathematical Ideas You Really Need to Know" by Tony Crilly:  A group of people go to lunch and afterwards pick up their hats at random. What is the probability that no one gets their own hat?"  So he claimed that It can be shown that this probability is $1/e$ (about $37\%$) so that the probability of at least one person getting their own hat is $1 – 1/e$ $(63\%$)  I was thinking about asymptotic cases where $n \to \infty$. The probabilities of "no one gets their own hat" and "at least one person getting their own hat" should be $0$ and $1$ respectively, right? So why it is $1/e$ and $1-1/e$?  Thank you in advance.


What is the link between set theory, number theory and group theory. What is the added value in knowing that for example the rotations of an equilateral triangle have the same group structure as the integers mod 3.

Someone asked me today, "Why we should care about groups at all?"  I realized that I have absolutely no idea how to respond.  One way to treat this might be to reduce "why should we care about groups" to "why should we care about pure math", but I don't think this would be a satisfying approach for many people.  So here's what I'm looking for:          Are there any problems that that (1) don't originate from group theory, (2) have very elegant solutions in the framework of group theory, and (3) are completely intractable (or at the very least, extremely cumbersome) without non-trivial knowledge of groups?      A non-example of what I'm looking for is the proof of Euler's theorem (because that can be done without groups).  [Edit] I take back "insolubility of the quintic" as a non-example; I also retract the condition "we're assuming group theory only, and no further knowledge of abstract algebra".


Prove  that the function $\displaystyle f(x)=\frac{x}{x^2+1}$ is continuous at $x=-1$ using the  definition of continuity.  My attempt:  Need show that $\forall {\epsilon > 0},\exists {\delta > 0}$ s.t $\forall {x \in R },\ |x - (-1)| < \delta \implies |f(x) - f(-1)| < \epsilon.\\ |f(x) - f(-1)| = |\frac{x}{x^2 + 1} - \frac{-1}{2}| = |\frac{2x - (-1)(x^2 + 1)}{2(x^2 + 1)}| = |\frac{2x + x^2 + 1)}{2(x^2 + 1)}| = |\frac{(x+1)^2}{2(x^2 + 1)}|\\ |\frac{(x+1)^2}{2(x^2 + 1)}| < |\frac{(x+1)^2}{(x^2 + 1)}| <  |(x+1)^2| \text{ since } (x^2 + 1) \text{ is at least 1}\\ |(x+1)^2| = |x + 1|^2 < \epsilon \\  |x + 1| < \sqrt{\epsilon}$  Therefore set $\delta = \sqrt{\epsilon} \text{ and } \forall {\epsilon > 0}, \ \forall {x \in R }, |x - (-1)| < \sqrt{\epsilon} \implies |f(x) - f(-1)| < \epsilon$  is this a valid way of proving this? Or is there a better way?

Prove  that the function $\displaystyle f(x)=\frac{x}{x^2+1}$ is continuous at $x=-1$. You should give a proof that is directly based on the  definition of continuity.   I saw many similar questions on this website, but none of them gave me a satisfactory answer. I more or less understand how epsilon-delta proofs work but my problem lies more in the algebraic manipulations probably. So here's my "attempt".  Definition of continuity; for $f:A \to \mathbb{R}$     $$\forall \varepsilon >0 \ \exists\delta>0\ \forall x \forall x_0 \in A:|x-x_0|<\delta \Rightarrow |f(x)-f(x_0)|<\varepsilon$$   So from what I understand, the procedure for epsilon-delta proofs are as follows: 1. Plug the point of interest $x_0$ into $|f(x)-f(x_0)|<\varepsilon$ 2. Write $x$ in terms of $\varepsilon$ 3. Then plug $x$ into $|x-x_0|<\delta$ 4. Find $\delta$ in terms of $\varepsilon$. Done    At step 1, we have $\left|\dfrac{x}{x^2+1}+\dfrac{1}{2}\right|<\varepsilon$. Step 2 is where I'm stuck because of the 2nd degree polynomial in the denominator. First, I did this: $\left|\dfrac{x}{x^2+1}\right|<\left|\dfrac{x}{x^2+1}+\dfrac{1}{2}\right|<\varepsilon$. Then, I wasn't too sure about what to do, I thought about getting rid of the "$1$", but that would screw up my inequality. I thought about factoring $x^2+1$, but it doesn't have any real roots. I tried inverting the fraction, but that led me to nowhere. And I've already exhausted the tools I have. How do I proceed?  Apparently, epsilon-delta proofs are the most basic building blocks of analysis. And I'm already failing, this is both embarrassing and depressing...


As can be seen in the picture, I've created a Voronoi for points in the UK. However, the Voronoi does not take into consideration the split in land in the south-west region of the country. Therefore, it does accurately display the areas of land nearest to the points. How do I get past this? I have  UK Boundary vector point data layer (text converted file, not shp) Voronoi layer for points

I have several dozen points plotted across the UK. Each point represents a facility that serves local people. To estimate the catchment areas of each facility I created Voronoi polygons around them, and clipped the polygons to the UK borders (using a UK shapefile). I then coloured each polygon according to an attribute of the point data.  A cropped part of the map is here: (Wales and Devon/Cornwall)   Is there any way to make the Voronoi respect the natural borders of the UK (i.e. limit them to my shapefile during Voronoi creation)? The white on my map is the sea, and some polygons have crossed the Bristol Channel. This is implausible for a catchment area.  Is this possible, or is there any alternative? I have used QGIS so far, but am open to any option, code or GUI, preferably free.  Edit: There are some questions  and  that talk about building catchment areas from driving times. That is a possibility that I am considering if this is not possible, but a Voronoi algorithm that respects borders would be simpler.


Are "may" and "might" synonyms? They appear to be interchangeable.    What are the infinitives for these two words?  My guess is that "might" is cognate with the German "mögen" (an infinitive). Ich möchte gehen can be translated as would like to go. There is no infinitive in English, though there may have been in the original Anglo-Saxon where it could have meant "to want".

I may not be coming in tomorrow...    I might not be coming in tomorrow...       When should I use "may" and "might"?


In my most recent class assignment we've been working with generics and I have been receiving this warning:  Note: Selector.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.    From what I understand this results from not specifying the type of objects in my collection. I'm currently working with int's for testing purposes, but the program is supposed to allow for sorting of any type object. I don't think I want to specify my collections as int's, and my collection is currently of type T for this reason. But my instructions explicitly state that my program should not generate any warnings. Here is one of my methods:  What I have now:       else {         T[] a = new T[c.size()];         c.toArray(T[] a);         T min = a[0];         for (int i = 0; i < a.size(); i++) {            if (comp.compare(min, a[i]) > 0) {               min = a[i];            }         }         return min;       }   What I'm getting:      Testing.java:48: error: generic array creation             T[] a = c.toArray(new T[c.size()]);

For example:  javac Foo.java Note: Foo.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.


How do you configure so that window focus goes to the window under the mouse position? I see only answers relating to arcane versions of Ubuntu. ? is it officially supported?

I found multiple answers on askUbuntu about this topic. But none of them suites to Ubuntu 17.10. So I need to ask again:  How do I set focus follows mouse in Ubuntu 17.10?


How do I match the .&nbsp;&nbsp; in the following html string.
My first comment.&nbsp;&nbsp;
   The above string could have more than one &nbsp; at the end before the closing paragraph tag.

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


Ok, this is a complete newbie question: How does one create a methematics paper using LaTeX for a PDF?  Specifically, I need help knowing:   What to write the document in How to render the Latex How to convert into a PDF file   Also, how do I get the "amsmath" add-on?  My previous experience: I have written several papers using writelatex.com and sharelatex.com which allow collaboration on papers, and automatically render the latex + create PDF's of the finished product. I have a rough idea of how mathematical papers tend to be structured because of reading so many of them, but I have never published myself.  Also, if relevant: I have Adobe Reader and use Windows on my computer. Optimally, is there software I could download for free that would give me these capabilities?  Thanks in advance!

I am a noob when it comes to TeX, however, I do use LaTeX for typing mathematical and engineering formulas, etc.   Recently I have taken it upon myself to try and write some technical papers to try and get published, however I do not know what... 'type'(?) of TeX software to use best, so that I can hit the ground running with it.   If you look , this can give you context as to the forums that I would be publishing to, (IEEE), and they even have some templates there. However I cam getting easily confused between BibTex, TeX, etc, and how they all 'fit' together, in my goal of writing a paper. I would like guidance on this.   What might be the easiest 'headache less' software to start writing a paper in TeX for a noob such as myself? Am I on the right track?  Thanks!


I am writing an essay on blood types and the Japanese culture, and I am not quite sure if my use of apostrophes is correct.  I've read through this article, , but I can't seem to find this situation.  Here is what I have written; is this the correct format?     Type A's are cool, calm, and conscientious. Type B’s are practical, relaxed, and the most unconventional.

When I was in high school back in the 1970s, I was taught that to make a plural of an acronym, a letter, or a number, one should add an apostrophe and "s". Like I would have written this sentence, "... back in the 1970's ..." I would write "one CD, two CD's". Etc. I followed this rule faithfully for years until a co-worker told me it was wrong. Now I can't find any source that agrees with what I was taught.  Is this a rule that has changed over time? Was the convention in the 70s that one should use an apostrophe but this has changed and now we do not? Or were my high school English teachers just confused?


I have an animation that I made with the animate package for a Beamer presentation. The animation creates a sequence of tikz drawings that change according to an animate variable. The result is an embedded JavaScript that plays in some PDF viewers but not others. E.g., Okular plays it if I choose autoplay, but it doesn't if I need to "click" on the animation - I can live with this on my computer. However, I would also like to run this animation on an Android tablet. The best Android compatible PDF viewer I have seen so far is Xodo, which I can make to run media9 embedded videos, but so far no luck with embedded JavaScript (even though the app claims it can play JavaScript). My question, specifically, is how can I make a video out of an animate animation? This can also boil down to how can I generate a series of PNG images from an animate animation (I know how to continue with the video from there)? I provide the wider context of the question above in case someone can suggest alternative strategies to do what I want.

Consider the following minimal working example.   It's great to have an animation in pdf format.   But sometimes it would be good to be able to export it into an animated gif or something else (swf, video file, svg?).  How do I achieve this?   Note: I often have animations together with pgfplots.     \documentclass{article}  \usepackage{animate}  \usepackage[active,tightpage]{preview} \PreviewEnvironment{animateinline}  \begin{document}  \begin{center} \fboxsep1mm     \begin{animateinline}[autoplay,loop]{2}     a     \newframe         b     \newframe       c                      \end{animateinline} \end{center}  \end{document}   Remark   The animation is not visible in all PDF viewers. It surely works with a current Adobe Reader.


For example, this question might be offtopic. But where it is not?

Is SE Q&A format relevant for "identification of seldom physical objects observed in real world"?  Questions like "I do not know function of this object (picture) - which purpose does it have?"  In many cases I suppose these question could have civil engineering or handcraft i.e. cultural/historical background. In second case "SE history" might be okay. For first case, I do not know.


After completing the question found below, I realized that my calculations (see farther down) are based on the assumption that n, the number of observations, is very large, and that this is not actually stated in the information given in the question... If n were rather small, let's say 3 observations, then the proportion of observations in the sample which are not equal to 0 is not necessarily alpha+alpha=2*alpha because, with only 3 observations, it's likely that there may not even be any observations in the sample which are not equal to zero... But, if my method is not the way to go, then how is this question solved?

How do I show that 0.5Y in part (a) down below is an unbiased estimator of alpha? If n, the number of observations, is very large then Y would equal to alpha+alpha=2*alpha an then 0.5Y=alpha so E(0.5Y)=E(alpha)=alpha but the size of n is not stated so how is this question supposed to be solved?


Let's say I have the following class:  public class SomeClass<TSource> {       private Model _model;       // ...       public void SomeMethod()      {          // ...          TSource instance = Activator.CreateInstance(typeof(TSource), _model);          // ...      } }   And then I have this class:  public class OtherClass {      public OtherClass(Model model)      {          // ...      } }   If I do the following, everything's fine:  SomeClass<OtherClass> someClass = // .... someClass.SomeMethod();   But what if OtherClass has a parameterless constructor, or any constructor different than the stated?  Everything will compile just fine, but when creating the instance a runtime exception will be raised.  Is there a way to enforce the use of a certain constructor on every class that will be used as a generic argument to SomeClass<> ? (Like a generic constraint)

Is there a way of forcing a (child) class to have constructors with particular signatures or particular static methods in C# or Java?  You can't obviously use interfaces for this, and I know that it will have a limited usage. One instance in which I do find it useful is when you want to enforce some design guideline, for example:  Exceptions They should all have the four canonical constructors, but there is no way to enforce it. You have to rely on a tool like FxCop (C# case) to catch these.  Operators There is no contract that specifies that two classes can be summed (with operator+ in C#)  Is there any design pattern to work around this limitation? What construct could be added to the language to overcome this limitation in future versions of C# or Java?


I want to know the octal expression of the linux file permission command:  -rwxr-xr-t

Say I have the following output from ls -l:  drwxr-xr-x 2 root root 4096 Apr  7 17:21 foo   How can I automatically convert this to the format used by chmod?  For example:  $ echo drwxr-xr-x | chmod-format 755   I'm using OS X 10.8.3.


Is the Ubuntu touchscreen driver compatible with MSI Creator 15 ? I will buy MSI CREATOR 15 A10SDT-491TR, the most important point for me is the smooth operation of the touch screen with UBUNTU. Has anyone tested it before?

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


I just got to this question and I became a question mark. I wonder if anyone can help me with this one, because I don't even know how to begin to tackle this problem.  The question:     Prove the formula $\sum_{k=1}^n k\binom{n}{k} = n \cdot 2^{n-1}$ for all   integers $n > 0$. We accept a proof based on manipulations of formulas   and do not demand a proof by mathematical induction here.   Hint: Write out the first few terms in the sum $\sum_{k=1}^n k\binom{n}{k}$ and factor out $n$. Then use the formula $\sum_{j=0}^m \binom{m}{j}  = 2^m$ that is valid for all non-negative integers $m$, particularly $m = n−1$.  Please help. I don't understand it.

Can someone explain how combinatorial proofs work?  I've included an example questions that's been giving me a hard time.  Any insight on the topic would be great.  $$\sum_{k=1}^{n}k{n \choose k} = n2^{n-1}$$  Another one:  $${2n \choose 2} = 2{n \choose 2} + n^2$$  The solution says:  LHS: Pick two people from a pool of n men and n women. RHS: Pick two women, pick two men, and pick one of each.  But I don't see how this applies.  How does $n^2$ show that we're picking "one of each?"  Thanks for the help :)


A program I am using spits out LaTeT tables in LaTeT files (outreg2 command from STATA), which I run using texify to make pdfs of the tables. I crop these tables (using pdfcrop) and embed them elsewhere. However, the pdfs include page numbers, which prevent pdfcrop from cropping directly around the table. I need an automatic way to remove the page numbers before cropping. I want to insert the command \pagenumbers{gobble} into the LaTeX code to automatically remove the page numbers.  I believe  texify --pdf --texinfo="\pagenumbering{gobble}"  filename.tex   should work. It does not. No exception pops up, but the page number remains. I cannot find documentation anywhere showing examples of using the --texinfo option to splice LaTeX code into the file before running the LaTeX file to create a pdf.  How should I properly use the texify command? Or is there another way to conveniently splice in \pagenumbering{gobble} before running texify?

A program I am using spits out LaTeX tables in LaTeX files (outreg2 command from Stata), which I run using texify to make pdfs of the tables.  I crop these tables (using pdfcrop) and embed them elsewhere.  However, the pdfs include page numbers, which prevent pdfcrop from cropping directly around the table.  I need an automatic way to remove the page numbers before cropping.  I want to insert the command \pagenumbers{gobble} into the LaTeX code to automatically remove the page numbers.    I believe   texify --pdf --texinfo="\pagenumbering{gobble}" filename.tex   should work.  It does not. No exception pops up, but the page number remains. I cannot find documentation anywhere showing examples of using the --texinfo option to splice LaTeX code into the file before running the LaTeX file to create a pdf.   How should I properly use the texify command?  Or is there another way to splice in  \pagenumbering{gobble} before running texify?


I just need a quick help with my toString. This involves playing cards.  public class Card {   //Data   private int rank;   private char rank2;   private char suit;    //more codes (constructor etc.)    //toString     public String toString ( )     {     if (rank == 11)         rank2 = 'J';     else if (rank == 12)         rank2 = 'Q';     else if (rank == 13)         rank2 = 'K';     else if (rank == 14)         rank2 = 'A';     else         return rank2 + suit; // <----error here.     }   I am trying to figure out how to return a rank and a suit. For example, if someone were to input 11 for the rank and 'S' for the suit, then I should return a JS. However, I am running into an error:     "error: incompatible types: int cannot be converted to String"

How do you concatenate characters in java? Concatenating strings would only require a + between the strings, but concatenating chars using + will change the value of the char into ascii and hence giving a numerical output. I want to do System.out.println(char1+char2+char3... and create a String word like this.  I could do   System.out.print(char1); System.out.print(char2); System.out.print(char3);   But, this will only get me the characters in 1 line. I need it as a string. Any help would be appreciated.  Thanks


It's not hugely important because this answer will be gone soon enough...  I just  on the SO low quality review queue. Either something has a spasm (and is buggy) or this user really really really meant what he said:

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


I've got difficulties finding the radius of convergence of $\sum_{n=1}^\infty n!x^{n^2}$. I've already tried presenting it as $\sum_{n=1}^\infty b_n x^n$, where $b_n = (\sqrt{n})!$ if $n$ is a square and $b_n=0$ otherwise. I wanted to use the Cauchy–Hadamard formula and ended up with something like this: $$\frac{1}{R}=\limsup\limits_{n\rightarrow\infty}\sqrt[n]{\lvert b_n \rvert} = \lim\limits_{n\rightarrow\infty}\sqrt[n]{(\sqrt{n})!}$$ And I'm not sure if it's correct. Even if it was, I wouldn't know how to calculate this limit.

The question is to calculate the radius of convergence of $\sum\limits_{n=0}^\infty n!x^{n^2}$.  I dont know how to calculate R.O.C for such type of questions involving $n^2$ as power of x. How do we do this? Any help appreciated.


Let $X$ be a locally compact, Hausdorff, second-countable space, and let $C(X,\mathbb{C})$ the space of continuous, complex-valued functions over X endowed with the uniform norm.  Is $C(X,\mathbb{C})$ separable?

In the post  , it is argued that if $X$ is second countable and locally compact Hausdorff, then $C_{0}(X)$ is separable. Is it also true that $C(X)$ is separable under the same hypotheses?


I'm curious why do those kit lenses and 50mm primes, plus some zooms including all telephoto glasses have their aperture controlled electronically by the camera and some of them lack the aperture control ring? Is it for the automatic exposure controls?  I want to shoot in manual mode.

Maybe I'm wrong, but I notice that Nikon's newer lenses don't have an aperture ring. For example, an older AF 35 mm f/2D is now replaced by AF-S DX 35 mm f/1.8G, or AF 50 mm f/1.8D is replaced by a newer AF-S 50 mm f/1.4G.  I never used a D-type lens, but I believe that it is much easier to rotate the aperture ring on the lens than pressing a specific button then rotating the wheel on the DSLR body when you need to adjust the aperture (and it always annoyed me to do it this way, since I often change aperture and I can't do it while keeping the camera at my face with a finger on a shutter button).  So why is the aperture ring removed more and more from the Nikon lenses?


I'm using android studio and my app has 3 pages with 2 spinners, one on each of the first two pages. I'm able to get the value of the selected item from both of those using String moodPicked = getIntent().getStringExtra("moodSelect"); String genrePicked = getIntent().getStringExtra("genreSelected");  and I'm able to set the text of my title with both of those variables using playlistTitle.setText("Here is a " + moodPicked +" playlist for " + genrePicked + " lovers");  Which if the user selects happy / pop from the two spinners it will return Here is a Happy playlist for Pop lovers I also have another textview field where I'm playing to display text based off what choices the user picked and im using the code  public void selectPlaylist(){                   String moodPicked = getIntent().getStringExtra("moodSelect");         String genrePicked = getIntent().getStringExtra("genreSelected");          if (moodPicked == "Happy" && genrepicked == "Pop"){               playlistText.setText("happy / pop playlist") }  }  But when I call the function after choosing "happy" and "pop" it only shows up in the playlistTitle, not the playlistText. I've double checked everything was spelled correctly, and took the variables out of the if statements and it's able to read the string. I'm not sure how I can get it to properly read the variables within the if statement and al help would be appreciated. Thanks!

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I need to remove [quote] tag while keep content, however I tried many times but don't know why I can't select content between them.  [b]List of questions[/b]  [quote] 1. Questions 1 2. Questions 2 3. Questions 3 4. Questions 4 5. Questions 5 [/quote]   This regex works  \s*\[b\](.+?)\[/b\]\s*\[quote\]   While this code doesn't work  \s*\[b\](.+?)\[/b\]\s*\[quote\](.*?)\[/quote\]   I appreciate any helps.

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


I recently updated my iPhone 5 to iOS 9.3 and there is a new functionality introduced as "Night shift" option.  However it is not available on my iPhone 5 Any thoughts as to why?

iOS 9.3 was released yesterday to the public and I have installed it on my iPhone 5c. What I'm wondering is, why is Night Shift not available for my phone? Is it the architecture of the processor, something to do with the screen, or perhaps something else?


I'm in a cave and when I mine for redstone and gold it destroys it, but it won't let me pick it up. I'm using a stone pick axe and I'm on the pocket edition for iPad in survival mode. I'm playing it with my sister.

Normal blocks I can mine fine, but when it comes to diamond and gold ores, the block just gets "destroyed" (as in you can't pick it up). I'm playing on multiplayer with no spawning monsters.


I noticed a purple-ish outline around my photo, however, I couldn't remove it through the Lightroom Defringe option. I have tried the fringe selector and playing around with the slider, nothing seems to work.

I have just bought a Nikon 50mm f/1.8D prime lens.  I took this picture (leg of my glasses frame on a mouse, and a LED desk lamp is on top of it) : f1.8, 1/80s, ISO 200   The purple fringing is right in the middle of the picture. Does it happen very often to this lens?


I was checking out Stack Apps and wanted to log in. I clicked "an account"…    …and the site returns a 404 Page Not Found:    Apparently the "add account" link is linking to http://site-name/help/users/login, which is an invalid destination. It should actually be http://site-name/users/login.  This is happening across the network, reproduced on Stack Apps, Stack Overflow, and Meta.

When I am viewing a question while not logged in, it shows, under the question:     add comment (requires  with )   However, the link to  is dead.      Here's a screenshot to the result 404 page:    Same 404 page on   Chrome (Normal Mode / Incognito Mode) Opera 12.16 (Private Browsing Mode) IE 10 (Normal Mode / InPrivate Mode)


I've tried to make a custom moderncv theme, as I didn't want my CV to look like all the others Latex-made CVs.  But I'm facing a (minor) problem: pdflatex doesn't recognize it, and I get a ! LaTeX Error: File 'moderncvstylecustom.sty' not found., even though this file exists and is in the same folder as the other moderncv themes (which is /usr/share/texmf-dist/tex/latex/moderncv/ in my case). I have to supply it the absolute path to this file every time, and it gets annoying after a few compilations.   Has anyone an idea on how to fix this? Thanks in advance, viod

I know how to define a package or a class, but how do I make it available (to myself) at all times?  Say I have the package file commonstuff.sty (or myprettyclass.cls), that I want to be able to include in any .tex file I create on my computer. Where do I put it? Do I need to run some installer on it, or is it enough to keep it in a certain folder?  Note: I know I can just place it in the same folder as the .tex file, but that's not what I'm after here. I'm looking for a way to "install" the package centrally on my computer.


I was doing my program for a school project when I encountered a problem which I'm unable to understand after trying many different methods to resolve it. I have a function that does a simple mathematical operation like this:  def pikkus(kogupikkus, loimed):     summa = loimed * (kogupikkus * 1.2 + 0.5)     return (summa)   Now, when giving the function numbers 4.9 and 140 (in this same order), it returns me a number which isn't true, because 4.9 * 1.2 + 0.5 = 6.38 and 140 * 6.38 = 893.2, but all I get is 893.1999999999999, but it's not even true, try doing 140 * 6.38 yourself - it's exactly 893.2 PS! It has to be a float number, it's in my project instructions that it can't be rounded to an integer, so answers like "just put a round() infront and you are good" don't help me at all.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


If I downloaded the , do I just download the .tar file and extract it to /usr/lib/jvm/?

I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle?  Before release Java 7, I followed  to install Java 6.  But it doesn't work for Java 7. There is no package sun-java7-xxx. How can you install Java 7?


I made a mistake by plugging my external WD hard drive with my GoPro link (they look like the same). Everything was working, and, during a file transfer, my hard drive disappeared from my MacBook Pro, then, impossible to mount it.  I bought a new box to put my hard drive, nothing to do. It appears in the Disk utilities, it appears with the Terminal command diskutil list.  I tried diskutil info /dev/disk2 and the result is the following :  Device Identifier:        disk2    Device Node:              /dev/disk2    Part of Whole:            disk2    Device / Media Name:      WDC WD75 00AAVS-00D7B1 Media     Volume Name:              Not applicable (no file system)     Mounted:                  Not applicable (no file system)     File System:              None     Content (IOContent):      FDisk_partition_scheme    OS Can Be Installed:      No    Media Type:               Generic    Protocol:                 USB    SMART Status:             Not Supported     Total Size:               750.2 GB (750156374016 Bytes) (exactly 1465149168 512-Byte-Units)    Volume Free Space:        Not applicable (no file system)    Device Block Size:        512 Bytes     Read-Only Media:          No    Read-Only Volume:         Not applicable (no file system)    Ejectable:                Yes     Whole:                    Yes    Internal:                 No    OS 9 Drivers:             No    Low Level Format:         Not supported   And the command diskutil list disk2 :  /dev/disk2    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:     FDisk_partition_scheme                        *750.2 GB   disk2    1:             Windows_FAT_32 My Book                 750.2 GB   disk2s1   I don't know what I can do... it's been 6 months I have this problem, I tried everything (everything I found out) but nothing worked. There are all my virtual life inside, and professional one, I would love to recover it.  Thanks by advance and sorry for my English ;)

I am trying to recover data from a bad Seagate 1TB hard drive in a 2010 iMac. One day the iMac wouldn't boot (stuck at gray screen on startup). I removed the hard drive from the iMac and connected it to a MacBook using a 3.5" HDD to USB adapter. The hard drive wouldn't mount but it did display in Disk Utility that that there were 2 partitions on the disk. I tried to run Disk Warrior and it showed thousands of errors but still wouldn't mount. At this time the hard drive only show one partition in Disk Utility. Next I tried putting the hard drive in a desktop PC and running Spin Rite - which then gave me several division overflow errors (even with running Spin Rite with a newer version of DOS). The SMART status on the drive reports that the drive has had failures and HD Tune referenced the drive had once hit 59 degrees celsius. Disk Utility gives me the following message when running a pair: Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.  Overall, the hard drive spins up and sounds OK - there are no clicking noises but the hard drive won't mount and displays as a light gray "Macintosh HD" in disk utility. Any tips or advice on how to recover data on this drive would be greatly appreciated! Are there any other tools I can try before calling it quits on this drive?


I hope that I translated it correctly, correct me if I'm wrong :)  Let $V_1$ and $V_2$ be sub spaces of $L$.  Prove that $V_1\cup V_2$ is a vector sub space if and only if $V_1 \subseteq V_2$ or $V_2\subseteq V_1$  I was thinking of assuming it is correct and taking $2$ vectors from each subspace such that: $$ t_1 \notin V_2 , t_2 \notin V_1 \\ t_1,t_2 \in V_1 \cup V_2 $$ Then : $$t_1 + t_2 ∈ V1$$  This is where I am unsure how to explain my moves...  The teacher said it is incorrect, do you guys have any hints then, perhaps on how to refine a better mathematical 'language of reasoning' too?  I am new at this whole math world :)  Many thanks.

I'm having a difficult time understanding this statement. Can someone please explain with a concrete example?


whenever I try sudo apt-get update it give me an error. Here is what it says. (including the download). Ign:1 http://ppa.launchpad.net/ehoover/compholio/ubuntu focal InRelease Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:3 http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu focal InRelease Hit:4 http://ca.archive.ubuntu.com/ubuntu focal InRelease Hit:5 http://ca.archive.ubuntu.com/ubuntu focal-updates InRelease         Err:6 http://ppa.launchpad.net/ehoover/compholio/ubuntu focal Release   404  Not Found [IP: 91.189.95.85 80] Hit:7 http://ca.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:8 http://ca.archive.ubuntu.com/ubuntu focal-security InRelease Reading package lists... Done E: The repository 'http://ppa.launchpad.net/ehoover/compholio/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I recently visited the , and observed an anomaly! If you scroll down to the bottom of the page, you will see it on the left bottom of the page. The navigation div on the left begins to float over the footer div when one scrolls past the last row of team members. This animated GIF might help see it clearly.    The correct behaviour I think is the navigation div also moves up along with the last row of team members as it scrolls past that row.

Here is a screenshot from  page, with the floating sidebar: (all good so far)        After I scroll down to footer it just combines both:        Can it please be fixed?


Prove that $$a\equiv b\pmod{n}\implies r_n(a)=r_n(b),$$ where $r_n(h)$ means the remainder of $h$ in the division by $n$.     I have seen this proof:  By the division algorithm, $a=qn+r_a$ and $b=cn+r_b$. Then $$a-b=qn+r_a-cn-r_b=(q-c)n+(r_a-r_b).$$ By hypothesis $a\equiv b\pmod{n}$ i.e. $n\mid a-b$, so it must be $r_a-r_b=0$ i.e. $r_a=r_b$. $\square$    My problem is in the last part: "so it must be $r_a-r_b=0$".  If $n\mid a-b$ (I understand this) then there exists a $k\in\Bbb{Z}$ such that $a-b=kn$. Hence we would have: $$a-b=\;\;\;\underbrace{kn=(q-c)n}_{\color{red}{\text{How can be equal $k$ and $q-c$?}}}+(r_a-r_b).$$ Thanks!

Let $a$, $b$, and $n$ be integers with $0 \le a \lt n$ and $0 \le b \lt n$. Suppose $a \equiv b \pmod n$. Then $a-b=0$ and $a=b$. Why does the congruence of two non negative integers imply that they must be equal?


I just want to ask what is the Android SDK app for ubuntu OS? I want to develop and practice making Android Apps.   Thanks!

What all needs to be done to install Android SDK / ADT Bundle on Ubuntu?  Each of the steps in the answer was found on some different forum as I encountered obstacles getting started with my Android SDK and posted questions in appropriate forums thereafter. So I thought this would be useful in that it is a one stop solution available, in case one ever needs to re-install Ubuntu and install the Android SDK / ADT Bundle from scratch!


My projectfolder consist of several 'real' files and is full of files I don't know. There are some cleaning procedures which deletes specified endings after a run but I am not sure which filetypes I can delete without risk of some sort of data lost?  In my folder I have the endings:  - .aux - .bbl - .bcf - syntex.gz - .blg - .out - .pgs - .toc   Can I just delete all of them or will my project is getting corrupt then?  EDIT.... and without receiving speedlost in a new compilation

In addition to the .tex and .dvi or .pdf files, TeX/LaTeX/ConTeXt produces and uses lots of other files. What do they do? Which ones are used to create the document and which ones are automatically created by the compiler. What files can I safely delete?


When a  makes a successful hit with spellstrike, it is ambiguous whether the weapon damage resolves before or after the effects of the spell.     If successful, this melee attack deals its normal damage as well as the effects of the spell   A  asks whether the order is specified by the rules, which it is not, and the accepted answer recommends that the GM arbitrate. I am asking whether the magus can, at the same time they make the spellstrike, choose this order.  There are scenarios where it would be advantageous to resolve the weapon damage before the spell, and vice versa:    Example 1: Alice the magus uses spellstrike to deliver  against Bob, who is at low HP.  Depending on how much HP Bob has left, Alice would regain some temporary HP from the vampiric touch effect:     You can’t gain more than the subject’s current hit points + the subject’s Constitution score (which is enough to kill the subject).   If the weapon damage resolved first, Bob would have less HP remaining before the vampiric touch resolves, and Alice would get less temporary HP. Whereas if the vampiric touch resolves first, Alice could get a lot of temporary HP, and then the weapon damage would resolve.  So in this case, Alice wants the spell effect to resolve before the weapon damage.    Example 2: Alice's scimitar is both  and , and she wants to use spellstrike to deliver some spell that involves a saving throw.  If the weapon damage resolved first, Bob might be shaken, and take a -2 penalty to that saving throw, which means Bob is more likely to fail against the spell. So in this case, Alice wants the weapon damage to resolve before the spell.    Can the magus choose which one resolves first? Or does this power lie with the GM? Or is there some errata or FAQ that I have overlooked?

When using the Magus Spellstrike ability, which happens first, the spell or the weapon damage?


Find the value of: $$I=\int_{\pi /4}^{65\pi /4} \frac{dx}{(1+2^{\cos x})(1+2^{\sin x})}$$  First, I rewrote the limits as the function goes from $\frac{\pi}{4}$ to $\frac{9\pi}{4}$. Now the integral with the reduced limits has the value $\frac{I}{8}$. I used standard properties of definite integrals like converting $f(x)$ to $f(a+b-x)$ where $a,b$ are the lower and upper limits of the integral. Considering symmetry of the trigonometric functions, I believe I can even change the limits to $0$ to $2\pi$. However, this does not simplify the problem as much as I would like. Please advice.


I need to access a private variable from an anonymous function. This anonymous function is set by the following:  coolObject = new (function(){     this.public = "public";     var private = "secrets";      // General functions here, no getter or setter for private })();   I can easily read and write to coolObject.public by doing console.log(coolObject.public) or coolObject.public = "newValue", but how can I do the same to the private variable? Another thing is that I cannot add code to the constructor, coolObject will always be initially defined like this.  So, to sum everything up, is there a way I can access a private variable from a anonymous function in JavaScript, and if so, how?  Edit: I have tried creating getters and setters by doing coolObject.getPrivate = function(){return private;};, but that doesn't work.

Is there any way to make “private” variables (those defined in the constructor), available to prototype-defined methods?  TestClass = function(){     var privateField = "hello";     this.nonProtoHello = function(){alert(privateField)}; }; TestClass.prototype.prototypeHello = function(){alert(privateField)};   This works:  t.nonProtoHello()   But this doesn’t:  t.prototypeHello()   I’m used to defining my methods inside the constructor, but am moving away from that for a couple reasons.


I am needing to vertically and horizontally align the text to the center of the nav div. I will provide both the HTML and CSS down below.  Here is the HTML portion of the code.      <title> Dom Chronicles </title>

Home

Music

Blog

Shop

Contact

      Here is the CSS portion of the code.  @font-face  { font-family: Mager; src: url(fonts/ElegantLux-Mager.otf);  }  #header     { width: 1000px; height: 400px; margin: 0 auto; background-color: gray; }  #space  { width: 1000px; height: 10px; }  #nav    { width: 1000px; height: 50px; margin: 0 auto; background-color: gray; color: black; font-size: 25px; font-family: Mager; }  #nav li { list-style: none; display: inline; text-align: center; }  #nav li:hover   { opacity: .6; }

Best way to center a <div> element on a page both vertically and horizontally?  I know that margin-left: auto; margin-right: auto; will center on the horizontal, but what is the best way to do it vertically, too?


What is the physical principle behind the following behavior: When left with the remainder of a bag of chips, or cookie crumbs, etc., when shaking this container, the smaller particles will settle to the bottom and the larger particles will rise to the top

Most of the time when I mixed different nuts in a bowl, I observed that the big Brazil nuts were always on top while the small peanuts settled near the base. No matter how you take it, if the big nuts are put at the bottom and then the small nuts are poured, then also after some time the big ones will come to the top. Will not the gravity attract those big nuts more and eventually will they not remain at the base? But it doesn't happen!   I googled it and found the term Brazil-nut Effect but couldn't find any proper explanation. What is the physical explanation for this effect?


I am newbie in C++ 11. I found this term of explicit constructor. However I did not find any good explanation on explicit constructor. Can you please explain in what scenario I should use explicit constructor?  Thank you in advance.

What does the explicit keyword mean in C++?


Let $G$ be a finite group, and let $H$ be the subgroup generated by the set of elements with odd order in $G$, we will denote this set as $S$.  Prove that $H$ is normal in $G$ and that $G/ H$ is a group of order $2^n$.  My attempt:  Since $H$ is generated by $S$, $H$ is normal in $G$ $\iff$ $gsg^{-1} \in H \space \forall s\in S$.  and that's where I'm stuck, I cant find the way the use the property of the elements with odd order.   regarding the second part, since $|G| = |G:H|\cdot|H|$ we have to show that $\frac {|G|}{|H|} = 2^n$.  Any guidance will be appreciated.  Thanks.

Let $G$ be a finite Group, let S=$\{s_1,s_2,s_3 ... |s_i\in G $ has odd order $\}$. Let $H=\langle S\rangle$ The question is:   Prove that $H$ is normal subgroup of $G$. prove that $G/H$ has order $2^k$ for $k \in \mathbb{N}$.   I tried look at $$gHg^{-1}$$ but can't understand why $gHg^{-1} \subseteq H$ probably because I cant understand what unique in H. Thanks much for help.


I am confused about Magnetic force whether it does work or NOT because i think that the battery does the word and the magnetic force only redirects the work done by battery into some displacement etc. but somewhere i read that work done by magnetic force is taken into account . so I want to ask whether it does some work or not???

I learned that the force from a magnetic field does no work. However I was wondering how magnets can be used to pick up pieces of metal like small paperclips and stuff. I also was wondering how magnets can stick to pieces of metal like a refrigerator?


I have a nested fraction on the right-hand side of an equation. I use the LaTeX code as follows to produce the equation:  \begin{equation} \frac{1}{T_{ex}} = \frac{\frac{1}{T_{kin}}+\left(\frac{A_{ul}}{C_{ul}}         \frac{T_{cmb}}{T_*}\right)\frac{1}{T_{cmb}}}{1+\frac{A_{ul}}{C_{ul}}     \frac{T_{cmb}}{T_*}}. \end{equation}   However, the fractions in the denominator and numerator of the main fraction appear too small on a regular A4 page. How can I make them larger while preserving the size of text on the left-hand side.

What is best practice for typesetting fractions with large objects in the numerator and denominator?  For example, fractions with limits, integrals, summations, etc... cause the expressions to look contracted and somewhat odd.  I understand that it is probably best to leave this as is when writing mathematics inline, but as a stand-alone fraction I feel it would be much less distracting if the symbols were typeset at normal size and the fraction was given more height in which to place itself.  Are there standards (for pure mathematics) regarding this problem? And what are the options - if it's generally permitted - for expanding the fraction size to incorporate large objects?    Example  \frac{\sum_{i=0}^{n} i^2}{\iint_{D}\frac{\partial (x,y)}{\partial (u,v)}\,\mathrm{d}u\,\mathrm{d}v}   Both the summation and the integral look somewhat cramped.


I've seen a few threads on whether or not Thanos would have been able to defeat Dormammu in single combat. It seems to be mostly speculation, but it got me thinking.  Did Dormammu have a 50/50 chance of also      perishing with Thanos' snap? Or is he a being outside the scope of that is defined as "life"?   Also, what about the rest of the creatures on Earth?      Were half the cats and dogs wiped out too? What about insects?   In Avengers: Infinity War we only really got to see      humans fall victim to the snap, but Thanos explicitly said "half of all life", and it didn't seem to be species-specific.   More importantly, if Thanos killed       half of all animals on Earth,   that would go a long way towards critically messing up the planet's entire ecosystem. Possibly beyond repair.

We know that Thanos' plan was to       instantly destroy half of all life in the universe    His plan doesn't appear to apply to lower or non sentient life forms      if it did half the trees in the final Wakanda scene would have disintegrated too   Does his plan apply to all beings more powerful than himself?


I have been trying to create a program and right now I have trouble with the Scanner in java because in the program the user can input a String and press enter to input it and if the user inputs "exit" like so then the Scanner will close and The loop stops, but It just works for the first Input and gives out a black line every time and if you do enter exit it writes out exit but continues.  here is a code snippit:      public static void main(String[] args) {     int i = 0;     Scanner input = new Scanner(System.in);     while(input.hasNext() && i<1){           System.out.println(input.nextLine());         if(input.nextLine() == "exit"){             i++;         }     }     input.close(); }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Imagine such situation: We have an empty balloon. We put a long, narrow tube into this balloon and we fill it with water.  Then, the volume (and surface) of the balloon will start to increase. The pressure in the balloon will increase, too. I conducted this reserach. I messured the height of the water in the tube (starting at the center of the balloon) and then the circumference of the balloon. Then, I calculeted diameter and pressure in the balloon  $d = L/ \pi $ (m)  $p = 10^5 + 1000 gh$ (Pa)   Then, I plotted the relation between diameter and pressure    What role in this project did surface tension play? How can I consult it to the math?

I see numerous websites talking about how a small balloon is at higher pressure than a big balloon. This is a fun counter-intuitive factoid... unless it isn't a fact at all.  Young-Laplace gives  $$T = \Delta p \frac R2 $$  Which means that for a given tension, increasing the radius does decrease the pressure. But why would the tension be constant? A latex balloon is like a 2D spring, right? So the tension in a inflated spherical balloon should be proportional to the surface area, correct?  $$T \propto R^2 $$  But this gives  $$\Delta p \propto R$$  Which means the bigger the balloon, the higher the internal pressure. Which, again, would be the normal intuition - but it would burst the bubble of some simplified explanations. (har har)


I was reviewing function declaration and function expression, separately, no problem  function add(a,b){return a+b}; var add2 = function(a,b){return a+b}; add(1,2)// 3 add2(1,2) // 3   But if I try to combine them the function declaration gets ignored  var add3 = function add4(a,b){return a+b} add3(1,2) // 3 add4(1,2) // ReferenceError: add4 is not defined   I have no real case where I would need this type of declaration but I'm trying to understand why it wouldn't work  Anybody knows the right bit of literature ?

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


"Why has this happened to me today?", I thought.

The American convention in quotations is (typically) to place punctuation inside quoted text. But I always run into situations where the punctuation of the quote interferes with the punctuation of the sentence. How would you punctuate this (American, non technical)?     When my friends ask, "What do you want for your birthday?", I never know how to respond.   It seems odd to place the last comma outside the quote simply because of the question mark. Is that the preferred (i.e. most often accepted) standard?


I installed Ubuntu successfully by using acpi=off and nolapic. When I booted into the installed operating system, all that the screen showed was several multi colored bars (This must have been my 10,000th installation attempt.)  I decided to get rid of Ubuntu by simply deleting the partition and re-partitioning it as a blank drive. This caused an error on boot.  error: unknown filesystem. grub rescue>   I reinstalled Ubuntu so I could get Grub working again and boot into Windows 7, but I want grub and Ubuntu gone for good.  I am running the MSI GT683DX with   IntelCore i7-2670QM NVIDIA GTX 570m / 1.5 GDDR5 750GB HDD 7200 RPM 12GB of DDR3 RAM   I also ran the Windows startup repair tool several times. I cannot access my full Ubuntu installation (Although I can get to a terminal through live USB I would prefer to just solve this in Windows).  I tried to run sudo apt-get install boot-info-script but I get  $ sudo apt-get install boot-info-script Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package boot-info-script     $ sudo fdisk -l Disk /dev/sda: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x9401091d     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    23207935    11602944   27  Hidden NTFS WinRE /dev/sda2   *    23207936    23412735      102400   27  Hidden NTFS WinRE /dev/sda3        23412736   888453119   432520192    7  HPFS/NTFS/exFAT /dev/sda4      1449523198  1465147391     7812097    5  Extended Partition 4 does not start on physical sector boundary. /dev/sda5      1449523200  1465147391     7812096   83  Linux  Disk /dev/sdb: 16.0 GB, 16008609792 bytes 255 heads, 63 sectors/track, 1946 cylinders, total 31266816 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          32    31266815    15633392    c  W95 FAT32 (LBA)   Partition 4 is 276gb of unallocated space. sda5 is obviously the ubuntu installation. I did not use a swap space partition because I only installed ubuntu so I could boot into windows.  sda1 is the recovery I believe.

I have Windows 8 pre-installed, and then I installed GRUB with Ubuntu. Ubuntu is not my thing, so now I want to remove it along with GRUB. From what I have learned, with UEFI, GRUB does not overwrite the windows bootloader in the EFI partition and is stored elsewhere. How would I remove GRUB and make my PC use the Windows bootloader instead? It should be noted that I created a separate /boot partition when installing Ubuntu.


For the past couple of weeks I've bene trying to place a repeating hexagon pattern onto the top of a cylinder.  I've watch multiple tutorials on using boolean modifiers, but I always get a few tiles missing along with artifacts. I've used the boolean modifier with success to cut out the cylinder's surface first (no tiles hanging off into space), but that's as far as my success has gone.  I've joined vertices on opposite sides of the cylinder to create equal density mesh, but I oddly enough seem to lose more tiles doing that successfully add to the cylinder. My goal is to 3D print the final image so my little hut will have a tiled floor.  Any suggestions or even tutorials to watch would be greatly appreciated.

I’m trying to create a circular shaped grid, similar to the one in the pic. That’s my first attempt, created by arranging several cylinders with an Array modifier and then cutting the holes via the Boolean modifier.  Now you will probably notice that it looks not elegant in any way. I’d like to have the holes perfectly arranged and in a correct order, so that there are no half holes at the border of the mesh, for example.  How would you do this?   I tried working with Dupliverts but that didn’t work out well.


I am trying to add a function to my JOIN condition in an MS Access query.  As a simplified example, consider that I have:  tblChildand tblParent and tblGrandparent  tblChild has both a nullable ParentId and GrandparentId depending on which one is known. I'm trying to write a query to take the more specific relationship provided. If this were TSQL it would be:  SELECT     columns FROM     tblChild AS c LEFT OUTER JOIN     tblParent AS p         ON p.[Id] = c.[ParentId] LEFT OUTER JOIN     tblGrandparent AS gp         ON gp.[Id] = COALESE(p.[GrandParentId], c.[GrandParentId])   but I can't figure out how to get a COALESCE style function into the JOIN condition in Access. Here is what I would have expected to work:  SELECT     columns FROM     (tblChild AS c LEFT OUTER JOIN     tblParent AS p         ON p.[Id] = c.[ParentId]) LEFT OUTER JOIN     tblGrandparent AS gp         ON gp.[Id] = Nz(p.[GrandParentId], c.[GrandParentId])

In T-SQL, you can do this:  SELECT ProductId, COALESCE(Price, 0) FROM Products   How do you do the same thing in Access SQL?  I see examples for doing it with Nz in VBA, but I'm looking for the SQL equivalent.  Thanks.


We know that if you can trace wizarding blood in your ancestry three generations, you are pureblood. If you can only trace that back three generations, you are a half blood. If you have Muggle parents, you are a Muggle-born. But what if you have Muggle-born parents? Than what is your blood status?

I was checking on something in the Harry Potter wiki and saw Harry listed as "Half-Blood."  Both his parents were magical, but, as we know, his grandparents on his Mother's side were muggles.  This reminds me of the racially loaded terms like octoroon.  (In the south, you still hear those terms every once in a while.)  When there was still segregation, having only 1 great-grandparent of an ethnic group was enough to classify a person of that group.  So how far down the line did it go in the Harry Potter universe?  Just how many generations removed from a muggle-born would a person have to be before they're no longer classified as half-blood or something similar?


I need to do a few things which could be easily made with Drush commands, but I need to achieve them through PHP code inside my module, on an hook_update_N().  It seems to me that I need to use drush_invoke() but it doesn't currently exists when I tested in a devel block. I searched here and there how to include (safely) this function, but I had no luck on that.  I guess it is simple and my question could sound silly.   How can I use drush_invoke() in my code called from hook_update_N()?

Can any one please tell me how can I execute drush command from devel/php?  I can execute PHP codes from devel/php. But I don't know how can I execute drush command from devel/php. (As we know "devel/php" URL coming from devel module).  I have written some custom drush command for cron purpose. I can able to run those commands from command line.  > drush my-cmd or drush cc all or drush status , etc ... I can run it through command line.   Expecting some function as mentioned below to run from devel/php  some_function("drush cc all");


It's so natural using "the 90's" and similar to refer to decades in the 20th century. But what about 2000 to 2009? It feels strange to use "the ones" or even "the tens" for 2010 to 2019.

80s: the "Eighties"   90s: the "Nineties"   00s: the ???   For that matter, what is the second decade called? The "tens" just doesn't sound right.


I am trying to deploy a django app on a shared hosting. and i am currently facing issues deploying the app especially the mysql database. I have created the mysql database on the production server. But when trying to run manage.py collectstatic command i am getting the below attached error. I am assuming it has something to do with the mysqldb library.    I don't know how to go about this. Deploying this mysql database Which ip address should i put on the host part of the db config in the settings.py file. Is it my production server ip address?   Please bear with me i am new to django especially the deployment part. Can't find enough info on the django deployment documentations.  This is the error i am getting on my production server:      Traceback (most recent call last):   File "manage.py", line 10, in <module>     execute_from_command_line(sys.argv)   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line     utility.execute()   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute     django.setup()   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/__init__.py", line 18, in setup     apps.populate(settings.INSTALLED_APPS)   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate     app_config.import_models(all_models)   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models     self.models_module = import_module(models_module_name)   File "/opt/python27/lib/python2.7/importlib/__init__.py", line 37, in import_module     __import__(name)   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/contrib/auth/models.py", line 4, in <module>     from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/contrib/auth/base_user.py", line 49, in <module>     class AbstractBaseUser(models.Model):   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/db/models/base.py", line 108, in __new__     new_class.add_to_class('_meta', Options(meta, app_label))   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/db/models/base.py", line 307, in add_to_class     value.contribute_to_class(cls, name)   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/db/models/options.py", line 263, in contribute_to_class     self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/db/__init__.py", line 36, in __getattr__     return getattr(connections[DEFAULT_DB_ALIAS], item)   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/db/utils.py", line 212, in __getitem__     backend = load_backend(db['ENGINE'])   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/db/utils.py", line 116, in load_backend     return import_module('%s.base' % backend_name)   File "/opt/python27/lib/python2.7/importlib/__init__.py", line 37, in import_module     __import__(name)   File "/home4/techaven/mydjango/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 28, in <module>     raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

I am using Python version 2.5.4 and install MySQL version 5.0 and Django. Django is working fine with Python, but not MySQL. I am using it in Windows Vista.


PDFLatex uses an unused space in the previous page. I want to write where I am left, onto the last page but latex still does not skip this empty space left on the previous page. \end{figure} 1234567 \end{document}

How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference


.. or at least let me preview all suggestions first.  On one of the Stack Exchange sites I had a perfectly good answer, and somebody edited it so that it contained broken English and wrong answers. I don't care how much reputation the editor has, the OP should have the final say as to whether the edit is appropriate or not.   Or the OP should have the option of 'locking' his answer so that others cannot edit it, perhaps as an overall setting in their profile. I suppose it could be a matter of preference. Some people are much more diligent in their writing than others.

Locking of questions is currently in place, and is typically used in cases like halting edit wars. However, instead of locking an entire question and its answers, I think that it would also be beneficial to able to lock individual answers, leaving the question and other answers still active.  Some reasons why I think it would be useful:   If an answer falls prey to an edit war: Admittedly, I haven't actually seen this happen for an answer, just questions. But locking only the answer would be a helpful option in such a case. For specific use on MetaSO: There are a number of questions on MetaSO that have the form where the question is simply a container for a general class of feature request, with the answers representing the specific individual feature requests that are accepted or declined. For example, . Some of the retagging suggestions in the answers have been completed, and these are indicated with a "DONE" icon placed at the top (example ). However, the answer can still be edited, voted on, and commented on, which isn't really of any use now that the request has been filled. The answer could be deleted, but then there's no record of previously suggested and accepted requests. It would be nicer if the answer alone could be locked, freezing the editing, voting, and commenting so that it can simply remain there for posterity.   So, what's the community's take? Is this a useful/feasible feature request?    EDIT: As Kyle so adeptly pointed out with his answer, this feature is already enabled. In short, you pretty much can't do anything to a locked answer... unless you're a mod, in which case you can unlock it.  As a summary, here's what you can't do to locked answers:   Edit Up/downvote Flag Mark as accepted (I was kinda surprised by this one) Comment Upvote comments Flag comments


I'm trying to make a method to remove spaces in a given String. this is my code right now:  public class sorter {      public static String nameConvertion(String name) {         name = name.replaceAll("\\s","");         return name;     }        public static void main(String args[])     {          String name = "    123 123 123 123  ";         nameConvertion(name);         System.out.println(name);     } }   But it doesn't remove the spaces, what am i missing?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I didn't get answer from my question for EX:"" IN SQA, So can i post same question on Stack Overflow. Please help me... any how iam doing this for to get the answer.

It is possible to migrate a question from one Stack Exchange site to another by closing, but if I have a question that I think is on-topic for multiple Stack Exchange sites, is it OK to post it on both (multipost)?   For example, I have a question that's earned me the tumbleweed badge on SO and I'm not sure what the best thing to do with it is. It's about a web server so it might be answerable on Server Fault but it's really more of a programming thing, hence the posting the question on Stack Overflow.    Is there any way to make the question visible on multiple sites (crosspost) and then accept the answer wherever it came from?


I was trying to verify the iso image after dowloading the Discreete Linux.  I carefully followed the instructions from Discreete website:   That means that I dowloaded Discreete Linux 2016.01_Beta1 signature of the ISO image and Discreete Linux signing key (2016) as well as the .iso itself, and I left it all in the Dowloads folder. While executing the command I got the following mistake:  user@user-PC:~/Downloads$ gpg --keyid-format 0xlong --verify  Discreete_Linux_2016.1_beta1.hybrid.iso.asc  Discreete_Linux_2016.1_beta1.hybrid.iso gpg: Signature made Чт 08 дек 2016 09:27:53 GMT gpg:                using RSA key 0xBA146BB0759613AC gpg: Can't check signature: public key not found

I was trying to recompile and rebuild libevent2 source from oneiric on my natty server and I had a small error with gpg not being able to check signature  # dpkg-source -x libevent_2.0.12-stable-1.dsc gpgv: Signature made Fri Jun 17 07:12:50 2011 PDT using DSA key ID 7ADF9466 gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./libevent_2.0.12-stable-1.dsc   Any idea how to fix this warning?


I have a Nexus 5 with Ubuntu-touch 16.04.  I mistakenly removed the Desktop Apps app. I can't install it again, because the open store says that my phone doesn't support the app.  So how can I run Linux GUI apps, with libertine or natively?

do you have some informations about Ubuntu phone at the moment?  I saw few articles about Ubuntu Edge but I thought that it is dead. Also I saw for UBPorts with Ubuntu Touch.  I was really interested for project Ubuntu Edge. So my question, is there some idea of ubuntu phones in 2019 or everything is dead?


Lately I have come across a lot of "questions" that even on the most minimal level weren't questions.   They did not contain a single question mark.  They were rants or incomplete or assumed the audience would somehow know what the problem was.  I searched for duplicates here and only found questions on titles. I really don't care if the question is in the title or body, on top or at the bottom. But the absence of any question mark is a pretty clear warning sign that this is not a complete question. Disallowing posting such a non-question text block would at least give the poster a chance to reconsider his question and maybe clarify it before it gets closed.   Can we please not allow the posting of "questions" that don't even ask a question grammatically? Preferably with an explanation that the poster should include an actual question in their post.  Some more details:  SELECT avg([Score] * 1.0) FROM posts  WHERE posttypeid = 1  AND (charindex('?', [body]) = 0 AND charindex('?', [title]) = 0) AND creationdate > '2015-01-01'  SELECT avg([Score] *1.0) FROM posts  WHERE posttypeid = 1  AND (charindex('?', [body]) > 0 OR charindex('?', [title]) > 0) AND creationdate > '2015-01-01'   According to SEDE, questions with question marks score an average of 0.66, while questions missing a question mark score an average of 0.38. Significantly worse.   Granted, adding a random question mark would not have made them better, but reminding the poster that his question is sub-par might have had that effect. Maybe he would have improved it before posting.   As an example and to show that this is not a language, but a content issue, two recent examples:      Both might have been improved, if we had told them "hey, wait a second, what exactly is your question?" And even if both had thought "oh crap, my keyboard is broken, I have no question mark and cannot post.", then neither SO nor Workplace would have lost a quality question.

More than infrequently, opening posts on SO are not questions at all, in the very grammatical sense: They're just statements or vague musings (for instance ), and it's not clear what exactly is being asked (since nothing is technically being asked).  I always feel that it shouldn't be our job to construct a question from someone's undirected ramblings, and so this is usually a NARQ candidate for me.  I was wondering if we could add a very simple check that would count the number of literal question marks in a post and refuse to accept it if there are none. This could be accompanied by a small note on what a question should look like.  What do you think? Should we add this feature?  Update: Since people seem to get hung up on the details, I'd like to clarify that an entirely satisfactory alternative would be to pop up an overridable notice with a warning, like "Hello, you appear to be writing a question. Would you like help?", with a "No thanks" button to dismiss it and submit the post regardless.  Update 2: If you disagree that absence of a question mark is a strong signal that the question is poor, could you please provide examples of good, useful and appropriate questions that do not contain question marks? I've provided several additional examples of when the signal works in the comments, and more come up regularly, so I would appreciate to see some evidence of the contrary.


I imported an obj file and this is what I get. I cannot figure out how to solve this.

I have created a simple model here   When rendering it the end of it is cut off   How can I get the camera to render a longer distance?


I don't understand why I get this image result when i render through the render tab. It takes around 1 min to render and I get this image. Image of render wanted (shot through the quick render):  Image of what image I got when i press F12 to render  My render tab settings (Only shows edited ones, all the rest settings are on default)  My Output tab settings (Intentionally left metadata cause its not necessary)  File:  I'd appreciate it if you could help.

This is meant to solve this problem once and for all. What is every reason an object isn't showing up in a render or viewport in when using the cycles render engine?


Following error is appearing during installation.... "The following packages have unmet dependencies:  libreoffice-core : Depends: libreoffice-common (> 1:3.5.7) but it is not installed "  Pls help.

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


12" MacBookPro late 2012, OSX 10.9.5  Something is wrong with the Finder. When I try to open a new window one pops up, but the interior is the color of the background, nothing inside, and it reflects the image of anything that is dragged over it:       Those windows start out blue like the background, but are grey here because to take a screenshot I had to drag the grey rectangle over the finder window. They close just fine.  To open any working window I have to open Terminal and type killall Finder, but this solves the problem for a short time. (Sometimes the space of only one window opening.) Also, the desktop does not reflect saved files there until I restart the Finder, and I cannot manipulate anything on the desktop when the Finder has crashed.  A very small amount of water was spilled on it (over the battery and speaker) awhile ago, could that have caused this? What could be wrong? I've seen similar issues posted online involving software installation, but can't link any new installations to the problem. How can I resolve this?

On our Macbook Air (Mid-2011 11", OS X 10.9.5 Mavericks), starting a few days ago, every time we open Finder windows, the right side just shows screen artifacts/cheese. File Open dialogs in MS Word work fine - it is just the Finder windows with the problem.  Can someone help?  I have tried rebooting, and Verify Disk in Disk Utility. Neither helped. Maybe I should upgrade to El Capitan? But why would this start happening all of a sudden?


The windows 10 task manager suddenly shows two curves for CPU utilization, one light colored and one darker blue colored:   As far as I remember, it always used to show just one curve for current CPU utilization. What do the two curves mean? Which one should I trust to be correctly describing the resources spent on the current task?

I was looking at the task manager in Windows 10 and for the first time noticed a secondary dashed line below the solid? What does this line indicate?


I use Stata to perform a Kruskal-Wallis test on four groups of data (not normally distributed), and the results are shown below:  Kruskal-Wallis equality-of-populations rank test    +------------------------+   | group | Obs | Rank Sum |   |----------+-----+-------|   |     1 |   7 |   136.00 |   |     2 |   7 |    64.50 |   |     3 |   7 |   134.00 |   |     4 |   7 |    71.50 |   +------------------------+  chi-squared =     9.533 with 3 d.f. probability =     0.0230  chi-squared with ties =     9.538 with 3 d.f. probability =     0.0229   It is fine to conclude from above that there is significant difference between these 4 groups of data. But I wonder how to interpret the rank sums output by this test as shown above: can we actually say that group 1 and group 3 $>$ group 2 and group 4 based on the ranks above? If not, what does a difference in the rank sum between two groups mean here?

I have some non-Gaussian distributed variable and I need to check if there are significant differences between the values of this variable in 5 different groups.  I have performed Kruskal-Wallis one-way analysis of variance (which came up significant) and after that I had to check which groups were significantly different. Since the groups are kind of sorted (the values of the variable in the first group are supposed to be lower than the values of the variable in the second group which are supposed to be lower than the values of the variable in the third group and so on) I only performed 4 tests:  Group 1 vs Group 2 Group 2 vs Group 3 Group 3 vs Group 4 Group 4 vs Group 5   I have performed this analysis with two different methods. I started by using Dunn's Multiple Comparison Test but nothing came up significant. On the other hand if I use Mann-Whitney test and correct for the number of tests (4) using Bonferroni, 3 tests come up significant.  What does it mean? Which results should I trust?


I got this question. I'm totally stumped and I don't know what to do.     Let $\sigma$ be a cycle of length $k > 2$. Show that $\sigma^2$ is a cycle iff $k$ is odd.

let $\alpha$ be a cycle of length $s$, say $\alpha = (a_1, a_2, \ldots, a_s)$  Prove $\alpha^2$ is a cycle if and only if $s$ is odd.  Let me start off by saying I am in my 5th week of Group Theory.  I often have trouble getting these problems started.  This is my first proof based course.    I believe $\alpha^2 = (a_2, a_3, \ldots, a_1)$  Any tips on where to go from here would be great.  Also...if there are any tips for starting proofs like these in general, I could really use them! My teacher teaches as if a proofing class was a pre-req, which it was not.


#!/bin/bash i="a001" if ! [[ $i =~ "a[0-9]{3}"  ]]; then     echo "success" fi   input i="a001" makes it success, although it does match a[0-9]{3} pattern and if statement should not be executed. What is going on? in my opinion it is compiler mistake. It is a part of bigger problem that I have not solved since yesterday.

The following code  number=1 if [[ $number =~ [0-9] ]] then   echo matched fi   works. If I try to use quotes in the regex, however, it stops:  number=1 if [[ $number =~ "[0-9]" ]] then   echo matched fi   I tried "\[0-9\]", too. What am I missing?  Funnily enough,  suggests this should work.  Bash version 3.2.39.


The question.  Let $f$ be a differentiable map $\mathbb R_+\to\mathbb R$ such that    $\forall x\geqslant0,\quad f'>0$ $\exists M>0,\quad \forall x\geqslant0,\quad f(x)\leqslant M$.      Does there exist $f$ verifying such conditions such that $f'(x)$ does not tend to $0$ when $x$ goes to infinity?   What I tried.  I think the answer is yes because of the following.  I tought about a function $f'$ doing something resembling to $x\mapsto \frac 1{1+x^2}$, but with little peaks like this:    This function would not have a limit when $x\to\infty$, and $f$ would still be bounded.  Final questions.  Does this idea works? Can you formalise it? Am I totally wrong here?

Let $\,f : \mathbb{R} \rightarrow \mathbb{R}$ be a infinitely differentiable function that is  increasing and bounded. Then is it true that $\lim_{x\to \infty}f'(x)=0$?


I have this code:  <script src="http://external/js/file/url.js"> </script>   I want to do something like this-  <script> if(2>1){ //include http://external/js/file/url.js } </script>   Any idea?

How can you reliably and dynamically load a JavaScript file?  This will can be used to implement a module or component that when 'initialized' the component will dynamically load all needed JavaScript library scripts on demand.  The client that uses the component isn't required to load all the library script files (and manually insert <script> tags into their web page) that implement this component - just the 'main' component script file.  How do mainstream JavaScript libraries accomplish this (Prototype, jQuery, etc)?  Do these tools merge multiple JavaScript files into a single redistributable 'build' version of a script file?  Or do they do any dynamic loading of ancillary 'library' scripts?  An addition to this question: is there a way to handle the event after a dynamically included JavaScript file is loaded?  Prototype has document.observe for document-wide events. Example:  document.observe("dom:loaded", function() {   // initially hide all containers for tab content   $$('div.tabcontent').invoke('hide'); });   What are the available events for a script element?


While sending an email using email template, the thread Id is not displaying and I'm just getting body as {!case.Thread_Id} . And also I have checked the Insert thread id in the Subject and body in Email-to-case service. And my apex code looks like below.Thanks in Advance.. public static PageReference sendingEmail(List<Case> listOfNewValues) {     Messaging.SingleEmailMessage sEmail = new Messaging.SingleEmailMessage();     EmailTemplate emailTemplate = [Select Id,Subject,Description,HtmlValue,DeveloperName,Body from EmailTemplate where name = 'Abhishek template'];             //System.debug('email template'+ emailTemplate);     for(Case caseToEmail: listOfNewValues) {                     String[] sendingTo = new String[]{caseToEmail.Contact_Email__c};             sEmail.setToAddresses(sendingTo);         sEmail.setSubject(emailTemplate.Subject);                    //sEmail.plaintextbody= emailTemplate.Body;         sEmail.setHtmlBody(emailTemplate.HtmlValue);         System.debug('Emailtem'+getThreadId(caseToEmail.Id));                     System.debug('Htmlvalue'+emailTemplate.HtmlValue);         sEmail.setTargetObjectId(UserInfo.getUserId());         sEmail.setTemplateId(emailTemplate.Id);         sEmail.setWhatId(caseToEmail.Id);                                 sEmail.setBccSender(false);          sEmail.setSaveAsActivity(false);     }     try {         Messaging.SendEmailResult[] results =Messaging.sendEmail(new Messaging.SingleEmailMessage[] {sEmail});         System.debug('results'+ results[0].success);         if(results[0].success) {             List<EmailMessage> listOfEmails = new List<EmailMessage>();             EmailMessage ee = new EmailMessage();                             for(Case caseValues : listOfNewValues) {                                         listOfEmails.add(new EmailMessage(ParentId=caseValues.Id,EmailTemplateId = emailTemplate.Id,Subject=emailTemplate.Subject,                                                    TextBody=emailTemplate.Body,ToAddress=caseValues.Contact_Email__c, FromAddress=UserInfo.getUserEmail()));                                    }              insert listOfEmails;         }              }     catch(Exception e) {         System.debug('Exception'+ e.getMessage());     }     return null; }

There are many posts about creating Case threadIds with Apex, notably   As the posters have noted, the SFDC rules of the threadId are subject to change over time and the only reliable way that I've seen is to do   // To be replaced with a real case Id. Id caseId = '500c0000008kJL5';   List<Messaging.RenderEmailTemplateBodyResult> renderResults =   Messaging.renderEmailTemplate(null, caseId, new List<String>{'{!Case.Thread_Id}'});  System.debug('this is the Case Thread Id: ' + renderResults[0].getMergedBody());   HOWEVER ... The method call Messaging.renderEmailTemplate burns a SOQL ()  So you can't prepopulate your Cases in an afterInsert or beforeUpdate Trigger because a transaction can be up to 2,000 (Platform Events), up to 10,000 (direct Apex DML) or more, typically, 200 rows.  All of these are > 100 SOQL limit.     So, before I go to the trouble of doing this in a chained set of async   tasks; is there more recent thinking on this subject of creating ThreadIds?