锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美亚洲国产SUV,亚洲人成在线播放网站,亚洲AV无码国产剧情http://m.tkk7.com/sealyu/category/44841.html--- The devil's in the Details (<a >http://www.sealyu.com</a>)zh-cnTue, 14 Sep 2010 14:58:12 GMTTue, 14 Sep 2010 14:58:12 GMT60璁╀綘鐨凾extMate鏀寔GB2312,BIG絳変簹媧茬紪鐮?杞?http://m.tkk7.com/sealyu/archive/2010/09/08/331424.htmlsealsealWed, 08 Sep 2010 11:40:00 GMThttp://m.tkk7.com/sealyu/archive/2010/09/08/331424.htmlhttp://m.tkk7.com/sealyu/comments/331424.htmlhttp://m.tkk7.com/sealyu/archive/2010/09/08/331424.html#Feedback0http://m.tkk7.com/sealyu/comments/commentRss/331424.htmlhttp://m.tkk7.com/sealyu/services/trackbacks/331424.html闂灝辨槸鎴戜滑浣跨敤TextMate涓嶆敮鎸丟B2312絳夌紪鐮侊紝鐢ㄧ潃鍙婂叾涓嶆柟渚匡紝涓嬮潰鏄В鍐蟲柟妗堬細

鎵撳紑Bundle Editor
閫夊垯Show all

閫夊垯鏂囦歡澶?span class="hilite1" style="background-color: #ffff00;">TextMate錛堟垨鑰呴殢渚夸綘閫夊垯浠涔堬級
澧炲姞涓涓柊鐨則emplate‘openEncodedFile’錛堟垨鑰呴殢渚夸綘鑷繁鍛藉悕錛?br /> 鍦═emplate data涓涓嬭瀹?br /> Extension錛氫腑 鐣欑┖

Command(s):

# open CocoaDialog’s file select menu

file=$(CocoaDialog fileselect \
--title "Open an encoded file" \
--with-directory $HOME/ \
)
# check for valid file
if [ -n "$file" ]; then
# open CocoaDialog's dropdown menu
# for more encodings add them to '--items'
# to list all possibile encodings use the Terminal with 'iconv -l'
res=$(CocoaDialog dropdown \
--title "Open an encoded file" \
--text "Choose the encoding:" \
??exit?onchange \
--button1 "Open" \
--button2 "Cancel" \
--items "BIG5" "EUC-TW" "GB2312" "SJIS" "EUC-JP" "KOI8-R" \
)
# if user canceled exit
[[ $( (tail -r &amp;lt;&amp;lt;&amp;lt;"$res") | tail -n1) == "2" ]] &amp;amp;&amp;amp; \
exit_discard
res=$(tail -n1 &amp;lt;&amp;lt;&amp;lt;"$res")
# add more 'elif' according to '--items' if needed
if [ "$res" == 0 ]; then
ENC="BIG5"
elif [ "$res" == 1 ]; then
ENC="EUC-TW"
elif [ "$res" == 2 ]; then
ENC="GB2312"
elif [ "$res" == 3 ]; then
ENC="SJIS"
elif [ "$res" == 4 ]; then
ENC="EUC-JP"
elif [ "$res" == 5 ]; then
ENC="KOI8-R"
fi
# start conversion to UTF-8 and send the result as a new file back to TM
iconv -f "$ENC" -t utf-8 "$file" &amp;gt; "$TM_NEW_FILE"
fi
Output: Insert as Text - Activation: Key Equivalent shift+option+o (鎴戠殑寤鴻) - Scope: 鐣欑┖



seal 2010-09-08 19:40 鍙戣〃璇勮
]]>
HowTo: Create a local environment using MAMPhttp://m.tkk7.com/sealyu/archive/2010/08/12/328711.htmlsealsealThu, 12 Aug 2010 12:35:00 GMThttp://m.tkk7.com/sealyu/archive/2010/08/12/328711.htmlhttp://m.tkk7.com/sealyu/comments/328711.htmlhttp://m.tkk7.com/sealyu/archive/2010/08/12/328711.html#Feedback0http://m.tkk7.com/sealyu/comments/commentRss/328711.htmlhttp://m.tkk7.com/sealyu/services/trackbacks/328711.htmlMAMP creates a local server environment on Mac OS X by installing PHP, MySQL, and Apache right out of the box. This will make Drupal much easier to install because the components don't have to be installed separately. This page is to be used in conjunction with the installation instructions for Drupal on Mac OS X.

Also you may want to check out this video in the Videocasts section of the handbook: Installing a Local Web Server on Mac OS X.

Download MAMP

(This will install Apache, MySQL, and PHP in one step.)
Find the latest version here: http://www.mamp.info/
Download and drag to Applications folder to install. Open MAMP and click "start servers," then "Open start page."

Download Drupal

Find the latest Drupal release here: http://drupal.org/.

Move the directory containing the Drupal files into the MAMP htdocs directory:

