locate

Can't locate DBI.pm

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to launch this script: #!/usr/bin/perl use DBI; my $dbh = DBI->connect( 'dbi:Oracle:host=lonlin2;sid=TIMFX1AD;port=1524','xbsesdbo','xbsesdbo123' ) || die ( $DBI::errstr . "\n" ); my $query= "SELECT * FROM product_elements WHERE element_id = 1001"; my $queryHandler= $dbh->prepare($query); my $result= $queryHandler->execute(); open(fileHandler,"> note.txt"); print fileHandler "Risultato query: $result\n"; my $e= $dbh->disconnect(); close(fileHandler); When I launch this script I receive this error: Can't locate DBI.pm in @INC (@INC

How can I find a file/directory that could be anywhere on linux command line?

眉间皱痕 提交于 2019-12-03 07:22:24
问题 Ideally, I would be able to use a program like find [file or directory name] to report the paths with matching filenames/directories. Unfortunately this seems to only check the current directory, not the entire folder. I've also tried locate and which, but none find the file, even though I know its on the computer somewhere. 回答1: "Unfortunately this seems to only check the current directory, not the entire folder". Presumably you mean it doesn't look in subdirectories. To fix this, use find

file_get_contents(): Unable to locate certificate CN

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We are having two domains ( both https ): one as main domain https://dev.project.com/ and the other for images https://dev-images.project.com/ . The frontpage loads the images just fine, but I'm having this problem with file_get_contents . ErrorException in Collection.php line 228: file_get_contents(): Unable to locate certificate CN in Collection.php line 228 at HandleExceptions->handleError('2', 'file_get_contents(): Unable to locate certificate CN', '') at file_get_contents('https://dev-images.project.com/images/12012_resized.jpg') in

Laravel 5.2: Unable to locate factory with name [default]

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to seed database when I use this public function run() { $users = factory(app\User::class, 3)->create(); } Add three user in database but when I use this public function run() { $Comment= factory(app\Comment::class, 3)->create(); } Show me error [InvalidArgumentException] Unable to locate factory with name [default] [app\Comment]. 回答1: By default the laravel installation comes with this code in the database/factories/ModelFactory.php File. $factory->define(App\User::class, function (Faker\Generator $faker) { return [ 'name' => $faker-

Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxrs]

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to integrate Apache CXF with Spring to create a RESTful webservices. But while deploying the application I am getting the following exception. SEVERE: Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxrs] Offending resource: ServletContext resource [/WEB-INF/beans.xml] This is my beans.xml and my pom.xml is 4.0.0 com.maventest Lab war 1.0-SNAPSHOT Lab Maven Webapp

Leaflet .locate watch option breaks .locate after changing tab Ionic 3

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have one function called loadmap(){} where im creating map.Im loading this function with ionViewDidEnter() { this.loadmap(); } Inside loadmap i have this.map = leaflet.map("map").fitWorld(); thats how i initialize map This is how i remove map when user changes tab. ionViewDidLeave(){ this.map.remove(); } This is my .locate function: var usermarker; this.map.locate({ setView: true, maxZoom: 120, watch:true, enableHighAccuracy:true }).on("locationfound", e => { if (!usermarker) { usermarker = new L.marker(e.latlng).addTo(this.map); } else {

Ubuntu升级GCC版本

匿名 (未验证) 提交于 2019-12-03 00:27:02
1 问题发现 目前正在使用 Ubuntu 14.04 LTS, 虽然更新了HWE之后, 系统仍然在不断的维护he更新, 但是编译工具是不会更新的, 如果目前我还在使用Ubuntu 14.04, 是无法体验新版gcc的. 怎么办呢? 2 问题解决 其实, 在 toolchain/test 下已经有打包好的gcc, 版本有4.x、5.0、6.0等, 并为Ubuntu10.04~16.04军均提供了gcc包, 如下图所示 用这个PPA升级gcc就可以啦 2.1 添加源 首先添加ppa到库: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update 2.2 安装新版gcc/g++ 默认在系统中安装的是gcc-4.8, 但现在都什么年代了万一有重要或者好玩的更新呢, 接着就可以选择安装gcc-4.9, gcc-5之类的啦!(注意目前gcc-5实际上是5.3.0,没有5.1或5.2可供选择) sudo apt-get install gcc- 4.8 g++- 4.8 sudo apt-get install gcc- 4.9 g++- 4.9 sudo apt-get install gcc- 5 g++- 5 sudo apt-get install gcc- 6 g++- 6 具体希望安装哪个版本,

linux文件操作

匿名 (未验证) 提交于 2019-12-02 21:59:42
# 知识要点 1. 查找命令 2. 管道 3. 输出 4. vim 编辑器 5. alias别名 6. 安装python 主要命令: `find` , `locate` , `grep` , `echo` , `vim` # 1.查找命令 # 命令搜索 `whereis` 搜索命令位置和帮助文档的位置 `which` 搜索位置和命令的别名 1 [tree@tree ~ ]$ whereis ls 2 ls: /bin/ls /usr/share/man/man1/ls. 1 .gz 3 [tree@tree ~ ]$ which ls 4 alias ls= ‘ ls --color=auto ‘ 5 /bin/ls View Code # 文件查找 `find` 命令格式:`find [-path] -options` path :要查找的目录,默认是当前目录 option: -name 按文件名的某种规则的查找 -type 按文件类型查找 -size 按文件大小查找 通配符: *匹配任意内容 ?匹配任意一个字符 []匹配任意一个中括号内的字符 1 [tree@tree ~]$ find /bin -name ‘ ping* ‘ 2 /bin/ ping6 3 /bin/ ping 4 [tree@tree ~]$cd / bin 5 [tree@tree bin]$ find

常用linux指令

匿名 (未验证) 提交于 2019-12-02 21:56:30
1、为用户 tangtest 设置初始密码 1qazxsw2 echo 1qazxsw2 | passwd --stdin tangtest passwd tangtest 2、cd cd / 进入系统根目录 ~表示用户主目录,即HOME变量指定的目录,如root用户的主目录为/root。 -表示前一个工作目录。 ..表示上级目录。 .表示当前目录 3、 source、sh、bash、./执行脚本 4、查找进程列表里的关键字dae ps -e|grep dae ps -f|grep dae ps -ef|grep dae 5、查找文件位置:find,locate和whereis find命令是linux中最强大的查找文件的命令,它的格式为”find <指定目录> <指定条件> <指定动作>“。比如使用find命令搜索在根目录下的所有interfaces文件所在位置,命令格式为”find / -name 'interfaces'” 第二个命令是locate命令,使用locate也可以搜索到linux系统中的文件,同样的这里使用locate命令搜索interfaces文件,命令为”locate interfaces“,locate命令是比find命令快的,因为它查询的是locatedb数据库,该数据库包含本地所有的文件信息 最后一个是使用”whereis“命令搜索文件