Brain Goo

Carpe Crap ‘em

Brain Goo header image 4

Entries from August 2008

Windows 2003 Update Group Policy

August 29th, 2008 · No Comments

From Microsoft knowledgebase article http://support.microsoft.com/kb/298444
To update the group policy, run Gpupdate.exe from a cmd window.  This is refresh any changes in the Group Policy as they apply to that machine.  Run Gpupdate.exe /Force from a cmd window in order to force a full refresh of the Group Policy.
You have to check Event Log -> Application [...]

[Read more →]

Tags: How Tos · microsoft · windows 2003

How to update qmail relay rules

August 20th, 2008 · No Comments

D. J. Bernstein’s Qmail, now in the public domain, is a powerful yet clumsy SMTP messaging system. One of the most common problems is updating the rules for allowing SMTP relay, or denying the same.
If you qmail-smtpd under tcpserver, the following will update relay allow and relay forbid rules.
Create a file called /etc/tcp.smtp and [...]

[Read more →]

Tags: Email Servers · How Tos · qmail

perl howto push a hash onto an array

August 12th, 2008 · 1 Comment

use Data::Dumper;
my @array;
push @array, {‘key1′ => ‘value1′, ‘key2′ => ‘value2′};
push @array, {‘key1′ => ‘value1′, ‘key2′ => ‘value2′};
push @array, {‘key1′ => ‘value1′, ‘key2′ => ‘value2′};
print Dumper(@array);
Will give you:

$VAR1 = {
‘key2′ => ‘value2′,
‘key1′ => ‘value1′
};
$VAR2 = {
‘key2′ => ‘value2′,
‘key1′ => ‘value1′
};
$VAR3 = {
‘key2′ => ‘value2′,
‘key1′ => ‘value1′
};

Snazzy!
Did you find this post useful or have questions or comments?  [...]

[Read more →]

Tags: How Tos · Programming · perl