howto: ignore files in subversion 0

Posted by jro
on Tuesday, October 30

Since I tend to forget ::

svn propedit svn:ignore directory

then *.log, etc.. that you would expect in a .cvsignore.

Soldering HOWTO 0

Posted by jro
on Friday, October 26

Hack-A-Day has a great little article on the basics of soldering. Check it out, here

rmagick / imagemagick RHEL4 and font error pain 0

Posted by jro
on Monday, October 22

If your working on RedHat enterprise 4, trying to install rmagick and you get an error like this ::

Magick::ImageMagickError (unable to read font `/usr/share/fonts/default/Type1/n019003l.pfb'):

try installing urw-fonts. That is all.

embed shared documents with edocr 0

Posted by jro
on Friday, October 19

I’m not much for re-canning Techcrunch posts, but edocr seems pretty neat. Check out this Vi cheat sheet.

rails on fink 0

Posted by jro
on Thursday, October 18

I should have really taken better notes as I got setup using fink, but here’s a braindump of what I needed for rails to work for me. Note, rmagick and me are not near as angry with each other as we were under macports.

Install Fink

Go Here - You should be able to figure out the install.

Set it to unstable

# Edit /sw/etc/fink.conf
# set Trees line
Trees: local/main stable/main stable/crypto unstable/main unstable/crypto

Edit Jan 21, 2008: You’ll probably want to do a fink update-all and/or fink -dv selfupdate here.

Install fink packages

$> sudo fink install mysql mysql-client  mysql15-dev mysql15-shlibs
....
$> sudo fink install ruby ruby18 ruby18-dev ruby18-shlibs rubygems-rb18
....

Edit Jan 21, 2008: If you want rmagick, you’ll need to fink install imagemagick or imagemagick-nox .. it will take a while

Make sure you’re using the fink ruby

You may need to open a new shell or update your $PATH but this what it’ll look like if it’s correct

jro@fireant:~/Desktop$ which ruby
/sw/bin/ruby

Time for some gems

$> sudo gem update --system
....
$> sudo gem update
....
$> sudo gem install mysql
....
$> sudo gem install -y rails
....
$> sudo gem install rmagick -- --disable-htmldoc
....

Edit Jan 21, 2008: You’ll probably want to setup daemonic to start mysql on system startup.

sudo daemonic enable mysql

Hopefully there aren’t too many typos/mistakes due to my poor notes. If you find any, throw up a comment and I’ll patch the post.

The only software I’m really missing right now in fink is nginx, but I’ll have more on that soon. :)

macports to fink switcheroo 0

Posted by jro
on Saturday, October 13

I’ve been a pretty happy user of MacPorts/DarwinPorts for the past couple years, and all was good. I could install all the UNIX goodness to run a rails stack and have most of the network/security apps I was used to from the Linux world. But, recently I stuck in a dynamic library situation with ImageMagick and the rmagick ruby gem that was causing me a lot of grief. So, I removed ports and my gems and started over, but still no dice.

In a perfect world, I’d have rolled back to the last working ImageMagick package and go on my happy way. Unfortunately, that doesn’t seem to be an option with MacPorts if you don’t have the old versions still compiled on your system. Of course, I didn’t because I naively decided to start from a blank slate (see above). Ultimately, I decided to try the out Fink before digging too deeply into how to fix the linking issue.

I’d used Fink for about a month when I first dipped my toe into the Mac waters, so I had some idea how the system worked. It’s based on some Debian tools like dpkg and apt-get, and offers both binary and source packages. Much like Debian, I had to immediately switch to unstable to get any sort of useful ruby install. Also, unless you can live in Candy Land and only need stable tree, I’d avoid using apt-get no matter how much your Debian/Ubuntu love makes you want to. The “fink” command line is really what you want.

And my favorite bit, is that I can rollback packages! Check it out:

jro@fireant:~$ fink dumpinfo -fallversions zsh
allversions:
 b      4.2.6-1001
        4.3.4-2

jro@fireant:~$ fink install zsh
.....compile compile compile.. this is unstable after all.....
jro@fireant:~$ fink dumpinfo -fallversions zsh
allversions:
 b      4.2.6-1001
 bi     4.3.4-2

jro@fireant:~$ fink install zsh-4.2.6-1001
The following package will be installed or updated:
 zsh
/sw/bin/apt-get-lockwait -q --ignore-breakage --download-only install zsh=4.2.6-1001
Reading Package Lists...
Building Dependency Tree...
The following packages will be DOWNGRADED
  zsh 
0 packages upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0  not upgraded.
Need to get 2087kB of archives. After unpacking 1524kB will be freed.
Do you want to continue? [Y/n] 
......
...... downgrade...install..yay!....
......

jro@fireant:~$ fink dumpinfo -fallversions zsh
allversions:
 bi     4.2.6-1001
 b      4.3.4-2

jro@fireant:~$ fink install zsh-4.3.4-2   
The following package will be installed or updated:
 zsh
Reading buildlock packages...
/sw/bin/dpkg-lockwait -i /sw/fink/dists/unstable/main/binary-darwin-i386/shells/zsh_4.3.4-2_darwin-i386.deb
(Reading database ... 30667 files and directories currently installed.)
Preparing to replace zsh 4.2.6-1001 (using .../zsh_4.3.4-2_darwin-i386.deb) ...
Unpacking replacement zsh ...
Setting up zsh (4.3.4-2) ...

jro@fireant:~$ fink dumpinfo -fallversions zsh
allversions:
 b      4.2.6-1001
 bi     4.3.4-2

Rails Envy: Rails vs. .NET - rematch 0

Posted by jro
on Wednesday, October 10

It’s the 9th and last video in the series, but you can order a DVD through the rails envy site.

Removing macports 0

Posted by jro
on Wednesday, October 10

From a mailing list entry by William Davis, ::

sudo rm -rf \
/opt/local \
/Applications/MacPorts \
/Library/Tcl/macports1.0 \
/Library/LaunchDaemons/org.macports.* \
/Library/StartupItems/DarwinPortsStartup

Why? Well if like me you run into some strange OS X dynamic linking issues and want to reinstall all your ports, or if you want to try out fink and make sure you don’t end up hitting your old ports applications.

Photo Carving for Dummies 0

Posted by jro
on Tuesday, October 09

Go about 1/3 of the way in and watch the remove a person from the photo example. It’s not perfect, but it’s impressive how easy it is to do. I just tried it on the site, and it is really that easy to remove stuff from a photo. While it’s not undetectable, it definitely makes for a printable picture without that guy you didn’t invite to the party.

Rails Envy: Rails vs. Coldfusion 0

Posted by jro
on Wednesday, October 03

The 2nd to last video in the series. It speaks pretty well for itself.