Warning: Use of undefined constant is_home - assumed 'is_home' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 151

Warning: Use of undefined constant posts_per_page - assumed 'posts_per_page' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 151

Warning: Use of undefined constant is_category - assumed 'is_category' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 152

Warning: Use of undefined constant posts_per_page - assumed 'posts_per_page' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 152

Warning: Use of undefined constant is_archive - assumed 'is_archive' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 153

Warning: Use of undefined constant posts_per_page - assumed 'posts_per_page' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 153

Warning: Use of undefined constant is_search - assumed 'is_search' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 154

Warning: Use of undefined constant posts_per_page - assumed 'posts_per_page' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 154

Warning: Use of undefined constant is_tag - assumed 'is_tag' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 155

Warning: Use of undefined constant posts_per_page - assumed 'posts_per_page' (this will throw an Error in a future version of PHP) in /u/r/rgreenwald/websites/www.russgreenwald.com/docroot/wp-content/plugins/different-posts-per-page/diff-posts-per-page.php on line 155
Archive Technology | Russ Greenwald
Sep 7 2009

Color in Mac iTerm

In .profile (if you use MacPorts) or .bash_profile

export TERM=xterm-color alias ls=’ls -G’ alias ll=’ls -hl’


May 20 2009

Horde Disable IP Address Check

/usr/share/horde/config/conf.php

Change the following line;

$conf[‘auth’][‘checkip’] = true;

to be this;

$conf[‘auth’][‘checkip’] = false;


May 10 2009

Nagios + NPC + Cacti

Nagios + Cacti + NPC Plugin Install Instructions on Centos 5 I will post a full Nagios 3.x installation instruction later (yum install nagios). For the below, I will assume you have Nagios 3.x running and have a basic knowledge of Linux, file paths, commands, etc. Continue reading


May 1 2009

Apple TV and Boxee, wonderful combination

http://howto.wired.com/wiki/Hack_Your_Apple_TV_With_Boxee

apple-tv-boxeejpg


Apr 29 2009

Windows Spybot and Combo fix

The two best tools to use when all seems lost

  • Does your machine not boot properly
  • Can you not see your desktop
  • Does your web browser tell you that you have a virus and need to download some removal software
  • These are all symptoms of spyware, a worm, or a virus

The two best tools I’ve used to solve most issues are sbybot and combo fix, linked below.

http://www.bleepingcomputer.com/combofix/how-to-use-combofix

http://www.safer-networking.org/en/download/index.html


Apr 29 2009

QMAIL SMTP IP Address

When mail is sent from my server, Qmail uses not right IP for the connection. How do I change the IP that is used for any outgoing connection from my server?
Article ID: 1190
Last Review: Oct,6 2008
Author: Last updated by: system APPLIES TO:
  • Parallels Plesk Panel for Linux/Unix

Resolution

Default IP for an outgoing connections can be set using ‘ip’ utility. First of all check how routing is configured on the server:
# /sbin/ip route 192.168.50.0/24 dev eth1 proto kernel scope link src 192.168.50.53 169.254.0.0/16 dev eth1 scope link default via 192.168.50.254 dev eth1
If no ‘src’ listed in ‘ip’ output for default route, then main IP on the interface is used for an outgoing connections. You can change it using:
# /sbin/ip route change default via 192.168.50.254 dev eth1 src 192.168.50.100
Now:
/sbin/ip route 192.168.50.0/24 dev eth1 proto kernel scope link src 192.168.50.53 169.254.0.0/16 dev eth1 scope link default via 192.168.50.254 dev eth1 src 192.168.50.100
Note: be careful, if you set wrong IP as source you lose link to the server.
reference
http://kb.parallels.com/en/1190

Apr 27 2009

Install Adobe CS3 and CS4 apps on Windows 2003

Go to

Adobe CS3\Photoshop\Adobe CS3\payloads\AdobePhotoshop10en_US_volume\AdobePhotoshop10en_US_volume.proxy.xm l

“Server2003”:{“Exclude”:true}

Change it to

“Server2003”:{“Require”:true}


Apr 26 2009

Nagios Monitoring Agent

  • Installed using Yum Install Nagios
  • Installed to /etc/nagios
    • nagios.cfg defines the commands file and location of the other config files
    • commands.cfg defines the scripts located in /usr/lib or lib64/nagios/plugins/ to be run
      • i.e. $USER1$/check_http -H $HOSTADDRESS$ -S -a nagioscheck:nag1oscheck
    • Within /etc/nagios/etc there are hosts.cfg, services.cfg, servicegroups.cfg, hostgroups.cf, contacts.cfg, and contactgroups.cfg
    • hosts.cfg contains any device that needs to be monitored
    • services.cfg defines the specific monitoring service and warning/critical parameters if any
    • servicgroups.cfg is used to organize in the web view
    • hostgroups.cfg matches the hosts in hosts.cfg to the services in services.cfg
    • In order to login to nagios, the ldap user must be listed in the contacts.cfg and assigned to a contactgroup
  • After making changes in nagios run “/usr/bin/nagios -v /etc/nagios/nagios.cfg” to make sure there are not any mistakes
  • service nagios restart

Apr 26 2009

A Thought Provoking Article on Work Decisions

Richard Hamming “You and Your Research”

Transcription of the Bell Communications Research Colloquium Seminar 7 March 1986

J. F. Kaiser Bell Communications Research 445 South Street Morristown, NJ 07962-1910 jfk@bellcore.com

At a seminar in the Bell Communications Research Colloquia Series, Dr. Richard W. Hamming, a Professor at the Naval Postgraduate School in Monterey, California and a retired Bell Labs scientist, gave a very interesting and stimulating talk, `You and Your Research’ to an overflow audience of some 200 Bellcore staff members and visitors at the Morris Research and Engineering Center on March 7, 1986. This talk centered on Hamming’s observations and research on the question “Why do so few scientists make significant contributions and so many are forgotten in the long run?” From his more than forty years of experience, thirty of which were at Bell Laboratories, he has made a number of direct observations, asked very pointed questions of scientists about what, how, and why they did things, studied the lives of great scientists and great contributions, and has done introspection and studied theories of creativity. The talk is about what he has learned in terms of the properties of the individual scientists, their abilities, traits, working habits, attitudes, and philosophy. Continue reading


Apr 25 2009

Logrotate

Logrotate is an amazing tool for linux admins.  It is service called by cron in the daily cron job.  Logrotate gives you options on how you want to manage any log file.

  • Archive
  • Compress
  • Reset
  • etc.

To configure logrotate for specific log files from Apache, tomcat, subversion, hudson, etc.

  • Go to /etc/logrotate.d
  • Create seperate configuration files for each application’s log file
  • /var/log/http/* { create 0640 apache apache   #This line defines who is going to own the new log file after the old one is archived and compressed missingok daily # Run this daily rotate 7 # Rotate logs every 7 days, from line above compress # Compress log files }
  • Save and check.  To test “logrotate -f /etc/logrotate.d/filename”