Object A holds a reference to Object B while Object B also holds a reference to Object A, then we have a retain cycle here. To break it, one of the objects should be defined as weak. So the ARC can eventually count down to zero then release both objects.
Category: Reading Notes
UIScrollView performance
Load the subviews in the scroll view only when they need to be displayed. Similar to how UITableView works.
Background: colorWithPatternImage vs. UIImageView
For small image repeated/tiled, use colorWithPatternImage
For large full-size image, use UIImageView
Higher order functions
What? Functions you can pass as arguments to other functions. Such as map, filter, reduce, flatMap.
- map – operate on each element in the collection (then return a new collection).
- filter – return a subset of the collection that satisfies some condition.
- reduce – combine and return a single value.
- flatMap – flatten a collection of collections into a collection.
What slows down table scroll
- cell creation
- transparency
- gradient
- shadow
- off-screen drawing
- image scaling
- row height calculation
- api call
- data transformation
- deep subviews
lazy var
What? The vars that are marked lazy won’t be initialized until it’s used the first time.
When to use, if the var is a view?
- When the view has a good chance of never needed based on the condition. e.g., views in a collapsible panel.
- When the view isn’t needed before user interaction starts. Such as off-screen views, or views can be shown with delay.
觉得更好
过分的竞争带来一定的盲目。我当初以为经济陷入低谷之后,市场会铅华尽洗,人们会追求一些更真实的,少一点泡沫的,头脑会更清醒。结果看到的依然是浮躁。
文中最后总结的很好。"看来,比起“让产品变得更好”来说,“让用户觉得产品更好”更能赚钱。”
手机还好,大不了信号不好;学英语的软件也还好,顶多浪费点时间。我担心的是,以后大家都只是花精力在“让乘客觉得飞机更安全”,“让父母觉得子女受到了更好的教育”,“让大家觉得吃上了更健康的食品”。。。
ps,我觉得荩子的iphone挺好的,我觉得自己的Android也不错 ^_^
商机
老总与工人在人格上是平等的
评论富士康的文章很多,这篇还算中肯正面。这个竞争激烈的时代,分辨对错很多时候是忙不过来的,但说到底,这句话也算点睛:老总与工人在人格上是平等的!
Links – 20091201
CanYouSeeMe.org Checks for Open Ports Behind Firewalls
用来测试端口不错
National Geographic Offers Stunning Natural Wallpaper
很多非常牛的图片,专业墙纸
Five Best Screencasting Tools
网速快了,可以分享screencast。
Use an Over-Under Wrap to Keep Your Headphones Kink-Free
生活必备小技巧
Google Translate Adds As-You-Type Translations, Phonetic Pronunciation
总是不断进步。(不过那个例子也太雷人了。。。-___-)
Improve Google Maps by Reporting Problems
Picasa 3.5 Organizes Your Photos with Facial Recognition
Teaching computers to read- Google acquires reCAPTCHA
每次links总少不了google
Get Extra Gmail and Picasa Storage Real Cheap
价格合理多了
X3Studios Makes Abstract Wallpaper Creation Easy
这种抽象最近似乎很流行
Livebrush Makes Design Creation Simple
这个也很酷
KnowEm Checks Username Availability Across 300+ Social Sites
williamyip还是几乎到处都可用,或者是很多site其实都不是很出名,做网站不容易,想盈利更难。
Open a Bottle of Wine with Your Shoe
我最厉害也就是螺丝钉加上榔头,这个牛
Allmyapps Bulk-Installs Your Favorite Apps, Makes System Rebuilding Less Painful
Ninite Bulk-Installs Great Free Windows Apps
想起以前到处带着张工具盘的日子,很遥远。(ninite比较少杂七杂八的)
DIY Secret Knock Detector Grants You Entrance with the Right Cadence
小时候很喜欢弄类似这种的“高科技”
搜狗发布云输入法
挺有创意的云应用
Robert Wright: The evolution of compassion
很多关系其实可以在网的同一边,但有些时候大家都误以为对方在网的另一边,例如雇佣,又如婚姻。
正则表达式判断号码靓号类型
“无理由退货”将影响C2C的格局
网络生意也要追随国情
ColorJive Helps Visualize Room Colors Before Painting
好玩
BlindTextGenerator Cranks Out Custom Text Samples
又一个生成Lorem ipsum及其他的网站
Tuesday at 3pm Is the Most Agreeable Meeting Time
How to Call in Sick Without Looking Like You’re Faking It
记住了,有心理学的考究哦
Removing Unwanted Objects from a Picture in Photoshop Could Become Child’s Play
之前跟P同学聊这年头的搞设计的人到底还值不值钱,工具太好用了,利润边际变小
Is this the World’s Most Miserly VW Bus-
Use an Old Linux Computer to Put your Baby to Sleep
笑到快喷血了
Make Unlimited Free Calls on Your Cellphone with Google Voice
有data plan的自己参考一下
OnlineOCR Converts Your Scanned Documents to Editable Text
在线就方便多了
Chimamanda Adichie: The danger of a single story
不惟书不惟上
Crack a Master Combination Padlock Redux
小技巧
网站改版与转型,用户有没有站在企业的角度思考?
说的挺实在的
BumpTop Gets Amazing-Looking Multi-Touch on Windows 7
10 Amazing Modern Watch Designs of the Future
很炫
Cooling Breakthrough For Computers, Car Electronics
Researchers developing OLEDs as cheap as newspapers-
希望早日看到投入实用
Google does not use the keywords meta tag in web ranking
SEO的人留意了
Know When to Use Alkaline Versus Rechargeable Batteries
不能盲目环保,要聪明环保
JSNES
玩了一局魂斗罗,哈哈
Myna Is an Awesome Multi-Track Audio Editor for Anyone
很傻瓜是的音乐合成
Josh Silver demos adjustable liquid-filled eyeglasses
多快好省的发明,造福人类,越多越好
StayInvisible Catalogs Free Proxy Servers to Keep You Anonymous
代理列表,在国内用得上
