How to access shared folder on Ubuntu Guest Machine
1. Install Virtualbox Guest Additions
2. VirtualBox Guest Window Menu->Tools->Share Folder->Downloads
3. vim /etc/fstab on Ubuntun Guest Machine
Downloads /media/shared vboxsf uid=1000,gid=1000,nodev,noexec,nosuid,auto,rw 0 0
4. Reboot Guest Machine
當初找這篇本來是不小心在New Project時勾選到,但不知道為何又一直出現Reference build error,結果後來還是重新建一個Project。
Develop jQuery with Sublime Text 2
跨平台的Sublime (Windows, Linux, Mac), 看來不錯用。
1. Download Sublime Text 2
(http://www.sublimetext.com/2)
2. Download jQuery snippet for sublime
(https://github.com/mrmartineau/jQuery/downloads)
3. 在Library/Application Support/Sublime Text 2/Packages/ 新增一個jQuery folder,並把2.的snippet放進去
[Reblog from zonble] 原來當初OSX Snow Leopard的中文字體是lukhnos寫信給Steve Jobs,還真的有回應! :-)
當初 Snow Leopard 的中文字體問題後來是這樣解決的 :)
I wrote to Steve Jobs once. That was when Snow Leopard first came out in the late summer of 2009, and there were some issues with the new Traditional Chinese fonts. Those issues made them unusable in formal settings. With friends’ help and encouragement, we compiled the screenshots, filed Radar, and I finally got to draft the email. I didn’t expect him to read it, but the next day, someone at Apple replied, asking if I could send back the attachments that I “emailed Mr. Jobs.” And the issues with the fonts were eventually resolved. It’s not the famous one-liner that people loved to post online, and it’s easy for us to attribute everything that a company does to one person. Still, that is important: There are people at Apple that care.
CSS Selector Naming Convention
常用的css命名规则
头:header
内容:content/container
尾:footer
导航:nav
侧栏:sidebar
栏目:column
页面外围控制整体布局宽度:wrapper
左右中:left right center
登录条:loginbar
标志:logo
广告:banner
页面主体:main
热点:hot
新闻:news
下载:download
子导航:subnav
菜单:menu
子菜单:submenu
搜索:search
友情链接:friendlink
页脚:footer
版权:copyright
滚动:scroll
内容:content
标签页:tab
文章列表:list
提示信息:msg
小技巧:tips
栏目标题:title
加入:joinus
指南:guild
服务:service
注册:regsiter
状态:status
投票:vote
合作伙伴:partner
(二)注释的写法:
/* Footer */
内容区
/* End Footer */
(三)id的命名:
(1)页面结构
容器: container
页头:header
内容:content/container
页面主体:main
页尾:footer
导航:nav
侧栏:sidebar
栏目:column
页面外围控制整体布局宽度:wrapper
左右中:left right center
(2)导航
导航:nav
主导航:mainbav
子导航:subnav
顶导航:topnav
边导航:sidebar
左导航:leftsidebar
右导航:rightsidebar
菜单:menu
子菜单:submenu
标题: title
摘要: summary
(3)功能
标志:logo
广告:banner
登陆:login
登录条:loginbar
注册:regsiter
搜索:search
功能区:shop
标题:title
加入:joinus
状态:status
按钮:btn
滚动:scroll
标签页:tab
文章列表:list
提示信息:msg
当前的: current
小技巧:tips
图标: icon
注释:note
指南:guild
服务:service
热点:hot
新闻:news
下载:download
投票:vote
合作伙伴:partner
友情链接:link
版权:copyright
(四)class的命名:
(1)颜色:使用颜色的名称或者16进制代码,如
.red { color: red; }
.f60 { color: #f60; }
.ff8600 { color: #ff8600; }
(2)字体大小,直接使用”font+字体大小”作为名称,如
.font12px { font-size: 12px; }
.font9pt {font-size: 9pt; }
(3)对齐样式,使用对齐目标的英文名称,如
.left { float:left; }
.bottom { float:bottom; }
(4)标题栏样式,使用”类别+功能”的方式命名,如
.barnews { }
.barproduct { }
注意事项::
1.一律小写;
2.尽量用英文;
3.不加中杠和下划线;
4.尽量不缩写,除非一看就明白的单词.
主要的 master.css
模块 module.css
基本共用 base.css
布局,版面 layout.css
主题 themes.css
专栏 columns.css
文字 font.css
表单 forms.css
补丁 mend.css
打印 print.css
————————————————
來自(www.QuanDuan.net)
原作:まりっぺさん ■http://blog.livedoor.jp/marippe_blog/
譯者:jewelgospel@gmail.com
大多時候Fron-end Engineer在做第一版App時的Mockup,了解基本顏色理論很重要。
Browser is not supported by Web Dynpro
來源:http://support.mozilla.com/zh-TW/questions/786432
為了解決SAP無法在新版Firefox (4+)上跑Web DynPro plugin,請安裝User Agent Switcher並加上這段來Fake成Firefox 3.6.15
———————————————————————————-
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
———————————————————————————-
Reblogged: 加速前端網頁效能的14條規則
來源:Microsoft Dev Network, by 保哥
Steve Sounders寫了一本很有名的書叫做:High Performance Web Sites: Essential Knowledge for Front-End Engineers
這本書裡定義了14條讓你的網頁加速的方法,分別如下:
- Make fewer HTTP requests
- Use a CDN
- Add an Expires header
- Gzip components
- Put CSS at the top
- Move JS to the bottom
- Avoid CSS expressions
- Make JS and CSS external
- Reduce DNS lookups
- Minify JS
- Avoid redirects
- Remove duplicate scripts
- Turn off ETags
- Make AJAX cacheable and small
本站 (#osxchat) 的 mjhsieh 還有 zonble 開發了一套簡單的自動選字輸入法「小麥注音」,特色有:
- 輕巧簡單,容易安裝
- 選字及標點符號符合台灣使用者習慣
- 介面依循 Mac 標準
- 支援標準、倚天、許氏、倚天26 鍵以及漢語拼音鍵盤配置
- 程式反應快速,目前的詞庫也有相當的準確性,應該能夠有效幫助大家輸入國語
- 開放原始碼,有興趣研究改進輸入法及選字原理的人可從本專案開始著手
需要下載的朋友,可以前往小麥注音網站取得。
