KLog

October 15, 2008

Nomore *-like

Filed under: Uncategorized — hwkang @ 1:53 am

I am pretty sure I am not the only one, who would feel frustrated every time reading a paper using hand-waving *-like phrases, “RANSAC-like”, “Tree-like”, etc.  If the detail is not important, why would one use it in the paper?  If it appears in a paper, please either explain it, or give reference to some sort of technical report.

September 28, 2008

iPod Touch time synchronization problem

Filed under: Uncategorized — hwkang @ 11:53 pm

Just noticed that my new Ipod Touch has a problem: when sync with iTunes its time get messed up to some random date/time.

Unfortunately  for Apple, this is not unique, many people (maybe everyone)  who own this toy have this problem.

The fix is dull but effective:

1. close any running iTunes program  before you connect iTouch.

2. connect iTouch

3. start iTunes to sync.

Apple should fix this soon!

September 17, 2008

Some must-have add-ons for Mozilla Thunderbird

Filed under: Misc tips — hwkang @ 3:45 pm

1. Remove Duplicate Messages(Alternate)
2. Thunderbird Message Filters Import/Export
3. Simple Search-for Extension

September 16, 2008

Fix Photoshop CS2 memory leak(WinXP)

Filed under: Uncategorized — hwkang @ 3:10 am

Issue: Photoshop CS2 eats up memory, and crashes when all memory are consumed.(Memory Leak)

Cause: Fonts loading error(possibly) . See full discussion: http://blogs.adobe.com/scottbyer/2005/11/a_good_day.html

Solution:
1. remove all fonts in folder “C:\Program Files\Common Files\Adobe\Fonts”
2. open PS CS2, choose Edit->Preferences->Type.
3. deselect “Font Preview Size”, possibly also “Show Font Names in English”, etc(Did not experiment with all combination, since it seems nothing is hurt, I deselected all except “Use Smart Quotes”).
4. restart PS. Problem solved, however it prompts “Adobe updater can not be started…”, whatever, I don’t want to update.
5. replace Fonts/Reqrd folder, from the name one could guess it’s “required”, restart PS, the error in 4 still exists.  No memory leak.Satisfied at this point for right now.

TODO:
1. try adding back other fonts and see if the old problem is because of a specific font, right now seems I don’t need all these fonts, maybe later. Note: it’s shared by all Adobe products, so it’s possible that some other program will not function properly.
2. try other combination in step 3.

September 10, 2008

How to download a Youtube video & extract video frames from it

Filed under: Misc tips — hwkang @ 6:04 pm

1. Install Mozilla Firefox VideoDownloadHelper

https://addons.mozilla.org/en-US/firefox/downloads/file/34137/video_downloadhelper-3.2-fx.xpi

2. Install SUPER © to decode and convert flv files you get to whatever format you want

http://www.erightsoft.com/SUPER.html

3. You can use any video editing  program to extract the video frames

September 4, 2008

Build executable from Python scripts

Filed under: Misc tips — hwkang @ 8:41 pm

I found it necessary to build executable from my Python scripts(since Maui/Torque cluster does not support submit Python as jobs.)

1. Install python2.5-examples and python-dev

apt-get install python2.5-examples

apt-get install  python-dev

2. Use freeze.py coming  along with python2.5-examples(/usr/share/doc/python2.5/examples/Tools/freeze/freeze.py)

freeze.py hello.py

make

July 26, 2008

Setting up Samba server

Filed under: Misc tips — hwkang @ 3:02 pm

http://www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/54415-fileserver-samba-printserver-cups-howto.html

http://oreilly.com/catalog/samba/chapter/book/ch09_01.html

July 22, 2008

How to increase VMWare preallocated disk space

Filed under: Misc tips — hwkang @ 5:02 am

Problem: my Ubuntu image comes with pre-allocated 8GB disk space.  More space needed to keep up with growing programs

Solution: using vmware-vdiskmanager,  from VMWare WorkStation.

1. go to Windows command line

2. vmware-vdiskmanager -x sizeGB file.vmdk

3. fire up VM Player (or VM WorkStation)

4. install gparted if not already installed

5. start gparted, and you’ll see a unallocated partition.

6. create a new partition from the unallocated one.

7.  Edit /etc/fstab so that the new partition mounts automatically at boot time

July 19, 2008

Install OpenCV with FFMPEG Step by Step

Filed under: Misc tips — hwkang @ 3:22 pm

1) Download ffmpeg:

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

2) Install ffmpeg:

cd ffmpeg

./configure –enable-shared

make

make install

mkdir /usr/local/include/ffmpeg

cp /usr/local/include/libavcodec/*.h /usr/local/include/ffmpeg

cp /usr/local/include/libavdevice/*.h /usr/local/include/ffmpeg

cp /usr/local/include/libavformat/*.h /usr/local/include/ffmpeg

cp /usr/local/include/libavutil/*.h /usr/local/include/ffmpeg

3) configure and install opencv-patched

./configure –enable-apps –enable-shared –with-ffmpeg –with-gnu-ld –with-x –without-quicktime CXXFLAGS=-fno-strict-aliasing CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib

make

make install

July 7, 2008

extra qualification in C++

Filed under: Misc tips — hwkang @ 5:54 pm

It’s a problem of some older C++ code.

e.g.

class Foo

{

Foo::fun();

} ;

Here Foo:: has to  be removed because it is an over-complete constraint on fun().

Example:  compiling QuickNet v3_20 will result in the following errors,

QN_fir.h:116: error: extra qualification ‘QN_InFtrStream_FIR::’ on member ‘FillDeltaFilt’
QN_fir.h:118: error: extra qualification ‘QN_InFtrStream_FIR::’ on member ‘FillDoubleDeltaFilt’

Solution:  remove ‘QN_InFtrStream_FIR::’

« Previous PageNext Page »

Powered by WordPress