设置背景颜色 Options => Sessions options => Terminal => Emulation, 在 Terminal下拉列表下选择Linux,勾选 ANSI Color。 默认的 ANSI Color 的背景颜色是黑色,感觉看久了很不舒服,可以修改背景颜色。 opti...
分类:
其他好文 时间:
2015-05-20 11:32:05
阅读次数:
239
我在调用avformat_open_input的时候,一直返回-13错误,如下代码: const char *url = "/mnt/sdcard/xpg.mp4";
av_register_all();
AVFormatContext *pFormatCtx = NULL;
int ret = avformat_open...
分类:
其他好文 时间:
2015-05-20 11:31:43
阅读次数:
692
//
//??OauthViewController.m
//??WPWEIBO
//
//??Created?by?apple?on?15/5/12.
//??Copyright?(c)?2015年?apple.?All?rights?reserved.
//
#import?"OauthViewController.h"
@interface?O...
Liebert有效地重复使用了自己80% 或以上的设计数据 ? ? ? ? Liebert Corporation 的业务是为各种应用场合的使命关键运营活动提供保护,包括银行业、医疗业和远程通信业。这意味着,全球的设计团队不能就质量问...
分类:
其他好文 时间:
2015-05-20 11:32:33
阅读次数:
225
在项目的pom.xml文件中加入以下内容: <build>??
????????<plugins>??
????????????<plugin>??
????????????????<groupId>org.apache.maven.plugins</groupId>??
?...
分类:
系统相关 时间:
2015-05-20 11:31:05
阅读次数:
223
在包含自 /usr/include/python2.6/pyconfig.h:6 的文件中, ???????????????? 从 /usr/include/python2.6/Python.h:8, ???????????????? 从 src/_fastmath.c:31: /usr/incl...
分类:
其他好文 时间:
2015-05-20 11:30:29
阅读次数:
6094
做项目中有遇见哪些困难? 1、比如angular来做单页面的跳转,前进和后退按钮使用不了 解决方案 2、还有别的吗 你有做过哪些前端性能优化? CDN挂载为什么不挂载整个应用? 逻辑题/算法题: 如何判断一个页面是osc...
分类:
其他好文 时间:
2015-05-20 11:30:48
阅读次数:
171
1.ArrayAdapter
这个是最简单的了,只默认接受TextView控件,而且还只是一个。
listView = new ListView(this); //注意没有使用XML文件的
//样式是安卓提供的样式
listView.setAdapter(new ArrayAdapter(this, android.R.layout.si...
分类:
移动开发 时间:
2015-05-20 11:30:47
阅读次数:
404
需要借助LocationManager类实现,下面直接看代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
androi...
分类:
移动开发 时间:
2015-05-20 11:29:47
阅读次数:
247
Activity和Service的几种不同交互...
分类:
其他好文 时间:
2015-05-20 11:28:53
阅读次数:
136
出现linker command failed with exit code 1 (use -v to see invocation)这个错误,app下app名的文件夹file not found,而且还跟test有关。
解决放,选择工程,在targets下面选择xxxtests,看到它的general里有一个testing,testing下有个host application,选择它的下拉框,...
分类:
移动开发 时间:
2015-05-20 11:29:15
阅读次数:
173
和经典问题相比,就是多个外界布线,其实很简单,先不管和外界布线的问题;
内部布线如果畅通的话,费用再加上任意一个对外界的布线最小费用,即为最小
代码:
#include
#include
using namespace std;
#define inf 0x3fffffff
struct node
{
int a,b,cost;
}c[125000];
int fa[505],v;...
分类:
编程语言 时间:
2015-05-20 11:29:33
阅读次数:
146
I、逐帧动画
逐帧动画用以指定一系列用作View的背景的Drawable对象,感觉类似于幻灯片。
public class AnimationDrawable extends DrawableContainer implements Runnable,
Animatable
public class DrawableContainer extends Drawable imple...
分类:
移动开发 时间:
2015-05-20 11:29:05
阅读次数:
212
MyEclipse2015+Maven3出现错误:
T E S T S
-------------------------------------------------------
Running DataDictTest
org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibe...
分类:
编程语言 时间:
2015-05-20 11:27:32
阅读次数:
1103
curses库基本概念控制字符输入/输出的格式
termios缺点,转义处理
curses优点
提供与终端无关的字符处理方式
可以管理键盘
支持多窗体管理curses vs. ncurses
源文件包含头文件curses.h
编译时加 –lcurses选项
gcc program.c ?o program ?lcurses
gcc ?I/usr/include/ncurses progra...
分类:
系统相关 时间:
2015-05-20 11:29:50
阅读次数:
280
这里主要介绍如何正确设置 Web. config 文件以达到接收用户反馈邮件。
一般教程里的 Web. config 文件设置不会介绍到国内用的邮箱,而只是介绍默认的配置:
然而如果你使用的是 163 邮箱,这是不成功的,因为 163 邮箱不仅需要配置特定的端口,还要通过 SSL 加密,此时,就需要如下配置:
...
分类:
Web程序 时间:
2015-05-20 11:29:40
阅读次数:
130
当在事件对象上附加数据时(无论是DOM事件还是如Backbone一样拥有的私有事件),应传递散列对象而不是原始值,这可以让随后的贡献者给事件对象添加更多的数据,而不必去查找或者更新每一个事件处理程序。举个粟子,不要用下面的方式:
// bad
$(this).trigger('listingUpdated', listing.id);
...
$(this).on('listingUpdated...
分类:
编程语言 时间:
2015-05-20 11:26:22
阅读次数:
121