I believe this is another easy one for you LINQ masters out there. Is there any way I can separate a List into several separate lists of Some Object, using the item index as the delimiter of each split?  Let me exemplify: I have a List&lt;T&gt; and I need a List&lt;List&lt;T&gt;&gt; or List&lt;T&gt;[], so that each of these resulting lists will contain a group of 3 items of the original list (sequentially).  example:   Original List: [cat, dog, pane, wolf, pig, sun, queen, fox, x'mas, yak, ice, mark, cold] Resulting lists: [[cat, dog, pane], [wolf, pig, sun], [queen, fox, x'mas], [yak, ice, mark], [cold]]
Is there any way I can separate a List&lt;SomeObject&gt; into several separate lists of SomeObject, using the item index as the delimiter of each split?  Let me exemplify:  I have a List&lt;SomeObject&gt; and I need a List&lt;List&lt;SomeObject&gt;&gt; or List&lt;SomeObject&gt;[], so that each of these resulting lists will contain a group of 3 items of the original list (sequentially).  eg.:   Original List: [a, g, e, w, p, s, q, f, x, y, i, m, c] Resulting lists: [a, g, e], [w, p, s], [q, f, x], [y, i, m], [c]   I'd also need the resulting lists size to be a parameter of this function.
Word for romantic partner you are living with but not married to Let $(x_n)$ be a sequence of real numbers.  Prove that if there exists $x$ such that every subsequence $(x_{n_k})$ of $(x_n)$ has a convergent (sub-)subsequence $(x_{n_{k_l}})$ to $x$, then the original sequence $(x_n)$ itself converges to $x$ .              Thanks for any help. Determinant of a block lower triangular matrix I used osm2pgsql to import data into my PostgreSQL database and it put gave me the following 4 tables, planet_osm_point, planet_osm_line, planet_osm_polygon and planet_osm_roads.   I have looked at the schema for osm2pgsql and inside the planet_osm_point table there is a column 'way' of type point. I tried to query it as an array like it says in the documentation here ():     It is possible to access the two component numbers of a point as   though the point were an array with indexes 0 and 1. For example, if   t.p is a point column then SELECT p[0] FROM t retrieves the X   coordinate and UPDATE t SET p[1] = ... changes the Y coordinate. In   the same way, a value of type box or lseg can be treated as an array   of two point values.   Anyone know the correct query the planet_osm tables from osm2pgsql based on long/lat? For example if I wanted to retrieve the information for Big Ben (London) I would query along the lines of:      SELECT * FROM planet_osm_point      WHERE ST_Y(ST_Transform(way, 4326)) = '-0.12'        AND ST_X(ST_Transform(way, 4326)) = '51.5';   There is no error message, it comes out with the table names, but no data is output either. (Its an empty table). What am I doing wrong here?  Perhaps it is too precise, i.e. there are no coordinates that match it exactly? Perhaps I need to try being more general, say 51 &lt; long &lt; 52 and -0.5 &lt; lat &lt; 0. Although this would throw back multiple results so would not be quite as accurate. If I don't want to set any special behavior, is it OK if I don't bother to have a robots.txt file? What permissions should a udev rule have for a USB device? 644? 755?  For example on Ubuntu I'm looking at this file: /etc/udev/rules.d/99-lpcscrypt.rules Ubuntu 13.04 on Mac Mini 6,2 ethernet port Broadcom NetXtreme BCM57766 not detected The said network adapter is not recognized in 13.04. In 12.04 and 12.10 I had used the driver proposed from broadcom download site, configured as dkms package it was always updated.  On the 3.8.x kernels this provided kernel driver from broadcom does not compile anymore - and the distribution provided tg3 drivers does not recognize the ethernet adapter - even though it is a newer version.  ~$ modinfo /lib/modules/3.8.0-19 generic/kernel/drivers/net/ethernet/broadcom/tg3.ko | grep -i version version:        3.128 srcversion:     D737202366709FE01964BF0 vermagic:       3.8.0-19-generic SMP mod_unload modversions    Here the working version on kernel 3.5.x using dkms  ~$ modinfo /lib/modules/3.5.0-25-generic/updates/dkms/tg3.ko | grep version version:        3.124c srcversion:     D01ED9A7BF2C3956E212A63 vermagic:       3.5.0-25-generic SMP mod_unload modversions    The Network card:  ~$ lspci -nn | grep 0200 01:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM57766 Gigabit Ethernet PCIe [14e4:1686] (rev 01)   As found on the i7 Mac Mini 6,2.  Anyone knows where I can get a kernel that recognizes that ethernet device ? That chip is supported somehow ... And - the 3.8.x kernel is way better on the HD4000 chip - reason I use it.  Note - to get the WiFi working, just make sure you load the b43 driver at boot (/etc/modules). At least then you have Network connectivity. Can RUBIK's cube be solved using group theory? If yes, how can we use it to solve a $2\times2$ Rubiks Cube? Traveling with visa in my old passport My old passport in which an ECR was stamped,with passport expiry date in 2017.I got a Dubai visit visa on its passport number but later on as I was told that it'l be a problem for me to travel to Dubai so I got a new passport re-issued with ECNR with a new passport number.  So will it be a problem for me to travel or do I have to get my UAE visit visa details of my old passport number change to my new passport number? Where can the viewport clipping parameters be changed? I am using \tableofcontents to create TOC in my document. however it is appearing as shown in the image. As the numbers increase the gap between the number and text is reducing.   Thanks for your help Aku Automate Fixed Width Page, length > some minimum length, but only as long as needed I am trying to automate the solution proposed by egreg to  by hooking into \begin{document} and \end{document}.  So, egreg's solution works fine:  \documentclass{article} \def\MinimumPaperHeight{12cm} \usepackage{geometry} \geometry{paperwidth=\MinimumPaperHeight,paperheight=\maxdimen,margin=1cm} \usepackage{lipsum}  \begin{document} \setbox0=\vbox{ \lipsum[1-6] } \dimen0=\dp0 \pdfpageheight=\dimexpr\ht0+2cm\relax \ifdim\pdfpageheight&lt;\MinimumPaperHeight \pdfpageheight=\MinimumPaperHeight \fi \unvbox0\kern-\dimen0 \end{document}   But can't seem to get this to work:  \documentclass{article} \def\MinimumPaperHeight{12cm} \usepackage{geometry} \geometry{paperwidth=\MinimumPaperHeight,paperheight=\maxdimen,margin=1cm} \usepackage{lipsum} \usepackage{environ}  \NewEnviron{MyBox}{     \setbox0=\vbox{\BODY}% }{%     \dimen0=\dp0%     \pdfpageheight=\dimexpr\ht0+2cm\relax%     \ifdim\pdfpageheight&lt;\MinimumPaperHeight \pdfpageheight=\MinimumPaperHeight \fi%     \unvbox0\kern-\dimen0% }  \AtBeginDocument{\begin{MyBox}} \AtEndDocument{\end{MyBox}}  \begin{document} \lipsum[1-6] \end{document}   Hooking into \AtBeginDocument is per this solution on . I get this error in the deployment step of a share-point farm based project. Most of the suggested solutions on the net are a simple Visual Studio re-start, however, a simple VS restart won't fix this.   Any ideas on what might be causing this? Flag apron shows superfluous closing anchor tag I awoke this morning to a spam flag on a site I moderate, and noticed this when I went to read the post.    Notice answered&lt;/a&gt;, which I imagine isn't meant to have the &lt;/a&gt; there.  I also confirmed that this displays asked&lt;/a&gt; for other types of flags (namely, closed without comment).   I looked around for a duplicate of this but can't seem to find it, so maybe it's a recent change? We are developing a new Lightning Community to replace our Partner Community. However, when we use our visualforce pages with LightningStylesheets=true on the Lightning Community, the Lightning styling is not applied.  I understand that this is the case because Lightning Communities are not Lightning Experience.  Is there a way to force LightningStylesheets anyway? I am trying to stay away from having to rebuild/restyle all our legacy visualforce pages. parsing XML file gets UnicodeEncodeError (ElementTree) / ValueError (lxml) For realism should I use the maximum number of Subsurf levels? I was wondering if I always need to use the maximum value of the options from the elements of "Add Modifier". For example, do I need to use the view 6 in Subdivision surface? I know it depends of what we are trying to achieve, but we all want the same. Make something look the most believable. So do you always use the maximum value Blender offers? Exact sequence of sheaves with non exact sequence of global sections Let $X$ be some topological space. By $\mathcal{F}_i$ we denote some sheaves of abelian groups on $X$. The sequence of sheaves and morphisms  $$\mathcal{F}_1\longrightarrow \mathcal{F}_2\longrightarrow \mathcal{F}_3\longrightarrow... $$ is said to be exact if for each $x\in X$ the corresponding sequence of stalks $$(\mathcal{F}_1)_x\longrightarrow (\mathcal{F}_2)_x\longrightarrow (\mathcal{F}_3)_x\longrightarrow... $$ is exact. However if the sequence of sheaves is exact than the sequence of global sections is not necessarily exact! (The most famous example is the sequence of sheaves $$0\longrightarrow\mathbb{Z}\hookrightarrow \mathcal{O}\stackrel{\exp}{\longrightarrow} \mathcal{O}^*\longrightarrow0$$ considered as sheaves on $\mathbb{C}-\{0\}$, where $\mathcal{O}$ is a sheaf of holomorphic functions, $\mathcal{O}^*$ is a sheaf of holomorphic functions with no zeros).  So, could you give me some easy examples of such phenomenon ? Why can other users see the files in my home folder? I just added a new, underprivileged "desktop user," and I was surprised to discover that it can see the files in my home folder.  What is the rational for setting up such lax permissions? Find the limit if it exists of $S_{n+1} = \frac{1}{2}(S_n +\frac{A}{S_n})$ Suppose that $S_0$ and A are positive numbers, let $$S_{n+1} = \frac{1}{2}\left(S_n +\frac{A}{S_n}\right)$$ with $n \geq 0 $.      (a)Show that $S_{n+1} \geq \sqrt{A} $ if $n \geq 0$       (b)Show that $S_{n+1} \leq S_n $ , if $n \geq 1$      (c) Show that $s= \lim\limits_{n \rightarrow \infty} S_n$ exists      (d) find s   (a) Show that $S_{n+1} \geq \sqrt{A} $ if $n \geq 0$  Given $$P_n:  S_{n+1} = \frac{1}{2}\left(S_n +\frac{A}{S_n}\right) \geq \sqrt{A}$$  $$P_0: S_{1} = \frac{1}{2}\left(S_0 +\frac{A}{S_0}\right) \geq \sqrt{A}  $$  We assume that $P_n$ is true  $$P_{n+1}: S_{n+2}= \frac{1}{2}\left(S_{n+1} +\frac{A}{S_{n+1}}\right)$$ by assumption $$S_{n+2}= \frac{1}{2}\left(S_{n+1}\left(1 +\frac{A}{(S_{n+1})^2}\right)\right) \geq \frac{1}{2}\left(\sqrt{A}\left(1 +\frac{A}{(\sqrt{A})^2}\right)\right)$$ $$ S_{n+2}= \frac{1}{2}\left(S_{n+1} +\frac{A}{S_{n+1}}\right) \geq \sqrt{A}  $$  It follows that $S_{n+1} \geq \sqrt{A} $    (b) Show that $S_{n+1} \leq S_n $ , if $n \geq 1$  $$S_{n+1} \leq S_n$$ $$\frac{1}{2}\left(S_n +\frac{A}{S_n}\right) \leq S_n $$ Dividing by $S_n$ $$\frac{1}{2}\left(1 +\frac{A}{S_n^2}\right) \leq 1 $$ $$\frac{A}{2S_n^2} \leq \frac{1}{2}$$ $$A \leq S_n^2$$ $$S_n \geq \sqrt{A}$$ As  $S_{n+1} \leq S_n$ yields a true statement, it follows $S_{n+1} \leq S_n$ is true.    (c) Show that $s= \lim\limits_{n \rightarrow \infty} S_n$ exists  Since $S_{n+1} \leq S_n$, the sequence is non-increasing,   using the non-increasing theorem stating that      if $\{S_n\}$ is non-increasing then $$\lim\limits_{n \rightarrow &gt; \infty} S_n = \inf\{S_n\} $$     (d) find s    Is the argumentation in (a) and (b) appropriate? Also, I have to admit I m getting less confident in my argumentation (c) and (d). How to proceed in (c) and (d)?  Much appreciated for your input or help.