Replacing values above a threshold with 1
Replacing all values in a table > $T$
Usage of dash (-) in place of a filename For a command, if using - as an argument in place of a file name will mean STDIN or STDOUT.   But in this example, it creates a file with the name -:  echo hello &gt; -   How can I make - in this example mean STDOUT? Conversely, how can I make - mean a file named - in examples such as:  cat - How do I find the Arch-mage at the end of the quest "Under Sarhaal"? How to give an image or video a TV screen effect? Help with table multicolumn What is the $n$ times iterate of $f(x)=\frac{x}{\sqrt{1+x^2}}$? Replace Text Edit as the default text editor I've seen questions  which don't quite solve my problem.  I'd like to make Sublime Text 3 the default file viewer/editor for all files that currently use textedit.  Most of these files can be command+i'd, but the ones that have no extension cannot. They give all sorts of permissions errors such as the ones in this image   Is there any way to just never use textedit, and instead set sublime as the default editor for all files? I'm try to change to my Desktop directory from the terminal.  Running  cd /home/desktop   gives an error in the terminal saying no directory found.  What am I doing wrong? How to check that a cubic polynomial is irreducible? I want to argue that argue that $\pi(\alpha)=\alpha^3+3\alpha+3$ is an irreducible polynomial over the finite field with 5 elements $\mathbb{F}_5$. My approach was just to check that $\pi$ has no roots in $\mathbb{F}_5$. Is this right? Java equivalent to PHP's preg_replace_callback I'm in the process of moving an application from PHP to Java and there is heavy use of regular expressions in the code.  I've run across something in PHP that doesn't seem to have a java equivalent:  preg_replace_callback()   For every match in the regex, it calls a function that is passed the match text as a parameter.  As an example usage:  $articleText = preg_replace_callback("/\[thumb(\d+)\]/",'thumbReplace', $articleText); # ... function thumbReplace($matches) {    global $photos;    return "&lt;img src=\"thumbs/" . $photos[$matches[1]] . "\"&gt;"; }   What would be the ideal way to do this in Java? Does name of sitemap file that Wordpress generates matter? reference variable In some text it is given that we can't assign constant values to a reference variable. When I executed such a program I could do it. Is there any condition we can't assign a constant value to a reference variable? Using k-fold cross-validation for time-series model selection Question: I want to be sure of something, is the use of k-fold cross-validation with time series is straightforward, or does one need to pay special attention before using it?   Background: I'm modeling a time series of 6 year (with semi-markov chain), with a data sample every 5 min. To compare several models, I'm using a 6-fold cross-validation by separating the data in 6 year, so my training sets (to calculate the parameters) have a length of 5 years, and the test sets have a length of 1 year. I'm not taking into account the time order, so my different sets are :   fold 1 : training [1 2 3 4 5], test [6] fold 2 : training [1 2 3 4 6], test [5] fold 3 : training [1 2 3 5 6], test [4] fold 4 : training [1 2 4 5 6], test [3] fold 5 : training [1 3 4 5 6], test [2] fold 6 : training [2 3 4 5 6], test [1].   I'm making the hypothesis that each year are independent from each other. How can I verify that? Is there any reference showing the applicability of k-fold cross-validation with time series. How to access java-classes in the default-package? I'm working now together with others in a grails project. I have to write some Java-classes. But I need access to an searchable object created with groovy. It seems, that this object has to be placed in the default-package.   My question is: Is there a way to access this object in the default-package from a Java-class in a named package? How do I install Adobe Acrobat Reader from the repository? How do I install Adobe Acrobat Reader in Ubuntu 14.04 using a Trusty apt repository?  This is NOT a duplicate of . In Synaptic &gt; Repositories &gt; Other software I enabled "Canonical Partners", but I still cannot install acroread as it is not available on my 64-bit system.  Here's the output from the console:   root@liv-inspiron:/home/liv# apt-get install acroread Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package acroread root@liv-inspiron:/home/liv# apt-get install acroread:i386 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package acroread Methods to compute $\sum_{k=1}^nk^p$ without Faulhaber's formula I would like to update VirtualBox on my 32 bit Ubuntu 15.04 machine from 4.3.26 to 4.3.28, using a Debian package I manually downloaded from . But simply double-clicking the package opens up the Software Centre which gives an error that installing it would break an existing package (the exact message was:   Breaks existing package 'virtualbox' conflict: virtualbox-4.3 ()   and it does not appear to have an option to ignore this and proceed with the installation anyway. Is there a command-line work-around this problem, perhaps? If photons have no mass, how can they have momentum? My current employer has given me the opportunity to design my own GIS workstation. The problem is I have no idea what is important when it comes to hardware! I have been given a datasheet from Fujitsu which includes the latest CELSIUS M720 series workstations but the configuration includes about 30 different processors, graphics cards, and hard drives.  I will be working a lot with the ESRI desktop suite (spatial analyst and 3D analyst) and doing a fair amount of raster processing (DEMs, visibility analysis, etc.), but I also use the GDAL library, SAGA-GIS, Quantum GIS and others.  Does ArcGIS 10 actually use multiple cores?  I have the choice from 4 cores with 8 threads up to 8 cores with 8 threads - 16 threads?  Is SSD SATA III better than HDD SATA III?  The Celsius R920 supports up to 512 GB RAM. But what do I need?  It will probably be the last time I get a new workstation for the next 5 years, so I am curious what others have ordered or feel will be necessary for the coming years. Obviously the cloud isn't taking over as quick as they say! Number of elements in a finite $\sigma$-algebra I have found that the question I want to ask someone had asked, here is the website:    Here is my question: Why $\dim(\hom(V,W))=\dim V * \dim W $?    Thanks for explanation~!