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 |
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 |
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:// --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

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

Another alternative approach is to search for the key at 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
r  installation  ubuntu  packages  keyserver  errormessage  workaround  solution 
november 2018 by kme
EPEL - FedoraProject
<code class="language-bash">yum install</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
Workshop materials:
# spam/
__all__ = []
def export(defn):
globals()[defn.__name__] = defn
return defn
from . import foo
from . import bar
Makes the Python version explicit
% python3 -m pip install package


% 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/*.py
% rm -rf spam
% ls
% python3

See also:
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