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".
  • November | 2008 | boompty boomp
    Apache 2 2 and several mongrel instances It seems that after a reboot the server did not start the mongrel instances They had a script to be run after boot containing Continue reading Posted in Ruby on Rails Leave a comment AdSense on WordPress blog Posted on November 12 2008 by admin I was looking to add some ads under the right hand menu and found the following I ve since created a file called google inc in my site s document root and then added the following near the end of wp content themes default sidebar php ul li php Continue reading Posted in Wordpress Leave a comment Old er modules via CPAN Posted on November 10 2008 by admin Today I tried to install Data FormValidator via CPAN but the make test for version 4 61 failed for whatever reasons it seemed to be looking for perl 6 which this box is obviously not using A quick google search reveiled that Continue reading Posted in Linux Tagged perl 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

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


  • October | 2008 | boompty boomp
    update variables on the fly using something like mysql SET GLOBAL max connections 150 and then modify etc my cnf to make the change persistent The problem in doing this is that you re not verifying that your etc my cnf is Continue reading Posted in Linux Tagged mysql 1 Comment iptables Posted on October 3 2008 by admin Since I m always forgetting the following is necessary on the host box if you re running virtual machines w networking configured in NAT mode iptables t nat A POSTROUTING o eth0 j MASQUERADE This also requires sysctl w net ipv4 ip forward 1 Continue reading Posted in Linux Tagged iptables Leave a comment Gentoo Posted on October 2 2008 by admin The following file contains a nice description of the available USE flags usr portage profiles use desc Per package USE flags can be defined in etc portage package use The following file lists explicitly installed packages var lib portage world This file contains a lot 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

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

  • September | 2008 | boompty boomp
    6 2008 by admin This is nice The following assigns a value to a variable only if that variable isn t already set variable default value Posted in Ruby 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

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



  • August | 2008 | boompty boomp
    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 Retain site s hostname w mod rewrite Posted on August 18 2008 by admin Let s say you want to apply a rewrite rule to several domains while retaining the site s hostname when 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 STDIN Posted on August 18 2008 by admin You can use STDIN like this to have ruby read from standard input usr bin ruby w input STDIN input each line puts line You can then do something like cat etc hosts ruby stdin2stdout rb Posted in Ruby 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 xen Posted on August 11 2008 by admin So one of my dislikes w xen was that I couldn t get any of the www jailtime org images to work and I had no idea how to create non CentOS images After having a

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

  • July | 2008 | boompty boomp
    a result which instructed to add the following to etc hostconfig MAILSERVER YES Continue reading Posted in OS X Tagged postfix Leave a comment error messages for Posted on July 19 2008 by admin I m using restful authentication on a site I m writing well converting from PHP to rails and initially had this in app views users new rhtml error messages for user The problem here was that it d spew out a billion errors if someone submit the form Continue reading Posted in Ruby on Rails Leave a comment postfix MySQL support on RHEL 5 Posted on July 18 2008 by admin If you re running RHEL 5 and need postfix built w MySQL support you can use the CentOSPlus Repository package found here This is not an ideal solution as it s not a Red Hat package but would save you having to Continue reading Posted in Linux Tagged centos mysql postfix Leave a comment scp umask Posted on July 18 2008 by admin From what I ve seen scp treats a shell user s umask slightly differently Basically if you set the umask on the remote side to 002 and then scp a file over that has a perm of 644 then it will take Continue reading Posted in Linux Tagged openssh 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

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

  • June | 2008 | boompty boomp
    to scan through etc passwd and calculate the number of usernames that begin with each letter of the alphabet Well there s a more efficient way of doing this lines File readlines etc passwd passwd Continue reading Posted in Ruby Leave a comment Rizzuby Posted on June 17 2008 by admin Nothing mind boggling but I recall seeing key value blocks when having a look at Ruby on Rails and thought I d make a note for future reference irb main 011 0 x a first b second Continue reading Posted in Ruby 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 Difference w each and collect Posted on June 15 2008 by admin Nothing fancy here irb main 001 0 a 1 2 3 4 5 1 2 3 4 5 irb main 002 0 c 0 0 irb main 003 0 a each b print b 1 2 3 4 5 1 Continue reading Posted in Ruby Leave a comment Loops Posted on June 15 2008 by admin Some neat ways w ruby irb 1 main 003 0 5 times print heh heh heh heh heh heh 5 irb 1 main 004 0 1 upto 5 x print x 1 2 3 4 5 1 irb 1 main 005 0 1 step 5 2 x print x Continue reading Posted in Ruby Leave a comment Grabbing usernames from etc passwd Posted on June 15 2008 by admin Two ways of doing it file

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

  • OS X | boompty boomp
    nginx HostPort 8080 I believe a reboot Continue reading Posted in OS X Tagged virtualbox Leave a comment lookupd Posted on April 16 2009 by admin I noticed that after adding an entry to etc hosts on Mac OS X and then removing that entry the IP would remain cached for a while even after clearing browser cache closing re opening browser etc I haven t looked at lookupd in Continue reading Posted in OS X Leave a comment postfix on Mac OS X Posted on July 19 2008 by admin So I wanted to test mailing on a ruby site I m working on my laptop and realized that postfix is installed but not running A quick Google search returned a result which instructed to add the following to etc hostconfig MAILSERVER YES Continue reading Posted in OS X Tagged postfix Leave a comment Firefox 3 Crashes on OS X 10 4 11 Posted on June 22 2008 by admin Looks like I was hitting the same issue cairo quartz font face scaled font create as reported here and here A reboot seems to have solved the problem for the time being but I guess I ll have to

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

  • Ruby | boompty boomp
    s a more efficient way of doing this lines File readlines etc passwd passwd Continue reading Posted in Ruby Leave a comment Rizzuby Posted on June 17 2008 by admin Nothing mind boggling but I recall seeing key value blocks when having a look at Ruby on Rails and thought I d make a note for future reference irb main 011 0 x a first b second Continue reading Posted in Ruby Leave a comment Difference w each and collect Posted on June 15 2008 by admin Nothing fancy here irb main 001 0 a 1 2 3 4 5 1 2 3 4 5 irb main 002 0 c 0 0 irb main 003 0 a each b print b 1 2 3 4 5 1 Continue reading Posted in Ruby Leave a comment Loops Posted on June 15 2008 by admin Some neat ways w ruby irb 1 main 003 0 5 times print heh heh heh heh heh heh 5 irb 1 main 004 0 1 upto 5 x print x 1 2 3 4 5 1 irb 1 main 005 0 1 step 5 2 x print x Continue reading Posted in Ruby Leave a comment Grabbing usernames from etc passwd Posted on June 15 2008 by admin Two ways of doing it file File open etc passwd r file each do x y x match w puts y 1 end file close file File open etc passwd r file each do x y x split puts y 0 end file close The second Continue reading Posted in Ruby Leave a comment String length Posted on June 15 2008 by admin Two simple ways to find the length of a string irb main 001 0 a this is a test this is a test irb main

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