骛之网, Our Union, Doing Something !


Mar
30 Fri
2012
Catalog : iOS   Posted At : March 30, 2012, 1:32 p.m.   Edited At : March 30, 2012, 1:32 p.m.

Mac OS下的字体渲染来说,通常状况下是可以的。

但有些人的视觉比较挑剔,特别是在显示中文时,总感觉稍有不满意的地方,可以如下配置来更改。

当然了,如果所有更发都不满意,可以恢复成更发前的配置的,不会有任何差别。

打开终端,执行:~ Ouds$ defaults -currentHost write -g AppleFontSmoothing -int 整数

整数为0/1/2/3四选项,可以根据自己需求来选——

0 恢复到未执行上面命令前的状态
1 light s

Tags : mac os server, 字体渲染    Comments(21)   Read(136)   Read More ...

Mar
18 Sun
2012
Catalog : Python   Posted At : March 18, 2012, 11:12 a.m.   Edited At : March 18, 2012, 11:12 a.m.

将自己的开源项目仓库入驻GitHub了,不过只挪了Python的两个——

https://github.com/Ouds

目前入驻的只是一个开源BLOG系统,和一个开源CMS系统,其它的以后陆续挪。

BLOG: https://github.com/Ouds/Ouds

Ouds is a Open Source BLOG System written in Python using DJango. You only need a standard web-s


Feb
27 Mon
2012
Catalog : 活着和职场【LIVING & CAREER】   Posted At : Feb. 27, 2012, 9:49 a.m.   Edited At : Feb. 27, 2012, 9:49 a.m.

-- By Ouds

“Are you ready to enjoy your life in middle age?” I always ask myself when I am free, but I cannot answer.

For those days passed, maybe I can say I haven’t much regret, but I miss it. It always appears in my mind when I am in a daze, in my dream when I

Tags : living, 活着    Comments(259)   Read(428)   Read More ...

Feb
27 Mon
2012
Catalog : 活着和职场【LIVING & CAREER】   Posted At : Feb. 27, 2012, 9:43 a.m.   Edited At : Feb. 27, 2012, 9:43 a.m.

-- By Ouds

Cold Dishes

Chicken Feet(凤爪)……………………………………………………………… ¥20.00
Drunken Chicken(醉鸡)………………………………………………………… ¥30.00
Vegetarian Chicken(素鸡)……………………………………………………… ¥25.00
Tossed Cucumber in Sauce(凉拌黄瓜)………………………………………… ¥10.00
F

Tags : living, 活着    Comments(87)   Read(194)   Read More ...

Feb
27 Mon
2012
Catalog : 活着和职场【LIVING & CAREER】   Posted At : Feb. 27, 2012, 9:40 a.m.   Edited At : Feb. 27, 2012, 9:40 a.m.

-- By Ouds

Hi, everyone,

For you work hard, so company decides to go on a good picnic the day after tomorrow, 23rd may.

We are going to visit the Weiyang Lake. The area of the Weiyang Lake is 1,000 Chinese Mu, and which water area is 480 Chinese Mu. It i

Tags : living, 活着    Comments(377)   Read(655)   Read More ...

Feb
27 Mon
2012
Catalog : 活着和职场【LIVING & CAREER】   Posted At : Feb. 27, 2012, 9:36 a.m.   Edited At : Feb. 27, 2012, 9:36 a.m.

-- By Ouds

On third May 2007, I went to Yichulianhua shopping mall to buy some drink after I ran. I found someone of sales promotion of Moca coffee, and felt their apparel was so funny. Every Moca girl and boy was wearing a so high black-and-white cap, and which of girl’

Tags : living, 活着    Comments(79)   Read(174)   Read More ...

Feb
22 Wed
2012
Catalog : HTML5   Posted At : Feb. 22, 2012, 9:53 a.m.   Edited At : Feb. 22, 2012, 9:53 a.m.

对于开发者,尤其是移动开发人员,以下是HTML5带来的15项必须了解的新特性——

1. New Docype

2. No more Types for Scripts and Links

3. The Semantic Header and Footer

4. hgroup

5. Mark Element

6

Tags : HTML5, 新特性, New Features    Comments(161)   Read(292)   Read More ...

Nov
11 Fri
2011
Catalog : iOS   Posted At : Nov. 11, 2011, 3:09 p.m.   Edited At : Nov. 11, 2011, 3:09 p.m.

Objective-C 初学者经常会问到——ObjC如何去掉字符串前后空格、换行符的方法;并且总希望和java、php中的trim方法差不多。

不过ObjC的语法将注定和java、php会有很大不同,至少在书写方式上。

ObjC的每个NSString对象,均有一个 stringByTrimmingCharactersInSet 方法。这个方法接受的参数为 NSCharactersInSet 对象。

NSCharactersInSet 对象只有两个方法:whitespaceCharacterSet 和 whitespaceAndNewlin


Nov
09 Wed
2011
Catalog : iOS   Posted At : Nov. 9, 2011, 2:23 p.m.   Edited At : Nov. 9, 2011, 2:23 p.m.

在调试输出窗口,也就是 (gdb) 后面输入gdb命令。

格式:x /参数(可以多个叠加) <内存引用地址>

具体参数如下:

? 帮助提示(但和直接输入help不同)
n 表示要显示的内存单元的个数
f 表示显示方式, 可取如下值
x 按十六进制格式显示变量。
d 按十进制格式显示变量。
u 按十进制格式显示无符号整型。
o 按八进制格式显示变量。
t 按二进制格式显示变量。
a 按十六进制格式显示变量。
i 指令地址

