单页应用SEO浅谈 前言 单页应用(Single Page Application)越来越受web开发者欢迎,单页应用的体验可以模拟原生应用,一次开发,多端兼容。单页应用并不是一个全新发明的技术,而是随着互联网的发展,满足用户体...
分类:
其他好文 时间:
2014-11-09 23:58:25
阅读次数:
525
要求给出一个字符串如 “A journey of, a thousand 'miles' must can't \"begin\" with a single step.” ,通过 PHP 程序处理变成 “a journeY oF, A thousanD 'mileS' musT can'T "be...
分类:
Web程序 时间:
2014-11-09 23:29:54
阅读次数:
291
背景是某个业务的logdb历史oss_log(MyISAM表类型)例行删除,有时候会告"deadlock"。分析slow log发现有些删除需要很长时间,比如:drop table 2014_10_17_oss_abandonquest 花费了15041.2410秒。删除行为在凌晨4点发出,刚好落在备份期间,因为5.5有了MDL(Meta data lock),所以–single-transact...
分类:
数据库 时间:
2014-11-09 01:07:58
阅读次数:
187
[Description]find the k-th node from the last node of single linked list.e.g. Linked-list: 1-2-3-4-5-6-7-8-9 the last 4th node is: 6[Thought] usin...
分类:
其他好文 时间:
2014-11-08 18:16:32
阅读次数:
258
Number SequenceDescriptionA single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number ...
分类:
其他好文 时间:
2014-11-08 10:25:14
阅读次数:
209
前些日子本猫的ubuntu 14.10貌似出了点问题,想修改下root密码,但是无奈原系统有错正常情况下无法修改啊,这是逼我重装的节奏吗?
在ubuntu开机后立即按住left_shift不放,调出grub菜单。因为我没装双系统,所以默认grub菜单是隐藏的。依次选择“高级选项”->xxx(recovery mode)->root。咦,还是要root密码才可以进入恢复模式的控制台呢!遂c...
分类:
其他好文 时间:
2014-11-08 09:19:22
阅读次数:
252
给一个整数数组,其中只有一个数字成单,其他数字都是成对出现,要在线性时间且不花费额外存储空间的条件下找出成单的数字。解决起来出奇的简单,主要运用到异或运算的两个基本性质:交换律:a^b^c=a^(b^c)a^a=0 a^0=a所以得到以下代码:public class Solution { p...
分类:
其他好文 时间:
2014-11-08 07:05:40
阅读次数:
183
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-11-07 23:12:58
阅读次数:
238
思路:使用字符串来表示大数,然后对两个数字字符串使用类似列竖式的方式进行逐位相加求和。123 + 24_____147具体实现:char* BigNumberAddition(const char* number1, const char* number2){ if (!number1 || ...
分类:
其他好文 时间:
2014-11-07 00:49:10
阅读次数:
224
导航控制器通常用来显示分层内容的向下导航界面,受限于设备屏幕大小,iPhone或者iPad需要通过更多的层次访问来显示足够丰富的内容,导航控制器一般会和表视图同时存在,但不是说必须一起绑定使用,这里将表视图嵌入到导航控制器中用于分层显示视图内容,以single view application为.....
分类:
移动开发 时间:
2014-11-06 23:26:36
阅读次数:
277