How to take great group photos
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.
Fixing the Cyrus mailserver SQUAT failed error
In my /var/log/mail.log I saw the following error:
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.
Exclude pages from search results in WordPress
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.
- Open your WordPress admin
- Goto Appearance
- Click on Editor in the Appearance menu
- On the right side of the pages click on theme functions
- 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');
Hide server textfield in Roundcube login screen
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
Refresh your page and the server textbox has been disappeared.
Enable virtual domains for postfix
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:
Fix for postfix lmtp permission denied error
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
Detect Displays shortcut on OSX
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.
Custom WordPress theme tutorial
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.
free cocoa packet sniffer for OSX
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.
Start Subversion (SVN) automatically when Ubuntu server boots
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.


