brain dump of things
February 15, 2012 By Louis Feng Leave a Comment
Tracking a remote branch [source]:
git branch --track feature1 origin/master
git remote add origin /remote/host/path
Init blank git repository on host side:
git init --bare
Amend previous commit with new files [source]:
git add [files]
git commit --amend –C HEAD …
[Read More...]
July 6, 2011 By Louis Feng 1 Comment
I think this post will be useful to someone new to the iOS development. One of the most important and commonly used classes in Cocoa is UIViewController. Creating any non-trivial application will involve subclass and creating your own view controller. There are a lot of topics and tutorials …
[Read More...]
June 30, 2011 By Louis Feng 2 Comments
I have done a bit of iOS development lately. While trying to get myself familiarized with the new platform, I came across this book titled "Programming iOS 4". I skimmed through some sections and found this paragraph:
You should not use a view controller in any other way. It is not, for example, …
[Read More...]
June 29, 2011 By Louis Feng 4 Comments
I recently ran into some hard to find memory leaks. The program only runs on Linux. The memory leaks are detected using a custom memory allocator (using an atomic counter for allocation/deallocation size). In single thread mode, the program terminated without leaking, but running in multithread mode …
[Read More...]
April 5, 2011 By Louis Feng 7 Comments
In a recent coding review a coworker pointed out in my code that modifying a STL list might invalidate the iterators pointing to the elements in the list. That's a good observation. I know STL map will not invalidate iterators when elements are inserted or erased from the container (except the …
[Read More...]
March 5, 2011 By Louis Feng 2 Comments
A few days looking into LLVM + Clang, I really liked how they are set up and how they work. I played with the IR code and JIT a little bit, then I realized that Clang and LLVM don't support auto vectorization (as of current release 2.8). Yes, the IR language supports vectorization through the vector …
[Read More...]
March 5, 2011 By Louis Feng 1 Comment
I heard about LLVM roughly two years ago from a coworker. It supposed to be this magical compiler that optimizes your code at multiple levels, or passes, including compile-time, link-time, run-time, and "idle-time". It's on my to-play-with list and I haven't really got a chance to get to it till …
[Read More...]
Copyright © 2024 Louis Feng | Out of Core