bundle

Ubuntu 16.04 安装 VMware-Workstation-12

岁酱吖の 提交于 2019-12-18 05:36:54
以前一直使用 Ubuntu + Virtaulbox ,最近测试了 VMware-Workstation-9, 性能超过 Virtaulbox-4.2.x,下面是详细步骤: 1 首先准备一个Ubuntu 系统 lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04 LTS Release: 16.04 2 获得VMware-Workstation-12 安装包 下载地址 (linux:https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-12.1.1-3770994.x86_64.bundle) (windows:https://download3.vmware.com/software/wkst/file/VMware-workstation-full-12.1.1-3770994.exe) 选择for Linux file VMware-Workstation-Full-12.1.1-3770994.x86_64.bundle VMware-Workstation-Full-12.1.1-3770994.x86_64.bundle : data 3 安装

好用的打包工具webpack

筅森魡賤 提交于 2019-12-18 01:44:36
<什么是webpack> webpack是一个模块打包器,任何静态资源(js、css、图片等)都可以视作模块,然后模块之间也可以相互依赖,通过webpack对模块进行处理后,可以打包成我们想要的静态资源。 gulp的打包是将js、css、图片等分开打包的,但是webpack是将所有的静态资源打包到一起,因此一个请求就可以了。 <webpack的特点> ·支持CommonJs(require的写法)和AMD模块,也就是说基本可以无痛迁移旧项目 ·支持模块加载器和插件机制,可对模块灵活定制,特别是babel-loader,有效支持es6 ·可以通过配置,打包成多个文件。有效利用浏览器的缓存功能提升性能。将公用的东西抽离出来,比如jQuery等 ·将样式文件和图片等静态资源视为模块进行打包。配合loader加载器,支持sass、less等css预处理器 ·内置有source map,即使打包在一起也方便调试 <webpack的安装> 1,先全局安装 npm install webpack -g ·webpack -w 提供watch方法,实时进行打包更新 ·webpack -p 对打包后的文件进行压缩 ·webpack -d 提供sourcemap,方便调试 ·webpack --config 以某个config作为打包 ·webpack --help 更多命令 2,再本地安装 npm

android activity详解三:保存activity的状态

百般思念 提交于 2019-12-18 00:24:47
保存activity的状态 在“acitvity的生命周期”一节中提到了当暂停和停止时,activity的状态是被保留在内存中的,当resume时,它会立即开始执行。 左图表示acitvity未销毁,只是被停止再开始的过程,右图表示acvitiry所在的进程被关了,那么acitvity就销毁了,然后又被重新创建的过程。 当用户在开启一个新activity时,当前的activity可能在内存中处于停止状态也可能由于新activity需要更多内存而被系统杀掉了,但不论怎样,当用户在新activity上按返回键时,他希望看到的是原先的activity的界面。原先的activity如果是被重新创建,那么它要恢复到用户最后看到它的样子。那么我们怎么做呢?其实也不难,跟据上一节所述,在onPause()或onStop()或onDestyroy()中保存必要的数据就行了。但是现在google又冒出一个新的东西:onSaveInstanceState(),观其名可知其意:它是专门用来保存实例状态的,这个“实例”不是指的activity对象,而是它所在的进程,因为activity的销毁是因为它所在的进程被杀而造成的。onSaveInstanceState()是在系统感觉需要杀死activity时调用的,它被传入一个参数:Bundle,这个Bundle可以被认为是个map,字典之类的东西,用”键-值

Can I embed a custom font in a bundle and access it from an ios framework?

我是研究僧i 提交于 2019-12-17 23:29:33
问题 I'm creating an ios framework with its bundle for packaging ressources (nib, images, fonts) and I'm trying to embed a custom font in the bundle but I'm not able to load it from the framework, is it possible ? 1) I can localize the font file with this: objc NSString *fontPath = [[NSBundle frameworkBundle] pathForResource:@"MyCustomFont" ofType:@"ttf"]; 2) But I can't get it in my fonts lists: objc NSArray * array = [UIFont familyNames]; I included my font name in the bundle's plist with a

Where can i download Eclipse Android bundle

痞子三分冷 提交于 2019-12-17 21:40:10
问题 Where can I download Eclipse Android Bundle? Google now directed you to download Android Studio or to download Eclipse SDK integration but I want to find Eclipse Android bundle. I searched in Google and Eclipse web site but can't find any link. Do you know any site , ftp etc. to download bundle? Thanks. 回答1: The Android Developer pages still state how you can download and use the ADT plugin for Eclipse: Start Eclipse, then select Help > Install New Software . Click Add , in the top-right

Saving an entire Bundle to SharedPreferences

巧了我就是萌 提交于 2019-12-17 21:02:06
问题 Assuming a method of mine was passed a Bundle already filled with data to be saved, is there a way to save it to SharedPreferences without taking it apart to ints, floats, Strings, etc.? I prefer the convenience of writing/committing it all in "one fell swoop", so if this isn't possible using SharedPreferences, what other persistent storage approach would you recommend? 回答1: as far as I know, you can save only primitive data (and their wrappers) to SharedPreferences why don't you create your

CentOS7安装gitlab中文版

笑着哭i 提交于 2019-12-17 18:42:23
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1.安装软件包及解决依赖项 yum groupinstall "Development tools" yum install gcc autoconf cmake unzip vim libcurl-devel zlib-devel curl-devel expat-devel gettext-devel openssl-devel perl-devel nodejs libicu-devel wget curl 安装git 如果已经用yum安装过git,并且版本低于2.7.4,要先卸载掉旧的版本 yum remove git 使用源码编译安装git mkdir /tmp/git && cd /tmp/git curl -O --progress https://www.kernel.org/pub/software/scm/git/git-2.10.0.tar.gz tar -xzf git-2.10.0.tar.gz cd git-2.10.0 ./configure make prefix=/usr/local all # 安装到/usr/local/bin make prefix=/usr/local install # 验证git版本号 git --version #查看git安装路径 which

Programmatically add Bundle Products in Magento, using the SKU / ID of Simple Items

大兔子大兔子 提交于 2019-12-17 18:30:21
问题 I have some simple catalog products in Magento, so I have their SKUs & IDs. Now I want to create a Bundled product using the array elements "bundle_options" & "bundle_selections" of the Bundle Items, which are used by the Magento Admin coding in its Observer Class. Also in the Observer class, there are method calls of two functions " setBundleOptionsData() " & " setBundleSelectionsData() ", for whose I am not able to find any function definition. Please any professional post here, because I

Send values from ViewPager Activity to a Fragment by bundle

隐身守侯 提交于 2019-12-17 18:29:17
问题 I have an ViewPager Activity that call the fragment that represent the slide layout. What i need is pass values from activity to fragment by bundle. How i can do this? I try pass a int 2 in onCreate() but not work and i Activity: @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.activity_screen_slide); Intent intent = new Intent(this,ScreenSlidePageFragment.class); Bundle bundle = new Bundle(); bundle.putInt("SIDE",2);

Android HashMap in Bundle?

时光毁灭记忆、已成空白 提交于 2019-12-17 17:33:55
问题 The android.os.Message uses a Bundle to send with it's sendMessage-method. Therefore, is it possible to put a HashMap inside a Bundle ? 回答1: try as: Bundle extras = new Bundle(); extras.putSerializable("HashMap",hashMap); intent.putExtras(extras); and in second Activity Bundle bundle = this.getIntent().getExtras(); if(bundle != null) { hashMap = bundle.getSerializable("HashMap"); } because Hashmap by default implements Serializable so you can pass it using putSerializable in Bundle and get in