I am using the code snippet below to ensure pdf files in a SharePoint 2013 document library open in a new tab. This code works fine until files in the document library are grouped. Can someone please help tweak the code so I can ensure that pdf files in a 'grouped' library also open in new tabs? &lt;script src=&quot;http://code.jquery.com/jquery-1.10.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;     &lt;script type=&quot;text/javascript&quot;&gt;         $(function () {             $(&quot;a[href$='.pdf']&quot;).removeAttr(&quot;onclick&quot;);             $(&quot;a[href$='.pdf']&quot;).removeAttr(&quot;onmousedown&quot;);             $(&quot;a[href$='.pdf']&quot;).attr(&quot;target&quot;, &quot;_blank&quot;);                });     &lt;/script&gt;  Please note that I am specifically looking for a code snippet that will ensure pdf documents will open in a new tab when the items in the document library are grouped. The code I have is already working for pdf documents in non-grouped libraries. Thanks
Is there any easy way to open the document library files in a new window or popup depending on the file types?  e.g. PDF - In Adobe reader (currently opens in IE)  Image file (currently opens in IE)
How to check if a String contains another String in a case insensitive manner in Java? Calculate the limit including binomial coefficients Universal type tranformer in Haskell When does Thread.CurrentThread.Join() make sense? Downloading files using wget I am trying to download files from .  The URL is:   When I use this command:  wget http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE48191&amp;format=file    I get only index.html?acc=GSE48191 which is some kind of binary format.  How can I download the files from this HTTP site? Interscholastic Mathematics League Senior B Division #2 Points $P$, $Q$, $R$ and $S$ are chosen on the sides of parallelogram $ABCD$, so that $P$ is on line $AB$, $Q$ is on line $BC$, $R$ is on line $CD$, $S$ is on line $DA$, and $AP=BQ=CR=DS=\frac{1}{3}(AB)$. Compute the ratio of the area of $PQRS$ to the area of $ABCD$. What should happen if a logo I made is similar to another? I have no root access on this machine.  I would like to know if there is a way I can download Ubuntu packages and install them as non-root?  Probably in my ~/bin or ~/usr/share or something like that? Would that work? How to create a hole in a polygon in QGIS? I'm trying to use the tool "delete ring" in order to create a hole in a polygon. The geometry of the hole is another feature of the same shapefile   I cannot manage to delete the part of the polygone. Does someone have a tutorial or some explanation? Why should we care about groups at all? Unless I missed something key during Descent 1/2, how is it that the Borg are once again a collective? Consider this equation :   $$\sqrt{\left( \frac{dy\cdot u\,dt}{L}\right)^2+(dy)^2}=v\,dt,$$  where $t$ varies from $0$ to $T$ , and $y$ varies from $0$ to $L$.  Now how to proceed ?   This equation arises out of following problem :   A cat sitting in a field suddenly sees a standing dog. To save its life, the cat runs away in a straight line with speed $u$. Without any delay, the dog starts with running with constant speed $v&gt;u$ to catch the cat. Initially, $v$ is perpendicular to $u$ and $L$ is the initial separation between the two. If the dog always changes its direction so that it is always heading directly at the cat, find the time the dog takes to catch the cat in terms of $v, u$ and $L$.  See my solution below :   Let initially dog be at $D$ and cat at $C$ and after time $dt$ they are at $D'$ and $C'$ respectively. Dog velocity is always pointing towards cat.  Let $DA = dy, \;AD' = dx$  Let $CC'=udt,\;DD' = vdt$ as interval is very small so $DD'$ can be taken straight line.  Also we have $\frac{DA}{DC}= \frac{AD'}{ CC'}$ using triangle property.  $\frac{dy}{L}= \frac{dx}{udt}\\ dx = \frac{dy.udt}{L}$  $\sqrt{(dx)^2 + (dy)^2} = DD' = vdt \\ \sqrt{(\frac{dy.udt}{L})^2 + (dy)^2} = vdt $  Here $t$ varies from $0-T$, and $y$ varies from $0-L$. Now how to proceed? Derivation of E step in EM algorithm While im going through the derivation of E step in EM algorithm for pLSA, i came across the following derivation . Could anyone explain me how the following step is derived.   $\sum_z q(z) log \frac{P(X|z,\theta)P(z|\theta)}{q(z)}  = \sum_z q(z) log \frac{P(z|X,\theta)P(X,\theta)}{q(z)} $ Linear regression with non-symmetric cost function? I want to predict some value $Y(x)$ and I am trying to get some prediction $\hat Y(x)$ that optimizes between being as low as possible, but still being larger than $Y(x)$. In other words: $$\text{cost}\left\{ Y(x) \gtrsim \hat Y(x) \right\}  &gt;&gt; \text{cost}\left\{ \hat Y(x) \gtrsim Y(x) \right\}  $$  I think a simple linear regression should do totally fine. So I somewhat know how to implement this manually, but I guess I'm not the first one with this kind of problem. Are there any packages/libraries (preferably python) out there doing what I want to do? What's the keyword I need to look for?  What if I knew a function $Y_0(x) &gt; 0$ where $Y(x) &gt; Y_0(x)$. What's the best way to implement these restrictions? Is there a way to see the history of questions protected by me or another user? Having a record of all actions taken on a site, as is provided by the &quot;activity&quot; and &quot;votes&quot; tabs of our profile, comes in handy very often. Perhaps the most common case is being able to find a question I've interacted with in the past, to see if anything has changed about it. This applies to questions a user has protected as much as anything else. Users are theoretically encouraged to unprotect questions when it's no longer necessary, as emphasized , but in practice they often do not. In many cases it's hard to blame them: unless they specifically marked it as a favourite, the site doesn't keep any record of the question to allow them to find it again. We should help users more easily review their own protections in the future.    For personal review, the votes tab is adequate, but there may also be value in displaying this publicly in the activity tab. There may be users with a history of repeatedly protecting questions over-eagerly. It would be useful to be able to review other users' protection histories to see if this is the case. Even if this is not available to regular users, it may be helpful to moderators, unless their user activity views already allow them to filter down to see this. Conjugate subgroup strictly contained in the initial subgroup? Let $G$ be a group, $H\subseteq G$ a subgroup and $a\in G$ an element of the group. Is it possible that $aHa^{-1} \subset H$, but $aHa^{-1} \neq H$?   If $H$ has finite index or finite order, this is not possible. I came across this problem and I believe Lagrange's theorem is the key to its solution.  The question is:     Let $p$ be an odd prime. Prove that there is some integer $x$ such that $x^2 \equiv −1 \pmod p$ if and only if $p \equiv 1 \pmod 4$.   I appreciate any help.  Thanks. I am trying to classify using randomForest classification in GEE . However, I always get the error User memory limit exceeded, so I assume the number  of the feature are too large. Nevertheless, I saw many developers can classify even bigger dataset, so I am wondering if there is a better option there? The code can be accessed via  var fire= ee.FeatureCollection('users/spatola/recovery_rf_1712').map(function(feature){     var num = ee.Number.parse(feature.get('CLC_311'));     return feature.set('CLC_311', num);   }) var indices= ['EVI_mean','Dnbr','NBR2_mean','NBR2_min','NBR2_max','EVI_min','EVI_max']; var fire1=  fire.filter(ee.Filter.notNull(indices)); var fire2= fire1.select('Class_R','Dnbr','EVI_max','NBR2_max','imageId') var bands= ['NBR2_max', 'EVI_max']; var classProperty= 'Class_R'; var random= fire2.randomColumn('random'); var split_train= 0.8; var split_test= 0.2; var trainPartition= random.filter(ee.Filter.lt('random',split_train)); var testPartition= random.filter(ee.Filter.gte('random',split_test));  var RFtrained_c= ee.Classifier.smileRandomForest({  numberOfTrees: 100,  minLeafPopulation:2,  seed: 123,  }) .setOutputMode('CLASSIFICATION') .train({     features: trainPartition,     inputProperties: bands,     classProperty: classProperty,     }) print(RFtrained_c); var dict =  RFtrained_c.explain(); var test = testPartition.classify(RFtrained_c) print(test.first()) I want to find questions within the C++ tag but with zero answers. How can I do that? How can I use asymmetric encryption, such as RSA, to encrypt an arbitrary length of plaintext?