Tags : iOS, debug, 调试, Xcode GDB debugger    Comments(150)   Read(477)   Read More ...

Nov
02 Wed
2011
Catalog : iOS   Posted At : Nov. 2, 2011, 10:18 p.m.   Edited At : Nov. 2, 2011, 10:18 p.m.

对于iOS开发,分使用者和开发者两种情况。

首先说使用者,是对设备中运行系统iOS的破解

我们通常说得iOS越狱,即是对于iOS设备的使用者而言。主要是对于苹果公司便携设备操作系统iOS进行破解的一种技术手段,用户使用这种技术及软件可以获取到iOS的最高权限。简单地说,就是通过破解方式,取得系统的完全所有权。

使用者破解后,可以超越默认的R权限,获得RW权限。可以把自己的设备当作移动硬盘用,随意安装第三方应用,美化效果,隐藏应用等等。这个都熟悉,总结说就是获取设备的使用权。

Tags : mac os server, Object-C, Objective-C, iOS, Xcode, iOS开发者授权iDP, ipa, pxl, deb    Comments(82)   Read(466)   Read More ...

Oct
25 Tue
2011
Catalog : iOS   Posted At : Oct. 25, 2011, 11:01 a.m.   Edited At : Oct. 25, 2011, 11:01 a.m.

Xcode4.2中,开发iOS5应用时,引入了ARC (Automic Reference Counting)功能。因此在内存管理方面,语句的写法有了一些变化,使程序员开发起来更省事。

具体的变化是——

原来的内存管理写法:

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
……
……
[var release];
……
[pool drain];

现在


Sep
26 Mon
2011
Catalog : iOS   Posted At : Sept. 26, 2011, 10:42 a.m.   Edited At : Sept. 26, 2011, 10:42 a.m.

MacOS默认不显示隐藏文件,显示或隐藏隐藏文件方法有两种。

1、在Mac终端输入命令

显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles YES (-bool True)
隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles NO (-bool False)

2、使用AppleScript脚本(转载)

Tags : mac os server, 显示隐藏文件, AppleScript, iOS    Comments(218)   Read(495)   Read More ...
Catalog
Last Posts
  1. Mac OS下的字体渲染配置,特别是显示中文方面
  2. Python开源项目仓库入驻GitHub
  3. Life in My Dream
  4. The Peaceful Tea Shop
  5. The Picnic
  6. The Peoples I Paid Attention To
  7. [转载]15个开发者必须了解的HTML5新特性
  8. Objective-C 字符串去除空格、换行符
  9. Xcode GDB debugger 命令详解
  10. 关于iOS开发者授权iDP,以及后续安装包的分发途径
  11. 解决Xcode4.2中开发iOS5应用时的release编译警告或错误
  12. 显示或隐藏 Mac OS 中的隐藏文件及文件夹
Blogroll
Tag Android 竖屏 横屏 portrait landscape Clob Blob Oracle 清除表数据 delete truncate sdk min Sdk Version 关闭程序 退出当前程序 ActivityManager restartPackage Kill Background Processes PID AndroidManifest Android权限 Android异常 Android Exception orientation keyboard hidden keyboard navigation android:configChanges destroy activity ListView ListView background keyevent back key back key 返回键 delete key 删除键 重载 Override Python virtualenv pip Python包管理工具 虚拟环境 ActivityGroup Intent TabHost intent.putExtra LocalActivityManager ActivityManager Customer Title 自定义标题 Theme TabHost backgound drawable TabHost背景图片 动态切换 dynamic switching thinkpad shortcuts 快捷键 TabWidget Bottom Color Bottom Strip TabWidget底色 OpenGL OpenGL Light OpenGL Light OpenGL ES Android 3D OpenGL灯光 3D MAX 3D 2D 二维模型 三维模型 margin Border 表格布局 边框 TableLayout TableRow DJANGO_SETTINGS_MODULE DJango PYTHONPATH 环境变量 Python command line focus EditText 焦点 输入框 InputFilter 过滤器 EditText输入过滤器 DigitsKeyListener Apache HTTP Server Performance Tuning 性能优化 Apache HTTP 服务器 漏网之语 poem 文学 prose essay 食物 teleplay word-slice living fame 传说 heart collect 转载 收集 quote 音乐 song PIL identity captivity 游戏 game announce 声明 西藏 图片 景色 tibet picture scenery video 视频 计算机 computer pc 思考 thinking thought IT 职场 career 旅游 tour 感想 lie 谎言 漾水 water Rippling Water 回忆 reminiscence memory 旧日情怀 moon 月亮 patent 药方 medicine 活着 health 健康 文明 Civilization 古代卷 Ancient Par 火星 Mars 生肖 猫来穷 狗来富 cat dog Zodiac ShiVa 3D Unity 3D mac os server 显示隐藏文件 AppleScript 内存管理 Memory Management release retainCount retain 编译错误 编译警告 Object-C Objective-C iOS Xcode iOS开发者授权iDP ipa, pxl, deb debug 调试 Xcode GDB debugger stringByTrimmingCharactersInSet NSString NSCharactersInSet whitespaceCharacterSet whitespaceAndNewlineCharacterSet 字符串去除空格 字符串去除换行符 ObjC HTML5 新特性 New Features Content Management System CMS BLOG 开源项目 Open Source 内容管理系统 博客系统 字体渲染