prefix

linux下查看软件的安装路径

喜欢而已 提交于 2019-12-02 09:32:23
网上看到一篇查看linux软件安装到哪里去了的文章 写的很好 特别是最后那两段 学习了 一般说来都是安装到/usr/share和/usr/local里了 你可以通过whereis 软件名来查找系统里的文件位置 比如你想查找eclipse文件,那么就: [root@localhost ~]# whereis eclipse 会显示: eclipse: /usr/bin/eclipse /usr/lib/eclipse /usr/share/eclipse 以上只适合安装路径加入PATH里 2.如果是源码安装的话,你可以使用-prefix指定安装路径,这样,你可以很轻松知道软件的安装路径; 3.如果是rpm包安装的话,可以使用rpm -qal查询一下 rpm -qf /路径/程序名 可以查到一个程序属于哪个rpm包,然后rpm -ql那个包可以看到那个包的所有文件和路径等等。还可以解开成一个cpio文件等等之类的,仔细研究一下rpm的参数吧。 完全可以做到任何你想做的。 源码的安装一般由3个步骤组成:配置(configure)、编译(make)、安装(make install),具体的安装方法一般作者都会给出文档,这里主要讨论配置(configure)。Configure是一个可执行脚本,它有很多选项,使用命令./configure –help输出详细的选项列表,如下: -bash-3

Generating vendor prefixes in LESS

删除回忆录丶 提交于 2019-12-02 08:35:41
I've pieced together this approach for generating vendor-prefixed properties and animations using LESS. First some factory functions: .vendorprefix (@property, @value) { -webkit-@{property}: @value; -moz-@{property}: @value; -ms-@{property}: @value; -o-@{property}: @value; @{property}: @value; } .keyframes(@name; @animation) { @animation(); @-webkit-keyframes @name { .frames(-webkit-) } @-moz-keyframes @name { .frames(-moz-) } @-o-keyframes @name { .frames(-o-) } @keyframes @name { .frames(~'') } } The '.vendorprefix' function can be used for general purpose properties including setting

How to use Prefix.pch in WP8 like in iOS?

☆樱花仙子☆ 提交于 2019-12-02 07:45:20
In iOS I have 5 application which use same code. I was able to refer the common classes and separate the application name, theme and color using the values from the Prefix.pch file. My Prefix file has these, #define APPLICATION_NAME @"Application01" #define APPLICATION_THEME @"Brown" By using these macros defined my prefix file, in my program I can say #if APPPLICATION_THEME = @"Brown" -perform this- I would like to follow the same approach in WP8. I don't know where do I define these macro values and to use them in the code. Please help me in achieving this. Just replace #define APPLICATION

How to get JAXB output to have namespace included with the child node with no prefix?

核能气质少年 提交于 2019-12-02 07:28:25
God knows I searched the forum for an answer, but didn't see any. This is the simplified XML my JAXB code reads. There are 2 namespaces involved. xyz and abc. These two are defined in two different schema files. And xjc generates two different packages for them. The following file is nicely read into those classes and can even write it. <xyz:xyz xsi:schemaLocation="urn:xyz xyz.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xyz="urn:xyz"> <session> <App xsi:schemaLocation="urn:abc abc.xsd" xmlns="urn:abc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AppItem att1=

libeXosip2 + libosip2 + ortp + mediastream2 + alsa-lib + pulseaudio

喜你入骨 提交于 2019-12-02 06:38:45
dong@ubuntu:~/package$ tree . ├── alsa-lib-1.0.24.1.tar.bz2 ├── bctoolbox-0.6.0.tar.gz ├── _install.sh ├── json-c_0.12.1.orig.tar.gz ├── libeXosip2-3.0.1.tar.gz ├── libogg-1.3.3.tar.gz ├── libosip2-3.0.1.tar.gz ├── libsndfile-1.0.25.tar.gz ├── libtool-2.4.2.tar.gz ├── mbedtls-mbedtls-2.16.3.tar.gz ├── mediastreamer-2.8.0.tar.gz ├── orc-orc-0.4.28.tar.gz ├── ortp-0.18.0.tar.gz ├── pulseaudio-1.0.tar.gz └── speex-1.2rc1.tar.gz 0 directories, 15 files _install.sh platform= #platform=`CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf`

