Quantcast
Channel: C++博客-所有随笔
Browsing all 7881 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Installing Gearman and gearmand on Windows with Cygwin

Recently I've come face-to-face with a significant processing task for a web application written in PHP.  I haven't worked with process control very much, so I started researching ways of distributing...

View Article


Image may be NSFW.
Clik here to view.

wxWidgets2.9x + VTK6.0 示例

vtk6.0相比vtk5.x,vtk6.0的一个很大的变化就是新的build system。若配置不正确,就会出现有的类(如vtkPolyDataMapper)调用New返回NULL的状况。在VTK/Build System Migration一文中对整个过程的来龙去脉做了详细的说明。另外,vtk6.0更改一些常用的函数签名:如xx::SetInput, yy::GetOutput。举例说明: //...

View Article


Image may be NSFW.
Clik here to view.

遍历输入表的简单逆向

int main(int argc, char* argv[]){    HMODULE  hMod = GetModuleHandle(NULL);    IMAGE_DOS_HEADER* pDosHeader = (IMAGE_DOS_HEADER*)hMod;    IMAGE_OPTIONAL_HEADER* pOptHeader =...

View Article

Image may be NSFW.
Clik here to view.

手把手教你把Vim改装成一个IDE编程环境(图文)

     摘要: http://blog.csdn.net/wooin/article/details/1858917 vim编程idebuffersearchtags 手把手教你把Vim改装成一个IDE编程环境(图文) By: 吴垠 Date: 2007-09-07 Version: 0.5 Email: lazy.fox.wu#gmail.com Homep...  阅读全文jackdong...

View Article

Image may be NSFW.
Clik here to view.

预处理语句

预处理语句 预处理语句最明显的标志是一些行首以#开始的特殊语句。 例如:#include,#define 等就是预处理语句。在程序的其它编译处理(词法分析、语法分析、代码生成、优化和连接等)之前,先进行这些语句的分析处理。 预处理语句使用的目的在于帮助程序员编写出易读、易改、易移植并便于调试的程序。 预处理语句主要有四种: 宏定义和宏替换、 文件包含、 条件编译 行控制。...

View Article


Image may be NSFW.
Clik here to view.

HADOOP_CLASSPATH设置(转)

在写hadoop程序编译时,往往需要HADOOP_CLASSPATH路径,可通过以下方式进行在编译脚本中设置:for f in $HADOOP_HOME/hadoop-*.jar; doCLASSPATH=${CLASSPATH}:$fdonefor f in $HADOOP_HOME/lib/*.jar; doCLASSPATH=${CLASSPATH}:$fdonefor f in...

View Article

Image may be NSFW.
Clik here to view.

【备忘】Android ndk下用AssetManager读取assets的资源。

     摘要: Android ndk下用AssetManager读取assets的资源。  阅读全文饭中淹 2012-12-28 23:59 发表评论

View Article

Image may be NSFW.
Clik here to view.

原:isMemberOfClass在UnitTest失败

创建:2012年10月23日参照:http://stackoverflow.com/questions/11675256/ismemberofclass-returns-no-when-viewcontroller-is-instantiated-from-uistoryboard当在UnitTest时使用isMemberOfClass,会失败。原因是:在你测试的F.app和test bundle....

View Article


Image may be NSFW.
Clik here to view.

转:ObjC中的浮点数的讨论 -好

创建:2012.10.16转:http://www.mikeash.com/pyblog/friday-qa-2011-01-04-practical-floating-point.htmlFriday Q&A 2011-01-04: Practical Floating PointWelcome to the first Friday Q&A of the new year....

View Article


Image may be NSFW.
Clik here to view.

原:关于UIViewController旋转消息 --2012年12月29日

关于UIViewController旋转消息创建:2011.08.04补充:2012.10.04补充:2012年12月29日  2012年12月29日:这些内容过时了。仅作参考。*参考:Technical Q&A QA1689 Supporting orientations for iPad...

View Article

Image may be NSFW.
Clik here to view.

转:ObjC新特性 2012

创建:2012.10.04转:http://clang.llvm.org/docs/ObjectiveCLiterals.htmlObjective-C LiteralsIntroductionThree new features were introduced into clang at the same time: NSNumber Literals provide a syntax for...

View Article

Image may be NSFW.
Clik here to view.

转:反锯齿

创建:2012.09.24转:http://www.cocoachina.com/iphonedev/sdk/2011/1114/3490.html反锯齿位图Graphics...

View Article

Image may be NSFW.
Clik here to view.

转:在非ARC工程中使用ARC的framework

创建:2012.09.19转:https://github.com/Cocoanetics/DTCoreText/wiki/Using-DTCoreText-in-Non-ARC-ProjectsUsing DTCoreText in Non ARC ProjectsYou have two options in adding ARC based code to your non-ARC...

View Article


Image may be NSFW.
Clik here to view.

原:UITableView换Group背景

创建:2012.09.11需求:TableView有一个Group的背景,分割线还需要贯穿整个cell,同时自定义分割线。前提:TableView的top和bottom的cell都是有分割线的。步骤:*tableview不能直接使用group的背景,因此要加入一个imageView,加载group的背景。*要设置tableview的cornerRadius,如下:    CALayer *layer...

View Article

Image may be NSFW.
Clik here to view.

转:使用CGContextShowTextAtPoint居中显示文本

创建:2012.08.29转:选自CookBook IOS5// Draw centered text into the contextvoid centerText(CGContextRef context, NSString *fontname, float textsize, NSString *text, CGPoint point, UIColor *color){...

View Article


Image may be NSFW.
Clik here to view.

原:viewDidLoad中的初始化过程 -120823

创建:120628修改:120628修改:120823- (void)viewDidLoad{    [super viewDidLoad];        if (!self.isNotFirstRun) {        [self configureDataAsDefault];    }       [self configureUIComponentsAsDefault];...

View Article

Image may be NSFW.
Clik here to view.

原:关于Custom Container View Controller -2012.08.23

创建:2012.08.22修改:2012.08.23参考:WON'T SOMEBODY PLEASE THINK OF THE CHILDREN?!?http://blog.devnos.com/wont-somebody-please-think-of-the-childrenContaining...

View Article


Image may be NSFW.
Clik here to view.

原:自定义UITableViewCell的旋转问题

创建:2012.08.20自定义UITableViewCell的旋转时,无法旋转。解决办法有3种:第一种:1)在didRotateFromInterfaceOrientation中,调用reloadData2)准备2个xib文件,一个是横屏,一个是竖屏。3)...

View Article

Image may be NSFW.
Clik here to view.

转:Enabling Remote Debugging via Private APIs in Mobile Safari

创建:2012.08.06转:http://atnan.com/blog/2011/11/17/enabling-remote-debugging-via-private-apis-in-mobile-safari/Enabling Remote Debugging via Private APIs in Mobile SafariNOV 17TH, 2011The WebKit Web...

View Article

Image may be NSFW.
Clik here to view.

原:为UIButton加入重叠背景图片

创建:120630为UIButton加入背景图片很容易,但是如果背景图片是以重叠方式加入的,而非一个完整的图片,则比较困难。思路是建立一个sublayer加入到button的layer上。该sublayer负责加入背景图片。同时,layer的borderColor设定边框,sublayer的borderColor设定内部边框。同时要注意:初始的button的宽高一定要很长,否则无法正确加载图片和边框...

View Article
Browsing all 7881 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>