archive-ca.com » CA » D » DEFUNCT.CA

Total: 226

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Ruby on Rails | boompty boomp
    on August 23 2008 by admin A few interesting things I ve picked up over the last few days link to back The back here links back to the referring page Another thing I had to do was convert MySQL datetime data into something a Continue reading Posted in Ruby on Rails Leave a comment Importing data into rails app Posted on August 18 2008 by admin I ve got a users table under a legacy PHP site which I wanted to import into the users table on my rails app The problem is I m using restful authentication which encrypts the passwords using a salt etc so I wanted Continue reading Posted in Ruby on Rails Leave a comment rescue from Posted on August 4 2008 by admin So I was updating a few controllers to trap exceptions using something like begin event Event find params id rescue ActiveRecord RecordNotFound flash error Event not found redirect to action index end This worked fine but didn t seem to be overly DRY Googling Continue reading Posted in Ruby on Rails Leave a comment flash notice flash error again Posted on July 27 2008 by admin So I ve ended up changing my code to if user update attributes params user flash notice Profile updated redirect to action edit else flash now error user errors full messages first render action edit end Basically using a redirect to on the else means you loose your post values Continue reading Posted in Ruby on Rails Leave a comment flash notice flash error Posted on July 26 2008 by admin So I was using something like this in my controllers if user update attributes params user flash notice Profile updated redirect to action edit else flash error user errors full messages first render action

    Original URL path: http://blog.defunct.ca/category/ruby-on-rails/ (2015-04-05)
    Open archived version from archive


  • WordPress | boompty boomp
    WordPress plugins to properly format shell output and the best I ve found so far is wp syntax I simply use lang as using lang bash doesn t work for me since I use a hash to represent the Continue reading Posted in Wordpress 1 Comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April

    Original URL path: http://blog.defunct.ca/category/wordpress/ (2015-04-05)
    Open archived version from archive

  • apache | boompty boomp
    redirecting Something like this seems to work RewriteEngine on RewriteRule panel https HTTP HOST 8443 L Now if only I could figure out why this Continue reading Posted in Linux Tagged apache Leave a comment Running two instances of Apache on one machine CentOS Posted on August 12 2008 by admin I haven t put this into production but I tested it and it seems so far to work OK First off cp a etc httpd etc httpd2 cp a etc init d httpd etc init d httpd2 cp a etc sysconfig httpd etc sysconfig httpd2 ln s usr sbin httpd usr sbin httpd2 Continue reading Posted in Linux Tagged apache centos Leave a comment Automatic creation of vhost conf files on Plesk Posted on July 2 2008 by admin It s quite straight forward Create the directory var www vhosts skel 0 conf and then create a file called vhost conf in it containing something like this directory var www vhosts vhosts domain name httpdocs php admin value open basedir var www vhosts domain name tmp directory The domain being provisioned here gets referenced as domain name Posted in Linux Tagged apache plesk Leave a comment Search for Archives

    Original URL path: http://blog.defunct.ca/tag/apache/ (2015-04-05)
    Open archived version from archive



  • bash | boompty boomp
    useful simply to demonstrate and document EOF Continue reading Posted in Linux Tagged bash Leave a comment bash Posted on May 12 2009 by admin So here was my problem cat test txt this is a test this is another test Now if I wanted to read this file line by line for line in cat test txt do echo line done this is a test Continue reading Posted in Linux Tagged bash Leave a comment bash sequences Posted on June 16 2008 by admin I always did them this way for x in seq 1 10 do echo x done However you can actually do them this away also for x in 1 10 do echo x done You just never know when seq s going Continue reading Posted in Linux Tagged bash Leave a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August 2009 July 2009 May 2009 April 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008 June 2008 Categories Ceph Linux OpenStack OS X Ruby Ruby on Rails

    Original URL path: http://blog.defunct.ca/tag/bash/ (2015-04-05)
    Open archived version from archive

  • centos | boompty boomp
    save you having to Continue reading Posted in Linux Tagged centos mysql postfix Leave a comment VNC server on CentOS 4 5 Posted on July 7 2008 by admin First off install the following packages yum install vnc server xorg x11 xorg x11 twm xterm When done modify etc sysconfig vncserver and uncomment VNCSERVERS specifying a user for vncserver to run under Save the file su to the user specified and run Continue reading Posted in Linux Tagged centos 1 Comment vsftpd w MySQL users on CentOS 5 2 Posted on July 7 2008 by admin Although not written for CentOS I used this which worked pretty well The only issue I had was that my etc my cnf contained old passwords 1 and it was looking for the new password scheme when configuring etc pam d vsftpd with crypt 2 mysql Setting the Continue reading Posted in Linux Tagged centos mysql Leave a comment No vim syntax highlighting for root on CentOS 5 Posted on June 8 2008 by admin I noticed that vi ing a ruby script as a non root user displayed the syntax highlighting correctly but not when logged in as root Well it turns out

    Original URL path: http://blog.defunct.ca/tag/centos/ (2015-04-05)
    Open archived version from archive

  • debian | boompty boomp
    usr share zoneinfo this may be a safer bet dpkg reconfigure tzdata I know on Red Hat it is preferred to use system config time as this also updates some configuration files Continue reading Posted in Linux Tagged debian Leave a comment Starting domUs on boot Posted on August 25 2009 by admin So my dom0 mysteriously rebooted and came back up with no domUs running There is an etc init d xenddomains service and it was running but unfortunately that did not suffice Looking at etc default xendomains Debian Lenny Type string Default etc xen auto Continue reading Posted in Linux Tagged debian xen Leave a comment Installing build tools on Debian Ubuntu Posted on January 8 2009 by admin Instead of installing each package one by one you can apt get install build essential On my machine this installed The following NEW packages will be installed binutils build essential cpp cpp 4 1 dpkg dev g g 4 1 gcc gcc 4 1 libssp0 libstdc 6 4 1 dev make patch Posted in Linux Tagged debian Leave a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011

    Original URL path: http://blog.defunct.ca/tag/debian/ (2015-04-05)
    Open archived version from archive

  • gentoo | boompty boomp
    of emerge messages that are sometimes Continue reading Posted in Linux Tagged gentoo Leave a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August 2009 July 2009 May 2009 April 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008 June 2008 Categories

    Original URL path: http://blog.defunct.ca/tag/gentoo/ (2015-04-05)
    Open archived version from archive

  • iptables | boompty boomp
    additional IP we want to route mail out through is 1 2 3 4 Now there are two ways to do this The first is to use iptables iptables t nat A POSTROUTING p tcp dport Continue reading Posted in Linux Tagged iptables Leave a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April

    Original URL path: http://blog.defunct.ca/tag/iptables/ (2015-04-05)
    Open archived version from archive