Time Until Wedding
Days
Hours
Minutes
Seconds
 
Navigation
 
Search
 
My Usable Projects
 
Reading...
 
Listening...
 
Random Image
ROGERS__0587.jpg
 
Archives
 
Me. Elsewhere.
 
Feeds and Such

Google Reader or Homepage
Add to My Yahoo!
Add to Technorati Favorites!
Bookmark del.icio.us
Bookmark Furl
Bookmark Spurl
 
Darcy
 
Things I Like
EFF
 
License
 
State of the Website Address

This is a post from a previous system. Information, links and images may not be vaild.

I’ve been wokring on alot of web apps recently, and I’ve been cleaning up the 404’s and misc. pages around velvetcache.

Today I tried (reasonably hard) to get typo running. I never did, probably because there seems to be absolutely no documentation out there and I don’t know ruby. Instead I dropped in a copy of WordPress using Dreamhost’s excellent One-Click install system.

I’ve got to say, WordPress is extremely nifty, and the amount of plugins is enormous. If you want to look at it it’s at http://typo.velvetcache.org/ (dead link), though to be honest it’s just a wordpress blog with some broken css (plugin issues).

I’m going to play with it some more and try to theme it. It’s a really nice app with lots of support, and to be honest, I doubt I’ll ever “finish” my system (I’m still inserting new blog posts via phpMyAdmin!) and even if I do, it won’t be anywhere near as cool. I guess we’ll see.

Posted August 24th, 2006 - Permalink
Categories: PHP - Themes - Wordpress
No Comments »
 
PHP Notepad

This is a post from a previous system. Information, links and images may not be vaild.

Last semester I used the program KJots alot for taking notes in my computer classess. It’s a great program, but it had some glitches I didn’t like and was platform specific.

For a long time I had the notion of making my own similar program, either in nice portable Java or as a web technology. This afternoon I had about three hours between classes and whipped up a basic frame of the system. I skipped the “making it pretty” part since I was just getting it going. It needs that, plus you can’t save changes yet, but other than that it’s there. I’d finish it up, but I have class in about 10. Anyway, check out my demo/live version here. User is “demo@example.com” and pass is “demo”. You can get a clean copy of the source at this link. Hopefully some of this code can be built into lucidGW, esp. the authentication code.

Posted August 22nd, 2006 - Permalink
Categories: Lucid Groupware - PHP - School
No Comments »
 
Lucid Groupware (Again)

This is a post from a previous system. Information, links and images may not be vaild.

Reached a bit of a milestone (for me) today. I managed to get the first piece of Lucid Groupware operating at revision 17. This is a big deal because I laid alot of ground work to get here.

Even so, it’s still pretty messy in the source, and the tree has undertaken many mutations as I change my mind about different aspects of the project, mostly the templating system and the plugins. I’ll probably do a bit more work, perhaps get a single core module running, then kick into documentation mode and solidify the standards for the project.

I really hope that once the core is built plugins should become a snap. I also need to take the time to fix my local php installation to add pear, it seems my Ubuntu installation didn’t bother to add it (?). Once I’ve done that I can switch this stuff over to MDB2, which should be a learning experience.

If you happen to be reading this and are a PHP guru, check out the code and tell me what I’ve done wrong :)

Posted August 20th, 2006 - Permalink
Categories: Lucid Groupware - PHP
No Comments »
 
VIM, Java, and School

I spent a little time setting up VIM today, and thought I’d share my .vimrc. Most of these configs are from the beastly , but well documented, file at http://www.amix.dk/vim/vimrc.html. Mine’s a bit simpler, but it does what I want from it. Always been a VIM fan.

" John's VIM Config
" www.velvetcache.org
" Turn off VI compat
set nocompatible
"Set shell to be bash
set shell=bash
set history=500
" Lets use the mouse!
set mouse=a
" This is the most important line here...
syntax enable
" Set font (GUI)
set gfn=Monospace 10
set encoding=utf-8
hi MatchParen
guifg=#000000
guibg=#D0D090
set ruler
" Highlight Matching parens.
set showmatch
set mat=2
set hlsearch
" Kill all those crummy swap/backup files
set nobackup
set nowb
set noswapfile
set noar
" Make tabs only 2 spaces
set tabstop=2
" Auto-indent / Smart-indent
set ai
set si
" No more \a bells!
set visualbell

On other fronts, I start school again on Monday, which in itself partially prompted the VIM editing, since I wanted some highlighting on Java files andwasn’t getting it. This should be an interesting semester, since between my Java class (hehe..), data structures and my job I’ll be juggling the syntax for three or four languages at once. Good times.

Posted August 19th, 2006 - Permalink
Categories: Linux - School
No Comments »
 
sed, perl, rename

This is a post from a previous system. Information, links and images may not be vaild.

Yesterday I spent 10, maybe 20 minutes poking around the internet looking for some sort, any sort, of batch renaming utility for linux. I knew there had to be one somewhere, I mean, come on. I eventually found a batch file that ran into some sed that wasn’t really what I wanted, but I figured I could pick apart the sed and figure it out.

Bad idea, I ran it without really testing it, and it ate all of my files, every single one. Luckily I had backups, and I started pulling them off the server. Today I wrote a Perl script to do the job, and finished off with one more Google search to see if I couldn’t find something simpler.

I guess my problem was searching for “batch rename” because there were no good results, but I found the nix command rename this time and check out the man page. Wow, stupid me, I re-invented the wheel today,and didn’t do it nearly as well.

Whatever, I can live with that, and it got me writing some Perl, which I haven’t done in a long time. So here for your consumption is my Perl script that will let you blow your foot off, but can get the job done for substitution.

#!/usr/bin/perl  if($#ARGV < 2) {   print "Directory: ";   $directory = <>;   chomp($directory);   print "Replace: ";   $find = <>;   chomp($find);   print "With: ";   $with = <>;   chomp($with); } else {   $directory = $ARGV[0];   $find = $ARGV[1];   $with = $ARGV[2]; }  opendir(DIR, $directory) || die "can't opendir $directory: $!"; @dots = readdir(DIR); closedir DIR;  foreach(@dots) {   $copy = $_;   if( $_ =~ s/$find/$with/ )   {     system("mv $copy $_");   }   }
Posted August 17th, 2006 - Permalink
Categories: Linux - Perl
No Comments »
 
More Posts
« Older
Newer »