上一页 1 2 3 4 5 6 7 ··· 14 下一页

2013年11月2日

Implicit conversion from enumeration type 'enum CGImageAlphaInfo' to different enumeration type 'CGBitmapinfo' (aka) 'enum CGBitmapInfo')

摘要: The constants for specifying the alpha channel information are declared with the CGImageAlphaInfo type but can be passed to this parameter safely.Just use a cast to suppress the warning:CGBitmapInfo bitmapInfo =(CGBitmapInfo) kBitmapInfo; 阅读全文

posted @ 2013-11-02 23:20 小浪鼓 阅读(2135) 评论(0) 推荐(0) 编辑

2013年11月1日

Rails secret token bug

摘要: ArgumentError (A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = "some secret phrase of at least 30 characters"in config/initializers/secret_token.rb)解决方法rake secret 阅读全文

posted @ 2013-11-01 11:30 小浪鼓 阅读(308) 评论(0) 推荐(0) 编辑

2013年10月30日

IOS 6 和 IOS7 UITableViewCell上添加控件的获取

摘要: 假设每个cell上面都有UIButton,怎么判断哪个Cell上的按钮被按下了呢?IOS6上-(IBAction)btnClick:(id)sender{ UIButton *btn = (UIButton *)sender; UITableViewCell *cell = [btn superView]; NSIndexPath *index = [self.tableView indexPathForCell:cell]; xxxx}IOS7上同样的方式你会发现btn的superView变成了UITableViewCellScrollView,那么IOS7怎么获取呢?可以按照这样的... 阅读全文

posted @ 2013-10-30 23:33 小浪鼓 阅读(5246) 评论(0) 推荐(0) 编辑

2013年10月29日

CentOS 6.4 php环境配置以及安装wordpress

摘要: 1. nginx php-rpm 包升级sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmsudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm2. 安装mysqlsudo yum install mysql mysql-serversudo /etc/init.d/mysqld restartsudo /usr/bin/mysql_secure_installation3 阅读全文

posted @ 2013-10-29 16:34 小浪鼓 阅读(5185) 评论(0) 推荐(0) 编辑

Mysql 忘记 root密码解决

摘要: 1 stop mysqlUbuntu/Debian: sudo /etc/init.d/mysql stopCentOs: sudo /etc/init.d/mysqld stop2 启动safe模式但是要跳过用户的权限表也就是privileges 表sudo mysqld_safe --skip-grant-tables &3 登录mysql并使用mysql数据库这里不需要密码mysql -u rootuse mysql;4 设置新密码update user set password=PASSWORD("mynewpassword") where User= 阅读全文

posted @ 2013-10-29 16:02 小浪鼓 阅读(203) 评论(0) 推荐(0) 编辑

2013年10月24日

Mysql On Mac OS: Remove & Install

摘要: If you downloaded and installed from .dmg package already, and mightbe sometime it sucks because of some reason like me, i gem install mysql2.1 Remove mysql from you Mac OS X1.1 backup your database by mysqldump, of course if you want to.1.2 stop the database. "sudo mysqladmin shutdown" or 阅读全文

posted @ 2013-10-24 14:09 小浪鼓 阅读(1962) 评论(0) 推荐(0) 编辑

2013年10月23日

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

摘要: 这两个变量被设置了DYLD_LIBRARY_PATH*或*LD_LIBRARY_PATH, 用下面的明令查找一下,一般在.bash_profile, .bashrc 等文件中。执行brew doctor 你会发现,不建议设置这个变量。grep LD_LIBRARY_PATH ~/.*或grep DYLD_LIBRARY_PATH ~/.* 阅读全文

posted @ 2013-10-23 20:31 小浪鼓 阅读(323) 评论(0) 推荐(0) 编辑

2013年10月20日

程序员,你多大了?觉得自己老么

摘要: 仿佛又是一个闲来无事,实际上不是,好多工作没做呢,于是大周日的找了一个还算安静的咖啡馆,开始了一天下午的屌丝程序员IT民工生活。 我在一个靠窗的位置,抬头总能看到来来回回走动的大学生们。我努力着从他们的来来回回中找自己当初的影子,可是怎么也想不出一个合适的表情或者走路的动作来契合自己当年青葱年少的大学时光。 于是,我问自己是不是自己“老”了。 真的,是真的,我特别不喜欢老这个字眼儿,我也从来没觉得自己老,不对应该是上个月开始我觉得自己“老”了。 作为一个程序员先生,偶尔我也高傲的以屌丝自居,我喜欢打球,上个月找了个朋友去打篮球,看着一个个的都面目成熟,我心底还是暗自的觉得自己还年轻,真不错!以 阅读全文

posted @ 2013-10-20 14:54 小浪鼓 阅读(4925) 评论(57) 推荐(7) 编辑

2013年10月16日

IOS 7 更改导航栏文字到白色

摘要: To hide status bar in any viewcontroller:-(BOOL) prefersStatusBarHidden{ return YES;}To change the status bar text to white color.set UIViewControllerBasedStatusBarAppearance to NO on .plist file first, then added this method:-(UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleL... 阅读全文

posted @ 2013-10-16 17:40 小浪鼓 阅读(1661) 评论(3) 推荐(1) 编辑

程序员别忘了你的专职

摘要: 闲来无事,最近感慨颇多,随便写写。回首写博客的日子已经是好几年前了吧,早已没有了写东西的冲动,无非是有点技术文章,复制,总结怕以后忘了,或者留给别人看看吧,算是造福点别人如果仅有那么点可能被别人看见的话。最近觉得忽然忘了自己的身份,当然我是一个敲代码的,也就是程序员,或者IT民工。但是我是一开始写IOS的,差不多也有个3年了。但是好像不知道那个时候开始看ROR不错,就开始学习ROR学着学着,嗯,语言都差不多貌似,于是乎觉得自己领悟很高深,然后就开始工作也涉及一些ROR的东西慢慢的用了一点。忽然就发现某天你要部署网站Linux自然得懂,于是乎你又辗转与那个版本的Linux,CentOS unba 阅读全文

posted @ 2013-10-16 10:12 小浪鼓 阅读(2927) 评论(28) 推荐(5) 编辑

上一页 1 2 3 4 5 6 7 ··· 14 下一页

导航