Valid characters in a tcl proc definition
valid?
proc_with_side_effect!
Interesting.
01:52 PM, 30 Jan 2008 by Jade Rubick Permalink | Comments (0)
Dream Job [docs.google.com]
02:28 PM, 28 Aug 2007 by Jade Rubick Permalink | Comments (0)
Selecting a series of dates in Postgres [openacs.org]
11:16 AM, 11 Jan 2007 by Jade Rubick Permalink | Comments (0)
Compiling tDOM 0.8.0 on Fedora Core 5 [groups.yahoo.com]
Fun.
Okay, let's see:
cd
mkdir bash3
cd /usr/local/src
wget http://ftp.gnu.org/gnu/bash/bash-3.0.tar.gz
tar xzf bash-3.0.tar.gz
cd bash-3.0
./configure --prefix=/home/jade/bash3
make install
Wow, wasn't that fun.
Now use /home/jade/bash3/bin/bash instead of the normal bash and it should work.
It didn't.
10:39 AM, 17 Jul 2006 by Jade Rubick Permalink | Comments (0)
Open source icons [openacs.org]
12:17 PM, 09 May 2006 by Jade Rubick Permalink | Comments (0)
OpenACS 5.1.5 to 5.2.2 upgrade experience
Got errors in the upgrade on my staging server, so rebuild the database and did every stinking upgrade script manually. I should note that I do appreciate the work that these developers do, and many of these folks are very good programmers. But I did want to post where the problems occured, and who would be responsible for fixing them.
I tried changing the text from create view to create or replace
view in case that would help. I have no idea if it will.
07:23 PM, 01 May 2006 by Jade Rubick Permalink | Comments (0)
Character Encoding in AOLserver [dqd.com]
03:33 PM, 07 Dec 2005 by Jade Rubick Permalink | Comments (0)
Public shame as motivation to work out
Anyone is free to sign up. It's free, and I plan to add in a public shame page, which will show how long it's been since you last worked out.
06:44 PM, 22 Jul 2005 by Jade Rubick Permalink | Comments (0)
Tip: how to allow http traffic to your Fedora-based web-server [stanton-finley.net]
01:20 PM, 01 Jun 2005 by Jade Rubick Permalink | Comments (0)
Site-Wide Templates for Internet Sites [theses.mit.edu]
07:02 PM, 20 Jan 2005 by Jade Rubick Permalink | Comments (0)
Google stops link spamming [www.google.com]
12:59 AM, 20 Jan 2005 by Jade Rubick Permalink | Comments (0)
Log response times in Aolserver
I've commited this to oacs-5-1, so it will start appearing in OpenACS soon.
I believe I can use this in conjuction with Analog to produce reports on the amount of time each request takes...
07:53 PM, 18 Jan 2005 by Jade Rubick Permalink | Comments (0)
Problems with Postgres not starting up right
The message on the server's main page said that the database was down.
So I log into the server, take down Aolserver, and attempt to restart Postgres:
svc -d /service/servername
www:~# /etc/init.d/postgresql restart
Stopping PostgreSQL database server: postmaster/usr/lib/postgresql/bin/pg_ctl: kill: (30083) - No such process
pg_ctl: postmaster does not shut down
.
Starting PostgreSQL database server: postmaster ((null) already running.).
www:~# su - postgres
postgres@www:~$ pg_ctl stop
waiting for postmaster to shut down...2005-01-17 10:26:12 [1548] LOG: received smart shutdown request
.2005-01-17 10:26:12 [1590] LOG: shutting down
..2005-01-17 10:26:15 [1590] LOG: database system is shut down
done
postmaster successfully shut down
postgres@www:~$ exit
logout
www:~# /etc/init.d/postgresql start
01:10 PM, 17 Jan 2005 by Jade Rubick Permalink | Comments (1)
Lars explains how to use MetaWeblogAPI with lars-blogger [www.pinds.com]
08:11 AM, 04 Jan 2005 by Jade Rubick Permalink | Comments (0)
Patch to edit-this-page to allow templating code
Index: edit-this-page/templates/article-index.tcl =================================================================== RCS file: /var/cvs/ibr/packages/edit-this-page/templates/article-index.tcl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- edit-this-page/templates/article-index.tcl 6 May 2004 23:59:35 -0000 1.1.1.1 +++ edit-this-page/templates/article-index.tcl 8 Apr 2004 18:46:24 -0000 1.2 @@ -20,3 +20,9 @@ etp::get_page_attributes etp::get_content_items + +# customization as per +# http://www.thecodemill.biz/publications/blog/one-entry?entry_id=9879 +# to allow includes, etc. +eval [template::adp_compile -string $pa(content)] +set pa(content) ${__adp_output}
06:20 PM, 02 Dec 2004 by Jade Rubick Permalink | Comments (0)
Updated OpenACS and Arch docs [www.rubick.com]
07:12 PM, 30 Nov 2004 by Jade Rubick Permalink | Comments (0)
12:34 PM, 29 Nov 2004 by Jade Rubick Permalink | Comments (0)
Error while loading shared libraries with Aolserver
/usr/local/aolserver/bin/nsd: error while loading shared libraries: libnsd.so: cannot open shared object file: No such file or directory
Try ldd:
/usr/local/aolserver/bin# ldd nsd
libnsd.so => not found
libnsthread.so => not found
libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0x40018000)
libdl.so.2 => /lib/libdl.so.2 (0x400ba000)
libpthread.so.0 => /lib/libpthread.so.0 (0x400bd000)
libm.so.6 => /lib/libm.so.6 (0x400d1000)
libc.so.6 => /lib/libc.so.6 (0x400f2000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
It looks like the libraries are not being found.
Try this:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/aolserver/lib
Vinod's entry fixes it here:
http://openacs.org/forums/message-view?message_id=161815
You may need to edit your /usr/local/aolserver/nsd-postgres file to include Aolserver's lib directories.
07:15 PM, 23 Nov 2004 by Jade Rubick Permalink | Comments (0)
05:41 PM, 17 Nov 2004 by Jade Rubick Permalink | Comments (0)
How to allow someone to join a mailing list
Index: user-new.tcl
===================================================================
RCS file: /var/cvs/safe4all/packages/acs-subsite/lib/user-new.tcl,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 user-new.tcl
--- user-new.tcl 22 Jun 2004 21:06:53 -0000 1.1.1.2
+++ user-new.tcl 5 Oct 2004 17:41:39 -0000
@@ -39,6 +39,20 @@
ad_form -name register -export {next_url user_id return_url} -form [auth::get_r
egistration_form_elements]
+# safe4all.org extention
+
+set checked_p [list checked ""]
+
+ad_form -extend -name register -form {
+ {join_announce_p:text(checkbox),optional
+ {label "Receive weekly news?"}
+ {help_text "You can opt out at any point, and we do not give out your email address."}
+ {options {{"" "on"}}}
+ {html $checked_p}
+ }
+}
+
+
if { [exists_and_not_null rel_group_id] } {
ad_form -extend -name register -form {
{rel_group_id:integer(hidden),optional}
@@ -81,6 +95,21 @@
-secret_question $secret_question \
-secret_answer $secret_answer]
+ # safe4all.org
+
+ if {[string equal $creation_info(creation_status) "ok"]} {
+ if {[string is true $join_announce_p]} {
+ ns_sendmail \
+ "safe-announce-subscribe@mail.safe4all.org" \
+ $email \
+ "join safe-announce mailing list" \
+ "I would like to join the SAFE-announce mailing list. Infor\
mation on subscribing and unsubscribing are available at http://www.safe4all.or\
g/forums/forum-view?forum%5fid=13394"
+
+ }
+ }
+
if { [string equal $creation_info(creation_status) "ok"] && [exists_and
_not_null rel_group_id] } {
group::add_member \
-group_id $rel_group_id \
12:01 PM, 16 Nov 2004 by Jade Rubick Permalink | Comments (0)
Good thread on performance tuning Postgres queries [openacs.org]
03:23 PM, 10 Nov 2004 by Jade Rubick Permalink | Comments (0)
Problems with hostname on OpenACS site?
05:58 PM, 01 Nov 2004 by Jade Rubick Permalink | Comments (0)
Ruby on Rails video [media.nextangle.com]
01:49 PM, 28 Oct 2004 by Jade Rubick Permalink | Comments (0)
Clever trick for ad_form validation [openacs.org]
01:23 PM, 07 Jul 2004 by Jade Rubick Permalink | Comments (0)
Analyzing queries in Postgres [www.databasejournal.com]
12:15 PM, 30 Jun 2004 by Jade Rubick Permalink | Comments (0)
Example of after-mount callback [xarg.net]
11:54 AM, 28 Jun 2004 by Jade Rubick Permalink | Comments (0)
Setting up PHP on Aolserver [panoptic.com]
01:51 PM, 23 Jun 2004 by Jade Rubick Permalink | Comments (0)
Perl script to rename Postgres user in dump file
Thanks, Dave, Dossy, and Til.
To load in the database dump:
psql -f filename dbusername
12:44 PM, 22 Jun 2004 by Jade Rubick Permalink | Comments (0)
12:39 PM, 20 Jun 2004 by Jade Rubick Permalink | Comments (0)
Refreshing an ad_form
{pm_task_id:integer(select),optional
{section "Task"}
{label "Subject"}
{options {$task_options}}
{html
{onChange "document.log_entry_form.__refreshing_p.value='1';
submit()"}
}
{value $pm_task_id}
}
}
In this case, the form is called log_entry_form. When you submit the form, it will show the form again, this time with the value for pm_task_id and the rest of the form set. I then have a section of my form that says:
if {[info exists pm_task_id]} {
extend the form here
}
This can allow you to do things like sub-categories with ad_form.
06:19 PM, 28 May 2004 by Jade Rubick Permalink | Comments (0)
How to deal with includes and URLs
Look a lars-blogger/www/blog.adp for a good example of how to deal with this.
05:31 PM, 27 May 2004 by Jade Rubick Permalink | Comments (0)
Using TAGS files with emacs and OpenACS
01:52 PM, 11 May 2004 by Jade Rubick Permalink | Comments (0)
Use ad_url
ad_url
instead of...
parameter::get_from_package_key -package_key acs-kernel -parameter SystemURL
Thanks, Jeff!
05:22 PM, 10 May 2004 by Jade Rubick Permalink | Comments (0)
Updated my site to OpenACS 5.04
11:55 PM, 04 May 2004 by Jade Rubick Permalink | Comments (0)
07:26 AM, 03 May 2004 by Jade Rubick Permalink | Comments (0)
Nice words for project-manager [openacs.org]
I think it still needs a lot of work!
12:38 PM, 29 Apr 2004 by Jade Rubick Permalink | Comments (0)
Interesting proc: ad_return_if_another_copy_is_running [openacs.org]
05:41 PM, 23 Apr 2004 by Jade Rubick Permalink | Comments (0)
Using richtext
set richtext_list [list $description $mime_type]
set description [template::util::richtext::get_property html_value $richtext_list]
01:31 PM, 23 Apr 2004 by Jade Rubick Permalink | Comments (0)
Are you 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)
| October 2008 | ||||||
| S | M | T | W | T | F | S |
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |