OceanTara Code Blog

March 18, 2010

business online giving company

Filed under: General — chris @ 8:52 pm

http://www.benevity.org/how-we-help/ecommerce-online-transactions

email debugging tools

Filed under: General — chris @ 4:33 pm

http://feedbackloop.yahoo.net/manage.php

http://www.mailradar.com/domainkeys/

http://www.sendmail.org/dkim/testChecker?domain=oceantara.com&selector=mail&commit=Start+Test

http://domainkeys.sourceforge.net/policycheck.html

http://www.mydigitallife.info/tools/spf-validation-sender-profile-framework-testing-and-checking-tool/

https://www.dnsstuff.com

http://www.myiptest.com/staticpages/index.php/DomainKeys-DKIM-SPF-Validator-test

http://www.port25.com/domainkeys/

Helpful Websites

https://help.ubuntu.com/community/Postfix/DKIM

https://help.ubuntu.com/community/Postfix/DomainKeys

http://tech.libersoft.it/2009/domainkeys-dkim-with-postfix-quick-way/

http://www.elandsys.com/resources/sendmail/dkim.html

http://www.mail-archive.com/dkim-milter-discuss@lists.sourceforge.net/msg00335.html

http://www.ijs.si/software/amavisd/amavisd-new-docs.html#dkim

March 9, 2010

rbls

Filed under: General — chris @ 6:52 pm

http://www.howtoforge.com/block_spam_at_mta_level_postfix

November 6, 2009

apache / ssl quickstart guides

Filed under: ubuntu — Tags: , , , — chris @ 4:49 pm

Good, straight forward guides to enabling SSL on Apache

http://www.tc.umn.edu/~brams006/selfsign.html

http://www.tc.umn.edu/~brams006/selfsign_ubuntu.html

November 5, 2009

how to flush swap

Filed under: ubuntu — Tags: , , — chris @ 6:05 pm
sudo swapoff -a

then:

sudo swapon -a

It would be prudent to stop any large processes before turning swap off or it might grind your machine down to a halt.

October 27, 2009

fixing the wordpress upgrade blank screen

Filed under: wordpress — Tags: , — chris @ 9:54 pm

This can happen after upgrading. Usually you can still log in at /wp-admin/, but the home page is blank. 2 solutions that I know of

1. Delete any index.html file under wordpress root directory

2. Disable any plugins, change to the default theme, and then remove all your widgets and save the changes.

March 21, 2009

setting up a linux based mail server

Filed under: email, linux, postfix, ubuntu — chris @ 9:33 pm

These are fantastic instructions for setting up a linux based email mail server. Ubuntu/Postfix/courier/SASL/TLS. Many thanks to the author.

http://flurdy.com/docs/postfix

March 20, 2009

A little off topic

Filed under: General — chris @ 1:09 pm

Interesting video on a US VP contender, the intelligent Sarah Palin. Its about the delisting off the endangered species list of wolves. Apparently, people like to hunt down wolves with the argument that they kill live stock. Oddly, much more livestock is killed by humans, poor gates and fences, or negligence than by wolves. I’ll find the stats to its not just my words. Apologies for the off topic post… but then again it is my blog!

February 21, 2009

use InlineModelChoiceField for hidden foreign key relationships in django

Filed under: django, python — chris @ 10:04 pm

django offers a ModelChoiceField to map foreign keys. The problem is if you have a foreign key you don’t want the user to be able to change and hence have the widget=HiddenInput. As is you still have to provide a queryset=MyModel.objects.all(). This is obviously bad for performance, security, and clarity of code. Here’s a terrific, easy solution.

http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html

February 20, 2009

use java.lang.FileChannel for copying files used by external programs

Filed under: Java — chris @ 7:22 pm

If you are copying a file in java and then calling a program that uses that file, you must use a FileChannel. The File.flush() command only ensures that the direction is sent to the operating system, not that the file is actually written to disk. So if you create/copy a file, and then have another program that references that program (typically through a java.lang.Process call), sometimes the process call will fail as it does not see the file. Instead use a FileChannel.force() command this guarantees that the call is issues to the OS and that the file has been written to disk. One note: this guarantee only applies to the local disk. If you are writing to a remote disk like a NAS, you’ll have to make sure that those are synchronized or are configured for immediate writes.

Here’s some code for a very simple copy:
(more…)

Newer Posts »

Powered by WordPress