mv drupal-x.x.x/* drupal-x.x.x/.htaccess /Applications/MAMP/htdocs/yourdrupaldir

where yourdrupaldir is whatever you want the directory to be called.

Note: if you use Finder you may miss moving the .htaccess file which is necessary for clean URLs to work. It is generally best to download and unzip Drupal directly in the document root (default is htdocs) so you don't miss the .htaccess.

Create the Drupal database

To create a database for Drupal

  1. Go to the MAMP start page
  2. Click "phpMyAdmin"
  3. On the next page click "Databases"
  4. On the "Databases" page enter a name for your Drupal database in the "Create new database" field at the bottom of the page
  5. Select "utf8_general_ci" under the "Collation" drop-down (must be utf8!)
  6. Click "Create"
  7. Next you must create a user name with the privileges Drupal requires to use the new database
  8. Go back to the main phpMyAdmin page and click "Privileges"
  9. On the next page click "Add a new User".
  10. Fill out the "Login Information" form, making sure to change the "Host" field to "Local" and not leave it as "Any host" (for some reason Drupal will not be able to connect to your local database if you select "Any host")
  11. Leave the "None" radio button selected under the "Database for user" section, and under the "Global privileges" section leave everything unchecked
  12. Click "Go"
  13. On the next page scroll down to the "Database-specific privileges" section and select the new Drupal database you created from the dropdown
  14. Check the SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX and ALTER checkboxes and then click "Go".

You can also use a GUI such as Sequel Pro, just remember to use this as your Socket:

/Applications/MAMP/tmp/mysql/mysql.sock

Changing your password

The default username/password for your MySQL install is now root/root! For security purposes, it's always best to change this. If you're connected to the internet, this is a must.

When you are changing the default user/password from root/root, you need to do two things. Only the first is documented in the MAMP start page FAQ, but if you don't do the second then you get an error message when you try to access anything from the MAMP start page.

  1. Use command line to change the password (as documented in the MAMP start page FAQ)

    Open the terminal and type the following:
    /Applications/MAMP/Library/bin/mysqladmin -u root -p password [NEWPASSWORD]

    It will ask for the current password after you hit enter. Once you have entered that, the MySQL password is changed.

  2. Open a text editor and change the password in the three following files:
    • /Applications/MAMP/bin/phpMyAdmin-X.X.X/config.inc.php

      Find the line that reads...
      $cfg['Servers'][$i]['password']      = 'root';
      ...and change the value 'root' to your new password, retaining the quotes.

    • /Applications/MAMP/bin/mamp/index.php

      Find the line that reads...
      $link = @mysql_connect(':/Applications/MAMP/tmp/mysql/mysql.sock', 'root', 'root');
      ...and change the last parameter to your new password.

    • /Applications/MAMP/bin/stopMysql.sh

      Replace the -proot with your password. (If you don't change this one you can have zombie mysqld's running after you thought you stopped the server)

Optional: Adjust PHP's memory limit for scripts

By default, MAMP has the memory limit that a script can use set at 8MB, which is the PHP default. Looking at PHP's php.ini-recommended file, this memory limit is normally set at 128MB. To adjust this amount, open the php.ini file in a text editor and change the following line (approximately on line 232):

memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)

PHP.ini file locations:

  • /Applications/MAMP/conf/php4/php.ini
  • /Applications/MAMP/conf/php5/php.ini

In MAMP PRO, don't alter the file directly since it will be recreated at each server start. Please edit the appropriate template (menu File > Edit template > ...) instead.

Even with larger PHP memory limits you can get timeout errors trying to import large Drupal databases into MySQL. These issues are discussed at length elsewhere with regards to the cache and views cache. Generally the solution is to empty the Drupal cache before importing/exporting databases to/from MySQL.

Connect Drupal

Navigate to http://localhost:8888/yourdrupaldir/install.php and fill in the installation fields using the information provided on the MAMP start page and the name you used for the database you created in step 3.

Start configuring Drupal!

Go to http://localhost:8888/yourdrupaldir/ and create the first account.
Continue with instructions in INSTALL.txt.

If you changed your MySQL username and password you will need to modify that in your local Drupal settings.php file as well.

Temporary Files Note:

By default the File System settings (admin/settings/file-system) will place the temporary files directory inside /Applications/MAMP/tmp/php which should be changed to something like files/tmp or sites/files/tmp to avoid later confusion.

Clean up your Localhost URL

If you would like to shorten your URL from "http://localhost:8888" to "http://localhost" follow these instructions:

  • Open the MAMP application
  • Click on "Preferences" and then "Ports"
  • Change the Apache Port to 80 (the standard web server port)
In MAMP PRO, change the port of apache to 80 and click on apply.

seal 2010-08-12 20:35 鍙戣〃璇勮
]]>
Mac 瀹氭椂鍏蟲満鐨勪袱縐嶆柟娉?/title><link>http://m.tkk7.com/sealyu/archive/2010/06/11/323340.html</link><dc:creator>seal</dc:creator><author>seal</author><pubDate>Fri, 11 Jun 2010 04:04:00 GMT</pubDate><guid>http://m.tkk7.com/sealyu/archive/2010/06/11/323340.html</guid><wfw:comment>http://m.tkk7.com/sealyu/comments/323340.html</wfw:comment><comments>http://m.tkk7.com/sealyu/archive/2010/06/11/323340.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/sealyu/comments/commentRss/323340.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sealyu/services/trackbacks/323340.html</trackback:ping><description><![CDATA[絎竴縐嶆柟娉曪細<br /> <br /> 棣栧厛鎵撳紑緋葷粺鍋忓ソ璁劇疆<br /> <br /> 鐐瑰紑鑺傝兘鍣紱 <br /> <br /> 鐒跺悗鐐瑰嚮瀹氭椂锝炲紑濮嬭緗綘鐨勬椂闂村惂銆?br /> <br /> 絎簩縐嶆柟娉曪細<br /> <br /> <span style="border-bottom: 1px dashed #efefef; line-height: 15pt;"><span style="font-family: 瀹嬩綋; font-size: 14px;"><span id="Content864933">鎵撳紑terminal,杈撳叆 sudo shutdown -h <yymmddhhmm></span></span></span> 錛坹y錛氬勾浠?nbsp; mm錛氭湀浠?nbsp; dd錛氬ぉ鏁?nbsp; hh錛氬皬鏃?nbsp; mm 錛氬垎閽燂級 <img src ="http://m.tkk7.com/sealyu/aggbug/323340.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sealyu/" target="_blank">seal</a> 2010-06-11 12:04 <a href="http://m.tkk7.com/sealyu/archive/2010/06/11/323340.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏈濂界殑鍘熷瀷鍜屾祦紼嬪浘緇樺埗宸ュ叿錛歄mniGraffle (MAC OS)http://m.tkk7.com/sealyu/archive/2010/05/18/321226.htmlsealsealMon, 17 May 2010 21:23:00 GMThttp://m.tkk7.com/sealyu/archive/2010/05/18/321226.htmlhttp://m.tkk7.com/sealyu/comments/321226.htmlhttp://m.tkk7.com/sealyu/archive/2010/05/18/321226.html#Feedback0http://m.tkk7.com/sealyu/comments/commentRss/321226.htmlhttp://m.tkk7.com/sealyu/services/trackbacks/321226.html

“浣跨敤鍝鍘熷瀷璁捐宸ュ叿”澶ф鏄璁″笀闂茶亰鏃跺嚭鐜伴鐜囨渶楂樼殑璇濋涔嬩竴銆傛嵁 鎴戜簡瑙d竴鑸互Visio鍜孭hotoshop涓轟富錛屼篃鏈変漢鐢‵lash鍜孭PT錛屾嵁涓涓柊鏉ョ殑鍚屼簨璇達紝浠栦滑鍏徃榪樼敤Excel銆傛垜瀹炲湪鎯充笉鍑虹敤Excel 鎬庝箞鐢誨浘錛屽搱鍝堛傛垜涓漢鏈鍠滄鐨勫伐鍏鋒槸OmniGraffle錛堝 涓嬪浘錛夛紝鑷粠鎴戠敤浜嗗畠浠ュ悗錛屽氨鍐嶄篃涓嶆兂鐢ㄥ叾瀹冨師鍨嬭璁¤蔣浠朵簡銆?/p>

棣栧厛鎴戝繀欏婚殕閲嶄粙緇嶄竴涓?a style="padding: 2px; margin: 0px; color: #336699;" target="_blank" >Omni Group榪欏鍙湁26涓漢鐨勫皬鍏徃錛屼粬浠漢鏁拌櫧灝戯紝浣嗗嵈浜у嚭 浜嗗儚OmniWeb銆?a style="padding: 2px; margin: 0px; color: #336699;" target="_blank" >OmniGraffle銆?a style="padding: 2px; margin: 0px; color: #336699;" target="_blank" >OmniPlan鍜?a style="padding: 2px; margin: 0px; color: #336699;" target="_blank" >OmniOutliner絳? 絳変竴緋誨垪娣卞彈鐢ㄦ埛嬈㈣繋鐨勭簿鍝佽蔣浠訛紝瀹炲姏緇濆涓嶅灝忚銆?/p>

浣犲彲浠ョ敤OmniGraffle錛堜互涓嬬畝縐癘G錛夋潵鍋氬緢澶氫簨鎯咃紝鎴戜竴鑸敤 瀹冩潵緇樺埗嫻佺▼鍥懼拰鐣岄潰鍘熷瀷銆傜浉姣旇緝浜嶸isio絳夊伐鍏鳳紝瀹冪殑浠ヤ笅鐗圭偣鍜屽姛鑳借浜虹埍涓嶉噴鎵嬶細

婕備寒鐨勭晫闈?/h3>

OG鐨勭晫闈㈠お婕備寒浜嗭紝鑷沖皯姣旂伆紿佺獊鐨刅isio濂界湅澶氫簡銆?#8220;緹庣殑灝辨槸濂? 鐨?#8221;錛堛婃渶浣寵璁?00緇嗗垯銆嬶級錛岀敤OG緇樺浘鐨勬椂鍊欒剳涓父甯稿厖婊$伒鎰燂紝鑰屽鐫Visio鍒欏彧鎯沖敖蹇妸宸ヤ綔鍋氬畬銆?/p>

鑳借交鑰屾槗涓劇殑緇樺埗鍑烘紓浜殑鍥懼艦

OG鐨勫彲鐢ㄦу仛寰楀緢濂斤紝鍙互璁╀竴鍚嶆柊鎵嬪緢蹇湴緇樺埗鍑?#8220;鎯寵浜鴻垟涓鍙?#8221; 錛圝obs褰撳勾璇勪環OS X鐣岄潰鏃剁殑鍘熻瘽錛夌殑嫻佺▼鍥懼拰鍘熷瀷鍥俱傛垜浣跨敤瀹冩病澶氫箙灝卞畾涔変簡涓濂楄嚜宸辯殑鏍峰紡錛堝涓嬪浘錛夛紝騫跺湪欏圭洰涓噸鐢ㄣ?/p>

涓板瘜銆佺簿鑷寸殑妯℃澘錛圫tencil/Template錛?/h3>

闄や簡瀹樻柟鐨勬ā鏉垮錛?a style="padding: 2px; margin: 0px; color: #336699;" target="_blank" >Graffletopia緗戠珯鎻愪緵浜嗕紬澶氳璁$簿緹庣殑妯℃澘銆備笉浠呮湁甯歌 鐨勭綉緇溿佽蔣浠舵祦紼嬨佺數璺瓑綾葷洰錛岀敋鑷寵繕鏈塙CD鐩稿叧鐨勬ā鏉匡紙濡備笅鍥撅級錛屼笉浠呮樉钁楁彁鍗囧伐浣滄晥鐜囷紝鑰屼笖涔熶嬌寰椾綘鐨勪駭鍑虹墿涓庝紬涓嶅悓錛?/p>


Information Architecture


User-Centered Design Activities

杈呭姪瀵歸綈鍜屽昂瀵歌皟鏁村姛鑳?/h3>

鍦ㄧ敤Visio鐨勬椂鍊欙紝浣犳湁澶氬皯嬈℃兂鎶婂涓厓绱犵殑澶у皬璋冩垚涓鏍風殑錛熷弽姝f垜 姣忔鐢ㄥ畠緇樺埗嫻佺▼鍥劇殑鏃跺欓兘鎯寵繖涔堝仛錛屽彲姣忔閮介渶瑕佷竴涓釜鐨勮皟鏁達紝璁╀漢鏃犲彲濂堜綍銆傚湪OG閲岄潰錛岃繖鏄竴浠跺皬鑿滀竴紕熺殑浜嬪効銆傚綋浣犺皟鏁翠換浣曚竴涓厓绱犵殑澶у皬 鏃訛紝OG閮戒細鑷姩鎹曟崏騫舵樉紺洪〉闈㈠唴鎵鏈夊厓绱犵殑澶у皬錛屽茍杈呭姪榧犳爣鐨勮繍鍔紙閫氳繃紓佹ф劅錛夛紝浠ヤ究璁╄繖涓鍏冪礌鐨勫ぇ灝忓拰鍏跺畠浠諱綍涓涓綘鎯寵鐨勫厓绱犱繚鎸佷竴鑷達紙濡備笅 鍥撅級銆傚浜庢病鐢ㄨ繃OG鐨勪漢鏉ヨ錛岃繖鍚搗鏉ュ彲璋?#8220;闇囨捈”錛屾垜絎竴嬈″彂鐜拌繖鍔熻兘鏃舵縺鍔ㄤ笉宸詫紒姝ゅ錛屼繚鎸佷袱涓垨澶氫釜鍏冪礌鍦ㄦ按騫沖拰鍨傜洿鏂瑰悜涓婂榻愪篃鏄交鑰屾槗涓劇殑 浜嬶細杈呭姪綰挎誨湪浣犻渶瑕佺殑鏃跺欏嚭鐜幫紙濡備笅鍥撅級銆?/p>


杈呭姪灝哄璋冩暣


杈呭姪瀵歸綈

OG榪樻湁鏁頒笉娓呯殑濂界敤鐨勫皬鍔熻兘錛岃浜烘劅瑙夋棤鏃舵棤鍒諱笉澶勫湪榪欎釜杞歡鐨勫叧鎬涔嬩腑錛佹諱箣錛屽浜庤璁$被杞歡鏉ヨ錛孫G緇濆鏄敤 鎴蜂綋楠岀殑鍏歌寖涔嬩綔銆?/p>

鏈鍚庯紝寰堜笉騫哥殑鏄紝榪欎釜杞歡鍙湁Mac鐗堛備笉榪囧鏋滀綘鍙湁PC鐨勮瘽錛屼笉濡? 鐪嬬湅榪欓噷 錛氾級




seal 2010-05-18 05:23 鍙戣〃璇勮
]]>濡備綍鍦∕ac OS X緋葷粺涓惎鐢∕ySQL(杞?http://m.tkk7.com/sealyu/archive/2010/05/16/321082.htmlsealsealSun, 16 May 2010 01:38:00 GMThttp://m.tkk7.com/sealyu/archive/2010/05/16/321082.htmlhttp://m.tkk7.com/sealyu/comments/321082.htmlhttp://m.tkk7.com/sealyu/archive/2010/05/16/321082.html#Feedback0http://m.tkk7.com/sealyu/comments/commentRss/321082.htmlhttp://m.tkk7.com/sealyu/services/trackbacks/321082.html闅忕潃緗戠粶鏃ョ泭鍙戝睍榪樻湁os x鐢ㄦ埛鐨勫澶氾紝鏈夊彲鑳戒細闇瑕佸湪鑷繁鐨剎緋葷粺涓繍琛宮ysql+php鐜錛屾瘮濡傛灦璁劇綉绔欐垨鑰呮祴璇曚箣綾匯傜畝鍗曟楠ゅ涓嬶細

銆銆1銆佷笅杞組ySQL 5.x 鍙戣鐗?錛岃В鍘嬪茍瀹夎鏄犲儚涓殑涓や釜瀹夎鍖呮枃浠躲?/p>

銆銆a. mysql-5.x-osx10.6_x86_64.pkg 錛峬ysql 5.x 鏍囧噯鐗堝畨瑁?/p>

銆銆b. MySQLStartupItem.pkg錛峬ysql鍚姩欏圭洰錛屽彲浠ヤ笂浣犵殑鐢佃剳鍦ㄥ惎鍔ㄧ郴緇熸椂鑷姩榪愯mysql鏈嶅姟銆傚畠瀹夎鍦?Library /StartupItems/MySQL/錛屽鏋滀綘涓嶆兂緋葷粺鍚姩鏃惰繍琛宮ysql鏈嶅姟錛岃涓嶈瀹夎銆傚鏋滀綘鍦ㄥ畨瑁呭悗鍙堜笉鎯充嬌鐢紝璇峰垹闄?Library /StartupItems/MySQL/榪欎釜鐩綍銆?/p>

銆銆鍚姩mysql錛?/p>

銆銆2銆佸鏋滀綘宸茬粡瀹夎浜哅ySQLStartupItem.pkg錛岄噸鏂板惎鍔ㄧ數鑴戝嵆鍙?/p>

銆銆3銆佸鏋滀綘鏈夊畨瑁匨ySQLStartupItem.pkg鎴栬呬笉鎯沖惎鍔ㄧ數鑴戯紝榪愯錛氬簲鐢ㄧ▼搴忥紞瀹炵敤紼嬪簭錛嶇粓绔▼搴忥紝鍦ㄧ粓绔腑杈撳叆鍛戒護錛?/p>

銆銆sudo /Library/StartupItems/MySQL/MySQL start

銆銆鐒跺悗杈撳叆浣犵殑緋葷粺綆$悊鍛樺瘑鐮侊紝濡傛灉娌℃湁璁懼畾瀵嗙爜灝辯洿鎺ュ洖杞︺?/p>

銆銆鍏抽棴mysql鏈嶅姟錛?/p>

銆銆緇堢涓緭鍏ュ懡浠わ細sudo /Library/StartupItems/MySQL/MySQL stop

銆銆鐒跺悗杈撳叆浣犵殑緋葷粺綆$悊鍛樺瘑鐮侊紝濡傛灉娌℃湁璁懼畾瀵嗙爜灝辯洿鎺ュ洖杞︺?/p>

銆銆mysql root璐︽埛瀵嗙爜錛?/p>

銆銆mysql root瀵嗙爜鍒濆鍊兼槸絀恒傝繖鏍瘋櫧鐒舵病鏈夐棶棰樸備絾寰堜笉瀹夊叏銆傚緩璁綘鏇存敼root鐢ㄦ埛瀵嗙爜銆傛敞鎰忥細mysql root鐢ㄦ埛鍜岀郴緇熶腑鐨剅oot鐢ㄦ埛鏄笉涓鏍風殑銆傛槸瀹屽叏涓や釜涓嶅悓鐨勭敤鎴楓?/p>

銆銆鏇存敼mysql root瀵嗙爜璇峰湪緇堢涓緭鍏ュ懡浠わ細

銆銆/usr/local/mysql/bin/mysqladmin -u root password 鏂板瘑鐮?/p>

銆銆鍚屾椂浣犱篃鍙互闅忔椂浣跨敤榪欐潯鍛戒護鏇存敼浣犵殑瀵嗙爜銆?/p>

銆銆4銆佷笅杞絰鐗坢ysql鏁版嵁搴撶鐞嗗伐鍏?/p>

銆銆榪欐槸涓涓繍琛屽湪mac os x緋葷粺涓殑mysql鏁版嵁搴撶鐞嗚蔣浠訛紝鏀寔鏈湴鍙婅繙紼嬫暟鎹簱綆$悊銆傚茍涓旇繕鏄厤璐圭殑銆傝繖涓▼搴忕殑浼樼偣鏄畬鍏–GI鐣岄潰銆傚茍涓斿瘑鐮佹槸淇濆瓨鍦ㄦ湰鏈轟笂鐨勩傜浉瀵規瘮杈? 瀹夊叏銆?/p>

seal 2010-05-16 09:38 鍙戣〃璇勮
]]>
MAC涓璲dk鐨勭洰褰?杞?http://m.tkk7.com/sealyu/archive/2010/04/28/319546.htmlsealsealTue, 27 Apr 2010 16:09:00 GMThttp://m.tkk7.com/sealyu/archive/2010/04/28/319546.htmlhttp://m.tkk7.com/sealyu/comments/319546.htmlhttp://m.tkk7.com/sealyu/archive/2010/04/28/319546.html#Feedback0http://m.tkk7.com/sealyu/comments/commentRss/319546.htmlhttp://m.tkk7.com/sealyu/services/trackbacks/319546.html  
  鍦ㄨ繖涓洰褰曚笅鏈変釜Versions鐩綍錛岄噷闈㈡湁涓嶅悓鐗堟湰鐨刯dk銆?br />
1.鎬庢牱璁劇疆mac涓殑榛樿java鐗堟湰鍛?錛?/strong>

鍏堢湅涓涓媘ac涓紝java閾炬帴鍒頒簡鍝噷錛?/font>

榪涘叆鍒扮浉搴旂殑鐩綍錛歝d /usr/bin

鏌ョ湅java閾炬帴鍒頒簡鍝噷錛歭s -l java

localhost:bin root# ls -l java
lrwxr-xr-x 1 root wheel 74 May 18 10:26 java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
鍙互鐪嬪埌java榪炴帴鍒頒簡current鐗堟湰銆傞偅涔堣繖涓埌搴曟槸浠涔堢増鏈憿錛熷叾瀹烇紝mac涓璫urrent鍙槸涓涓揩鎹鋒柟寮? 鑰屽凡錛屾槸涓轟簡鏂逛究璁劇疆榛樿java鐨勩?/font>

榪欎釜閾炬帴榪炲埌鍝噷錛岄粯璁ょ殑java灝辨槸鍝釜銆備絾鏄湪mac涓彲浠ヤ繚鎸佽繖涓猨ava閾炬帴涓嶅彉錛屽彧鏄敼鍙樹竴涓嬪綋鍓嶇殑 java鍗沖彲錛屼笅闈㈡槸姝ラ錛?/font>

1錛夋墦寮Finder 錛?鍗曞嚮妗岄潰鍦版鐨刦inder鍥炬爣鍗沖彲銆?/font>

2錛堿pplication-->Utilities-->Java-->Java Preferences

3)鐢辯浜屾鍙互鎵撳紑“Java Preferences”瀵硅瘽妗嗭紝閫変腑“General”tab銆傚湪涓嬮潰鐨?#8220;Java Application Runtime Settings”鍖烘妸闇瑕佺殑java鐗堟湰鎷栧姩鍒版渶欏剁鍗沖彲銆?/font>

鏈欏剁鐨刯ava灝辨槸褰撳墠錛坈urrent錛塲ava錛岃繖鏍峰湪鏀瑰彉榛樿java鐗堟湰鏃跺氨涓嶇敤鍦?usr/bin涓嬮噸 鏂拌緗甹ava閾炬帴錛岃屾槸鐩存帴鍦ㄨ繖閲屾妸闇瑕佺殑java鎷栧埌鏈涓婇潰灝辮銆?/font>

2.MAC涓殑javahome璁劇疆

鍦╳indows涓紝javahome鐨勫煎彧鏄彇鍒扮増鏈彿鐨勭洰褰曞嵆鍙紝浣嗘槸鍦╩ac涓湁紼嶅井鐨勪笉鍚岋紝瑕佸幓鍒扮増鏈彿鐩? 褰曚笅鐨凥ome鐩綍錛屽錛?/font>

JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

3. 鍦∕AC涓緗甁AVA_HOME鐜鍙橀噺

鐜鍙橀噺瑕佸啀etc鐩綍涓嬬殑profile鏂囦歡涓厤緗紝榪欐牱鎵嶆槸姘鎬箙鐨勯厤緗?br />

cd /etc

vi profile

杈撳叆濡備笅鍐呭錛?/font>

JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

export JAVA_HOME

淇濆瓨銆傜劧鍚庨噸鍚垨鑰呮敞閿錛屼嬌鐜鍙橀噺鐨勯厤緗搗浣滅敤銆?br />

榪欐牱javahome鐨勭幆澧冧究浠ら厤緗ソ浜嗐?/font>

鍚屾牱鐨勯亾鐞嗭紝鎴戜滑鍙互鍦╬rofile榪欎釜鏂囦歡涓繘琛孭ATH,CALSSPATH絳夌幆澧冨彉閲忕殑閰嶇疆銆?/font>



seal 2010-04-28 00:09 鍙戣〃璇勮
]]>
OS X: Change your PATH environment variablehttp://m.tkk7.com/sealyu/archive/2010/04/27/319540.htmlsealsealTue, 27 Apr 2010 15:08:00 GMThttp://m.tkk7.com/sealyu/archive/2010/04/27/319540.htmlhttp://m.tkk7.com/sealyu/comments/319540.htmlhttp://m.tkk7.com/sealyu/archive/2010/04/27/319540.html#Feedback0http://m.tkk7.com/sealyu/comments/commentRss/319540.htmlhttp://m.tkk7.com/sealyu/services/trackbacks/319540.htmlWhen you run a command from a UNIX or UNIX-like shell, the shell looks for the executable file using the directories listed in your PATH variable as a map. For convenience, adding directories to this environment variable means you don’t have to go hunting for a file each time you run it. Following these directions will allow you to add a directory to the search PATH.


To change your path, you must edit the .profile file in your home directory. If you are comfortable using the vi editor, you probably don’t need to read any further. If not, then you can use TextEdit to edit your .profile.

The default .profile is fairly short. The .profile is read when you open a Terminal window and each line is executed just like typing a command into the Terminal window. While this is handy because you can make any available command run whenever you drop to a shell, we’re concerned with changing an environment variable, PATH.

In your editor, find the line that starts with export PATH= and give it a look to make sure it doesn’t already contain the directory path you’re going to add. Sometimes the PATH variable can get lengthy, but chances are yours just has a few directories separated by colons, perhaps something like this:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

There are a few things to note before making changes. The format of this line is important. The use of spaces in this command, or their lack, matters. In particular, there cannot be spaces around the equals sign or between any of the directories. If there are spaces in the directory name you want to add, you’ll need to escape the space by preceeding it with a "backslash or by putting the path in quotes (export PATH=”/path/here”).

The export= keyword in front of that line has a very specific purpose. Defining a variable without exporting it makes it available only to the current shell, not to any subsequent shells. You may think to yourself that you don’t plan to make any subsequent shells, but this happens whenever you run a shell script. If the PATH variable was not exported, when you run a shell script, the PATH would no longer exist and it is possible that the script would fail.

The $PATH at the end of the example above tacks the previous value of the variable (if it exists) onto the end of the PATH. By default, this will add ‘:/bin:/sbin:/usr/bin:/usr/sbin’ to the end of the PATH for you which is useful because most everything you run from the command line lives there.

So, to add a new directory to the path, simply add it to the existing PATH line in .profile being careful to separate it from other directories there with colons and careful not to introduce unwanted spaces (everything after the space will be ignored). For example, to add the directory /mightyq/bin to the PATH shown above, the line could become any of the following examples:

export PATH=/mightyq/bin:/opt/local/bin:/opt/local/sbin:$PATH
export PATH=/opt/local/bin:/mightyq/bin:/opt/local/sbin:$PATH
export PATH=/opt/local/bin:/opt/local/sbin:$PATH:/mightyq/bin

Note that in the third example the new directory is added to the end of the PATH. You have the ability to optimize the searches your shell will do on your behalf each time you run a command by organizing your PATH logically. Putting less frequently used or really massive directories later in the path may give you a little performance boost (although these days things are pretty fast, so you have to be a little anal to really enjoy this).

If you don’t need a directory in your path, you can reverse the process by deleting the unwanted directory still taking care to preserve the no spaces, colon separation rules.

One last note, to test the change you made, you can use the echo command, but you need to make the shell reload the .profile first. Assuming you are in your home directory (if not, running ‘cd’ without any options will take you there), run these commands:

. ./.profile
echo $PATH

The first is a neat little command in that it shows three uses or interpretations of the period in a single line. The first . is a shortcut to cause the shell to ’source’ or load the contents of the subsequent file as itself, in the manner that the shell uses when you login to a system or start a Terminal window. If you simply executed these commands like a shell script (bash .profile, for example) you would start a new shell, that shell would get the variable set, and at the end of running the .profile script, that new shell would cease to exist and the newly defined variables would be relegated to the missing sock universe.

The second period means the current working directory. It’s not compulsory in any way in this command, but it’s habit from explaining the dots to folks, so I type it all the time now. In this context, you could also use ~/.profile as ~ explicitly means your home directory.

The last dot causes the .profile to be hidden from view in a normal directory listing or Finder view. It doesn’t change the file in any other way, it just make it invisible and de-clutters your directories. To see hidden files, you can use ‘ls -a’ and you might be surprised by what you find.



seal 2010-04-27 23:08 鍙戣〃璇勮
]]>
OS X: Easily edit hidden configuration files with TextEdithttp://m.tkk7.com/sealyu/archive/2010/04/27/319539.htmlsealsealTue, 27 Apr 2010 15:06:00 GMThttp://m.tkk7.com/sealyu/archive/2010/04/27/319539.htmlhttp://m.tkk7.com/sealyu/comments/319539.htmlhttp://m.tkk7.com/sealyu/archive/2010/04/27/319539.html#Feedback0http://m.tkk7.com/sealyu/comments/commentRss/319539.htmlhttp://m.tkk7.com/sealyu/services/trackbacks/319539.htmlIn OS X, hidden files (those starting with a period like .profile or .bashrc) can be a challenge to edit because they are, well, hidden and don’t show up in Finder windows. While there are tricks to make hidden files visible in Finder windows, I prefer to keep my hidden files hidden. I also prefer to edit them using vi, but I know that many folks are likely to think ’six’ instead of ‘editor’ when presented with vi. What follows is a simple way to edit a hidden file using TextEdit without making any changes to the system.


When confronted with the task of editing your .profile file, there are several options. For the seasoned veteran, editing this file is simply a matter of dropping to a shell, editing in vi, and :wq’ing. There is the pico editor which, for a command line editor, is a little friendlier than vi. For the majority of users, editing a text file is warmer and fuzzier using a GUI text editor like TextEdit.

The problem is that files starting with a period are hidden from listings in the Finder windows, so trying to find a hidden file to open using TextEdit will not get you very far. While many third party editors provide options for opening hidden files, if you don’t have one installed, you can easily open these hidden files using TextEdit which is a part of OS X.

To open your .profile file, for example, start the Terminal application (searching for ‘terminal’ using Spotlight and clicking on the Terminal application is an easy way to do this). Since Terminal will put you in your home directory by default and .profile is in your home directory, you can edit .profile simply by typing:

open .profile

If the file you want to edit is in another directory, you’ll need to cd into that directory first or specify the full path name in front of the filename.

The open command used above uses the same mechanism to open a file using a default application that the Finder does when clicking on a file. If for some reason the default application for the file you are trying to edit has changed to something that doesn’t work for editing, you can force open to use TextEdit by adding the -a option:

open -a TextEdit .profile

Make your changes to the file and save it and you’re done. One compulsory note of caution: hidden files are often hidden for a reason. They tend to hold configuration information that, if incorrectly changed, could cause one or more applications to misbehave. Tread lightly and make backups before changing.



seal 2010-04-27 23:06 鍙戣〃璇勮
]]>
NuFile - 鍦‵inder涓氳繃鍙抽敭鑿滃崟鏉ユ柊寤烘枃浠?http://m.tkk7.com/sealyu/archive/2010/04/27/319424.htmlsealsealMon, 26 Apr 2010 22:43:00 GMThttp://m.tkk7.com/sealyu/archive/2010/04/27/319424.htmlhttp://m.tkk7.com/sealyu/comments/319424.htmlhttp://m.tkk7.com/sealyu/archive/2010/04/27/319424.html#Feedback0http://m.tkk7.com/sealyu/comments/commentRss/319424.htmlhttp://m.tkk7.com/sealyu/services/trackbacks/319424.html榪欎釜灝忚蔣浠跺彨NuFile 銆傛妸榪欎釜杞歡涓嬭澆涓嬫潵鍚庯紝灝卞彲浠ユ墦寮鏂囦歡榪涜瀹夎銆傚畨瑁呭緢綆鍗曪紝涓鐩?#8220;緇х畫”灝卞彲浠ヤ簡銆傚畨瑁呭畬姣曞悗錛屾垜浠繘鍏?#8220;緋葷粺鍋忓ソ璁劇疆”錛屽氨浼氬彂鐜板湪“鍏朵粬”閭d竴琛? 涓紝鍑虹幇浜哊uFile鐨勯厤緗?/p>

緋葷粺鍋忓ソ璁劇疆-2.png

榪涘叆NuFile鐨勯厤緗〉闈紝鎴戜滑鍙互璁劇疆鍦ㄥ彸閿彍鍗曚笂鍙互鏂板緩鍝簺鏂囦歡銆侼uFile鏀寔 鐨勬枃浠剁被鍨嬪緢澶氾紝鍖呮嫭鏂囨湰鏂囦歡銆丣ava鏂囦歡銆丳HP鍜孫ffice緋誨垪銆備綘榪樺彲浠ュ鍔犳柊鐨勬枃浠剁被鍨嬨?/p>

NuFile.png

閰嶇疆瀹屾瘯鍚庯紝鎴戜滑鍦?a title="http://mac.linsheng.me/?p=253" target="_blank">Finder紿楀彛涓殑鍙抽敭鑿滃崟 涓紝灝卞彲浠ユ柊寤烘枃浠朵簡銆?/p>

nufilemenu.png


seal 2010-04-27 06:43 鍙戣〃璇勮
]]>
Finder Tip: 鑾峰彇/澶嶅埗鏂囦歡鎴栨枃浠跺す瀹屾暣璺緞錛堣漿錛?/title><link>http://m.tkk7.com/sealyu/archive/2010/04/27/319422.html</link><dc:creator>seal</dc:creator><author>seal</author><pubDate>Mon, 26 Apr 2010 17:50:00 GMT</pubDate><guid>http://m.tkk7.com/sealyu/archive/2010/04/27/319422.html</guid><wfw:comment>http://m.tkk7.com/sealyu/comments/319422.html</wfw:comment><comments>http://m.tkk7.com/sealyu/archive/2010/04/27/319422.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/sealyu/comments/commentRss/319422.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sealyu/services/trackbacks/319422.html</trackback:ping><description><![CDATA[<div> <p><strong>1. 鐢═erminal緇堢紼嬪簭</strong>:<br /> 鎵撳紑Terminal紿楀彛, 鐢ㄩ紶鏍囨妸瑕佽幏鍙?澶嶅埗鐨勬枃浠舵垨鏂囦歡澶規嫋鏀懼埌Terminal紿楀彛涓? 褰撶湅鍒版湁涓豢鑹插姞鍙峰嚭鐜版椂, 鏀懼紑榧犳爣, 鏂囦歡鐨勫畬鏁磋礬寰?full path)浼氬湪鍛戒護琛屾樉紺哄嚭鏉? 騫跺彲澶嶅埗綺樿創鍒板叾瀹冨湴鏂? </p> <p><strong>2. 鐢═extEdit</strong>:<br /> 鎵撳紑TextEdit搴旂敤紼嬪簭, 鎸変笅”shift-command-T”鎴栧湪Format鑿滃崟涓嬮塎ake Plain Text, 浣垮叾杞崲涓虹函鏂囨湰鏍煎紡. 鐢ㄩ紶鏍囨妸瑕佽幏鍙?澶嶅埗鐨勬枃浠舵垨鏂囦歡澶規嫋鏀懼埌TextEdit紿楀彛涓? 褰撶湅鍒版湁涓豢鑹插姞鍙峰嚭鐜版椂, 鏀懼紑榧犳爣, 鏂囦歡鐨勫畬鏁磋礬寰?full path)浼氭樉紺哄嚭鏉? 騫跺彲澶嶅埗綺樿創鍒板叾瀹冨湴鏂?</p> <p><strong>3. 鐢ㄥ叧鑱旇彍鍗曟彃浠?/strong>:<br /> 姣斿<a >FilePathToClipCMPlugin</a>鎴?a >FileUtilsCM</a>, 閮芥槸鍏嶈垂鐨? </p> </div> <img src ="http://m.tkk7.com/sealyu/aggbug/319422.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sealyu/" target="_blank">seal</a> 2010-04-27 01:50 <a href="http://m.tkk7.com/sealyu/archive/2010/04/27/319422.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>MAC 鏄劇ず闅愯棌鏂囦歡鐨勬柟娉曪紙杞級http://m.tkk7.com/sealyu/archive/2010/04/27/319421.htmlsealsealMon, 26 Apr 2010 17:30:00 GMThttp://m.tkk7.com/sealyu/archive/2010/04/27/319421.htmlhttp://m.tkk7.com/sealyu/comments/319421.htmlhttp://m.tkk7.com/sealyu/archive/2010/04/27/319421.html#Feedback0http://m.tkk7.com/sealyu/comments/commentRss/319421.htmlhttp://m.tkk7.com/sealyu/services/trackbacks/319421.html

鎵撳紑“緇堢”錛岃緭鍏ヤ互涓嬩唬鐮侊細

defaults write ~/Library/Preferences/com.apple.finder AppleShowAllFiles -bool true

鐒跺悗閲嶅惎 Finder 鍗沖彲錛岄噸璧稦inder鏈夊縐嶆柟娉曪紝鏈綆鍗曠殑鏂規硶灝辨槸錛?/p>

鍚屾椂鎸変綇Control + Option閿紝鐒跺悗鐐瑰嚮Dock宸﹁竟鐨凢inder鍥炬爣錛岃繖涓椂鍊欒彍鍗曟渶涓嬮潰灝變細鍑虹幇閲嶆柊鎵撳紑Finder鐨勯摼鎺ャ傚彟澶栬繕鍙互鍚屾椂鎸変綇Option + Command + ESC涓夐敭鎵撳紑寮哄埗閫鍑哄簲鐢ㄧ▼搴忓璇濇錛屽湪閲岄潰鍏抽棴Finder涔嬪悗錛孎inder浼氬湪鍏抽棴涔嬪悗鑷姩閲嶆柊鎵撳紑銆?/p>

鎭㈠闅愯棌鐨勪唬鐮侊細

defaults write ~/Library/Preferences/com.apple.finder AppleShowAllFiles -bool false



seal 2010-04-27 01:30 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 免费少妇a级毛片| 男女啪啪永久免费观看网站| 久久精品国产亚洲Aⅴ蜜臀色欲| 亚洲男同gay片| 成年女人18级毛片毛片免费观看| 亚洲一区中文字幕在线观看| 1000部禁片黄的免费看| 亚洲成a人片77777群色| 免费无码精品黄AV电影| 亚洲精品自偷自拍无码| 亚洲A∨午夜成人片精品网站| 黄页网址在线免费观看| 亚洲一区精品伊人久久伊人| 国产精品永久免费视频| 亚洲人成在线播放网站| 免费播放一区二区三区| 亚洲国产品综合人成综合网站| 免费看成人AA片无码视频羞羞网| 亚洲人成无码网站在线观看| 日本高清免费中文字幕不卡| 黄网站色视频免费看无下截| 亚洲精品无码成人AAA片| 亚洲网站在线免费观看| 亚洲欧美一区二区三区日产| 亚洲人成人无码网www国产| 鲁丝片一区二区三区免费| 亚洲人成网站看在线播放| 伊在人亚洲香蕉精品区麻豆| 国产在线国偷精品免费看| 亚洲伊人久久大香线蕉| 免费国产不卡午夜福在线| 国产激情免费视频在线观看| 亚洲情A成黄在线观看动漫软件| 免费少妇a级毛片人成网| 久久综合给合久久国产免费| 亚洲欧洲专线一区| 亚洲国产精品乱码一区二区| 18禁无遮挡无码网站免费| caoporn国产精品免费| 亚洲一区二区久久| 国产亚洲自拍一区|