October 29th, 2008
Along with goobertech's new look, I've redone how the popular content section works. Previously, I filtered popular content by adding a popular tag to a node I deemed "popular".
Now -- it all runs by itself via the radioactivity module for Drupal. It's mighty clever. When a node (piece of content) is viewed, it adds "energy" or radioactivity to the entry. When an entry is commented on it gets two units of energy. The more energy a blog entry has, the higher in the list it goes. There's even a setting to adjust the half-life of the energy so old popular content decays and is pushed back in the list.
Gonna give it a try anyway and see how it ends up working out. Right now, the content listed has only a few clicks, so initially, the list should be fluctuating a lot. As the module grows older and learns more, the list should mellow out and be a better representation of the truly popular content.
August 11th, 2008
So a lot of friends use livejournal exclusively for blogging. And I'm hip to it's simplicity and old-skool history. But -- I've got my own damn site and really don't want to maintain blog entries anywhere else. And on today's internets, every other darn social networking site has a blog too.
So I've held out on the livejournal scene in hopes of finding a way to autofill the content with Goobertech's rss feed like facebook. And lo and behold, someone clever has gone and made a Drupal module just for this purpose. :) So this entry is the test to see if it'll work.
See my livejournal here. If this is duplicated there, it all works. :)
June 12th, 2007
Mon Deiu, what a nightmare. Drupal quit working, gallery quit working, lots of settings that used to be there -- now mysteriously gone. I had to grab my old table from the old site and rebuild the damn thing from scratch. Then re-install gallery and reset all of the Drupal 5.2 setting customizations that were made.
Damn phpMyAdmin. They really ought to add a "are you sure?" button to the delete buttons. That's twice I've eliminated tables inadvertently without meaning to. Thank Jebus for backups.
June 10th, 2007
Here it is -- soon you won't notice any difference between this "new" site and the old one. Maybe you don't notice anything already. Shows how much attention you pay to detail. But here are some clues...
- This funny symbol [’] has replaced apostrophes in strange places. Other ascii problems emerge every once in a while, too. This has to do with the utf coding of the database. I've found it easier and quicker to fix this by hand when they're found. I'll get 'em all eventually.
Update -- I think I got 'em all. With the exception of a few entries in the Rabbit's guestbook.
- The gallery works fine, but things look a little funky for now. This is a simple fix of uploading my custom gallery themes. It's on the "to-do" list next.
Update -- this is now finished, with some further tweaking to pretty things up a bit (like the Slideshow page).
- Some other little tidbits have yet to be upgraded, like the links and contact forms. And I still haven't proof-checked all the pages.
Update -- Done!
Basically I'm just anxious to switch and since the database has successfully been swapped and upgraded (not without much pain and trial and error, mind you), I've gone for bust and made the switch so I don't have to update two sites.
June 9th, 2007
Now that's how it's supposed to happen! Works the first time like a charm. With the re-porting of goobertech from Drupal 4.7 to 5.0, I first recreate the entire site on a new location so the original can stay un-adultered and live. After re-doing the new drupal installation (with a few errors and tribulations), I set about duplicating the 1.47 gigs of gallery data on the new location. Here's how I did it:
- First Backup the g2data folder. I did this easily with shell access. The command is...
tar -czvpf gallerybackup.tgz g2data/
This created a tarred zip file of the entire gallery file data. This includes all of the albums and actual pictures/files.
- Then I backed up the gallery database. Since I combine my drupal and gallery databases for some fancy and complex site manuevers, this took a bit more doing. The drupal database already existed and since phpMyAdmin can only handle about 5 Mb without timing out, I had to move most of the gallery tables one at a time. I simply exported them from the original database, and then opened them through sql in the new database.
- Now the fun part -- waiting. It took almost 5 hours to download the zipped gallerybackup file and then upload it to the new location.
UPDATE - with my new shell interface as root on the server (use putty), I can now do all this from shell. Now download/upload. The trick at this step is to copy the backup file to the new user directory. Inside the old user directory (with the backup file) type:
cp gallerybackup.tgz /home/new_user_dir
- Meanwhile, I uploaded the new gallery 2 system files and installed a virgin copy in the new location. I simply let gallery do its own database table creating and gave it a new g2data folder to get a clean install.
- Once the backup file was uploaded, I renamed the g2data folder used by the fresh install to something else, (g2data2), for example. Then I unzipped the backup with this command in shell...
tar -xzvpf gallerybackup.tgz
So far so good.
- Then I recursively chmodded the entire directory with this...
chmod -R 777 g2data/
Now all the files and directories in g2data have read/write permission.
- Without touching the gallery install yet, I deleted all the gallery tables from the new database. Then I used the backed up tables from the original database to recreate them with phpMyAdmin's sql tab.
- Now I browsed to my gallery install (direct link). The gallery wizard did an upgrade and all was well!
- The last step was to copy the original site's .htaccess file (the one in the root directory). Otherwise gallery had login/permissions errors. I also had to update the member data in gallery (the owner, specifically) to match the new owner/admin name in drupal.
And that's it -- a perfect relocation with no links lost. I did have to re-activate the urlRewrite module and the matrix theme. But afterwards, everything simply worked. As it should be!