mac?os?x??更新android?sdk?manager的方法 今天要下载x86模拟器支持,打开android-sdk-manager,下载时很慢,google了下,做一下总结。 1.打开sdk-manager,进入setting页面,将others---force https---...
分类:
移动开发 时间:
2015-08-06 18:50:20
阅读次数:
183
代码位置:gecko/b2g/components/UpdatePrompt.js SystemApp发出'force-update-check'事件,也就从gaia进入到了gecko层。1. 首先大概介绍一下UpdatePrompt.js。 (a)UpdatePrompt.js里包含了2个...
分类:
其他好文 时间:
2015-08-05 10:18:32
阅读次数:
200
说明:这里不讨论命令行还有通过navicat等工具的做法,这里只讨论在mysql坏掉(不能启动)的情况下,怎么办。
方法:
a) 先来看mysql数据库文件的情况:
mysql坏掉了,不管是linux还是windows版本,mysql有个数据库文件目录data目录,如下图:
(注意linux版上面的是my.cnf差不多)
然后data目录里面类似这样:
通过观察可以知道里面...
分类:
数据库 时间:
2015-08-04 15:43:13
阅读次数:
436
The biggest mistake that you can make is to believe that you are working for somebody else. Job security is gone. The driving force of a career must c...
分类:
其他好文 时间:
2015-08-03 19:00:57
阅读次数:
103
起因: 不小新把记录了公司服务器IP,账号,密码的文件提交到了git方法:git reset --hard git push origin HEAD --force其他:根据–soft –mixed –hard,会对working tree和index和HEAD进行重置:git reset –mix...
分类:
其他好文 时间:
2015-08-02 11:26:52
阅读次数:
169
文件系统xfs故障解决
一、基础信息
1、发行版本
cat/etc/debian_version
5.0.2
2、内核版本
uname-r
2.6.32.27
3、型号
dmidecode-ssystem-product-name
PowerEdge1950
4、查看cat/var/log/messages信息5、挂载信息6、文件系统、uuid、标签等信息7、分区信息8、查看scsi信..
分类:
其他好文 时间:
2015-07-30 09:37:58
阅读次数:
1528
#重启nginxsudo /etc/init.d/nginx restartsudo /etc/init.d/nginx Usage:/etc/init.d/nginx {start|stop|status|restart|condrestart|try-restart|reload|force-r...
分类:
其他好文 时间:
2015-07-30 09:30:22
阅读次数:
123
#requires-Version5$Source=‘C:\somezipfile.zip‘$Destination=‘C:\somefolder‘$Overwrite=$true$ShowDestinationFolder=$trueExpand-Archive-Path$Source-DestinationPath$Destination-Force:$Overwriteif($ShowDestinationFolder){explorer.exe$Destination}
分类:
系统相关 时间:
2015-07-29 12:25:41
阅读次数:
392
在串的各种操作中,串的模式匹配是经常用到的一个算法。串的模式匹配也称为子串的定位操作,即查找子串在主串中出现的位置。
1.经典的模式匹配算法Brute-Force。
2.KMP算法。
#include
#include
#include
#define MAXSIZE 60
typedef struct
{
char ch[MAXSIZE];...
分类:
其他好文 时间:
2015-07-27 23:10:08
阅读次数:
124
比较经典的Brute-Force算法与KMP算法的效率的优劣。#include
#include
#include
#define MAXSIZE 60
typedef struct
{
char str[MAXSIZE];
int length;
}SeqString;
int B_FIndex(SeqString...
分类:
其他好文 时间:
2015-07-27 23:08:32
阅读次数:
202