How to take great group photos

August 14th, 2010

I was searching some material about group photography when I found this article on the digital photography school webiste. It quickly shows how great group photos can be made.

Photography

Fixing the Cyrus mailserver SQUAT failed error

August 9th, 2010

In my /var/log/mail.log I saw the following error:

Aug 6 17:12:58 Nephtys cyrus/imap[6411]: SQUAT failed to open index file
Aug 6 17:12:58 Nephtys cyrus/imap[6411]: SQUAT failed

In order to fix this execute the following commands:

 # sudo su cyrus

This will make you the cyrus user.

Now execute

 # squatter

This will index all your e-mails (more info by executing $ man squatter). This index is not incremental so you need to run this task once in a while. It might be usefull to create a cronjob for this command.

Linux , , ,

Exclude pages from search results in WordPress

August 8th, 2010

My blog has a Mac section. This Mac section is a page with one article which contains all the software. When someone uses the search functionality from this blog, and searches for VPN the whole Mac section appears in the search results which is pretty annoying. This website explains how to exclude all pages from the search results.

  1. Open your WordPress admin
  2. Goto Appearance
  3. Click on Editor in the Appearance menu
  4. On the right side of the pages click on theme functions
  5. Add the following code to this section
function vibeExcludePages($query) {
if ($query->is_search) {
$query->set('post_type', 'post');
}
return $query;
}
add_filter('pre_get_posts','vibeExcludePages');

web , ,

Hide server textfield in Roundcube login screen

August 7th, 2010

When I opened Roundcube, the login screen asked me every time for a server name. This turned out to be pretty annoying since this is localhost all the time. In order to remove this field open /etc/roundcube/main.inc.php in your favorite texteditor and set the property

$rcmail_config['default_host'] = ‘localhost’;

Refresh your page and the server textbox has been disappeared.

Linux , ,

Enable virtual domains for postfix

August 6th, 2010

Virtual domains can be used to route e-mails from multiple domains to the correct mailboxes. In order to make it work, some changes need to be made.

First we need to edit the main.cf (on my Ubuntu server in /etc/postfix/) and add the following lines:

Read more…

Linux , , ,

Fix for postfix lmtp permission denied error

August 6th, 2010

After checking out my mail logs I had the following error:

Aug  6 11:38:52 Nephtys postfix/lmtp[3990]: DD69A18A90C: to=, relay=none,
delay=593, delays=593/0.02/0.01/0, dsn=4.4.1, status=deferred
(connect to localhost[/var/run/cyrus/socket/lmtp]: Permission denied)

I Googled the error but could not find a fix. Finally it turned out that the postfix user was not in the mail group, which could be fixed by executing

 # adduser postfix mail

Linux , , ,

Detect Displays shortcut on OSX

August 1st, 2010

I have an external monitor attached to my iMac. Sometimes I use it as a secondary display, sometimes it is turned off. When you are already in OSX and turn on your external monitor it will not be detected immediately. You first need to open your display preferences and click on “Detect Displays”. This tweet however, shows that you can use CMD + BrightnessUp (which is in most cases F2 or fn + F2) instead.

Software ,

Custom WordPress theme tutorial

July 13th, 2010

I was looking into custom WordPress theme tutorials when a friend of mine pointed out this tutorial. It is very well written and covers the following topics:

  • Creating a Theme HTML Structure
  • Template and Directory Structure
  • The Header Template
  • The Index Template
  • The Single Post, Post Attachment, & 404 Templates
  • The Comments Template
  • The Search Template & The Page Template
  • The Archive, Author, Category & Tags Template
  • The Sidebar Template
  • Reset-Rebuild Theme CSS & Define Your Layouts

Quite complete, and definitely enough to get started in developing your own WordPress themes.

External links , ,

free cocoa packet sniffer for OSX

June 15th, 2010

According to the Cocoa Packet Analyzer website:

Cocoa Packet Analyzer is a native Mac OS X implementation of a network protocol analyzer and packet sniffer. CPA supports the industry-standard PCAP packet capture format for reading, capturing and writing packet trace files.

Features:

  • Basic packet capturing (libPCAP/ tcpdump filter expressions can be used).
  • Analyze, display and filter packet trace files.
  • Supports PCAP packet capture format.
  • Quicklook plugin included – it is basic but at least you can get an overview over packet trace files in finder.
  • Intel 64-bit CPU support.

Cocoa Packet Analyzer screenshot

Software , ,

Start Subversion (SVN) automatically when Ubuntu server boots

May 31st, 2010

It turned out my Ubuntu server does not start Subversion automatically on boot. I found this website with instructions how to create a startup script.

Create a file called “svnserve” in the /etc/init.d folder

$ sudo nano /etc/init.d/svnserve

Add the following line to this script in order to start the Subversion server:

svnserve -d --root /srv/subversion

Save the file (CTRL+O) and exit nano (CTRL+X)
Now make the file executable

$ sudo chmod +x /etc/init.d/svnserve

Add the svnserve script to the init.d boot sequence

$ sudo update-rc.d svnserve defaults

Now you’re done! On the next reboot the SVN server will start automatically.

Linux , , ,