tag:blogger.com,1999:blog-84724830647925840472024-03-19T02:23:51.680-07:00Lono's FixmeSee how I fix my computer...Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.comBlogger124125tag:blogger.com,1999:blog-8472483064792584047.post-13162511030833920712012-11-19T05:20:00.001-08:002012-11-19T05:20:03.654-08:00PostgreSQL, Rails and Heroku<span style="background-color: white; color: #555555; font-family: Menlo, Monaco, 'Andale Mono', 'lucida console', 'Courier New', monospace; font-size: 15px; line-height: 22.066667556762695px;">rails new blog -d postgresql</span>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-45349571014715811542012-08-07T21:02:00.000-07:002012-08-07T21:10:05.193-07:00The performance of SAMSUNG 830 Series 2.5-Inch 256GB on Mountain LionHere is the result from Xbench:<br />
<br />
<br />
Results<span class="Apple-tab-span" style="white-space: pre;"> </span>565.10<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>System Info<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Xbench Version<span class="Apple-tab-span" style="white-space: pre;"> </span>1.3<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>System Version<span class="Apple-tab-span" style="white-space: pre;"> </span>10.8 (12A269)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Physical RAM<span class="Apple-tab-span" style="white-space: pre;"> </span>8192 MB<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Model<span class="Apple-tab-span" style="white-space: pre;"> </span>MacBookPro8,2<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Drive Type<span class="Apple-tab-span" style="white-space: pre;"> </span>SAMSUNG SSD 830 Series<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Disk Test<span class="Apple-tab-span" style="white-space: pre;"> </span>565.10<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Sequential<span class="Apple-tab-span" style="white-space: pre;"> </span>374.59<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Write<span class="Apple-tab-span" style="white-space: pre;"> </span>593.36<span class="Apple-tab-span" style="white-space: pre;"> </span>364.31 MB/sec [4K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Write<span class="Apple-tab-span" style="white-space: pre;"> </span>598.18<span class="Apple-tab-span" style="white-space: pre;"> </span>338.45 MB/sec [256K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Read<span class="Apple-tab-span" style="white-space: pre;"> </span>164.58<span class="Apple-tab-span" style="white-space: pre;"> </span>48.17 MB/sec [4K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Read<span class="Apple-tab-span" style="white-space: pre;"> </span>803.01<span class="Apple-tab-span" style="white-space: pre;"> </span>403.59 MB/sec [256K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Random<span class="Apple-tab-span" style="white-space: pre;"> </span>1149.93<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Write<span class="Apple-tab-span" style="white-space: pre;"> </span>847.69<span class="Apple-tab-span" style="white-space: pre;"> </span>89.74 MB/sec [4K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Write<span class="Apple-tab-span" style="white-space: pre;"> </span>967.11<span class="Apple-tab-span" style="white-space: pre;"> </span>309.61 MB/sec [256K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Read<span class="Apple-tab-span" style="white-space: pre;"> </span>2547.83<span class="Apple-tab-span" style="white-space: pre;"> </span>18.05 MB/sec [4K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Read<span class="Apple-tab-span" style="white-space: pre;"> </span>1146.40<span class="Apple-tab-span" style="white-space: pre;"> </span>212.72 MB/sec [256K blocks]<br />
<div>
<br />
After trim enabler:<br />
<br />
<br />
Results<span class="Apple-tab-span" style="white-space: pre;"> </span>563.27<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>System Info<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Xbench Version<span class="Apple-tab-span" style="white-space: pre;"> </span>1.3<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>System Version<span class="Apple-tab-span" style="white-space: pre;"> </span>10.8 (12A269)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Physical RAM<span class="Apple-tab-span" style="white-space: pre;"> </span>8192 MB<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Model<span class="Apple-tab-span" style="white-space: pre;"> </span>MacBookPro8,2<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Drive Type<span class="Apple-tab-span" style="white-space: pre;"> </span>SAMSUNG SSD 830 Series<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Disk Test<span class="Apple-tab-span" style="white-space: pre;"> </span>563.27<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Sequential<span class="Apple-tab-span" style="white-space: pre;"> </span>373.48<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Write<span class="Apple-tab-span" style="white-space: pre;"> </span>583.23<span class="Apple-tab-span" style="white-space: pre;"> </span>358.09 MB/sec [4K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Write<span class="Apple-tab-span" style="white-space: pre;"> </span>596.24<span class="Apple-tab-span" style="white-space: pre;"> </span>337.35 MB/sec [256K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Read<span class="Apple-tab-span" style="white-space: pre;"> </span>164.58<span class="Apple-tab-span" style="white-space: pre;"> </span>48.17 MB/sec [4K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Read<span class="Apple-tab-span" style="white-space: pre;"> </span>804.85<span class="Apple-tab-span" style="white-space: pre;"> </span>404.51 MB/sec [256K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Random<span class="Apple-tab-span" style="white-space: pre;"> </span>1145.28<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Write<span class="Apple-tab-span" style="white-space: pre;"> </span>1268.14<span class="Apple-tab-span" style="white-space: pre;"> </span>134.25 MB/sec [4K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Write<span class="Apple-tab-span" style="white-space: pre;"> </span>705.85<span class="Apple-tab-span" style="white-space: pre;"> </span>225.97 MB/sec [256K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Read<span class="Apple-tab-span" style="white-space: pre;"> </span>2562.21<span class="Apple-tab-span" style="white-space: pre;"> </span>18.16 MB/sec [4K blocks]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Uncached Read<span class="Apple-tab-span" style="white-space: pre;"> </span>1114.80<span class="Apple-tab-span" style="white-space: pre;"> </span>206.86 MB/sec [256K blocks]<br />
<br />
<br />
Almost the same, as expected.<br />
<div>
<br /></div>
</div>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-9481207704847725842012-04-25T10:45:00.000-07:002012-04-25T10:47:13.192-07:00HOWTO: use pathogen to manage vim pluginsI am now using <a href="https://github.com/tpope/vim-pathogen">pathogen</a> and GitHub to manage my vim plugins.<br />
They are not difficult to use, but you need a few git commands to set it up, which I found very annoying.<br />
<br />
To init .vim folder in Linux (or vimfiles for Windows), type:</BR><br />
<code><br />
mkdir .vim<br />
cd .vim<br />
git init<br />
wget https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim -P ~/.vim/autoload<br />
git add .<br />
git commit -m 'initial commit'<br />
</code><br />
<br />
To install each vim plugin, type: (here I use neocomplcache-snippets-complete as an example)</BR><br />
<code><br />
git submodule add https://github.com/Shougo/neocomplcache-snippets-complete.git bundle/neocomplacahe-snippets-complete<br />
git add .gitmodules bundle/neocomplcache-snippets-complete<br />
git submodule init<br />
</code><br />
<br />
<br />Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-19722106630600927722012-04-16T06:44:00.002-07:002012-04-16T06:44:34.732-07:00iOS errors<br />
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
/*<span class="Apple-tab-span" style="white-space: pre;"> </span>FoundationErrors.h</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>Copyright (c) 2004-2011, Apple Inc. All rights reserved.</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
*/</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #77482b;">#import </span><Foundation/NSObject.h></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
/* NSError codes in NSCocoaErrorDomain. Note that other frameworks (such as AppKit and CoreData) also provide additional NSCocoaErrorDomain error codes.</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
*/</div>
<div style="color: #b80fa2; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
enum<span style="color: black;"> {</span></div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>// File system and file I/O related errors, with NSFilePathErrorKey or NSURLErrorKey containing path or URL</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> NSFileNoSuchFileError = </span><span style="color: #2500d8;">4</span><span style="color: black;">,<span class="Apple-tab-span" style="white-space: pre;"> </span> </span>// Attempt to do a file system operation on a non-existent file</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileLockingError = <span style="color: #2500d8;">255</span>,<span class="Apple-tab-span" style="white-space: pre;"> </span> <span style="color: #008700;">// Couldn't get a lock on file</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileReadUnknownError = <span style="color: #2500d8;">256</span>, <span style="color: #008700;">// Read error (reason unknown)</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileReadNoPermissionError = <span style="color: #2500d8;">257</span>, <span style="color: #008700;">// Read error (permission problem)</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileReadInvalidFileNameError = <span style="color: #2500d8;">258</span>, <span style="color: #008700;">// Read error (invalid file name)</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileReadCorruptFileError = <span style="color: #2500d8;">259</span>, <span style="color: #008700;">// Read error (file corrupt, bad format, etc)</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileReadNoSuchFileError = <span style="color: #2500d8;">260</span>, <span style="color: #008700;">// Read error (no such file)</span></div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> NSFileReadInapplicableStringEncodingError = </span><span style="color: #2500d8;">261</span><span style="color: black;">, </span>// Read error (string encoding not applicable) also NSStringEncodingErrorKey</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileReadUnsupportedSchemeError = <span style="color: #2500d8;">262</span>,<span class="Apple-tab-span" style="white-space: pre;"> </span> <span style="color: #008700;">// Read error (unsupported URL scheme)</span></div>
<div style="color: #77482b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#if MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileReadTooLargeError = <span style="color: #2500d8;">263</span>,<span class="Apple-tab-span" style="white-space: pre;"> </span> <span style="color: #008700;">// Read error (file too large)</span></div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> NSFileReadUnknownStringEncodingError = </span><span style="color: #2500d8;">264</span><span style="color: black;">,<span class="Apple-tab-span" style="white-space: pre;"> </span> </span>// Read error (string encoding of file contents could not be determined)</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #77482b;">#endif </span>/* MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED */</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileWriteUnknownError = <span style="color: #2500d8;">512</span>,<span class="Apple-tab-span" style="white-space: pre;"> </span> <span style="color: #008700;">// Write error (reason unknown)</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileWriteNoPermissionError = <span style="color: #2500d8;">513</span>, <span style="color: #008700;">// Write error (permission problem)</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileWriteInvalidFileNameError = <span style="color: #2500d8;">514</span>, <span style="color: #008700;">// Write error (invalid file name)</span></div>
<div style="color: #77482b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#if MAC_OS_X_VERSION_10_7 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_5_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileWriteFileExistsError = <span style="color: #2500d8;">516</span>,<span class="Apple-tab-span" style="white-space: pre;"> </span> <span style="color: #008700;">// Write error (file exists)</span></div>
<div style="color: #77482b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#endif</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> NSFileWriteInapplicableStringEncodingError = </span><span style="color: #2500d8;">517</span><span style="color: black;">, </span>// Write error (string encoding not applicable) also NSStringEncodingErrorKey</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileWriteUnsupportedSchemeError = <span style="color: #2500d8;">518</span>,<span class="Apple-tab-span" style="white-space: pre;"> </span> <span style="color: #008700;">// Write error (unsupported URL scheme)</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileWriteOutOfSpaceError = <span style="color: #2500d8;">640</span>, <span style="color: #008700;">// Write error (out of disk space)</span></div>
<div style="color: #77482b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#if MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileWriteVolumeReadOnlyError = <span style="color: #2500d8;">642</span>,<span class="Apple-tab-span" style="white-space: pre;"> </span> <span style="color: #008700;">// Write error (readonly volume)</span></div>
<div style="color: #77482b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#endif</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>// Other errors</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSKeyValueValidationError = <span style="color: #2500d8;">1024</span>, <span style="color: #008700;">// KVC validation error</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFormattingError = <span style="color: #2500d8;">2048</span>, <span style="color: #008700;">// Formatting error</span></div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> NSUserCancelledError = </span><span style="color: #2500d8;">3072</span><span style="color: black;">,<span class="Apple-tab-span" style="white-space: pre;"> </span> </span>// User cancelled operation (this one often doesn't deserve a panel and might be a good one to special case)</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #77482b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#if MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>// Executable loading errors</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> NSExecutableNotLoadableError = </span><span style="color: #2500d8;">3584</span><span style="color: black;">, </span>// Executable is of a type that is not loadable in the current process</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> NSExecutableArchitectureMismatchError = </span><span style="color: #2500d8;">3585</span><span style="color: black;">, </span>// Executable does not provide an architecture compatible with the current process</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> NSExecutableRuntimeMismatchError = </span><span style="color: #2500d8;">3586</span><span style="color: black;">, </span>// Executable has Objective C runtime information incompatible with the current process</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> NSExecutableLoadError = </span><span style="color: #2500d8;">3587</span><span style="color: black;">, </span>// Executable cannot be loaded for some other reason, such as a problem with a library it depends on</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSExecutableLinkError = <span style="color: #2500d8;">3588</span>, <span style="color: #008700;">// Executable fails due to linking issues</span></div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #77482b;">#endif </span>/* MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED */</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>// Inclusive error range definitions, for checking future error codes</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileErrorMinimum = <span style="color: #2500d8;">0</span>,</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFileErrorMaximum = <span style="color: #2500d8;">1023</span>,</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSValidationErrorMinimum = <span style="color: #2500d8;">1024</span>,</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSValidationErrorMaximum = <span style="color: #2500d8;">2047</span>,</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="color: #77482b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#if MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSExecutableErrorMinimum = <span style="color: #2500d8;">3584</span>,</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSExecutableErrorMaximum = <span style="color: #2500d8;">3839</span>,</div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #77482b;">#endif </span>/* MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED */</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFormattingErrorMinimum = <span style="color: #2500d8;">2048</span>,</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSFormattingErrorMaximum = <span style="color: #2500d8;">2559</span>,</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #77482b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#if MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSPropertyListReadCorruptError = <span style="color: #2500d8;">3840</span>, <span style="color: #008700;">// Error parsing a property list</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSPropertyListReadUnknownVersionError = <span style="color: #2500d8;">3841</span>, <span style="color: #008700;">// The version number in the property list is unknown</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSPropertyListReadStreamError = <span style="color: #2500d8;">3842</span>, <span style="color: #008700;">// Stream error reading a property list</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSPropertyListWriteStreamError = <span style="color: #2500d8;">3851</span>, <span style="color: #008700;">// Stream error writing a property list</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSPropertyListErrorMinimum = <span style="color: #2500d8;">3840</span>,</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
NSPropertyListErrorMaximum = <span style="color: #2500d8;">4095</span></div>
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #77482b;">#endif </span>/* MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED */</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
};</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-65626734824374964342012-04-13T07:10:00.000-07:002012-04-13T07:10:51.012-07:00How To: Install TouchXML for ios1. download TouchXML from <a href="https://github.com/TouchCode/TouchXML">github</a><br />
2. add the sources to your project<br />
3. In project->build settings->header search paths:<br />
add /usr/include/libxml2<br />
4. In project->targets->build phases->link library with binaries:<br />
add "libxml2.2.7.3.dylib"Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-3065051390965414372012-03-30T13:27:00.000-07:002012-03-30T13:27:36.872-07:00How To: Install lxml on Ubuntusudo apt-get install libxml2-dev<br />
sudo apt-get install libxslt1-dev<br />
sudo apt-get install python2.6-dev<br />
easy_install --allow-hosts=lxml.de,*.python.org lxmlLonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-42297998570113574042012-03-30T11:36:00.001-07:002012-03-30T11:36:59.729-07:00List of commands for MySql and Django<br />
mysqladmin.exe -u root -p create myapp<br />
python manage.py syncdb<br />
mysql -u root -p<br />
sudo /etc/init.d/apache2 restart<br />Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-22469943417537376462012-03-18T17:10:00.002-07:002012-03-18T17:12:06.831-07:00OpenSSH configuration file<a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/">Putty</a> is a lovely ssh program, but I love <a href="http://sourceforge.net/projects/console/">console2 </a>even more.<br />
<br />
To use ssh to connect to Amazon EC2 server, you need cygwin to run openssh in Windows environment.<br />
The command is (under cygwin):<br />
<br />
<code>
ssh -i MySite.pem ubuntu@xxx.amazonaws.com
</code>
<br />
To make the command shorter, create "~/.ssh/config"<br />
and add:<br /><br />
<code>
Host MySite<br />User ubuntu<br />Port 22<br />IdentityFile ~/.ssh/MySite.pem<br />HostName xxx.amazonaws.com
</code>
<br />
To connect, just type:<br /><br />
<code>
ssh MySite
</code>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-69154038418858311052012-03-16T05:33:00.001-07:002012-03-18T16:27:02.287-07:00Setting selective sync of Dropbox on Amazon EC2 serverDropbox provides an easy to backup the server. However, the default setting synchronizes all of the files to the server, which is very annoying.<br />
I don't want all of my personal stuff to be stored in a public server.<br />
<br />
In order to select the file which you would like to sync, download <a href="https://www.dropbox.com/download?dl=packages/dropbox.py">dropbox.py</a><br />
and type the following commands in the terminal:<br />
<code>
python dropbox.py exclude add ~/Dropbox/* <br />
python dropbox.py exclude remove ~/Dropbox/<folder-to-sync><server-folder> </server-folder></code><br />
The first command excludes all of files from your dropbox.<br />
The second one adds the folder which is going to be synchronized.Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-10978735561262650872012-03-07T03:01:00.004-08:002012-03-17T17:53:59.946-07:00Setting up Django on ubuntu<br />
<br />
<div>
Here are the steps to setup Django on Amazon EC2 server:</div>
<div>
The image is <span style="font-family: Arial,Helvetica,sans-serif; font-size: x-small;"><span style="line-height: 17px;"><i>ubuntu-maverick-10.10-amd64-server-20101225</i></span></span></div>
<div>
Choose the <i>ebs</i> one, otherwise you will lose everything after you shutdown your server</div>
<ol>
<li>sudo apt-get update</li>
<li>sudo apt-get install apache2</li>
<li>wget http://www.djangoproject.com/download/1.3/tarball/</li>
<li>mv index.html Django-1.3.tar.gz</li>
<li>tar xzvf Django-1.3.tar.gz</li>
<li>cd Django-1.3</li>
<li>sudo python setup.py install</li>
<li>sudo apt-get install libapache2-mod-wsgi</li>
<li>create "/home/ubuntu/mysite/django-server.wsgi"</li>
<code>
import os, sys <br />
sys.path.append('/home/ubuntu/')<br />
sys.path.append('/home/ubuntu/mysite')<br />
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'<br />
import django.core.handlers.wsgi<br />
application = django.core.handlers.wsgi.WSGIHandler()<br />
</code>
<li>sudo /etc/init.d/apache2 start</li>
<li>cd /etc/apache2/sites-available</li>
<li>sudo cp default mysite</li>
<li>edit "mysite"</li>
<code>
Listen 8000<br />
<VirtualHost *:8000><br />
WSGIScriptAlias / /home/ubuntu/mysite/django-server.wsgi<br />
WSGIDaemonProcess server1piece user=www-data group=www-data processes=1 threads=10<br />
ServerAdmin webmaster@localhost<br />
DocumentRoot /home/ubuntu/ <br />
Alias /static/admin/ /home/ubuntu/Django-1.3/django/contrib/admin/media/</code>
<li>a2ensite mysite</li>
<li>sudo /etc/init.d/apache2 reload</li>
<li>sudo /etc/init.d/apache2 restart</li>
<li>cd ~</li>
<li>django-admin startproject mysite</li>
<li>cd ~/mysite</li>
<li>django-admin startapp myapp </li>
<li>python manage.py runserver 0.0.0.0:8000</li>
</ol>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-91905266562639859632011-12-10T18:37:00.000-08:002011-12-10T18:39:16.680-08:00Open source software for Windows Mobile<br />
Just played around my phone, and saw a list of "software disclaimer", that includes:<br />
<ol>
<li> Boost </li>
<li> FreeImage </li>
<li> Lua </li>
<li> Luabind </li>
<li> OpenGL </li>
<li> STLPort 5.0 </li>
<li> RapidXML </li>
<li> SWIG </li>
<li> BString</li>
</ol>
It seems that open source softwares are something that all developers should know.
Especially non-GPL onesLonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-24648992059395658512011-11-17T16:18:00.000-08:002011-11-17T16:18:31.203-08:00My Google Chrome extensionsHere is the list of my Chrome extensions:<br />
<br />
1. <a href="https://chrome.google.com/webstore/detail/mihcahmgecmbnbcchbopgniflfhgnkff">Google Mail Checker</a><br />
2. <a href="https://chrome.google.com/webstore/detail/mgijmajocgfcbeboacabfgobmjgjcoja">Google Dictionary</a><br />
3. <a href="https://chrome.google.com/webstore/detail/jdnejaepfmacfdmhkplckpfdcjgbeode">Yet Another Google Bookmarks Extension</a><br />
4. <a href="https://chrome.google.com/webstore/detail/pioclpoplcdbaefihamjohnefbikjilc">Evernote</a> : Google Notebook is the best online notebook, but Google has stopped to its support. Evernote is an acceptable replacement, but not as easy-to-use as Google Notebook. Evernote is my temporary solution for now.Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-76980838058412925442011-11-17T15:58:00.000-08:002011-11-17T15:58:49.017-08:00Goodbye Firefox!!!Firefox was a good browser. However, the newer versions of Firefox have very poor compatibility with existing extensions. I am tired of finding new extensions for every new update. New technologies should help us finish our tasks efficiently, instead of giving us more tasks to do.<br />
<br />
My #1 candidate for browser is Google Chrome. It is fast, stable and has the replacements for all of my current Firefox extensions. Good job Google!<br />
<br />Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com3tag:blogger.com,1999:blog-8472483064792584047.post-60215453567919316472011-07-11T23:04:00.000-07:002011-07-11T23:04:54.013-07:00A Sleep function for VIMI need to let VIM wait for cscope.exe to rebuild the tag file, but there are no build-in sleep function for VIM, so I made one here: <br />
<br />
<code>
"a sleep function which allows vim to wait for the other processes to finish<br />
com! -complete=command -nargs=+ Sleep call s:Sleep(<q-args>)<br />
fun! s:Sleep(millisec)<br />
  let ct = localtime()<br />
  let dt = 0<br />
  while dt < (a:millisec/1000)<br />
    let dt = localtime() - ct<br />
  endwhile<br />
endfun<br />
</code>
<br />
Just put it into your _vimrc.
<br />
To invoke it, type ":Sleep 10000" to let VIM wait for 10 secs.Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-53007064382594419432011-04-01T12:55:00.000-07:002011-04-01T12:55:30.013-07:00igoogle gadget malfunctionAfter my firefox is upgraded to 3.6.16, the igoogle compound gadget suddenly disappears,
and all of my gadget spreads all over my igoogle homepage.
I tried to add it back, but the system says
"The Compound gadget is no longer supported and the individual gadgets that it contained have been added to your iGoogle page."<br />
<br />
Solution: delete all cookies in my firefox.Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com2tag:blogger.com,1999:blog-8472483064792584047.post-13585606749820487112010-11-20T13:19:00.000-08:002010-11-21T14:27:20.135-08:00Ubuntu notesInstall GVIM: sudo apt-get install gnome-vim<br />
Install boost: sudo apt-get install libboost*<br />
<br />
Link a boost library: g++ -lboost_filesystem<br />
Location of boost header: /usr/include<br />
Location of boost lib: /usr/lib<br />
<br />
Modify "autoexec.bat": sudo vim /etc/profile<br />
Modify environment variable: export RCSSBASEDIR=/home/username/rcss<br />
<br />
Remove resource limitation: ulimit -s unlimitedLonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-41409692818082634822010-08-05T22:41:00.003-07:002012-03-03T01:29:31.589-08:00Draw confusion matrix in MatlabGenerate confusion matrix in Matlab:<br />
<code>
data = rand(10, 10) <br />
imagesc(data) <br />
colormap(gray) <br />
colorbar <br />
</code>
<br />
Result:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHFAB3cH8PEHwOlOW2Ndn4-mbRo_OANCykVw3ft0-ZuNhxujVJyFTVjFKuk8rBTchZhGPjXG4MzVGthP6mfwEZfxEoo_8shlFL17gw1xryKF0Yiq9TFD8aoU1Eq3-FOuovc4uZ68o3jNU/s1600/matrix.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHFAB3cH8PEHwOlOW2Ndn4-mbRo_OANCykVw3ft0-ZuNhxujVJyFTVjFKuk8rBTchZhGPjXG4MzVGthP6mfwEZfxEoo_8shlFL17gw1xryKF0Yiq9TFD8aoU1Eq3-FOuovc4uZ68o3jNU/s320/matrix.png" width="320" /></a></div>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-90571615920717449442010-06-25T13:35:00.001-07:002010-06-25T13:40:56.541-07:00My neocomplcache settingAs requested, here is my .vimrc setting for <a href="http://www.vim.org/scripts/script.php?script_id=2620">neocomplcache</a>.<br />
Beware that the following setting works only for "ver.5" branch.<br />
You have to check it out from <a href="http://github.com/Shougo/neocomplcache/tree/ver.5#">github</a>.<br />
<br />
<code>
"------------------------------neocomplcache---------------------------------------<br /><br />" Use neocomplcache.<br />let g:neocomplcache_enable_at_startup = 1<br />" Use smartcase.<br />let g:neocomplcache_enable_smart_case = 1<br />" Use camel case completion.<br />let g:neocomplcache_enable_camel_case_completion = 1<br />" Use underbar completion.<br />let g:neocomplcache_enable_underbar_completion = 1<br /><br />let g:neocomplcache_auto_completion_start_length = 3<br />let g:neocomplcache_manual_completion_start_length = 3<br />let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'<br /><br />" Define keyword.<br />if !exists('g:neocomplcache_keyword_patterns')<br /> let g:neocomplcache_keyword_patterns = {}<br />endif<br />let g:neocomplcache_keyword_patterns['default'] = '\h\w*'<br /><br />" snippets expand key<br />imap <silent><expr><TAB> neocomplcache#plugin#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : (pumvisible() ? "\<C-e>" : "\<TAB>")<br />"imap <silent><expr><TAB> neocomplcache#plugin#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : "\<C-e>"<br />smap <TAB> <RIGHT><Plug>(neocomplcache_snippets_jump)<br />inoremap <expr><C-e> neocomplcache#complete_common_string()
</code>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com2tag:blogger.com,1999:blog-8472483064792584047.post-23604656289817165282010-06-17T16:25:00.000-07:002012-04-24T09:11:06.114-07:00SuperTab complete for neocomplcacheAs I said in my previous <a href="http://wrongpc.blogspot.com/2010/02/plugin-list-of-vim.html">post</a>, <a href="http://www.vim.org/scripts/script.php?script_id=2620">neocomplcache</a> is a very powerful vim plugin.<br />
It incoporates the funtionality of <a href="http://www.vim.org/scripts/script.php?script_id=2540">SnipMate </a>and <a href="http://www.vim.org/scripts/script.php?script_id=1879">AutoComplPop</a> while providing efficient search<br />
for potential completion items.<br />
<br />
However, <a href="http://www.vim.org/scripts/script.php?script_id=182">SuperTab</a> does not support neocomplcache. It is very bad since I like to tab complete<br />
everything, including snippets. <b>Here is the solution</b> -- put the following in you .vimrc:</br><br />
<code><silent><expr><tab><plug><c-e><tab>imap <silent><expr><tab> neocomplcache#sources#snippets_complete#expandable() ? "\<plug>(neocomplcache_snippets_expand)" : (pumvisible() ? "\<c-e>" : "\<tab>")</tab></c-e></plug></tab></expr></silent><br />
<silent><expr><tab><plug><c-e><tab>smap <tab> <right><plug>(neocomplcache_snippets_jump)<tab><right><plug> </plug></right></tab></tab></c-e></plug></tab></expr></silent><br />
<silent><expr><tab><plug><c-e><tab><tab><right><plug>inoremap <expr><c-e> neocomplcache#complete_common_string()<br />
<expr><c-e> </c-e></expr></plug></right></tab></tab></c-e></plug></tab></expr></silent></code><br />
The above setting allows you to trigger a snippet with "tab" key when possible. If not, it will simply trigger <i>omni completion</i>. I set it to complete the longest common string. It is just a personal taste. You can set it to other type of completion as well.<br />
<br />
<i>*Update 2010/12/11 for necomplcache V5.2 compatiblity </i><br />
<i>*Update 2012/04/24 for necomplcache V7 compatiblity </i>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com2tag:blogger.com,1999:blog-8472483064792584047.post-57035887392086533892010-05-20T19:37:00.000-07:002010-05-20T19:37:39.037-07:00Access Windows XP files from Windows 7I spent 4 hours today to figure out how to enable the file sharing of Windows XP.<br />
The key difficulty is that there are too many possible reasons to make the file sharing stop working.<br />
Microsoft should make it easier for such a common task.<br />
<br />
Basically, all you need is to follow the instruction from<br />
<a href="http://www.crn.com/white-box/59200376">http://www.crn.com/white-box/59200376</a><br />
<br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"></span><br />
1. To enable the network Guest account on XP Home and Pro, click <b>Start</b>, click <b>Run</b>, type: <b>net user guest /active:yes</b>, and hit Enter.<br />
2. Ensure there is no password for the Guest account: click <b>Start</b>, click <b>Run</b>, type: <b>control userpasswords2</b>, and hit Enter. Click once on <b>Guest</b>, click <b>Reset Password</b>, and then click <b>OK</b> without entering a new password.<br />
3. Be aware that Windows XP, when installed on an NTFS disk partition and using simple file sharing, blocks network access to the Program Files and Windows directories as well as users folders within the Documents and Settings directory. This behavior is by design.<br />
4. There are two registry keys to check on XP that have the potential to cause network headaches. The first is: HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Lsa<br />
5. Ensure that <b>restrictanonymous</b> is set to 0. Ignore the <b>restrictanonymoussam</b> entry that looks similar and may also appear.<br />
6. Older versions of Norton Anti-Virus set a value for IRPStacksize in the registry that is too low for XP. In fact, XP doesn't even need this registry key. If you have it in your registry, thank Symantec (NSDQ:<a class="stockLink" href="http://www.crn.com/tools/quotes/index.jhtml?Page=QUOTE&Ticker=SYMC" style="color: #0b2795; text-decoration: none;" target="_blank">SYMC</a>) and then delete it. If you determine that the XP registry has this unneeded entry, check this registry location:<br />
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Lanmanserver/Parameters. You can read more about this issue from <a href="http://service1.symantec.com/SUPPORT/tsgeninfo.nsf/docid/2000092713243506" style="color: #0b2795; text-decoration: none;">Symantec</a> and <a href="http://support.microsoft.com/?kbid=177078" style="color: #0b2795; text-decoration: none;">Microsoft</a>.<br />
<br />
<br />
Basically, all you need is to follow the instruction from<br />
But it is not enough. You also need to turn "simple file sharing" on.<br />
<br />
from <a href="http://support.microsoft.com/?scid=kb;en-us;304040&x=5&y=10">http://support.microsoft.com/?scid=kb;en-us;304040&x=5&y=10</a><br />
<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 16px;">To turn Simple File Sharing on or off in Windows XP Professional, follow these steps:</span><br />
<ol style="-webkit-box-sizing: border-box; position: relative;">
<li style="-webkit-box-sizing: border-box; position: relative;">Double-click <b style="-webkit-box-sizing: border-box;">My Computer</b> on the desktop.</li>
<li style="-webkit-box-sizing: border-box; position: relative;">On the <b style="-webkit-box-sizing: border-box;">Tools</b> menu, click <b style="-webkit-box-sizing: border-box;">Folder Options</b>.</li>
<li style="-webkit-box-sizing: border-box; position: relative;">Click the <b style="-webkit-box-sizing: border-box;">View</b> tab, and then select the <strong class="uiterm" style="-webkit-box-sizing: border-box;">Use Simple File Sharing (Recommended)</strong>check box to turn on Simple File Sharing. (Clear this check box to turn off this feature.)</li>
</ol>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-68852587767752204092010-03-14T12:49:00.000-07:002010-03-14T12:49:00.171-07:00Why does nobody understand my work?<br />Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-33624323450550680282010-03-07T20:28:00.000-08:002010-03-09T09:25:19.799-08:00Academic vs Real worldThe Ideas I got<br />
<br />
token ring vs ethernet<br />
z buffer<br />
setero<br />
<br />
anymore?<br />
<br />
Try to prioritize your work based on what people's need.<br />
In academic world, researchers admire the feature-rich methods.<br />
For example: Token Ring vs Ethernet. (todo)<br />
<br />
It's clear that Token ring is the winner. However, in reality, it's Ethernet whichs dominates<br />
the world. The researchers seem to forget what they have learned in software engineering.<br />
Some features are nice-to-have, while some others are must-have. In the token ring example,<br />
bandwidth reserve is a nice-to-have, but easy-to-implement is a must have, since it direclty reflects the production cost of a hardware.<br />
<br />
Don't forget that we don't research just for research. The purpose of research is to satisfy people's needs. Try to prioritize your objective, or your work will end up nothing but a pile of papers in the archive of a library.<br />
<br />
next:胰島素vs tracking(survey on human) Enough is enough( what innovation's dilemma tells us) <br />
<br />
<br />Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-23123341624933886762010-03-06T07:35:00.001-08:002010-03-06T07:38:42.451-08:00Open current folder from command line Put the following into ex.bat and place it in C:\windows<br />
and then you can type<b> <i>"ex ." </i></b>to open the current folder from command line.<br />
<br />
<code>
@echo off<br />
start explorer %1<br />
echo on </code>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com2tag:blogger.com,1999:blog-8472483064792584047.post-84696751448929469412010-03-06T07:21:00.000-08:002010-03-06T07:29:33.828-08:00open files in new tabs of GVIM from command lineName the following file <b>gvim.bat</b><br />
and put it into C:\Windows<br />
<br />
<code>
@echo off<br />start gvim.exe -p --remote-tab-silent "%1"<br />echo on<br />
</code>Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0tag:blogger.com,1999:blog-8472483064792584047.post-87257436850899380532010-03-05T06:37:00.000-08:002010-03-05T06:37:56.727-08:00Token Ring VS EthernetWhich method is more elegant?<br />
Which method solves the problem?<br />
Which method contributes more to the world?<br />
<br />
to be continue...Lonohttp://www.blogger.com/profile/05931947502028487363noreply@blogger.com0