lpl

Locking color key in levelplot in r

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using levelplots to display matrices and the plots are below. Though same col.regions are used for both the plots, the colour key is different. How can we lock (or set) the colour key for both level plots? I want the same colour key (0 to 60) for both plots. 回答1: Try setting the at and colorkey parameters. In my example, I use the rasterVis package, which just extends the lattice plotting functions for rasters, but it should not be necessary. I just wanted to use the BuRdTheme() function to set my own theme. Example: require(rasterVis)

sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Please suggest a solution for solving this issue?? While giving the command sqlplus /nolog the error occurred is sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory .. 回答1: The minimum configuration to properly run sqlplus from the shell is to set ORACLE_HOME and LD_LIBRARY_PATH . For ease of use, you might want to set the PATH accordingly too. Assuming you have unzipped the required archives in /opt/oracle/instantclient_11_1 : sh$ export ORACLE_HOME=/opt/oracle

lm called from inside dlply throws “0 (non-NA) cases” error [r]

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using dlply() with a custom function that averages slopes of lm() fits on data that contain some NA values, and I get the error "Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : 0 (non-NA) cases" This error only happens when I call dlply with two key variables - separating by one variable works fine. Annoyingly I can't reproduce the error with a simple dataset, so I've posted the problem dataset in my dropbox. Here's the code, as minimized as possible while still producing an error: masterData <- read.csv("http:/

Levelplot color key - range and extremes

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible in R to create a color key like the one below? (this one comes from the software Grid Analysis and Display System - Grads). There are two features that I can't reproduce in R: The sequence is non linear however it is displayed as if Values bigger than 200 are grey / Values smaller than 0 are white I'm using levelplot from rastervis that plots rasters using the lattice levelplot: require(raster) require(rasterVis) set.seed(200) X = seq(-40,0,by=1) Y = seq(-60,-40,by=1) grid = expand.grid(list(X=X,Y=Y)) Z = rnorm(nrow(grid),mean

sqlplus操作

夙愿已清 提交于 2019-12-03 04:02:56
sqlplus /nolog 原文 http://blog.itpub.net/26686207/viewspace-719737/ http://blog.itpub.net/25897606/viewspace-704152/ E:\app\kevin\product\12.1.0\dbhome_1\sqlplus\admin\glogin.sql 添加set sqlprompt "_user'@'_connect_identifier> " 或者set sqlprompt '_user@&_connect_identifier> ' 下面是一些常用的sqlplus参数说明,用的比较多的是linesize,pagesize,rowwidth三个参数。 SQL>set colsep' ';     //-域输出分隔符 SQL>set echo off;     //显示start启动的脚本中的每个sql命令,缺省为on SQL> set echo on //设置运行命令是是否显示语句 SQL> set feedback on; //设置显示“已选择XX行” SQL>set feedback off; //回显本次sql命令处理的记录条数,缺省为on SQL>set heading off;   //输出域标题,缺省为on SQL>set pagesize 0; //输出每页行数

SqlPlus SP2-0734: Error [closed]

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to using SqlPlus but not new to using SQL, and I get the following error after writing this in my editor and attempting to run the script that I wrote. All of this appears to be valid and works on sql fiddle... I am not sure what the issue is. Any ideas?? None of the files I create seem to work.... SQL> start sales.sq; which contains 1 create table salesreps 2 (empl_num number(3,0) primary key, 3 name varchar2(15) not null, 4 age number(3,0), 5 rep_office number(2,0), 6 title varchar2(10), 7 hire_date varchar2(10) not null, 8

Oracle SQLPlus ORA-01017 invalid credentials when specifying schema

匿名 (未验证) 提交于 2019-12-03 01:42:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: On an Oracle11g database, this works: SQL> connect USER/pass Connected. However, this doesn't: SQL> connect USER/pass@db ERROR: ORA-01017: invalid username/password; logon denied I have executed: SQL> grant connect to USER; Grant succeeded. What am I missing? tnsnames.ora: DB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = a.dom.b.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = db) ) ) EDIT: :> sqlplus USER/pass SQL*Plus: Release 11.1.0.7.0 - Production on Mon Mar 11 15 Copyright (c) 1982, 2008, Oracle. All rights

Sqlplus login error when using bash variables: SP2-0306: Invalid option

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a bash script that connects to an oracle 10g database. In a first step it takes some variables from a "config" file with the following command . /path/to/my/configfile.ini In the config file there are some variables: export USRID=myUser export USRID_PASS=myPassword export USR_PASS="$USRID/$USRID_PASS@myDatabase" Then it actually connects through sqlplus using the command: sqlplus -s $usr_pass Terrible Security and Design issues aside (this script has been around for 5 years). This is actually doing its job in one of our UNIX servers,

Build GlobalPlatform for Ubuntu 14.04 LTS

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try building GlobalPlatform for Ubuntu 14.04LTS to get GPShell up and running. but I get the following errors. I think this is openssl related but I'm not 100% sure. crypto.c:1391:17: error: storage size of ‘ctx’ isn’t known EVP_CIPHER_CTX ctx; ^ crypto.c:1391:17: warning: unused variable ‘ctx’ [-Wunused-variable] make[1]: * [libglobalplatform_la-crypto.lo] Error 1 make[1]: Leaving directory `/usr/local/bin/globalplatform-6.0.0/src' make: * [check-recursive] Error 1 I used the current openssl Version 1.1.0. I also removed it and tried to

TNSPING OK but sqlplus gives ORA-12154?

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have Oracle 11 running on a Windows server and I'm logged onto the same server trying to use SQL Plus. When I try to connect I get a ORA-12154 even though TNSPING and various other diagnostics look OK. Can anyone suggest why ? Loads of detail below. I can use sqlplus if I use EZCONNECT like this .. sqlplus EST/EST@192.168.10.15/ORCL ... but if I try to connect using TNSNAMES like this ... sqlplus EST/EST@ORCL ... I get ... ORA-12154: TNS:could not resolve the connect identifier specified TNSPING works OK C:\Documents and Settings\user1