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".
  • Importing data into rails app | boompty boomp
    could manually create user objects etc user User new user login something user name some name user password blah user save This worked beautifully and encrypted the passwords correctly Now how to automate this in some sort of batch job Well ciaran on IRC suggested I use a rake tast What I ve since done is created rails regexp lib tasks userimport rake containing desc Import users from PHP site to rails site task userimport environment do user User new user login something user name some name user password blah user save end I could then run the following from the command line rake userimport RAILS ENV production Anyway this gave me access to the user model allowing me to enter data from the command line At that point it was a simple process of modifying the rake task to connect to the old database extract the rows and then loop through them to submit to the user model This article here is a good intro to rake which I ll need to look at later This entry was posted in Ruby on Rails Bookmark the permalink Retain site s hostname w mod rewrite Before I forget Leave a Reply

    Original URL path: http://blog.defunct.ca/2008/08/18/importing-data-into-rails-app/ (2015-04-05)
    Open archived version from archive


  • Retain site's hostname w/ mod_rewrite | boompty boomp
    VirtualHost directive This entry was posted in Linux and tagged apache Bookmark the permalink STDIN Importing data into rails app Leave a Reply Cancel reply You must be logged in to post 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

    Original URL path: http://blog.defunct.ca/2008/08/18/retain-sites-hostname-w-mod_rewrite/ (2015-04-05)
    Open archived version from archive

  • STDIN | boompty boomp
    Running two instances of Apache on one machine CentOS Retain site s hostname w mod rewrite Leave a Reply Cancel reply You must be logged in to post 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

    Original URL path: http://blog.defunct.ca/2008/08/18/stdin/ (2015-04-05)
    Open archived version from archive



  • Running two instances of Apache on one machine (CentOS) | boompty boomp
    httpd2 PIDFILE var run httpd2 pid Some things in etc init d httpd2 need to be changed if f etc sysconfig httpd2 then etc sysconfig httpd2 fi Finally I modified the following in etc httpd2 conf httpd conf PidFile run httpd2 pid Listen 8080 Starting etc init d httpd fires up httpd and binds to port 80 and starting etc init d httpd2 fires up httpd2 and binds to port 8080 Note I had to symlink usr sbin httpd2 to usr sbin httpd so that the process name changes which allows each to be killed off independantly Update A customer asked about apachectl which reminded me that I had forgotten to take that into account What you can do is cp a usr sbin apachectl usr sbin apachectl2 and then change these lines if r etc sysconfig httpd2 then etc sysconfig httpd2 fi Update I ve made a few minor changes as some things were documented incorrectly This entry was posted in Linux and tagged apache centos Bookmark the permalink xen STDIN Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September

    Original URL path: http://blog.defunct.ca/2008/08/12/running-two-instances-of-apache-on-one-machine-centos/ (2015-04-05)
    Open archived version from archive

  • xen | boompty boomp
    xen debian 40r4a etchnhalf i386 netinst iso network bridge virbr0 This worked beautifully and Debian installed fine Now the trick was to get it to boot through xen What I did was boot the image through qemu again and apt get install linux image 2 6 xen 686 libc6 xen I then had to modify boot grub menu lst to reference that kernel initrd image My xen configuration file for this image looks like name debian memory 128 disk tap aio home mattt xen debian img xvda w vif ip 192 168 122 148 bootloader usr bin pygrub vcpus 1 on reboot restart on crash restart I still need to learn what that tap aio is but that s what was in my CentOS configuration file and that boots fine Anyway since that configuration references xvda I updated etc fstab and boot grub menu lst through qemu to use that device instead of dev hda Finally found here rm etc udev rules d z45 persistent net generator rules If I didn t do this and booted the system it d constantly change my ethernet device with every boot first eth0 then eth1 then eth2 etc A bit painful in comparison to my nice stream lined CentOS domU method but at least I m not stuck using CentOS exclusively any more Oh and initially my Debian domU kept stalling here Setting kernel variables done Mounting local filesystems done Activating swapfile swap done Setting up networking Configuring network interfaces done Starting portmap daemon Setting console screen modes and fonts Give root password for maintenance or type Control D to continue If I hit Control D it booted fine Fortunately someone on debian suggested verifying that grub wasn t booting to single user and upon closer inspection I found it was Embarassing This

    Original URL path: http://blog.defunct.ca/2008/08/11/xen-2/ (2015-04-05)
    Open archived version from archive

  • rescue_from | boompty boomp
    record flash error Event not found redirect to action index end Nice I m starting to see why Rails kicks serious ass This entry was posted in Ruby on Rails Bookmark the permalink flash notice flash error again xen Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011

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

  • July | 2008 | boompty boomp | Page 2
    openssl pkcs12 in Continue reading Posted in Linux Tagged openssl Leave a comment Newer posts 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

    Original URL path: http://blog.defunct.ca/2008/07/page/2/ (2015-04-05)
    Open archived version from archive

  • flash[:notice] / flash[:error], again | boompty boomp
    flash notices don t linger after subsequent clicks See this page for more info This entry was posted in Ruby on Rails Bookmark the permalink flash notice flash error rescue from Leave a Reply Cancel reply You must be logged in to post 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

    Original URL path: http://blog.defunct.ca/2008/07/27/flashnotice-flasherror-again/ (2015-04-05)
    Open archived version from archive