弹窗支持两种模式,一种是普通信息提示框,调用方法:popup.msgPopup(msg);另一种是可以加载页面的弹窗,调用方法:popup.pagePopup(url);效果图:css代码.bg{background-color: #000;position: fixed;z-index: 9999...
分类:
Web程序 时间:
2015-02-09 10:53:42
阅读次数:
193
今天在使用su切换用户doiido的的时候,出现了如下报错:su: 无法设置用户ID: 资源暂时不可用
同时使用SecureCRT等远程SSH工具均无法使用doiido用户连接。查找相关资料,发现是在CentOS 6中,存在/etc/security/limits.d/90-nproc.config文件,此文件限制了普通权限用户的最大线程数,当此用户的最大线程数max user processes到达最高限制数,就无法连接登录。因此在无法减少线程的情况下只能修改此参数,具体修改方法如下:...
分类:
系统相关 时间:
2015-02-07 09:11:41
阅读次数:
546
In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted in ascending order. For the input sequence
9 1 0 5 4 ,
...
分类:
编程语言 时间:
2015-02-06 09:38:14
阅读次数:
168
popuWindowXml布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="wrap_content"android:layout_height="wrap_content"android:background="@drawable/local_popup_bg"android:..
1,xml布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="wrap_content"android:layout_height="wrap_content"android:background="@drawable/local_popup_bg"android:orientat..
show parameter job_queue_processes;alter system set job_queue_processes=10;1,创建测试表create table job_test(updatetime date);2,创建Jobvariable v_job_test(up...
分类:
数据库 时间:
2015-02-03 14:53:18
阅读次数:
153
在Android中,ListView是最常用的一个控件,在做UI设计的时候,很多人希望能够改变一下它的背景,使他能够符合整体的UI设计,改变背景背很简单只需要准备一张图片然后指定属性 android:background="@drawable/bg",不过不要高兴地太早,当你这么做以后,发现背景是变...
分类:
移动开发 时间:
2015-02-03 12:55:23
阅读次数:
185
一、NGINX内置的基本模块
1、NGINX内核模块
2、EVENTS模块
3、HTTP核心模块
二、NGINX基本配置文件
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log inf...
分类:
其他好文 时间:
2015-02-03 01:53:48
阅读次数:
177
大致翻译一下,记录笔记。
原文地址:
Processes and Threads
当一个app的组件(这里一般至四大组件Activity,Service等)启动时,系统没有其他组件正在运行,则android系统会为该app启动一个新的linux进程,而且该进程中只有一个线程。默认情况下,app中的所有组件,都运行在同个进程中的同个线程(称为主线程)。如果一个app的组件启动时,该app中已经...
分类:
移动开发 时间:
2015-01-31 16:17:26
阅读次数:
230
secureCRT断掉后想继续运行程序。也就是程序会在后台一直执行到结束。
secureCRT通过ssh联接到client端运行程序,如果关掉窗口或者断开连接时,任务会被kill。
为了程序能够后台执行到结束:
1.可以用&:
比如 python test.py 改成 python test.py &
来调用执行。
2.另外,还有一种方式:通过ctrl+z、bg等一系列的命...
分类:
系统相关 时间:
2015-01-30 19:41:47
阅读次数:
257