JavaScript Editor Plugin for Eclipse
JavaScript editor within Eclipse
I'm trying to use itemize inside a tabularx environment, but I have a problem when I mention the end of the line. It seems that using \\ end the line after the end of itemize, resulting in a supplementary vertical spacing that I would like to remove.  Any hint?  \begin{frame} \frametitle{Sujet de thèse}         \begin{center}             \textit{Sujet N$^\circ$221 : Formation et dynamique des champs de dunes longitudinales.}         \end{center}          \begin{tabularx}{\textwidth}{l !{\color{blue}\vline width 3pt} X}             Contexte &amp;  \scriptsize{Classification des dunes selon leur mécanisme de croissance, leur orientation et leur forme.              Bonne compréhension :             \begin{itemize}[noitemsep,topsep=0pt, label=\textbullet]                 \item du mécanisme de croissance lié à une disponibilité en sédiment grande.                 \item de la croissance sous un vent unidirectionnel.             \end{itemize}} \\             Objectifs &amp; \scriptsize{Etude de l'orientation longitudinale :             \begin{itemize}[noitemsep,topsep=0pt, label=\textbullet, parsep=0pt ]                 \setlength\itemsep{0cm}                 \item Développement d'un formalisme sous des vents multidirectionnels.                 \item Etude des dunes longitudinales dans le cas d'une faible disponibilité en sédiment. (Fingering mode)                 \item Inversion: données topographiques $\longrightarrow$ Données de vents $\rightarrow$ paléo-climats.              \end{itemize}} \\             Outils &amp; \scriptsize{Modèle numérique (Rescal), Données expérimentales, Théorie.} \\         \end{tabularx}     \end{frame}     And yes, dunno if it's important but everything is inside beamer. How can I check the version of the available package in the Ubuntu repositories without installing it? There is an image in the Wikipedia about the :    I have a rough understanding of the stress tensor: you imagine cutting out a tiny cube from the fluid and form a matrix out of the forces on each side of it: it's not hard to see that the forces that push the faces outwards so the x direction of the force on the x side, the y direction of the force on the y side, etc. is the pressure, while other forces directions are the shear stress (these can be non-zero is some jelly-like substance).  Now the first question: Why is the lower half of the spatial part is the momentum flux, while only the upper one is the shear stress on the image? Is the image wrong? Isn't the spatial part describe the classical stress tensor?   The second question is: what's the intuition behind the temporal part?  So if I have a Minkowski spacetime and cut out a cube of it, then it's quite hard to see why "pressure" on the temporal face means density, also why "shear stresses" on the temporal face translate to momentum density, not speaking of the "temporal force components" the spatial faces...  Also stresses are measured in Pascals, mass density is measured in $kg/m^3$ while momentum density is in the units of $Ns/m^3$. These units doesn't seem to be compatible, but still they are in the same matrix, why?  EDIT: It has been pointed out that momentum flux refer to the entire blue part, it indeed have a lighter frame I didn't notice. Then yet another subquestion: what's the difference between the momentum density and momentum flux? Browning Avocados - What Helps? Years ago  asked "Oxidized Avocado: What's Going on &amp; How to Prevent It?" That question has been merged with this one because it's dealing with the same issue.  Recently, we had this question: . Now I'm just curious, I want an answer.  After Logophobe's answer to the acidity question, and my own research backing up that answer, I feel like I know less than I did before!  Lemon contains more ascorbic acid (Vitamin C) and citric acid than limes, yet limes are more acidic overall. Distilled vinegar is more acidic than lemons and almost as acidic as limes,  is an extremely highly concentrated mixture of ascorbic acid and citric acid specifically developed to prevent browning in fruits.  So what works to keep avocados pretty and green?  Perhaps some experimentation is in order. I think I'll start with acids, since the common wisdom is that acid helps keep avocados green.  EDIT As of 1/8/15, I have added a new answer, as the highly upvoted one really only says what doesn't help. The accepted answer  shows the results of further experimentation, and what does help. Apex Array Slice Sometimes I like to use a Queueable to perform work on a list of Ids or sObjects over the heaver Batchable Interface.   However, to do this, we need a very solid implementation of an Array slice method.  Most other programming languages have a native slice method, but Apex does not.  While I have written my own version of slice and it's working fine, I would be interested in hearing about other implementations of slice - the more efficient the better.  My version is in this Utilities class on github   It's modelled after the Javascript version described on the mozilla site   I would expect that the usage and output be similar to this:  String[] arr = ['zero', 'one', 'two', 'three']; String[] sliced = Utilities.slice(arr,1, 3);  System.debug(arr);      // ['zero', 'one', 'two', 'three'] System.debug(sliced);   // ['one', 'two'] If you go to  and are a 4k+ user on Anime.SE, you will see the following:        There is one reopen vote on this question, but the reopen vote count is displayed on a different line than the word "reopen". This is slightly silly, and would perhaps benefit from converting reopen (1) to reopen&amp;nbsp;(1), and likewise for close and delete votes. (Or any other way of preventing a line break between the vote type and the vote count.)  A repro (the close link) from here on Meta: every rank 2 oriented matroid is realizable I have several hundred Illustrator files that are formatted similarly, and for legal reasons I need to replace a font in all of them. Even with the 'Find font' tool, that's a hell of a lot of fonts to replace by hand.  Is there some way of automating it? For example, using Bridge? Illustrator (CS5) doesn't offer many options in Bridge, compared to the automation options offered by Photoshop. I also don't see any option for running actions on multiple Illustrator files.  Also, creating a repeatable action for replacing the font doesn't seem to work: instead of repeating my action, it brings up the dialog box an waits for me to tell it to replace them.  As a programmer I'm prepared to edit the files directly if it can be done without breaking them.    Update: The 'Batch...' menu item from Illustrator's actions panel menu allows the same action to be performed on a folder of files. It doesn't fix the Find Fonts action waiting for input though. Toggling the dialog off makes the action do nothing at all. Let $\mathbb{F}$ be a finite field.  Let $a_1,\dots,a_n \in \mathbb{F}$ be given.  I want to know whether there exists $x_1,\dots,x_n \in \mathbb{F}$ such that  $$a_1 x_1^2 + a_2 x_2^2 + \dots + a_n x_n^2 = 1.$$  My question: Can we characterize when this equation has a solution, i.e., by some criterion on $a_1,\dots,a_n$?  Is there a clean characterization, in terms of $a_1,\dots,a_n$ and the properties of $\mathbb{F}$?    Here's what I can see immediately.  First, if $n=1$, there is an easy answer (the equation has a solution iff $a_1$ is a square in $\mathbb{F}$).  Second, if any $a_i$ is a square in $\mathbb{F}$, the equation has a solution (set all other $x_j$'s to $0$), so we can assume that all the $a_i$'s are non-squares and that $n \ge 2$.  Third, if $-1$ is a square in $\mathbb{F}$, then the equation has a solution: we can take $x_2 =  \sqrt{-a_1/a_2} \cdot x_1$.  But what about the case where $-1$ is a non-square in $\mathbb{F}$?  Is it always guaranteed to have a solution in this case? Using a foreign driver's license in California when staying with a J-1 visa I'm planning to attend a Californian university as a visiting scholar (not paid by the university) on a J-1 visa, for a total of four weeks; a colleague of mine will do the same, but for 12 weeks. I've been told (personally, ie. no citable sources) that, if you're staying on a J-1, you're effectively a California resident for the time you're there, and, therefore, need a Californian driver's license.  I've read up on this and found  that states:     If you are a visitor in California over 18 and have a valid driver   license from your home state or country, you may drive in this state   without getting a California driver license as long as your home state   license remains valid.      If you become a California resident, you must get a California driver   license within 10 days. Residency is established by voting in a   California election, paying resident tuition, filing for a homeowner's   property tax exemption, or any other privilege or benefit not   ordinarily extended to nonresidents.   I'm not planning to vote in any elections, nor will I own a home there, but I'm not sure what would constitute "privileges or benefits not ordinarily extended to nonresidents".  Do we need to get driver's licenses in California, or can we use our foreign licenses? How about day trips to Arizona or Nevada?  Note: this seems to be related to , but my question is specifically about staying there on a J-1. Duplicate questions in feed, and questions incorrectly marked as unanswered I see duplicate questions in the feed (Why is the book still wanted if Aida has memorized it?) and the question is marked as "unanswered" even though it has an upvoted answer.  I would expect unique questions in the feed, as well as questions with answers to not be marked as unanswered.   App Version: 1.6.3.4 Device: iPhone 6 OS Version: Version 10.2 (Build 14C92) Why can two (or more) electric field lines never cross? During the latest gaming session our level 3 Rogue was Two-Weapon fighting with a Rapier in the main-hand and a scimitar in the off-hand.  At the completion of our gaming session I contested the application of the Two-Weapon fighting rules as it seemed unbalanced.  Once I got home I reviewed the PHB and various RPGStack and Reddit but couldn't find a concrete answer.  My interpretation of the PHB Reference rules below is that although any class/character can technically wield a weapon in their off-hand, only those who have been granted a Bonus Action for which no explicit bonus action have been defined would be allowed to actually attack.  So in the case of a Rogue the Bonus Actions granted under Cunning Action allow for specific actions (none of which are attack).  The alternate interpretation would be the rules under Two-Weapon Fighting, perhaps it should be written      you receive a bonus action to attack with a different light melee weapon that you’re holding in the other hand.   This would, in my opinion, explicitly grant the Bonus Action to any character/class who is Two-Weapon Fighting.  After thorough review does it boil down to application of the rules-as-written and determining a house-rule to apply in our campaign?    References  Page 189 of PHB : Bonus Actions  Various class features, spells, and other abilities let you take an additional action on your turn called a bonus action. The Cunning Action feature, for example, allows a rogue to take a bonus action.      You can take a bonus action only when a special ability, spell, or other feature of the game states that you can do something as a bonus   action. You otherwise don’t have a bonus action to take.   You can take only one bonus action on your turn, so you must choose which bonus action to use when you have more than one available. You choose when to take a bonus action during your turn, unless the bonus action’s timing is specified, and anything that deprives you of your ability to take actions also prevents you from taking a bonus action.  Page 96 of PHB  A Rogue receives cunning action at level 2, You can take a bonus action on each of your turns in combat.      This action can be used only to take the Dash, Disengage, or Hide action.   Page 195 of PHB  Two-Weapon Fighting (Combat Rules)  When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand. You don’t add your ability modifier to the damage of the bonus attack, unless that modifier is negative. If either weapon has the thrown property, you can throw the weapon, instead of making a melee attack with it.  Page 165 of PHB  Dual Wielder  (Feat)  You master fighting with two weapons, gaining the following benefits:   You gain a +1 bonus to AC while you are wielding a separate melee weapon in each hand. You can use two-weapon fighting even when the one-handed melee weapons you are wielding aren't light. You can draw or stow two one-handed weapons when you would normally be able to draw or stow only one. The phrase "sleeping with someone" often means "having sex." What is the origin of this sexual connotation? Is there a non-sexual equivalent of this phrase to express sleeping with someone without sexual intercourse? Spoilers for the end of the second film      Towards the end of the fight against Ego, we see that the bomb Groot set off blows up Ego's core. Shortly thereafter, it cuts to a scene where Quill is shown apparently losing his powers.   Given that the movie builds up this finale so much, I'm left wondering:      Did Quill lose his powers or merely the means to access them after Ego's apparent death?   Answers from the film or comics are very much welcome. Which folder is recycle bin in on Win7? How to check files there? I was using another account before. Let me call it account A. And I deleted a lot of files to the Recycle Bin at that time. But before I removed account A I forgot to empty the Recycle Bin.   My question is, are my files still there? I've searched and found that the Recycle Bin may live in $Recycle.Bin, but I can't open files there so I can't know what they are. Any help how to open deleted files or how to delete them permanently? I have something like that  how do I convert this to a YouTube playlist? In the discussion from a question I asked several days ago (), someone suggested that I use general.runalg() instead of processing.runalg() for running QGIS algorithms.    I've now used both, and haven't noticed a difference in either performance or syntax between them.  I'm just wondering what sort of differences there are between these two methods, and which one I should be using. What is the measure of the set of numbers in $[0,1]$ whose decimal expansions do not contain $5$? How can I get a debug log for the sites guest user/public profile? [updated for Spring 18]