0%

for 循环

1
2
3
for( 初始语句  ; 执行条件  ; 增量 ){
循环体
}

执行顺序:1、初始语句 2、执行条件是否符合 3、循环体 4、增加增量

阅读全文 »

parallels desktop 安装 centos7 默认密码和 root 问题

安装时只设置了 parallels 的密码,并没有设置 root 密码。
无法进行 su 命令,提示 Authentication failure。

1
[parallels@centos-7 redis]$ su Password: su: Authentication failure
阅读全文 »

前言

真的是一些简单例子,我还写了好久

database.stu.sql 文件内容:

阅读全文 »

下载文件提示 \Cannotcall sendError() after the response has been committed**

出现这个错误,应该是多次response导致的,可以这么理解,将文件写入response后就关闭了socket,这个时候再次发送response给客户端就会出现这个问题。

阅读全文 »

错误信息

1
redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
阅读全文 »

自从一时头脑发热换了 air 到现在也用了一年了,现在重新记录一下使用—心得?技巧?

系统设置

输入法

已经习惯了双拼啦

阅读全文 »

为什么需要序列化

1,存储对象在存储介质中,以便在下次使用的时候,可以很快捷的重建一个副本。也就是When the resulting series of bits is reread according to the serialization format, it can be used to create a semantically identical clone of the original object.

问题:我没有实现序列化的时候,我一样可以存入到我的sqlserver或者MySQL、Oracle数据库中啊,为什么一定要序列化才能存储呢????

阅读全文 »

  1. 查看自己家猫的背面,用普通user账户登录。

  2. 此时,在地址栏输入 http://192.168.1.1/cgi-bin/upgrade.asp ,然后回车。选择“romfile”(默认就是这个),然后点击“ROMFILE BACKUP”,将此文件保存到电脑。

  3. 用记事本打开刚刚下载的配置文件romfile.cfg,搜索 web_passwd ,会搜到4处,
    其中username=”CMCCAdmin” web_passwd=”CMCCAdmina***“ 就是你自己对应的管理员密码。

然后你就可以为所欲为了。

本机:

CMCCAdmin

CMCCAdminoFUK11dn