<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.andrewmcdonough.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.andrewmcdonough.com/wiki/feed.php">
        <title>Andrew McDonough's Wiki</title>
        <description></description>
        <link>http://www.andrewmcdonough.com/wiki/</link>
        <image rdf:resource="http://www.andrewmcdonough.com/wiki/lib/images/favicon.ico" />
       <dc:date>2009-08-21T21:22:56+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.andrewmcdonough.com/wiki/bash"/>
                <rdf:li rdf:resource="http://www.andrewmcdonough.com/wiki/smtp"/>
                <rdf:li rdf:resource="http://www.andrewmcdonough.com/wiki/ruby"/>
                <rdf:li rdf:resource="http://www.andrewmcdonough.com/wiki/pdfwriter"/>
                <rdf:li rdf:resource="http://www.andrewmcdonough.com/wiki/start"/>
                <rdf:li rdf:resource="http://www.andrewmcdonough.com/wiki/getting_started_with_mysql"/>
                <rdf:li rdf:resource="http://www.andrewmcdonough.com/wiki/qrcodes"/>
                <rdf:li rdf:resource="http://www.andrewmcdonough.com/wiki/restful_authentication"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.andrewmcdonough.com/wiki/lib/images/favicon.ico">
        <title>Andrew McDonough's Wiki</title>
        <link>http://www.andrewmcdonough.com/wiki/</link>
        <url>http://www.andrewmcdonough.com/wiki/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.andrewmcdonough.com/wiki/bash">
        <dc:format>text/html</dc:format>
        <dc:date>2009-08-20T15:41:11+00:00</dc:date>
        <dc:creator>Andrew McDonough</dc:creator>
        <title>bash</title>
        <link>http://www.andrewmcdonough.com/wiki/bash</link>
        <description>bash

Header
#!/bin/bash
Variables

Assignment
X=&quot;hello&quot;
note that there should be no space on either side of the equals sign
Referring to
echo $X
Conditionals
if [ condition ]
then
  statements
else
  more statements
fi
Operators
 Operator  Meaning  -eq       Integer equality  -neq      Integer inequality  -lt       Integer less than  -le       Integer less than or equal to  -gt       Integer greater than  -ge       Integer greater than or equal to  =         String equality  !=        String I…</description>
    </item>
    <item rdf:about="http://www.andrewmcdonough.com/wiki/smtp">
        <dc:format>text/html</dc:format>
        <dc:date>2009-06-03T10:59:54+00:00</dc:date>
        <dc:creator>Andrew McDonough</dc:creator>
        <title>smtp</title>
        <link>http://www.andrewmcdonough.com/wiki/smtp</link>
        <description>SMTP is the standard protocol used to deliver email.

How to send email via SMTP

In this example, I will demonstrate how to send an email to the email address someuser@andrewmcdonough.com

Identifying the MX record for the domain


First, find the MX record for the domain you wish to send email to:</description>
    </item>
    <item rdf:about="http://www.andrewmcdonough.com/wiki/ruby">
        <dc:format>text/html</dc:format>
        <dc:date>2009-06-02T11:41:27+00:00</dc:date>
        <dc:creator>Andrew McDonough</dc:creator>
        <title>ruby</title>
        <link>http://www.andrewmcdonough.com/wiki/ruby</link>
        <description>Ruby is an object oriented scripting language.  Ruby is of particular interest because of the popular framework Ruby on Rails

Getting Started

Command line ruby
irb --simple-prompt

Documentation
ri ClassName
ri ClassName#method_name

Command line arguments

Use the ARGV array:</description>
    </item>
    <item rdf:about="http://www.andrewmcdonough.com/wiki/pdfwriter">
        <dc:format>text/html</dc:format>
        <dc:date>2009-05-12T17:48:14+00:00</dc:date>
        <dc:creator>Andrew McDonough</dc:creator>
        <title>pdfwriter - created</title>
        <link>http://www.andrewmcdonough.com/wiki/pdfwriter</link>
        <description>PDF Writer is a library for creating PDFs.

Installation
gem install pdf-writer
Configuration

In config/environment.rb
require 'pdf/writer'
require 'pdf/simpletable' # If you want to be able to draw tables
Mime::Type.register 'application/pdf', :pdf
Usage
pdf = PDF::Writer.new(:paper =&gt; &quot;A4&quot;)
pdf.text &quot;This is some text&quot;, :font_size =&gt; 8, :justification =&gt; :center
pdf.render

Tables</description>
    </item>
    <item rdf:about="http://www.andrewmcdonough.com/wiki/start">
        <dc:format>text/html</dc:format>
        <dc:date>2009-05-12T17:44:09+00:00</dc:date>
        <dc:creator>Andrew McDonough</dc:creator>
        <title>start</title>
        <link>http://www.andrewmcdonough.com/wiki/start</link>
        <description>Programming

Ruby

	*  Ruby
	*  Ruby on Rails
	*  Restful Authentication
	*  PDF::Writer

Java

	*  Java
	*  Eclipse
	*  Hibernate
	*  Struts
	*  JSP
	*  Middlegen
	*  JSTL
	*  Ant
	*  Certification
	*  Lucene
	*  Groovy
	*  Taglibs
	*  Tomcat
	*  SCJP
	*  Autoboxing
	*  Quartz - An open source Java scheduling framework</description>
    </item>
    <item rdf:about="http://www.andrewmcdonough.com/wiki/getting_started_with_mysql">
        <dc:format>text/html</dc:format>
        <dc:date>2009-05-11T09:25:25+00:00</dc:date>
        <dc:creator>Andrew McDonough</dc:creator>
        <title>getting_started_with_mysql</title>
        <link>http://www.andrewmcdonough.com/wiki/getting_started_with_mysql</link>
        <description>The following are examples of how to get started on a database of registrations, called registrations.

Creating a new database
mysqladmin -u root -p create registrations

Logging into MySQL as root
mysql -u root -p

Creating a user for your new database
grant all privileges on registrations.* to 'registrations'@'localhost' identified by 'somepassword';
flush privileges;
Show all databases
show databases;
Opening your database
use registrations;
Showing database's tables
show tables;

Creating y…</description>
    </item>
    <item rdf:about="http://www.andrewmcdonough.com/wiki/qrcodes">
        <dc:format>text/html</dc:format>
        <dc:date>2009-05-08T14:23:15+00:00</dc:date>
        <dc:creator>Andrew McDonough</dc:creator>
        <title>qrcodes - created</title>
        <link>http://www.andrewmcdonough.com/wiki/qrcodes</link>
        <description>QR Codes are 2-d bar codes.

Rails


Install Plugin
./script/plugin install http://qrcode-rails.googlecode.com/svn/trunk/plugins/qrcode

Usage: qrcode(url, pixel size, type_number, id_of_generated_div) e.g.

 &lt;%= qrcode('&lt;http://www.google.com/&gt;', 2, 8, 'my-qrcode') %&gt;</description>
    </item>
    <item rdf:about="http://www.andrewmcdonough.com/wiki/restful_authentication">
        <dc:format>text/html</dc:format>
        <dc:date>2009-05-07T14:34:14+00:00</dc:date>
        <dc:creator>Andrew McDonough</dc:creator>
        <title>restful_authentication</title>
        <link>http://www.andrewmcdonough.com/wiki/restful_authentication</link>
        <description>Rick Olsen's restful authentication is my current preferred method for authenticating users.

Installation


Add Rick Olsen's repository
ruby script/plugin source http://svn.techno-weenie.net/projects/plugins

Install the resful_authentication plugin</description>
    </item>
</rdf:RDF>
