Developer JackiOS, C/C++, PHP, 3D game developmentiOS available fontsUILabel文字模糊问题解决
把UILabel放到各种view中,有可能会遇到UILabel中的文字模糊的问题。
看这个模糊的UILabel: 解决后: 解决方法如下: 1. 确认UILabel的width和height都为偶数,不是请修改。 2. 确认UILabel的容器(放置这个UILabel的View)的width和height都是偶数,不然也改一下。 重新运行工程,问题解决。 如果还不行,注意width, height, origin.x, origin.y中不要出现小数。 也有可能你多addSubview了你的UILabel也会导致文字变样。注意哈。
从blogspot搬家过来结果代码格式都乱了。
本来就很乱,这下更乱了。sigh...
开源一个支持表情的UILabel,EmotionLabel
这是一个可以把字定义表情字符变成表情图片放到字符串里的UILabel替代的实现,之前有项目中用到就实现了一个(非Emoji)。看到有人要,就放到google code上。 使用了NSAtributeString(基于DTCoreText),可以从demo中看到具体的使用方法。 项目URL:http://code.google.com/p/emotionlabel/ 热列欢迎pull request。
a temporary solution for PEAR Install with PHP5.3
I met a Bug of PHP(still doesn't fixed yet) about halt_compiler function which caused installing PEAR fail.
php go-pear.pharThis command doesn't work in PHP5.3 To fix(for the time being) it, use this command: php -ddetect_unicode=0 go-pear.phar Project "kana50" has created
I've been learning iPhone developing recently.
Finally I created a iPhone App and submitted it to to App store(still waiting to review).And I decide make this iPhone App project Opensource: http://code.google.com/p/kana50/ How to fix PROCEDURE can't return a result set in the given contextCLIENT_MULTI_RESULTS enables the client program to process multiple results. This option must be enabled if you execute CALL statements for stored procedures that produce result sets. Otherwise, such procedures result in an error Error 1312 (0A000): PROCEDURE proc_name can't return a result set in the given context. http://dev.mysql.com/doc/refman/5.0/en/c-api-multiple-queries.htmleMule one-click AddOn, a new project is created
It's a firefox add-on that I made recently, just because I'm tried to copy/paste a ed2k link from a window to another windows if you have used eMule web interface to remotely control your eMule client.Project home:
http://code.google.com/p/emule-oneclick-add-on/Mozilla Add-On install: https://addons.mozilla.org/en-US/firefox/addon/195536/ Using Beyond compare3 as Git diff tool under Cygwin在Cygwin下使用Beyond compare3(BC3)作用Git的diff工具 step 1. create new .sh file as Git's diff warpper. #!/bin/sh ** 注意这里的两个路径, 第二个是本地文件, 因为是相对路径, BC3可以找到. 但第一个是绝对路径指向/tmp/xxx 所以我们要特别指定在windows下的真实路径, 而不是cygwin的路径. 所以我加上了d:/programs/cygwin。step 2. Add this line to .bashrc and run it to configure your Git gloabl variable. git config --global diff.external /home/z33/git-diff-wrapper.sh Now you can try git diff whatever your file.The most easy way to install geoip php extension note
sudo pecl install geoip3.Following message from step2, for example: Build process completed successfully Installing '/usr/local/lib/php/20060613/geoip.so' install ok: channel://pecl.php.net/geoip-1.0.7 configuration option "php_ini" is not set to php.ini location You should add "extension=geoip.so" to php.ini4.Install GeoIP database wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz gzip -d GeoIP.dat.gz sudo cp GeoIP.dat /usr/local/share/GeoIP/ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz sudo cp GeoLiteCity.dat /usr/local/share/GeoIP/GeoLiteCity.dat sudo mv /usr/local/share/GeoIP/GeoLiteCity.dat /usr/local/share/GeoIP/GeoIPCity.dat5.test <?php print_r(geoip_record_by_name('125.63.166.38')); |
|