packages

Update a package and keep it from reverting to the original

余生颓废 提交于 2019-12-04 06:53:10
I want to upgrade the package ggplot2: library(ggplot2) packageDescription("ggplot2")["Version"] > 0.8.3 But the current version is 0.8.7. I tried update.packages(), which seemed to work OK. But it still returned older version 0.8.3. So I downloaded and installed the package source from Cran, which says 0.8.7 in the download page. I then install it via the GUI menu in R. It returns ** building package indices ... * DONE (ggplot2) I then run: packageDescription("ggplot2")["Version"] > 0.8.3 And still I have the older version! I don't know why this is not working, what's more I had already come

Split packages in plain java

北城余情 提交于 2019-12-04 06:41:28
OSGi has a problem with split packages, i.e. same package but hosted in multiple bundles. Are there any edge cases that split packages might pose problems in plain java (without OSGi) ? Just curious. For OSGi packages in different bundles are different, regardless of their name, because each bundle uses its own class loader. It is not a problem but a feature, to ensure encapsulation of bundles. So in plain Java this is normally not a problem, until you start using some framework that uses class loaders. That is typically the case when components are loaded. Where split packages come from Split

Pros and cons of using packages in Oracle

左心房为你撑大大i 提交于 2019-12-04 06:40:19
问题 I am fairly new to using packages. My team is deciding on whether or not to use packages in our applications. We have 4 applications that are using in-line sql currently. We are deciding on putting each sql statement in a stored procedure and then logically grouping the Stored procedure into packages(These stored procedures will be shared among the applications). What are the potential pros and cons of using packages. Our applications are written in asp.net using c#. 回答1: So you want to start

Unit finalization order for application, compiled with run-time packages?

老子叫甜甜 提交于 2019-12-04 05:30:47
I need to execute my code after finalization of SysUtils unit. I've placed my code in separate unit and included it first in uses clause of dpr-file, like this: project Project1; uses MyUnit, // <- my separate unit SysUtils, Classes, SomeOtherUnits; procedure Test; begin // end; begin SetProc(Test); end. MyUnit looks like this: unit MyUnit; interface procedure SetProc(AProc: TProcedure); implementation var Test: TProcedure; procedure SetProc(AProc: TProcedure); begin Test := AProc; end; initialization finalization Test; end. Note that MyUnit doesn't have any uses. This is usual Windows exe, no

Modules vs Layers in Java package structure

天大地大妈咪最大 提交于 2019-12-04 05:29:05
I used to put everything in packages like this: com.company.app.module1 com.company.app.module2 But it has made package-based AOP pointcuts difficult, and resulted in huge packages that need an IDE to make sense of. So now I realize I need a deeper package structure, but I am constantly torn. Give modules preference, like this? com.company.app.module1.domain com.company.app.module1.logic com.company.app.module1.persistence com.company.app.module2.domain com.company.app.module2.logic com.company.app.module2.persistence or give layers preference, like this? com.company.app.domain.module1 com

解决Running "flutter packages get" in flutter_first_app...卡住 问题

别说谁变了你拦得住时间么 提交于 2019-12-04 05:24:08
1、碰到这个问题后我又点了一次pubspec.yaml文件里面的Packages get结果又出现了Waiting for another flutter command to release the startup lock...的问题。所以只能先解决这个问题咯 经过查找资料发现只要删除 如下图的那个lockfile文件即可,有时候你会删除失败,这时候去进程中把dart.exe进程关闭即可 到这里我们就解决了这个衍生问题。 2、接下来解决Running "flutter packages get" in flutter_first_app...卡住 问题: 只要在pubspec.yaml文件里面加上以下两句话: PUB_HOSTED_URL ===== https://pub.flutter-io.cn FLUTTER_STORAGE_BASE_URL ===== https://storage.flutter-io.cn 然后点击Flutter doctor即可 然后再把这两句话删掉,重新 点击Packages get就会出现: 好了大功告成。完美 来源: CSDN 作者: 李小白的博客 链接: https://blog.csdn.net/qq_38363506/article/details/97889435

How to make a python package containing only jinja templates

不羁的心 提交于 2019-12-04 05:21:36
问题 Currently have a project where I am currently trying to extend jinja2 templates that live in a python package I am trying to make. Right now I'm struggling to make a python package with .html files. Here is what I currently have: sharedtemplates/ ├── setup.py └── templates ├── __init__.py ├── base.html ├── footer.html └── header.html __init__.py is empty and setup.py is super basic. The directory I am currently working on is setup like this: repo/ ├── site.py └── templates └── index.html In

Can't use Jupyter Notebook: jsonschema apparently missing

非 Y 不嫁゛ 提交于 2019-12-04 05:21:04
When using a an Anaconda environment, I can't start Jupyter to work in a notebook. I can do so without the environment, but I need to be able to use the environment. Here's what I do and the errors I get: ben@ben-K60IJ:~/surveillance_sound_classifier/surveillance_sound_classifier$ source activate EECS352 discarding /home/ben/anaconda/bin from PATH prepending /home/ben/anaconda/envs/EECS352/bin to PATH (EECS352)ben@ben-K60IJ:~/surveillance_sound_classifier/surveillance_sound_classifier$ jupyter notebook Traceback (most recent call last): File "/home/ben/anaconda/envs/EECS352/bin/jupyter

Why can you import a package *after* using its content in a function?

霸气de小男生 提交于 2019-12-04 05:12:55
I'm on MATLAB R2014b and have a question that I will illustrate with the following example. MWE can be made as follows or download it as a .zip file here . Create a package folder +test on your path with four function files in it: +test a.m b.m c.m d.m Content of a.m : function a disp 'Hello World!' Content of b.m : function b a If you run b from the command line, you will have to import the test package first ( import test.* ) or run test.b . Running b will result in an error, since the scope of function b doesn't contain function a . We must import it before it can be used. For this I've

Version errors for numpy when importing matplotlib

半城伤御伤魂 提交于 2019-12-04 05:07:58
When I import matplotlib I get no errors, but when I import matplotlib.pyplot I get RuntimeError: module compiled against API version 8 but this version of numpy is 7 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/matplotlib/pyplot.py", line 24, in <module> import matplotlib.colorbar File "/Library/Python/2.7/site-packages/matplotlib/colorbar.py", line 27, in <module> import matplotlib.artist as martist File "/Library/Python/2.7/site-packages/matplotlib/artist.py", line 8, in <module> from transforms import Bbox, IdentityTransform