Print 10 elements out of array
What's the best way to get the last N elements of a Perl array?
Is the "Roman alphabet" what we use for English? I understand that the alphabet for the English language is not strictly English as languages such as French, Dutch and many more use the same alphabet, with few additions in other languages. Is Roman alphabet the common term to refer to this set of symbols for writing texts? I am applying for a UK visa. Can I show 5 months worth of bank statements for the UK visa, or is 6 months a requirement, as its not mentioned on their website?  There are no appointment dates showing in April. Is there any time limit in which we have to book an appointment after paying the fee? Privacy/Security concers for setting up business email using Gmail app on Nexus devices I need to set up my business email*(non gmail email)* on the mobile devices (Nexus 5 and Nexus7). The business has its own private mail server. The way I can do it is by using Gmail app on these devices. The question I have is does Gmail app on the mobile devices store the IMAP emails(non gmail emails) on the gmail servers? Or Gmail app is just a client and does not bother storing the IMAP emails(non gmail emails) on its servers that are not gmail emails? Thanks for the insight... Can't see a glass object through another glass object in Eevee New questions, Show Recommended, Sort Newest not working Create instance of generic type in Java? Is it possible to create an instance of a generic type in Java? I'm thinking based on what I've seen that the answer is no (due to type erasure), but I'd be interested if anyone can see something I'm missing:  class SomeContainer&lt;E&gt; {     E createContents()     {         return what???     } }   EDIT: It turns out that  could be used to resolve my issue, but it requires a lot of reflection-based code, as some of the answers below have indicated.  I'll leave this open for a little while to see if anyone comes up with anything dramatically different than Ian Robertson's . What is the difference between ethics and morals? I am currently writing an essay on artificial moral agents, and I need to explain the difference between ethics and morals. However, I am finding it really hard to find a good book or research paper which contains a citable definition.   Could someone point me in the right direction? Solving linear congruence (modular inverse or fraction) via gcd Bezout equation Isn't finding the inverse of $a$, that is, $a'$ in $aa'\equiv1\pmod{m}$ equivalent to solving the diophantine equation $aa'-mb=1$, where the unknowns are $a'$ and $b$? I have seem some answers on this site (where the extended Euclidean Algorithm is mentioned mainly) as well as looked up some books but there is no mention of this. Am I going wrong somewhere or is this a correct method of finding modular inverses? Also can't we find the Bézout's coefficients by solving the corresponding diophantine equation instead of using the extended Euclidean Algorithm? Is "po-TAH-to" an acceptable pronunciation for "potato"? Immortalized in the George and Ira Gershwin song "Let's Call the Whole Thing Off" is the nitpicking of pronunciation differences:      You like potato and I like potahto,   You like tomato and I like tomahto,   Potato, potahto, tomato, tomahto!   According to  and other sources, the English do pronounce tomato as tə-MAH-toh rather than tə-MAY-toh. But this doesn't seem to be the case when it comes to potato.     (From the O.E.D.)           –  Pronunciation: /təˈmɑːtəʊ/     –  Pronunciation: /pəˈteɪtəʊ/   Is "potahto" actually an acceptable way to pronounce potato? Or is the song just wrong? I'm trying to compile a document that only works with an up-to-date distribution, so I'd like to know: how do I update my distribution? Please provide screenshots where appropriate.  List of answers           To keep an eye on what’s going on at CTAN you may subscribe to the  or the RSS feed feed://www.mail-archive.com/ctan-ann@dante.de/maillist.xml Give moderators the ability to mark reviews as "bad" From what I've seen, many SO moderators trawl completed reviews and watch out for robo reviewers; and manual banning them when they see enough (>= 3?) bad reviews. This is inefficient because:   It doesn't integrate into the audit system. There's no "memory" to it. If mod A finds that user X has made two (any number less than the threshhold) bad reviews, he may make a mental note but there probably won't be any permanent/shared memory of this. If moderator B finds this user at a later date, he will have to look through the entire history, including stuff that mod A has already checked.    What I propose is that moderators get the ability to mark individual reviews as "invalid" from the completed review page. This is only to be used for reviews where any reviewer who is paying attention (and knows the rules) would choose the opposite reason (spam and other low quality stuff).   These bad review flags are treated like audits for a user -- if the number of failed audits and bad reviews is enough, the user gets autobanned. The nice thing is that this system should (probably) easily be able to , fixing the "Why was I manual banned?" problem.  This could also be integrated well with . There is this puzzling thing that is called : paradoxically, warm (35°C) water freezes faster than cold (5°C) water.  As a physisist, I've been asked about it several times already. And I have no definite answer to that, apart from the standard: "there are many things that can influence it".  So, does anyone knows about the status or progress on that effect? Any recent reviews, publications or other references? Performance of Non Clustered Indexes on Heaps vs Clustered Indexes compares the performance for individual select/insert/delete/update and range select statements on a table organized as a clustered index vs that on a table organized as a heap with a non clustered index on the same key columns as the CI table.  Generally the clustered index option performed better in the tests as there is only one structure to maintain and because there is no need for bookmark lookups.  One potentially interesting case not covered by the paper would have been a comparison between a non clustered index on a heap vs a non clustered index on a clustered index. In that instance I would have expected the heap might even perform better as once at the NCI leaf level SQL Server has a RID to follow directly rather than needing to traverse the clustered index.   Is anyone aware of similar formal testing that has been carried out in this area and if so what were the results? I was wondering about the reason of the choose of the X as symbol used to represents the "Close application" operation. Shuffling questions in exam typeof is an operator and a function Am I eligible for hats if I join a Stack Exchange site after the start of Winter-Bash? Triggering actions when a variable is set I use Ubuntu 12.04 64-bit, I did the following: sudo gedit /etc/apt/apt.conf and added  APT::Install-Recommends "false"; APT::Install-Suggests "false";    But it did not work. When I try to install a package, it still wants to install the suggested and recommended packages. How can I solve this? What does protection from [quality] do? Example 1) Let's say I have some random creature with protection from white, and my opponent plays , a white card with the effect "Destroy all creatures." Can my creature with protection from white be destroyed by a white card that isn't actually targeting it specifically?  Example 2) I was playing a match with a friend where I had  on the field against his 3 zombies. Is he able to declare his zombies as blockers even though Elite Inquisitor has "protection" from zombies?  If he can declare them as blockers, does protection mean that no damage is dealt by the zombies to  Elite Inquisitor?