http://blog.panks.me/posts/2013/11/install-gdb-on-os-x-mavericks-from-source/注意最后两步:killall
taskgated (不行可以加sudo)codesign -fs gdbc /usr/local/bin/gdb ...
分类:
数据库 时间:
2014-05-08 13:53:15
阅读次数:
304
【转自:GCD介绍(三): Dispatch Sources】何为Dispatch Sources
简单来说,dispatch source是一个监视某些类型事件的对象。当这些事件发生时,它自动将一个block放入一个dispatch queue的执行例程中。
说的貌似有点不清不楚。我们到底讨论.....
分类:
其他好文 时间:
2014-05-08 13:52:43
阅读次数:
367
继上次SI多标签插件之后,因为公司内部编码改为utf8编码,因此特意做了这个Source
Insight 3.X utf8插件.
分类:
其他好文 时间:
2014-05-08 13:45:22
阅读次数:
325
c# 获取字符串中的数字 /// /// 获取字符串中的数字 /// /// 字符串 /// 数字
例子1: public static decimal GetNumber(string str) { decimal result = 0; if (str
!= null && str != str...
分类:
其他好文 时间:
2014-05-08 13:32:21
阅读次数:
347
首先定义一个足够长的数组。拿10000的阶乘为例,最后的结果长度是35660位,所以我们定义一个40000个成员的数组就可以了。int
result[40000];其核心思想就是把计算结果每一位上的数字保存到一个数组成员中,例如:把124保存至数组中,保存结果应该是result[0]
4result...
分类:
其他好文 时间:
2014-05-08 12:39:13
阅读次数:
255
Download any version source code of Windows
Azure Powershell from https://github.com/Azure/azure-sdk-tools/releases
Downdload Wix ToolSet from http://...
很早写的,最近别人问过一次,贴出来吧。#!/bin/bash
#
source/etc/profile&>/dev/null
basedir=$(cd`dirname$0`;pwd)
nowmonth=`date+%m`
nowday=`date+%d`
email="$basedir/email/sendemail.sh"
functionGaiMiMa(){
user="$1"
passwd=$(/usr/bin/mkpasswd-l20-d5-c2-C..
分类:
其他好文 时间:
2014-05-07 22:26:08
阅读次数:
951
2.3.2计算阶乘实例1 的阶乘结果是: {{factorial.result}}
function Factorial ($scope) { $scope.factorial = {}; $scope.factori...
分类:
其他好文 时间:
2014-05-07 20:50:10
阅读次数:
296
ptr_fun是将一个普通的函数适配成一个functor,添加上argument
type和result type等类型,
其实现如下(例子里面是binary_function,unary_function同理):C++代码templateinlinepointer_to_binary_functi...
分类:
其他好文 时间:
2014-05-07 20:33:56
阅读次数:
393
Failed to open a session for the virtual machine winxp.
The virtual machine 'winxp' has terminated unexpectedly during startup with exit code 1.
Result Code: NS_ERROR_FAILURE (0x80004005)
Compo...
分类:
其他好文 时间:
2014-05-07 12:33:48
阅读次数:
317