This website remains active, and posts continue to appear here sporadically.
Showing posts with label MISC. Show all posts
Showing posts with label MISC. Show all posts
Sunday, November 26, 2023
Friday, February 14, 2014
Thursday, October 10, 2013
Thursday, December 20, 2012
Delete images in Android
We want to delete all images in a specific directory(FILE_OUT_DIR), here is the function:
In the program, you call:
This won't work because Android cache the media files. The files are still in the directory. We have to add:
And in AndroidManifest.xml, add:
Thursday, November 29, 2012
"Project Explorer" disappeared in Eclipse
Cannot find it without a search. It's located at:
Window > Show View > Other... > General > Project Explorer.
Display line number in eclipse editor:
“Windows” > “Preference” > “General” > “Editors” > “Text Editors” , check on the “Show line numbers” option.
Window > Show View > Other... > General > Project Explorer.
Display line number in eclipse editor:
“Windows” > “Preference” > “General” > “Editors” > “Text Editors” , check on the “Show line numbers” option.
Friday, November 23, 2012
Thursday, August 30, 2012
test math template
This is an inline equation \( a = b^2 + \sqrt c \)
This is another equation: $$ a = \sum b + c^3 $$
This is another equation: $$ a = \sum b + c^3 $$
Friday, May 11, 2012
SWMBO :)
Abbreviation for "She Who Must Be Obeyed"; used as shorthand for wife, girlfriend, etc. Usually pronounced "swim-bo".
Thursday, February 02, 2012
Monday, August 15, 2011
A good ipad app
Don’t need to convert the video and copy to ipad. Set up the PC/Mac as a server and watch movie from ipad with wifi.
Search at App Store for free version download (show 4 movies randomly).
Monday, July 25, 2011
Tools
Stanley: Connecticut. Merged with Black&Decker
Black&Decker: in Maryland, merged with Stanley in 2010.
Porter-Cable, DeWalt: subsidiary of Stanley Black &Decker.
Skil: Bosch
Ridgid: a division of Emerson Electric
Dremel: US., sold to Bosch from 1993
Ryobi, Makita: Japan
Milwaukee: in WI, acquired by a HK company in 2005
Craftsman: Sears (Kmart, OSH)
Irwin: from Ohio, and NC.
Husky: used to be under Stanly, sold to Home Depot
Kobalt: Lowes own brand (lauched in 1998 to compete Hustky, Craftsman)
Bessey / Jorgensen (lowes / Home Depot)
-- [update:9/22/2011]
Snap-On: Based on Wisconsin, 2.4B revenue now.
SK: Illinois.
Proto: acquired by Stanley in 1984.
Matco: stands for Mac Allied Tool Company. Ohio.
Gearwrench: belongs to Danaher Corp.
Duralast: Autozone.
Armstrong: Chicago, acquired by Danaher Corp.
[update: 10/10/2011]
Channellock: pliers in PA
Klein: in Illinois, good for electronic tools, and lineman's pliers.
Knipex: Germany, pliers.
Black&Decker: in Maryland, merged with Stanley in 2010.
Porter-Cable, DeWalt: subsidiary of Stanley Black &Decker.
Skil: Bosch
Ridgid: a division of Emerson Electric
Dremel: US., sold to Bosch from 1993
Ryobi, Makita: Japan
Milwaukee: in WI, acquired by a HK company in 2005
Craftsman: Sears (Kmart, OSH)
Irwin: from Ohio, and NC.
Husky: used to be under Stanly, sold to Home Depot
Kobalt: Lowes own brand (lauched in 1998 to compete Hustky, Craftsman)
Bessey / Jorgensen (lowes / Home Depot)
-- [update:9/22/2011]
Snap-On: Based on Wisconsin, 2.4B revenue now.
SK: Illinois.
Proto: acquired by Stanley in 1984.
Matco: stands for Mac Allied Tool Company. Ohio.
Gearwrench: belongs to Danaher Corp.
Duralast: Autozone.
Armstrong: Chicago, acquired by Danaher Corp.
[update: 10/10/2011]
Channellock: pliers in PA
Klein: in Illinois, good for electronic tools, and lineman's pliers.
Knipex: Germany, pliers.
Thursday, January 06, 2011
Monday, November 08, 2010
Friday, March 12, 2010
another mobile wifi router
a free one, link
reboot the mobile after installation, then find the program at setting -> connection.
reboot the mobile after installation, then find the program at setting -> connection.
Monday, February 22, 2010
Friday, February 12, 2010
Synergy
A good one to replace KVM switch. So I can use the same mouse/keyboard between two Windows and Mac machine. You can ever use text copy/paste. link
The ‘server’ is your main machine with mouse/keyboard, you can use the same mouse/keyboard in ‘client’
The new version Synergy Plus is at: [update:3/10/10]
http://code.google.com/p/synergy-plus/
Wednesday, January 27, 2010
Debugging
Effective debugging requires: from book 'debug it!' by Paul Butcher
Make only one change at a time and keep a record of what you have tried.
Bugs take priority.
For the performance bugs, you need to find the bottleneck with getting an accurate profiling.
Use 'assert' to let application debugs itself.
- work out why the application is behaving unexpectedly.
- fix the problem
- avoid breaking anything else
- maintain or improve the overall quality
- ensure the same problem does not occur elsewhere and cannot occur again
- checkin codes and get code review
- Reproduce
- Diagnose
- Fix
- Reflect: learn the lessons from the bug, does it happen elsewhere?
Make only one change at a time and keep a record of what you have tried.
Bugs take priority.
For the performance bugs, you need to find the bottleneck with getting an accurate profiling.
Use 'assert' to let application debugs itself.
Wednesday, January 06, 2010
Thursday, November 26, 2009
Black Friday Shopping
On average, out of 1000 Americans, 300 shop on Black Friday. of those: 201 are up before 8:00am, 126 are up before 6:00am, 36 are up before 4:00am.
from sleepbetter.org
from sleepbetter.org
Thursday, July 23, 2009
Subscribe to:
Posts (Atom)

