- 博客(61)
- 资源 (7)
- 收藏
- 关注
原创 swift国际化之路(拼写错误惹的祸)
很久不写博客了。很难得静下心来做在咖啡厅码几行代码。最近开始接触swift。彻底的新手。新手总能遇到很多奇葩的问题。今天想吐槽的问题,是swift的文本国际化问题。网上应该能找到很多关于ios国际化教程,本人也是这么干的。找了个教程。结果发现国际化失败。简单的说,像下面这样一行代码,最终显示不是VALUE,而是KEY(界面上显示的LANGUAGE)。
2016-07-02 13:34:45
935
转载 git中reset与revert的使用
最近用github做我的博客,有些时候会设置错误需要用撤回操作,这时就用到git revert与resetreset(版本撤回)格式git reset [-q] [] [--] ...git reset (--patch | -p) [] [--] [...]git reset (--soft | --mixed | --hard | --merge | --keep)
2015-07-16 16:09:18
888
转载 pbpaste & pbcopy in Mac OS X (or: Terminal + Clipboard = Fun!)
The OS X shell is very powerful, but some wonderfully useful commands are almost entirely unknown to the community at large. Two of these forgotten commands are pbcopy and pbpaste. Let's take a quick
2015-05-20 16:44:16
2486
转载 在web页面上快速生成二维码的两种实用方法
二维码是桌面和移动端快速分享的高效手段之一,这里介绍两个不错的快速开发二维码的方法,和大家分享一下~~方法1:使用新浪提供的服务这种方式简单快速,在服务端生成一个二维码的图片,兼容性比较好,你无需自己处理任何相关二维码的生成,只需要提供一端文字或者url即可,方法如下: src="http://qrcoder.sinaapp.com?t=http://www.gbtags.co
2015-05-19 08:54:00
1152
原创 git使用笔记
git clonegit fetchgit mergegit pullgit pushgit addgit commitgit rebasegit branchgit checkout
2015-05-04 21:37:59
3416
1
原创 mac下使用pyenv,pyenv-virtualenv管理python的多个版本
mac下使用pyenv,pyenv-virtualenv管理python的多个版本ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew install pyenv brew install pyenv-virtualenvpyenv install --listpyenv install 3.4.3
2015-05-02 23:25:15
8367
原创 error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such fil
memcache error:error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
2015-03-23 22:18:55
2794
转载 nginx php-fpm 输出php错误日志
nginx是一个web服务器,因此nginx的access日志只有对访问页面的记录,不会有php 的 error log信息。nginx把对php的请求发给php-fpm fastcgi进程来处理,默认的php-fpm只会输出php-fpm的错误信息,在php-fpm的errors log里也看不到php的errorlog原因是php-fpm的配置文件php-fpm.conf中默认
2015-03-12 20:57:43
767
原创 vagrant up启动,不用选择桥接网络接口的方法
vagrant up启动,不用选择桥接网络接口的方法 修改配置,在 config.vm.network :public_network 后面追加网络接口,如下 config.vm.network :public_network, :bridge=>'en1: Wi-Fi (AirPort)'
2015-03-07 18:56:46
9288
2
原创 vagrant启动报错The following SSH command responded with a non-zero exit status.
The following SSH command responded with a non-zero exit status.Vagrant assumes that this means the command failed!ARPCHECK=no /sbin/ifup eth1 2> /dev/nullStdout from the command:Device eth1 does not seem to be present, delaying initialization.St
2015-03-07 18:40:56
9309
转载 PHP Extension的开发基础
摘要&引言PHP是当前应用非常广泛的一门语言,从国外的Facebook、Twitter到国内的淘宝、腾讯、百度再到互联网上林林总总的各种大中小型网站都能见到它的身影。PHP的成功,应该说很大程度上依赖于其开放的扩展API机制和丰富的扩展组件(PHP Extension),正是这些扩展组件使得PHP从各种数据库操作到XML、JSON、加密、文件处理、图形处理、Socket等领域无所不能。有时
2015-03-07 15:33:44
1813
原创 Centos上编译PHP常见问题
在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决。以下是具体的一些解决办法:checking for BZip2 support… yes checking for BZip2 in default path… not found configure: error: Please reinstall the BZip2 distri
2015-03-07 15:30:06
606
原创 Centos上安装Mysql
操作系统信息:[vagrant@localhost ~]$ uname -aLinux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux1、sudo yum install Percona-Server-shared-55-5.5.37-rel35.0.el6.x86_64.rpm续:给root账户设定密码输入mysql_s
2015-02-26 22:11:21
920
原创 Centos上安装nginx报错
./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewrite_moduleoption, or install the PCRE library into the system, or build the PCRE librarystatically from the source with n
2015-02-20 22:54:31
895
原创 Centos6.4上python2.6.6升级到2.7.6
Centos6.4上python2.6.6升级到2.7.6python升级后,找不到yum模块
2015-02-14 22:35:02
1862
原创 Mac环境 go语言之入门HelloWorld
1. 安装mercurial可以输入hg命令查询系统是否安装$sudo pip install mercurial安装成功之后如上命令安装失败,可以直接去下载安装输入hg命令,表示成功安装 mercuria
2014-10-02 21:40:07
2598
原创 iphone手机连接USB时出现需要Mobile device setup disk上的usbaapl.sys文件
iphone手机连接USB时出现需要Mobile device setup disk上的usbaapl.sys文件
2014-07-16 13:07:51
4618
原创 create a cocos2d-x-3.0 project in Xcode
STEP1: Open TerminalSETP2: Run setup.pySETP3: Run source /Users/your_user/.bash_profile( so that environment variables are actually updated)SETP4: Run cocos new my game -p com.your_company.mygame -l cpp -d /diretory_to_your_gameOpen TerminalR
2014-06-11 17:17:58
1306
原创 php常用命令
1.php -v 查看版本号2.php -h 查看帮助3.php -m 查看安装的模块4.php -i 查看php信息(查看php.ini非常方便)5.php --ini 显示配置文件名字6.php -f <file> 执行php文件
2014-05-26 18:33:13
1209
原创 centos上设置时区
[root@localhost ~]# date -R // 查看时区Mon, 19 May 2014 10:18:46 +0000[root@localhost ~]# tzselect // 设置修改时区Please identify a location so that time zone rules can be set correctly.Please select a continent or ocean.
2014-05-19 18:45:47
1250
原创 Oauth认证的时候报错:timestamp_refused
今天服务器大规模报错,大部分用户无法登陆,小部分可以登陆,很是奇怪。查看log,调试代码,发现问题是在oauth认证的时候出了问题,报 timestamp_refused。google了下,问了高手,问题定位在服务器的时间可能有问题执行date,发现比其他服务器快了5分钟
2014-05-19 18:21:56
1370
原创 iptables惹的祸
iptables惹的祸[root@localhost ~]# service iptables stopiptables: Flushing firewall rules: [ OK ]iptables: Setting chains to policy ACCEPT: filter [ OK ]iptables: Unloading modules: [ OK
2014-05-19 17:44:07
1197
原创 宿主机mac os无法连接到虚拟机centos
宿主机mac os无法连接到虚拟机centos虚拟机通过vagrant up启动有做端口映射开启局域网访问
2014-05-15 13:22:48
2600
原创 configure: error: mysql configure failed. Please check config.log for more information.
configure: error: mysql configure failed. Please check config.log for more information.
2014-05-13 15:22:05
5565
1
原创 编译apache报APR not found
configure: error: APR not found. Please read the documentation.configure: error: APR-util not found. Please read the documentation.
2014-05-09 23:29:46
967
原创 phpize报cannot find autoconf
phpize可以往php种追加新的模块Cannot find autoconf. Please check your autoconf installation and the$PHP_AUTOCONF environment variable. Then, rerun this script.
2014-05-09 14:20:21
1691
转载 linux命令之service和chkconfig
常用方式格式:service 打印指定服务的命令行使用帮助。 格式:service start启动指定的系统服务 格式:service stop停止指定的系统服务 格式:service restart重新启动指定的系统服务,即先停止(stop),然后再启动(start)。 格式:chkco
2014-05-08 22:34:23
932
原创 cents上执行wget报错:unable to resolve host address
unable to resolve host address
2014-05-05 18:05:58
12969
原创 libpcre.so.1 cannot be found
./nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
2014-04-29 17:17:34
5243
1
原创 vagrant up报错 * The box 'tBox' could not be found
Bringing machine 'default' up with 'virtualbox' provider...There are errors in the configuration of this machine. Please fix the following errors and try again:* The box 'tBox' could not be found.
2014-04-26 22:50:59
6529
1
原创 configure: error: --with-ssl was given, but GNUTLS is not available.
Mac 10.9.2安装wget报错configure: error: --with-ssl was given, but GNUTLS is not available.
2014-04-26 14:39:06
7904
1
转载 使用 Vagrant 打造跨平台开发环境
使用 Vagrant 打造跨平台开发环境Vagrant 是一款用来构建虚拟开发环境的工具,非常适合 php/python/ruby/java 这类语言开发 web 应用,“代码在我机子上运行没有问题”这种说辞将成为历史。我们可以通过 Vagrant 封装一个 Linux 的开发环境,分发给团队成员。成员可以在自己喜欢的桌面系统(Mac/Windows/Linux)上开发
2014-04-22 19:47:07
950
转载 U盘制作Mac系统启动盘
U盘制作Mac系统启动盘图文教程我们制作Mac系统启动盘需要4G多的空间,4G的U盘不够,用8G的U盘又有些浪费,市面上16G的价格和8G的也相差很少,如果用16G的U盘只用作Mac启动安装盘就更浪费,解决方式就是分区。给安装盘一定的空间,剩下的用于普通文件存储。第一步:下载Mac OS X Lion DMG制作Mac系统安装盘首先需要下载一份Mac 的系统安装dmg文件,现在的系统版
2014-04-16 20:34:07
1498
文件传输系统 vc ftp server client
2008-09-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人