@ConfigurationProperties 注解使用

↘锁芯ラ 提交于 2019-12-02 05:54:11
@ConfigurationProperties 注解使用 依赖和文件 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </dependency> ##jwt配置 audience: # 代表这个JWT的接收对象,存入audience clientId: 098f6bcd4621d373cade4e832627b4f6 # 密钥, 经过Base64加密, 可自行替换 base64Secret: MDk4ZjZiY2Q0NjIxZDM3M2NhZGU0ZTgzMjYyN2I0ZjY= # JWT的签发主体,存入issuer name: restapiuser # 过期时间,时间戳 expiresSecond: 172800 测试 package com.mozq.sb.jwt01.config; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot

NDN helper 学习记录

一曲冷凌霜 提交于 2019-12-02 05:03:34
1、 StackHelper 主要用于在请求的节点上安装ndnSIM网络堆栈, 提供一种简单的方法来配置NDN模拟的几个重要参数。(官方解释)   其实就是给结点装上堆栈 方法: 全部结点一次性安装(比较常用) ndn::StackHelper ndnHelper; ndnHelper.InstallAll(); 分别给结点安装,三种方式(通常用不到) install(const std::string &nodeName) 结点名 install(Ptr< Node > node) 结点 install(const NodeContainer &c) 结点容器例1,通过结点容器创建的结点,利用get获得:// Creating nodesNodeContainer nodes;nodes.Create(3);ndn::StackHelper ndnHelper;ndnHelper.Install(nodes.Get(0));ndnHelper.Install(nodes.Get(1));ndnHelper.Install(nodes.Get(2)); 例2,在拓扑txt文件中创建的结点,直接寻名获得结点,注意寻名这个方式必须是在txt已经定义好了结点名,如果是例一这种创建结点的方式,是无法通过寻名的 AnnotatedTopologyReader topologyReader("

Nginx location模块整理

非 Y 不嫁゛ 提交于 2019-12-02 04:52:33
location模块 Nginx location location 指令的作用是根据用户请求的URI来执行不同的应用,URI就是根据用户请求到的网址URL进行匹配,匹配成功了进行相关的操作。 location语法 下面是官网的语法结构: Syntax: location [ = | ~ | ~* | ^~ ] uri { ... } location @name { ... } Default: — Context: server, location 官网解释翻译和理解 下面会结合官网原文进行解释,以下英文部分均从官网摘抄: http://nginx.org/en/docs/http/ngx_http_core_module.html#location (翻译的不好勿喷) Sets configuration depending on a request URI. 根据请求的URI进行配置 URI 变量是待匹配的请求字符串, A location can either be defined by a prefix string, or by a regular expression. Regular expressions are specified with the preceding “~*” modifier (for case-insensitive matching),

mybatis 批量更新update详解

余生颓废 提交于 2019-12-02 03:33:24
1 更新单条记录 UPDATE course SET name = 'course1' WHEREid = 'id1'; 2 更新多条记录的同一个字段为同一个值 UPDATE course SET name='course1' WHERE id in('id1','id2','id3); 3 更新多条记录为多个字段为不同的值 比较普通的写法,是通过循环,依次执行update语句。 Mybatis写法如下: <update id="updateBatch" parameterType="java.util.List"> <foreach collection="list" item="item" index="index" open="" close="" separator=";"> update course <set> name=${item.name} </set> where id = ${item.id} </foreach> </update> 一条记录update一次,性能比较差,容易造成阻塞。 MySQL没有提供直接的方法来实现批量更新,但可以使用case when语法来实现这个功能。 UPDATE course SET name = CASE id WHEN 1 THEN 'name1' WHEN 2 THEN 'name2' WHEN 3 THEN 'name3

How to automatically add browser prefix to CSS3 properties?

落花浮王杯 提交于 2019-12-02 01:09:35
问题 As you may be know, because CSS3 is not compatible with all of browsers when we use CSS3 we should add a prefix to CSS3 properties (like -moz, -webkit, -o and ...) It is difficult to write these prefixes manually. So, is there any plugin, program or another thing to detect CSS3 properties in my CSS file and append necessary vendor prefixes to those properties ? 回答1: There are several options that come to mind, depending on your use-case: SASS with Bourbon SASS with Compass Less with LESS