Jade's weblog Archive

Are you well socialized?

I've noticed a pattern recently in people who don't seem very well socialized:

* they don't ask questions about the person they're talking with.

They either talk about themselves, or they don't talk much at all.

08:05 PM, 31 Mar 2004 by Jade Rubick Permalink | Comments (0)

Shows how to use acs_community_member_url to get the URL for a community member that is subsite aware (I've always hardcoded it).

12:41 PM, 26 Mar 2004 by Jade Rubick Permalink | Comments (0)

Upgrade from OpenACS 4.6.3 -> 5.0

Here's where I keep track of posts that seem to not yet be in the documentation, dealing with problems with the OpenACS 4.6.3 -> 5.0 upgrade:

CVS problems: http://openacs.org/forums/message-view?message_id=172430
http://openacs.org/forums/message-view?message_id=109337

A couple files that might need to be deleted. Not able to log in
http://openacs.org/forums/message-view?message_id=152200

Resolution of the files that may need to be deleted:
http://openacs.org/forums/message-view?message_id=152200

Problem with acs-lang and more
http://openacs.org/forums/message-view?message_id=152200

The big thread on the upgrade:
http://openacs.org/forums/message-view?message_id=109337

01:54 PM, 25 Mar 2004 by Jade Rubick Permalink | Comments (0)

Getting all the subsite users

set subsite_id [ad_conn subsite_id]
set user_group_id [application_group::group_id_from_package_id \
                       -package_id $subsite_id]

      select
        p.first_names || ' ' || p.last_name as who,
        p.person_id
        FROM
        persons p,
        acs_rels r,
        membership_rels mr
        WHERE
        r.object_id_one = :user_group_id and
        mr.rel_id = r.rel_id and
        p.person_id = r.object_id_two and
        member_state = 'approved'
        ORDER BY
        p.first_names, p.last_name

05:25 PM, 24 Mar 2004 by Jade Rubick Permalink | Comments (0)

site_node::get_package_url -package_key organizations

I learned this from Malte. Thanks, Malte!

12:40 PM, 11 Mar 2004 by Jade Rubick Permalink | Comments (0)

It appeared in today's Oregonian.

12:01 PM, 11 Mar 2004 by Jade Rubick Permalink | Comments (0)

Problem creating Postgres database user [archives.postgresql.org]

postgres73@www:~$ createuser rubick-dev
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) y
psql: FATAL 1: user "postgres73" does not exist
createuser: creation of user "rubick-dev" failed

09:27 PM, 09 Mar 2004 by Jade Rubick Permalink | Comments (1)

When apt-get won't upgrade [lists.debian.org]

I tried to upgrade and got a message back:

The following packages have been kept back
libssl-dev openssl
0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

You have to type apt-get dist-upgrade to overcome this.

03:16 PM, 08 Mar 2004 by Jade Rubick Permalink | Comments (0)

Linksys BEFW11S4 router doesn't support Macintosh firmware upgrade

I at least have not found a way to do it, without borrowing a PC.

Unfortunately, that may mean I can't use my new Powerbook from work at home, wirelessly, because apparently older wireless routers can't deal with 802.11g, or Airport Extreme.

Maybe next time I'll buy an Apple router.

Interestingly, I talked with tech support, which was a call center in India. It was weird after reading all of these articles about call center and programmer outsourcing, to actually be talking with a real live person who was benefiting because of outsourcing.

Outsourcing has become a big issue in the US right now, because a lot of white collar jobs are being shipped overseas to lower costs. Huge debates reign on Slashdot and the editorials of the NY Times.

06:47 PM, 07 Mar 2004 by Jade Rubick Permalink | Comments (4)

I've released the alpha version of project-manager.

06:56 PM, 05 Mar 2004 by Jade Rubick Permalink | Comments (0)

Points of Light Foundation link [www.pointsoflight.org]

I received a very nice write-up in the Points of Light Foundation award page.

12:17 AM, 05 Mar 2004 by Jade Rubick Permalink | Comments (0)

This allows you to follow function definitions by pressing M-.

I can't wait to try this out.

03:24 PM, 03 Mar 2004 by Jade Rubick Permalink | Comments (0)

Using Perl to replace items in files [techrepublic.com.com]

This is from Tech Republic. Unfortunately, they don't offer the URL in their emails...


MODIFY FILES WITH PERL

When you're writing scripts or installation programs that need to
modify data in specific files, the ability to automatically change
files can be a very useful thing. For example, this ability comes in
handy when you have a file from which you need to remove a certain
string or word, when you're changing an IP address in a number of
files, and so on.

Manually modifying these files can be time-consuming, especially if
it's a repetitive task. However, you can use the Perl program to
accomplish this. All Linux distributions come with this program.
Execute the following:

$ perl -pi -e 's|[old_string]|[new_string]|g' [file]

The strings can be simple words or regular expressions. Let's say you
changed the location of a directory (e.g., from /var/spool/mail to
/var/spool/messages), and you want to change every file in the /etc
directory to reflect the path change. Execute the following:

$ find /etc -type f| xargs perl -pi -e
's|\/var\/spool\/mail|\/var\/spool\/messages|g'

In this example, we use find and xargs to ensure that the system only
runs the command against regular files--not accidentally against
directories or other file types. This also walks the /etc directory
tree and will recursively change all files.

We've written the paths as \/var rather than /var because we need to
escape the / character, which we can also use as a delimiter in the
Perl expression. (Instead of using |, you can also use /, #, and @ as
delimiters.)

To remove a word from an entire file, execute the following:

$ perl -pi -e 's|myword||g' file

This basically replaces "myword" with nothing. (Note that there's no
space between the second and third delimiters.)

Using Perl in this fashion, you can get extremely creative when
modifying configuration files or any other type of data. Think of it as
an automatic search-and-replace function.

11:46 AM, 03 Mar 2004 by Jade Rubick Permalink | Comments (2)

XML