码迷,mamicode.com
首页 > 2015年10月01日 > 全部分享
MySQL备份工具mydumper备份
#!/usr/bin/phthonimport osimport timeimport commandsimport shutilimport threadingfrom os.path import join, getsizeimport MySQLdb as mydb# 备份目录baseDir = "/data2/backup/backup_data/"# ns 或 wx;  备份后是否要压缩...
分类:数据库   时间:2015-10-01 07:00:25    阅读次数:212
K-th largest element in an array
Find thekth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For exampl...
分类:其他好文   时间:2015-10-01 06:57:42    阅读次数:202
Binary Tree Postorder Traversal
Postorder: first, visit left child, then, parent, last, is to visit right child.The postorder traversal result of above tree is {4,6,5,2,3,1}.Key diff...
分类:其他好文   时间:2015-10-01 06:59:04    阅读次数:195
Peeking Iterator
Given an Iterator class interface with methods:next()andhasNext(), design and implement a PeekingIterator that support thepeek()operation -- it essent...
分类:其他好文   时间:2015-10-01 06:58:04    阅读次数:191
jsp片段
转载自:http://blog.csdn.net/lovejavaydj/article/details/7293145使用jspf在开发中写jsp页面时,通常都要通过如下方式在jsp文件头部引入我们需要的标签库,如:jsp核心标签库JSTL,Struts 中的自定义标签,时而还有我们自己写的自定义...
分类:Web程序   时间:2015-10-01 06:58:39    阅读次数:239
网站并发300就很慢
1、mysql 慢查询show variables like "%slow%";set global slow_query_log=on;| slow_launch_time | 2 | 表示超过2秒定义为慢查询。| slow_query_log | ON | ...
分类:Web程序   时间:2015-10-01 06:57:32    阅读次数:139
如何快速使用msysgit同步GitHub仓库
GitHub是一个开源的项目代码的托管网站,相信很多人都在使用,其功能强大之处就不说了。如果你是第一次接触GitHub,可能对同步地仓库和远程仓库文件会有些头疼,因为同步操作需要借助msysgit(Git for Windows)和git命令才能完成。下面就来详细介绍下,如何快速使用msysgit同...
分类:其他好文   时间:2015-10-01 06:59:07    阅读次数:215
四则运算
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:其他好文   时间:2015-10-01 06:59:18    阅读次数:187
从一个文本文件中找出使用频率最高的五个字符
1 #include 2 #define N 95 //可打印字符总数 3 #define space 32 //空格符ASCII码 4 5 int main() 6 { 7 char cNum[N] = {0}, ch; 8 int iNum[N] = {0}; 9 ...
分类:其他好文   时间:2015-10-01 06:57:35    阅读次数:202
使用ntfs的磁盘映射功能
当年95极受欢迎,是作为一个还算真正的32位系统。之前的3.1都是16位为基础的,很多api支持有限。相应的对于硬件性能的发掘还是值得肯定的98对于95的取代是成功的,我想重要原因是图形尤其是游戏的进步。当时有quake3这样的经典。另外一个原因我猜是那个时代正是电脑在家庭真正普及的年代吧。当然还有...
分类:Web程序   时间:2015-10-01 06:56:14    阅读次数:295
android SFC
本系列适合0基础的人员,因为我就是从0开始的,此系列记录我步入Android开发的一些经验分享,望与君共勉!作为Android队伍中的一个新人的我,如果有什么不对的地方,还望不吝赐教。在开始Android开发之旅启动之前,首先要搭建环境,然后创建一个简单的HelloWorld。本文的主题如下:1、环...
分类:移动开发   时间:2015-10-01 06:57:42    阅读次数:275
SVG-1
矩形圆椭圆直线折线标签用来创建含有不少于三个边的图形stroke:描边的颜色写好的一个编辑器: SVG 编辑器 创建 Rect Circle Ellipse L...
分类:其他好文   时间:2015-10-01 06:56:53    阅读次数:229
代码复查
1:是否需要代码规范? 代码规范是为了统一代码的风格和形式,方便所有人理解,这实际上降低了维护和更新软件的时间好成本。 首先很多人说这些规范都是官僚制度下产生的浪费大家的编程时间,并且坚称拥有着属于自己的代码规范,不愿意做出改变。我想这是由于他们将代码风格与代码规范混为一体了。代码规范同...
分类:其他好文   时间:2015-10-01 06:54:52    阅读次数:183
Group Anagrams
Given an array of strings, group anagrams together.For example, given:["eat", "tea", "tan", "ate", "nat", "bat"],Return: 1 class Solution { 2 public: ...
分类:其他好文   时间:2015-10-01 06:56:21    阅读次数:216
android.util.AndroidRuntimeException: requestFeature() must be called before adding content解决办法
最近在学习第一行代码这本书,里面的关于activity生命周期有一段例子,但是我自己用mac上装的as运行一直出问题,看log的话就是android.util.AndroidRuntimeException: requestFeature() must be called before adding...
分类:移动开发   时间:2015-10-01 06:56:45    阅读次数:221
maker 2008年发表在genome Res
简单好用identify repeats, to align ESTs and proteins to the genome,and to automatically synthesize these data into feature-rich gene annotations, includin...
分类:其他好文   时间:2015-10-01 06:53:27    阅读次数:266
Nginx初学指南(初学者篇)
参考Nginx官方文档 本文将通过介绍一些基础且常用Nginx命令及结合官网实例进行简单讲解,适用于初学者阅读。并且假定读者已经在服务器上安装部署了Nginx服务(安装部署请参考:Nginx安装部署介绍),更高进阶使用...
分类:其他好文   时间:2015-10-01 01:55:17    阅读次数:336
661条   上一页 1 ... 32 33 34 35 36 37 38 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!