命令行下从bak文件恢复sqlserver数据库方法http://blog.sina.com.cn/s/blog_5cdf6f450102dwir.html1.先使用restore filelistonlyrestore filelistonly from disk = 'E:\BaiduYunDo...
分类:
数据库 时间:
2014-07-22 08:04:34
阅读次数:
261
Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to...
分类:
其他好文 时间:
2014-07-22 00:35:34
阅读次数:
238
题目:Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorte....
分类:
编程语言 时间:
2014-07-22 00:35:34
阅读次数:
290
linux下文件的读写操作(openreadwrite)转http://www.2cto.com/os/201403/285837.htmlopen(打开文件)相关函数 read,write,fcntl,close,link,stat,umask,unlink,fopen表头文件 #include#...
分类:
系统相关 时间:
2014-07-22 00:35:33
阅读次数:
373
本人为了玩一下炉石传说,在移动硬盘上装了一个win8,使用macmini运行。 玩完切回mac的时候悲剧了,出现no bootable device--insert boot disk and press any key. 看到别人重装系统时的解决方式http://www.macx...
分类:
移动开发 时间:
2014-07-21 13:23:19
阅读次数:
343
问题:平台:Oralce VM Virtualbox的虚拟机Opensuse11.4导出该机器的OVA文件后,把该OVA文件导入虚拟机,开机启动时报如下错误:Trying manual resume from /dev/disk/by-id/ata-TOSHIBA-MK1246GSX-28FGTI7...
分类:
移动开发 时间:
2014-07-21 11:01:13
阅读次数:
370
题目链接 Write a function to find the longest common prefix string amongst an array of strings. 题目的意思说的不是很清楚,开始理解成了求任意两个字符串的前缀中的最长者。但是本题的意思是求所有字符串的最长公共前缀,...
分类:
其他好文 时间:
2014-07-21 09:14:25
阅读次数:
225
mac的QuickTime player 默认打开视频之后,是暂停的状态
解决方法:进入终端输入以下命令,可以实现打开视频就开始播放
defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1
mac的QuickTime Player 播放器上点击双箭头按钮可以用
2 倍的速度播放视频,
但是 2 ...
分类:
其他好文 时间:
2014-07-20 23:00:58
阅读次数:
258
从写一个TCP套接字的write调用成功返回仅仅表示我们可以重新使用原来的应用进程缓冲区,并不代表对端TCP或应用进程已接收到数据。
对端TCP必须确认收到的数据,伴随来自对端的ACK的不断到达,本端TCP至此才能从套接字发送缓冲区中丢弃已确认的数据,TCP必须为已发送的数据保留一个副本,直到它被对端确认为止。
UDP不保存应用进程数据的副本因此无需一个真正的发送缓冲区,wri...
分类:
其他好文 时间:
2014-07-20 22:12:23
阅读次数:
333
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
比较两个...
分类:
编程语言 时间:
2014-07-20 22:12:03
阅读次数:
273