How to add presets – here.
- LightRoomPresets.com
- PresetsHeaven
- Kodachrome 64
- Fuji B&W film including Neopan, Ilford
- More presets: Agfa Scala, Agfa Pan, Fuji Acros, Illford, Kodak TMAX, Kodak Tri-X
PS and LightRoom tutorials

How to add presets – here.
PS and LightRoom tutorials

When Screen Capture command is issued the SystemUIServer runs a program named “screencapture”. This program is located at “/usr/sbin/screencapture”. This utility has various options for taking pictures of the screen.
We can alter the default ScreenCapture File Name and format in Snow Leopard by issuing the following commands in Terminal.
A. To Change default file format to jpg
defaults write com.apple.screencapture type jpg
killall SystemUIServer
B. To Change screen capture file name to the format [current date] at [time]
defaults write com.apple.screencapture name “”
killall SystemUIServer
Instead of empty string a specific name can also be given. In both the cases the second command is uses to restart the screencapture program era only then the changes made will be effective.
Screen Capture Options:

Article on Apple Video Formats

There are a number of “smart pointer” implementations in C++. Each one has a different set of features and it seems hard to pick one that satisfies scenarios.
auto_ptr: Available as part of the standard C++ library (#include ). Has the several useful features and shortcomings:
Feature 3 limits its usefulness IMHO. This article – Using auto_ptr Effectively – summarizes auto_ptr features.
shared_ptr: This pointer from the BOOST C++ library uses reference counting. So a shared_ptr that is assigned to another will point at the same object in memory and will increment a reference count to that object. When either of the pointers is deleted the object reference count is decremented. If the object reference count is zero the object is truely deleted from memory.
This may be already added to C++ standard library in the near future (already in?).

Const declaration:
const int* x; //constant data (*x); non-constant pointer int const *x; //same as above int * const x; //constant pointer; non-constant data const int * const x; //const data; const pointer
Const member functions:
Function values can be declared const. Helps specifically in operator overloading.
const Foo operator*(const Foo& lhs, const Foo& rhs); Foo a,b,c; a = b*c; //legal (a*b) = c; //This will work if return value is not const
It is not useful to assign any value to the product of two variables but it can happen accidentally. Example, using = instead of ==
if(a*b = c) {
}
Const member functions in a class cannot modify the contents of the class. They make it possible to work with const objects. Member functions differing only in their “constness” can be overloaded.
class Foo {
public:
const int& value() const;
int& value();
private:
int x;
};
main() {
Foo x(1);
cout<<x.value(); //Non-const function is called
const Foo y(2);
cout<<y.value(); //const function is called
}
Bitwise Constness:
C++ gives only bitwise constness. This means const member functions cannot modify pointers in a class. But they can modify the data the pointer points to.
Mutable:
Mutable type modifier allows variables to be modified even by const functions.
Class Foo {
public:
void test() const; //can modify x but nor y
private:
mutable int x;
int y;
};
Tags: c++, const, overloading
You are currently browsing the archives for December, 2009
Arclite theme by digitalnature | powered by WordPress