Can anyone help me this problem? I know the sum of consecutive integers is n(n+1)/2, but I don't know how to move forward from here.     If 738 consecutive integers are added together, where the 178th number in sequence is 4,256,815, what is the remainder when this sum is divided by 6?
Can anyone help me with this?     If 738 consecutive integers are added together, where the 178th number in the sequence is 4,256,815, what is the remainder when this sum is divided by 6?
WPF Binding to variable / DependencyProperty I have interesting bug that I have experienced before but has gone away on its own. This one is not going away though.  I have a giant stripe or chunks missing from my desert biome, I would say probably 7 chunks long.  I'm guessing the chunks are corrupted or something, what was hoping to figure is whether it can repaired or reverted.  Here is a picture of the problem. How is hotness score calculated at larger sites? To start with, I am aware that hot questions from larger sites are somehow "penalized" and :     This is designed to ensure that a single site doesn't dominate the list, and that users see a good sampling of questions that are likely to interest them throughout the network...   I would like to understand how is hotness score really calculated at these sites. The reason why I ask is that per my observations, this seems to be quite different than is documented in the . Specifically, I would like to understand the difference in the impact of answer(s) score and aging factor.  Regarding impact of answers score, my observations of hot questions from smaller sites appear to be in agreement with known formula: (MIN(AnswerCount, 10) * QScore) / 5 + AnswerScore. For example, a question with low score (+1, +2) can get into hot list if it has got answer(s) with sufficiently high score.  At larger sites, this doesn't seem to be the case. Say, it looks like Stack Overflow questions just don't enter hot list until they reach certain score (+6,+7), no matter how many answers are there and how high is their score.  Does system simply totally ignore answers until question reaches certain score?  Another thing I noticed is that questions seem to age away from the hot list 2-3 times faster than ones from smaller sites (having comparable question and answers scores). Granted, this is harder to track and I am not yet sure if I figured that correctly. Do larger sites questions age away faster than those from smaller sites?    For those interested, here is a (partial) list of example questions I studied before asking this: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , .  Although above examples are only from Stack Overflow, my question isn't (I only used it as an example of a large site in my studies). I would like to understand if hot questions from other larger sites are handled in a similar way. Tangent bundle : is a manifold I have studied what a differentiable manifold is, and what a tangent space at a given point is, and read the proof that its dimension is equal to the dimension of the manifold. Here a tangent vector is a derivation on the germs of differentiable functions at a point.  Now I am trying to see that the tangent bundle is indeed a differentiable manifold. I get that for an open set $U$ in Eucliden space, it takes the form $U \times \mathbb R^n$ with the vector $\sum a_i x_i$ giving the tangent vector $\sum a_i \partial /\partial x_i$. Now the book says that it is "obvious" that these glue up and give a differentiable manifold.  I may be stupid; but I will be grateful if somebody can hold my hand through this "obvious" statement. Handling large numbers in C++? Getting disk i/o statistics for single process in Linux Calculating roundness/compactness of polygon? I am trying to find ways to quantitatively describe the shapes of various polygons. For my project, these polygons represent lakes, rivers, lagoons, and parks. So they can be almost any shape. One easy metric is to calculate perimeter vs. area, which is at best an only slightly useful metric. But I would also very much like to be able to say something about the 'roundness' of a polygon. Or how 'compact' the shape is on a map.  The only way I can think of doing this easily is to calculate the area of each polygon in relation to a bounding box for that polygon (which I already have). But this seems like a poor solution.  So now I am thinking of something more like this - take the centroid of the polygon, add on a series of buffers of increasing areas (say 50%, 100%, 150%), then compare how much overlap there is between each buffer and the original polygon. A perfect circle will have perfect overlap at 100%, and I can use the 50% and 150% buffers to judge how much and in what way each polygon differs.  But even that feels cumbersome, and like a poor workaround for what somebody else has probably already figured out far better.  For reference, at a minimum I will need to be able to look at the resulting indices for the shape of various polygons, and be able to make an educated guess as to their source (River? Reservoir with dendritic shape? Lake/Lagoon? Park?) What is the British English way of referring to a source in-text.  Is it plural because there are two authors, like this:         X and Y (2011) describe ...   Or is it singular because you are referring to a singular source, like this:     X and Y (2011) describes...   So what I am asking is whether you refer to the source or to the authors? I have a  to which I'd like to add JPEG and PNG images that I generate on the fly.  All the examples I've seen so far in the , specially in the  use ImageIcons.  I'm generating these images as byte arrays, and they are usually larger than the common icon they use in the examples, at 640x480.   Is there any (performance or other) problem in using the ImageIcon class to display an image that size in a JPanel? What's the usual way of doing it? How to add an image to a JPanel without using the ImageIcon class?   Edit: A more careful examination of the tutorials and the API shows that you cannot add an ImageIcon directly to a JPanel. Instead, they achieve the same effect by setting the image as an icon of a JLabel. This just doesn't feel right... How do I deliver a baby? I'm playing Fallout Shelter, and my newest bonus objective is to "Deliver 1 Baby Dweller."  I've already figured out that I can put a male vault dweller and a female vault dweller together in some residential quarters, and and eventually, if they hit it off, the lady will replace her vault suit with a yellow sweater and a decidedly pregnant figure.   Good enough.  But how long does it take her to deliver the child? Do I have to induce it through some sort of tapping ritual or placing her in the correct room? Does the pregnant dweller need to stay in the living quarters, or can I put her to work in my Diner or Water Treatment Facility? Do the SPECIAL stars of the parents matter?  Tell me everything about  and what I can do to control the process. Linear algebra skew symmetric 'Search on Yammer' link in search center refiners I have a heavily branded site I'm working on and can't find where the "Search on Yammer" link is being populated from. It appears within the search refiner/filter web part in the left column but none of the display templates reference this.   I'd like to be able to customize the link, placement on the page, etc. without resorting to jQuery to move elements around the page.     And the markup coming through looks like this. The refiners themselves come through a series of display templates but the Yammer link is nowhere that I can see in any of them.   &lt;div webpartid="f09e98eb-6dc3-4a9b-8dbf-65d0fbc7b7c3" haspers="false" id="WebPartWPQ4" width="100%" class="ms-WPBody " allowdelete="false" style=""&gt;     &lt;div class="ms-ref-ctrl"&gt;         &lt;div class="ms-ref-refiner"&gt;             &lt;div id="Container"&gt;                 &lt;h2 class="ms-displayInline"&gt;                     &lt;a class="ms-ref-name ms-displayInlineBlock ms-srchnav-link-selected ms-link" href="javascript:void(window.open(                     'https://www.yammer.com/search?trk_event=o365_search&amp;amp;search='+                     encodeURIComponent(Srch.ScriptApplicationManager.get_current().queryGroups.                     Default.dataProvider.get_currentQueryState().k),'_blank'));" title="Open a new tab to search for this on Yammer"&gt;Search on Yammer&lt;/a&gt;                 &lt;/h2&gt;             &lt;/div&gt;         &lt;/div&gt;     &lt;/div&gt; &lt;/div&gt; &lt;div componentid="ctl00_SPWebPartManager1_g_f09e98eb_6dc3_4a9b_8dbf_65d0fbc7b7c3_csr" id="ctl00_SPWebPartManager1_g_f09e98eb_6dc3_4a9b_8dbf_65d0fbc7b7c3_csr"&gt;             ... refiners populated through display templates ... &lt;/div&gt; How do I read image files directly from a zip without extracting to disk? Is spacetime absolute? As I understand it Newton's Laws imply that space is relative, as the laws of physics are the same in all inertial frames and as such there is no way, even in principle, to distinguish a frame that is truly at rest (absolute space). Hence the concept is physically meaningless, and the positions of (and distances between) physical objects, events, etc. are relative to the frame in which one is observing them from. Advancing on to Special Relativity, by postulating that the speed of light (in vacuum) is constant in all frames of reference, we are forced to conclude that time is relative also (as if it weren't then different observers would observe a different speed of light (in vacuum)). This leads to the result that the concepts of space and time are no longer completely separate and independent of one another and instead intertwined (as an event that occurs at rest over some time period in one frame, will occur over some spatial interval and a different time interval in another frame). Hence they should be considered as should be considered as a single entity, called spacetime.  Sorry for the waffling so far, just want to check that my understanding is correct up to this point?!  My main question is, given that space and time are (individually) relative quantities, is spacetime itself relative, or can it be considered absolute (as after all, it is the mathematical space of all possible events and exists independently of the physical events that occur within it)? In my cssh config file, I have:  terminal_font=6x13   this default font is too small for me.   man cssh says, I can specify other font size with the -f argument, while using "standard X font notation".  is a wikipedia page containing some other fonts types. Unfortunately, none of these work for me:  $ cssh host1 host2 -f "7x14" Fatal: Unrecognised font used (7x14). Please amend $HOME/.clusterssh/config with a valid font (see man page).   Why does "7x14" not work?  How can I use bigger fonts with cssh ? Show that if $n&gt;2$, then $(n!)^2&gt;n^n$.     My work: I tried to apply induction. So, at the induction step, I need to prove, $n^n&gt;(n+1)^{n-1}$ Here, I tried to use induction again without any luck. I also took log of both sides, but I did not get anything. Please help! So I've got a file with loads of simple objects. This will later be used to cut out these shapes out of plastic. So, using the material optimally is of outmost importance. I was wondering if there is any script or plugin that could automaticly arrange the objects within the artboard so they could fit best. Adding grouped icons to favorite bar in Ubuntu 18.04 Is there anyway to add icons groups to the favorites bar aka Ubuntu dock (something like drawers or unity-launcher-folders) in Ubuntu 18.04 ? Capture characters from standard input without waiting for enter to be pressed I can never remember how I do this because it comes up so infrequently for me. But in C or C++, what is the best way to read a character from standard input without waiting for a newline (press enter).  Also ideally it wouldn't echo the input character to the screen. I just want to capture keystrokes with out effecting the console screen. Why isn’t the definite article used in "The commission commanded that work [...] should cease"? In this sentence:     The commission commanded that work on the building should cease.   Why isn't the used before the word work? It seems that the work is specified by on the building.  Another example is,     Construction of the building will start next week.   I understand construction here is something like putting up the building, and so the construction isn’t general in meaning. But the definite article isn’t used here, either.  I’ve asked about this several times, but none gave me a good answer.