recentpopularlog in

kme : packages   10

Index of /bin/windows/contrib/3.3
When I couldn't install shiny-1.2.0 from the repos (RStudio and R 3.3.3 on Windows) because it required httpuv-1.4.5, when the latest binary for R 3.3.x on Windows in CRAN was httpuv-1.4.1, installing shiny_1.0.5 from here worked.
r  rstudio  shiny  binary  packages  repo  packagemanagement  solution 
november 2018 by kme
Perl - Subroutine redefined - Stack Overflow | https://stackoverflow.com/
When I did this, it was because I used Exporter's @EXPORT, and redefined 'read' that some other package had also exported.
errormessage  perl  newbie  packages  devel  sortof  solution 
november 2018 by kme
Index of /bin/linux/ubuntu | https://cran.r-project.org/
Some people have reported difficulties using this approach. The issue is usually related to a firewall blocking port 11371. If the first gpg command fails, you may want to try (thanks to Mischan Toosarani for the tip):
<code class="language-bash">
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
</code>

and then feed it to apt-key with
<code class="language-bash">
gpg -a --export E298A3A825C0D65DFD57CBB651716619E084DAB9 | sudo apt-key add -
</code>

Another alternative approach is to search for the key at http://keyserver.ubuntu.com:11371/ and copy the key to a plain text file, say key.txt. Then, feed the key to apt-key with
<code class="language-bash">
sudo apt-key add key.txt
</code>
r  installation  ubuntu  packages  keyserver  errormessage  workaround  solution 
november 2018 by kme
EPEL - FedoraProject
tl;dr:
<code class="language-bash">yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm</code>
EPEL packages are usually based on their Fedora counterparts and will never conflict with or replace packages in the base Enterprise Linux distributions. EPEL uses much of the same infrastructure as Fedora, including buildsystem, bugzilla instance, updates manager, mirror manager and more.

You can install EPEL by running yum install epel-release. The package is included in the CentOS Extras repository, enabled by default.
rhel  redhat  centos  rpm  packages  packagemangement  solution 
may 2017 by kme
ModulePackage - ModulePackage.pdf
Video: https://www.youtube.com/watch?v=0oTh1CXRaQ0
Workshop materials: http://dabeaz.com/modulepackage/
# spam/__init__.py
__all__ = []
def export(defn):
globals()[defn.__name__] = defn
__all__.append(defn.__name__)
return defn
from . import foo
from . import bar
Makes the Python version explicit
% python3 -m pip install package

vs

% pip install package

Rant: I can't count the number of times I've had
to debug someone's Python installation because
they're running some kind of "script", but they
have no idea what Python it's actually attached to.
The -m option avoids this.

Neat `-m` tricks:

% python3 -m zipfile -c spam.zip spam/*.py
% rm -rf spam
% ls
spam.zip
% python3 spam.zip

See also: https://www.python.org/dev/peps/pep-0441/
python  packages  modules  slides  howto  newbie  reference  bestpractices 
december 2016 by kme
How do I include a Perl module that's in a different directory? - Stack Overflow
It's the only one that searches relative to the module directory:

use FindBin; # locate this script
use lib "$FindBin::Bin/.."; # use the parent directory
use yourlib;
perl  library  include  modules  packages  import  dammitbrain  solution 
december 2016 by kme
Perl: use @ISA together with use strict | Xinotes
The following code fails with error: Global symbol "@ISA" requires explicit package name.

package DerivedClass;
use strict;
@ISA = qw(BaseClass);



To correct the problem, change the code to:

package DerivedClass;
use strict;
use vars ('@ISA');
@ISA = qw(BaseClass);
perl  exporter  packages  module  errormessage  solution 
december 2016 by kme

Copy this bookmark:





to read