Registered: 2009-01-21
Update: 5 months ago
Problems: 58
Solutions: 55
References: 102
Problem views: 248827
Unsolved problem views: 9705
yliu
User
O(n) person in an O(log n) world.
刘一鸣
Recent problems
Atom Feed#32: MenuMeters Memory Meter reports negative page faults
Solved!on April 15, 2009, 04:25 AM UTC — from yliu
( 3,305 views )
The latest build of MenuMeters (1.3 as of this posting) can report negative values for its VM Statistics. For example, the page faults value can roll over INT_MAX to report -1,800,000 page faults, when I've ran the same OS X session for ~18 days. While it...
#31: Python csv and universal-newline mode
Solved!on April 09, 2009, 05:21 PM UTC — from yliu
( 30,143 views )
When using Python 2.5's csv module, I keep running into a "new-line character seen in unquoted field" error.
In [16]: f = csv.reader(open("/Users/yliu/foo/data", "rb"), dialect=csv.excel_tab)
In [17]: for row in f:
print row...
#30: Eclipse fails to launch with shared library error
Solved!on April 02, 2009, 06:49 AM UTC — from yliu
( 12,048 views )
After upgrading to Eclipse 3.4.2 on Mac OS X 10.5, I receive an error message at launch:
The Eclipse executable launcher was unable to locate its companion shared library
#29: Reset a frozen iPhone
Solved!on March 31, 2009, 02:33 AM UTC — from yliu
( 822 views )
My iPhone 3G has completely frozen and does not respond to the usual reset methods (holding down the Sleep/Wake button at the top). I need to reset it.
#28: crontab settings for deploying Ultrasphinx
Solved!on March 28, 2009, 07:36 AM UTC — from yliu
( 1,062 views )
the SelfSolved instance deployed uses Ultrasphinx for its full-text indexer and search provider. The sphinx indexer needs to be run regularly to index new text that appears on the site.
I need crontab incantations to set the indexer to create delta indexes...