;; Display line and column number in the modeline
(line-number-mode 1)
(column-number-mode 1)
12 November 2009
XEmacs: Show line and column number in the modeline
Options > Edit Init File (this to locate the init.el)
20 July 2009
Strobe in Darkening Backgrounds on Outdoor Shoots
... when doing outdoors on location shoots with strobes, to darken the sky or the background...
Shutter speed will control the amount of ambient light. If you want the background to be darker, you’ll need to adjust the shutter speed. If you want to control the exposure that will be controlled by the aperture.
Shutter speed will control the amount of ambient light. If you want the background to be darker, you’ll need to adjust the shutter speed. If you want to control the exposure that will be controlled by the aperture.
01 July 2009
24 June 2009
Set root password in MySQL
I believe you can only do it once.
$ mysqladmin -u root password NEWPASSWORD
Moving Wordpress Around
When moving Wordpress from development to the live server, remember to change some values in table 'wp_options'.
UPDATE wp_options
SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
15 June 2009
Linux NIC in VMware
NIC on Linux running as VMware guest goes missing when porting from one operating system to another. One quick way to see if things are in place would be to run:
Check which eth(n) is present. Check also in the file:
Make sure that the eth(n) stated in both are the same. If not, change the one in the file to reflect what is shown when running this command:
ifconfig -a
Check which eth(n) is present. Check also in the file:
vi /etc/network/interfaces
Make sure that the eth(n) stated in both are the same. If not, change the one in the file to reflect what is shown when running this command:
ifconfig -a
24 May 2009
Exposure Compensation
... it lets you compensate for a situation that might be too light or too dark.
For example, suppose you were shooting at the beach or in snow you should set your exposure compensation at +1. If you don’t your image is going to come out too dark because all those bright elements in the scene will trick your camera into thinking it’s brighter than it really is.
I do -1/2 when photographing a sunset or a sunrise when I want more saturation in the colors. When walking around I have it set at -1/3 so it reminds me that I want to expose for the highlights.
As great as the cameras are these days they are still dumb and will try to make a scene 18% gray so as photographers if we don’t want everything in the scene to be 18% you can use exposure compensation as your weapon. Our goal is to keep the colour range and tonality in the range where I want it and not where the camera wants it.
For example, suppose you were shooting at the beach or in snow you should set your exposure compensation at +1. If you don’t your image is going to come out too dark because all those bright elements in the scene will trick your camera into thinking it’s brighter than it really is.
I do -1/2 when photographing a sunset or a sunrise when I want more saturation in the colors. When walking around I have it set at -1/3 so it reminds me that I want to expose for the highlights.
As great as the cameras are these days they are still dumb and will try to make a scene 18% gray so as photographers if we don’t want everything in the scene to be 18% you can use exposure compensation as your weapon. Our goal is to keep the colour range and tonality in the range where I want it and not where the camera wants it.
21 May 2009
Enable and disable site in Apache2
To enable a site.
And to disable a site.
Update apache2 configuration and reload, run this command:
a2ensite
And to disable a site.
a2dissite
Update apache2 configuration and reload, run this command:
/etc/init.d/apache2 reload
12 February 2009
Apache and PHP5
On a Linux box, in order for PHP5 to work with Apache2, you need these installed:
Additionally, if you would like to have PostgeSQL support, you will need this as well:
php5
php5-common
libapache2-mod-php5
Additionally, if you would like to have PostgeSQL support, you will need this as well:
php5-pgsql
Subscribe to:
Posts (Atom)