swift国际化之路(拼写错误惹的祸) 很久不写博客了。很难得静下心来做在咖啡厅码几行代码。最近开始接触swift。彻底的新手。新手总能遇到很多奇葩的问题。今天想吐槽的问题,是swift的文本国际化问题。网上应该能找到很多关于ios国际化教程,本人也是这么干的。找了个教程。结果发现国际化失败。简单的说,像下面这样一行代码,最终显示不是VALUE,而是KEY(界面上显示的LANGUAGE)。
git中reset与revert的使用 最近用github做我的博客,有些时候会设置错误需要用撤回操作,这时就用到git revert与resetreset(版本撤回)格式git reset [-q] [] [--] ...git reset (--patch | -p) [] [--] [...]git reset (--soft | --mixed | --hard | --merge | --keep)
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
在web页面上快速生成二维码的两种实用方法 二维码是桌面和移动端快速分享的高效手段之一,这里介绍两个不错的快速开发二维码的方法,和大家分享一下~~方法1:使用新浪提供的服务这种方式简单快速,在服务端生成一个二维码的图片,兼容性比较好,你无需自己处理任何相关二维码的生成,只需要提供一端文字或者url即可,方法如下: src="http://qrcoder.sinaapp.com?t=http://www.gbtags.co
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
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
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中默认
vagrant up启动,不用选择桥接网络接口的方法 vagrant up启动,不用选择桥接网络接口的方法 修改配置,在 config.vm.network :public_network 后面追加网络接口,如下 config.vm.network :public_network, :bridge=>'en1: Wi-Fi (AirPort)'
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
PHP Extension的开发基础 摘要&引言PHP是当前应用非常广泛的一门语言,从国外的Facebook、Twitter到国内的淘宝、腾讯、百度再到互联网上林林总总的各种大中小型网站都能见到它的身影。PHP的成功,应该说很大程度上依赖于其开放的扩展API机制和丰富的扩展组件(PHP Extension),正是这些扩展组件使得PHP从各种数据库操作到XML、JSON、加密、文件处理、图形处理、Socket等领域无所不能。有时
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
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
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
Mac环境 go语言之入门HelloWorld 1. 安装mercurial可以输入hg命令查询系统是否安装$sudo pip install mercurial安装成功之后如上命令安装失败,可以直接去下载安装输入hg命令,表示成功安装 mercuria
iphone手机连接USB时出现需要Mobile device setup disk上的usbaapl.sys文件 iphone手机连接USB时出现需要Mobile device setup disk上的usbaapl.sys文件
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
php常用命令 1.php -v 查看版本号2.php -h 查看帮助3.php -m 查看安装的模块4.php -i 查看php信息(查看php.ini非常方便)5.php --ini 显示配置文件名字6.php -f <file> 执行php文件