Lars' Tech Tips

Small things that make your life easier

Skip to: Content | Sidebar | Footer



Read Full Articles in Google Reader

21 September, 2010 (11:58) | online tools | By: Lars

Many sites/blogs only offer an excerpt of the article by RSS. This is done for various reasons, we won’t comment that now. The thing is it’s quite annoying.

There is one little trick that made my Google Reader experience a bit nicer with these feeds:

I installed the Google Reader Preview Enhanced Greasemonkey script and that allows me to open the original article in Google Reader.

Hope this helps.

How to test your mailserver DomainKeys, DKIM and SPF setup

6 September, 2010 (15:49) | linux administration | By: Lars

DomainKeys, DKIM and SPF help you better identify the email you are sending lowering your chances to end up in Spam folders.

These are my gold resources:

1. How to do DKIM with Postfix

2. The SPF stuff

2. How to test it

Enjoy! :)

Configuring FileField allowed extensions in Drupal

8 April, 2010 (13:52) | Drupal, PHP | By: Lars

Problem: you try to upload a file in Drupal and you get something like this:

The selected file <file> cannot not be uploaded. Only files with the following extensions are allowed:…

for an extension that is included in Administer->File Uploads.

I found that I had the module CCK FileField installed and its allowed extensions are configured in a different place (that is very hard to find too):

Administer->Content Management->Content types.

For the File / Upload files entry click on “manage fields” under Operations the for the filed_file entry click Configure under Operations. You’ll find “Permitted upload file extensions:” there.

Hope it helps, it took me much too long to find it.

Change the date format in Symfony with Propel

2 March, 2010 (01:28) | PHP, Symfony / Propel | By: Lars

You’ll usually want to have the same date format all over your Symfony / Propel project.

You only need to change one thing to do that:

In config/propel.ini:

propel.defaultTimeStampFormat = j M Y H:i
propel.defaultTimeFormat      = H:i
propel.defaultDateFormat      = j M Y

You can set the above format using PHP date() formatting.

After setting this run Symfony tasks propel:build-all (you may not need to reload the sql though) and cache:clear.

That’s all, enjoy!