regx's blog

Creating subcategories for CCK Nodes in Drupal

Use the cck_taxonomy module

The CCK Taxonomy module provides a cck widget for selecting taxonomy terms and assigning them to a cck field.

findings

  1. The field updates appropriately when the term is updated.
  2. The field does not provide a taxonomy link (it could be made to do so)
  3. The selection list properly displays sub categories - like normal taxonomy item list
  4. Searching on the taxonomy field works as expected.

If you set your cck content type in the vocabulary then 2 vocabulary form items will be displayed, 1 by taxonomy and one by cck. Simply assign the vocabulary to a dummy node type to omit this behavior.
Later you can change the dummy node to a category description node, or anything else for that matter to allow taxonomy links in your cck node to provide standard taxonomy behavior (pull up an rss enabled list of content tagged with that term.

Taxonomy categories (vocabularies/terms) are much easier to edit for category list then cck nodes because you can see the full list. The only way to edit categories when using the CCK node reference technique is to goto edit content, filter the content type, make a mental snapshot, goto create content and add the new content (in this case more of a term). This method does have the advantage of providing nodes for each category, but often this is not needed.

 

 

Easy Linux Backups

I have tried most Linux Backup utilities, not all mind you but most of them. In the end I just created a simple perl script that generates and runs a single tar command. dar is a good alternative to tar since it allows splitting compressed files, but for a while dar was incompatible with the version of Ubuntu I was running so I decided tar was a better choice.

Some of the advantages to this simple backup solution.

Before you login, a word from our sponsers?

(from slashdot)
Posted by Zonk on Friday July 13, @09:11PM
from the is-that-anything-like-the-lime-in-the-coconut dept.
theodp writes "The kernel meets The Colonel in a just-published Microsoft patent application for an Advertising Services Architecture, which delivers targeted advertising as 'part of the OS.' Microsoft, who once teamed with law enforcement to protect consumers from unwanted advertising, goes on to boast that the invention can 'take steps to verify ad consumption,' be used to block ads from competitors, and even sneak a peek at 'user document files, user e-mail files, user music files, downloaded podcasts, computer settings, [and] computer status messages' to deliver more tightly targeted ads."

Comcast puts a Cast on Com

Comcast recently started blocking skypeout calls and other VOIP services. Of course when I call they deny it, but after monitoring my network and several hours of trouble shooting, the only thing left is comcast. I am running both skype and windows on my laptop, and skypeout works fine in either from the local starbucks. Once I get back on good ole comcast however my skypeout calls cut off after 7 seconds. Skype in calls still work fine. I geuss I will be leaving comcast in the very near future. Pitty, because their service has been pretty good and their network is fast.

Some good did come out of all this, while trouble shooting my network I discovered etherape which is a killer network monitor app for linux.

open office 2007 doc in earlier version of word

Go here to download the compatability pack

download from microsoft

Novell Launches Pro-Linux "Get a Mac" Spoofs

These are great!
http://blog.wired.com/cultofmac/2007/03/novell_launches.html

I think the second one is the funniest. To get it, you have to understand that Linux lets you choose between many window managers. So, in Linux you can choose the look and feel of your desktop. You can also unload one window manager and load another without rebooting.

With Mac and Windows you don't have any options, you just get what you are given. Sure both Windows and Mac have highly configurable windows managers, but so does Linux. KDE is much more configurable than either, throw in Beryl (A 3d glx rendering layer) and there is no comparison!

So in short, I can install new window managers whenever I want in Linux. For windows, it is Vista for the next 6 years or so.

10 reasons to use KDE

Personally I love KDE, but admit that all the bells and whistles take some getting used to. If you are a Windows user you will feel much more at home in kde than gnome. The default KDE desktop looks very much like Windows with the taskbar on the bottom, a start menu on the left of the taskbar and the clock in the right of the taskbar, but don't be misled KDE is not Windows. Before getting into to many details, here are the features of KDE that make it my desktop of choice. 

Drupal 5.0 Themes

I haven't had much time to play around with the themes other than the included default themes, but from what I have seen so far, the new themes are very slick! Most noticable is that you can now choose colors of different components with an Ajax / kde style color picker.
I created something similar for myclassroomhelper, where the entire theme was created using png transparency. The creaphics created a two tone style, and the user could set the color of all the elements which were stored in a mysql backend and used to generate dynamic stylesheets. All of the drop shadows and bevels were created by the foreground png graphics.

The default drupal theme seems to be doing pretty much the same thing, but the Ajax color picker is much more elegant than my table javascript solution. I am impressed, and can't wait to create my own Drupal 5.0 themes.

My new Drupal 5.0 site

I have been wanting to get my site out of Nuke for a long time now, and since I have been doing a lot of drupal development lately it seemed like a good choice. I wasn't really excited about another drupal install, so this is the new 5.0 beta. I was anxious to check out the latest drupal beta, mostly to make sure all of the modules I have been working on are forward compatible.

So what's new?

The first thing I noticed was the new web-based install. The previous installation was pretty straight forward so this doesn't save you too much. The DB is populated by the setup script, but you have to create the DB - of course, so if I am creating a db, creating the tables is not a big deal. You also have to set permissions on a config file to be readable, so it would be easier to do the entire install from a terminal. A simple php or perl script could prompt the user for the root mysql user/pass and allow creating the db for the drupal install or or allow entering a user/pass if the db is allready set up, then create the db, extract the installation, write the config and secure the permissions. But the install went very smooth.

The next thing I noticed was the default theme, Huge Improvement - Nice work!

I am not sure if there is a WYSIWYG editor by default because I am in konqueror, but from the drupal forums I do not think they ever plan on including a WYSIWYG by default which is probably for the best!

The new administration interface uses a two column layout and I think it will be much easier to use once I get used to the new layout.

Another new feature is Ajax style dropdowns for list.

Well, that is all I have noticed so far. Now to install some modules and transfer all of my nuke content.