Welcome
 

Making volume labels

Monday, May 12th, 2008 Comments Off

I always forget how to make a volume label. Here is a page that rounds up various methods for different filesystems:

www.debuntu.org/device-partition-labeling

The part on labeling FAT filesystems is not quite right. It works, but there is a better way. First make sure you have the debian package “mtools” installed:

To see if there is a label already there:
sudo mlabel -i /dev/device -s ::

To write a new label:
sudo mlabel -i /dev/device ::newlabel

In the place of “/dev/device” you should use something like “/dev/sdd1″.

 

Blog stuff to look at

Thursday, March 29th, 2007 Write a Comment

I fixed a bug

Thursday, March 29th, 2007 1 Comment

I fixed a small problem in Lyceum. When you go to the “Site Admin” and do certain actions the page goes very plain. It is caused by the header not being included - which in turn is caused by this:

include_once ('admin-header.php');
include_once (WPADMININC . 'admin-header.php');

The first line is the one that caused the problem, the second line is the correct version. “WPADMININC” is a macro that contains the location of the admin-header.php file. So without it the header is not shown.

This is not a big deal on its own, but what IS a big deal is that I submitted this to the official Lyceum bug tracker. That was my first contribution to open source software! Woooooo!

You can see the tracker here: http://source.ibiblio.org/trac/lyceum/

My bug is #773: http://source.ibiblio.org/trac/lyceum/ticket/773

New theme - Silver Lexus

Monday, March 26th, 2007 Write a Comment

Yay, another theme. Very slick looking. Seems to be mostly working. I replaced the header image with something Olsen related.

Another theme - 1024px

Monday, March 26th, 2007 Write a Comment

I have another theme up - this one is called 1024px. It has a simple look and is very clean. Plus the comments work!

New theme - AndyBlue

Saturday, March 24th, 2007 Write a Comment

I installed a new theme called AndyBlue. I made a small modification so the search works, but that’s it. The comments don’t work yet. Otherwise it seems to work ok but I am sure there is more work to do. Let me know if you find any strangeness.

What is this Lyceum thing?

Thursday, March 22nd, 2007 Comments Off

Here is a good article written by one of the developers of Lyceum:

Lyceum: One installation, many (open source) blogs

It gets technical fast but if you like that then you should like the article. I think it may help me import more themes, as it explains some of the database schema.

The author also writes about his teams’ project methods and tools. Good stuff. Here is a quote from the article I liked:

Any software project requires proper infrastructure. No matter how big or small, no matter how few programmers, there are two things that every software project lasting more than a week should absolutely have: (1) source control, and (2) issue tracking.

Amen.

For some reason the developers here don’t seem to like issue tracking…

If you are a new user here…

Tuesday, March 20th, 2007 Write a Comment

Here is a guide for new Lyceum blog users:

First steps for Lyceum end-users

A good place to start.

Exporting a MySQL table to a CSV file

Tuesday, March 20th, 2007 Write a Comment

A little trick I found on the net. The example I found was wrong, so I will show the working version. First the original web page:

http://www.debianadmin.com/…

Now the meat:
mysql database -e "SELECT * FROM table" | sed 's/\t/","/g;s/^/"/;s/$/"/' > yourfile.csv

A little explanation. When you use “-e” with mysql there is an implicit “-B”. That means your output is delimited with tabs. Then sed does these things:

  1. Change all the tabs to “,”
  2. Add a ” to the beginning of each line
  3. Add a ” to the end of each line

Voila! You have a CSV file. Have a ball.

Post Levels Plugin

Monday, March 19th, 2007 Write a Comment

This is pretty cool, Vito pointed it out to me:
http://fortes.com/projects/wordpress/postlevels/

It allows you to assign different security levels to users and posts. Good if you want to hide things from anonymous users.

I have installed it as a system plugin so it is automatically activated for all users.