New edition Feedreader package [www.timedeskblog.com]
The feedreader and blogger are slowly beeing tied together to provide an interesting publishing platform because of optional dependancies and increased management features.
03:58 AM, 30 Dec 2005 by Ben Koot Permalink | Comments (1)
Blog title changed [openacs.org]
09:29 PM, 26 Dec 2005 by Nick Carroll Permalink | Comments (5)
Fresh ideas forum [openacs.org]
03:24 AM, 25 Dec 2005 by Ben Koot Permalink | Comments (0)
Get some life into this blog [openacs.org]
Why not turn this blog into a a stimulating web space. One thing I feel we need to change as soon as possible is the default stylesheet and add some color to it. The folks over at Coudal are constantly playing with great header pictures.
It can't be that complicated for us to add a header image, and offer a proper default 3 collumn blog layout as an option. Photodb already has code that allows pictures to be displayed on the photodb frontpage, so all we need is an extension to blog. With the stupid blog calendar removed, and the max content b
Less is more.
Who's got the code to make it as simple as possible to add the picture and update, without digging into the templating system? (combination of blog and photobd maybe) with the max content bug fixed this would create a realy nice blog package.
Maybe it's an interesting pet project for a developer, whereby duplicate data entry options are eliminated. Makes a lot of sense to me, migrating images with text. There's realy no reason to have seperate packages for such simple tasks.
Next question, who's got the best picture. Why no start a competition?
Just a thought
Ben
Questions?, chat with me now
Added bonus:
- Less documentation needed. (end-users don't read manuals!)
- Reduces bugs by combing packages as part of spring cleanup.
- More userfriendly
- More incentives for community members to add improvements.
06:07 PM, 24 Dec 2005 by Ben Koot Permalink | Comments (1)
Share your ideas [openacs.org]
Once bugs are fixed, the posting can be moved draft mode, so we still have documentation about what was changed and why.
If the categories would be used throughout the toolkit, the list can also be used a a documentation manual.
This blog also is an easy newbie answer to the question, what's OpenACS, as everything is available from one page.
- this is a work in progress -
05:16 PM, 24 Dec 2005 by Ben Koot Permalink | Comments (2)
A diff proc for comparing changes between revisions [openacs.org]
07:34 PM, 25 Nov 2005 by Nick Carroll Permalink | Comments (0)
Intro
05:48 PM, 16 Nov 2005 by Ben Koot Permalink | Comments (0)
How to retrieve package_id for a mounted subsite package.
10:54 PM, 29 Aug 2005 by Nick Carroll Permalink | Comments (0)
08:04 PM, 02 Aug 2005 by Nick Carroll Permalink | Comments (0)
Howto: Expand and Use acs-subsite Based Member Roles [openacs.org]
09:45 PM, 19 Jul 2005 by Nick Carroll Permalink | Comments (0)
How to configure AOLServer behind a proxy
If you have a installation of OpenACS that is behind a proxy you will soon realize some stuff will break:
* Installation of modules from OpenACS repository
* News Agregator
* Any application using ns_httpopen, ns_sock...
In order to fix this you have to change two files:
* config.tcl
* [AOLSERVER]/modules/tcl/http.tcl
Changing your server configuration
Go to the section ns/parameters and add these lines under the section:
ns_param proxy your-cache.server
ns_param proxy_port xxxx
Changing the proc ns_httpopen
In the file [AOLSERVER]/modules/tcl/http.tcl go to the line
set fds [ns_sockopen -nonblock $host $port]
And change it to
set proxy [ns_config ns/parameters proxy $host]
set proxy_port [ns_config ns/parameters proxy_port $port]
set fds [ns_sockopen -nonblock $proxy $proxy_port]
set uri http://$host$uri
Now if you restart your server it will work just fine.
Thanks to Stefan Vogel for the fix [1].
[1] http://www.mail-archive.com/aolserver@listserv.aol.com/msg06933.html
07:55 PM, 02 Jul 2005 by Nick Carroll Permalink | Comments (0)
Using group by feature of list builder
-groupby { values { "Day" { { groupby time_stamp } { orderby time_stamp,desc} } } }
The list is { groupby_name { { groupby column } { orderby column,order } } }
Add this to the query as any other filter with template::list::filter_where_clauses.
You can pass as many lists in to the values parameters of group by as columns you want to group on. If you add the listfilters tag to your ADP file, it will show the available grouping options as filters. Make sure you add groupby:optional in ad_page_contract.
Another trick is to hide the column when it is used to grouping. Just dynamically set the hide_p paramter for the list element that is in groupby.
12:05 PM, 10 Jun 2005 by Dave Bauer Permalink | Comments (0)
Replace annoying ^M characters in Emacs
^M = C-q C-m
Resulating in this sequence:
M-%
Query replace: C-q C-m with: C-q C-j
01:02 AM, 10 Jun 2005 by Malte Sussdorff Permalink | Comments (0)
del.icio.us [refresh.dk]
03:44 AM, 08 Jun 2005 by Ben Koot Permalink | Comments (4)
No need for daemontools on MacOS X Tiger
Just copy/paste the following into a file called org.openacs.OpenACS.plist.
################# COPY BELOW ###########################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTD
s/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.openacs.OpenACS</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/var/lib/aolserver/openacs/etc/daemontools/run</string>
</array>
<key>ServiceDescription</key>
<string>OpenACS Service</string>
<key>UserName</key>
<string>ncarroll</string>
<key>GroupName</key>
<string>web</string>
</dict>
</plist>
################# COPY ABOVE ###########################
Then use the command below to start up the service:
$sudo launchctl load /Library/LaunchDaemons/org.openacs.OpenACS.plist
And the command below to stop the service:
sudo launchctl unload /Library/LaunchDaemons/org.openacs.OpenACS.plist
Couldn't be simpler.
01:31 AM, 08 Jun 2005 by Nick Carroll Permalink | Comments (1)
PostgreSQL Launchd on Tiger
Creating a PostgreSQL Launchd file allows your system to start up postmaster when your Mac boots.
This tip shows you how to create this file.
Use a text editor such as emacs to create the PostgreSQL Launchd file:
$ emacs /Library/LaunchDaemons/org.postgresql.PostgreSQL.plist
Copy and paste the following into the file.
################# COPY BELOW ###########################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.postgresql.PostgreSQL</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/pgsql/bin/pg_ctl</string>
<string>-D</string>
<string>/usr/local/pgsql/data</string>
<string>-l</string>
<string>/usr/local/pgsql/data/server.log</string>
<string>start</string>
</array>
<key>ServiceDescription</key>
<string>PostgreSQL Server</string>
<key>UserName</key>
<string>postgres</string>
<key>GroupName</key>
<string>web</string>
</dict>
</plist>
################# COPY BELOW ###########################
Next reboot your Mac and check to see if postmaster started up.
Or you can try the following commands:
$ sudo launchctl load /Library/LaunchDaemons/org.postgresql.PostgreSQL.plist
$ sudo launchctl start org.postgresql.PostgreSQL
10:37 AM, 07 Jun 2005 by Nick Carroll Permalink | Comments (1)
Emac Tricks -- auto-logging your shell buffer
09:28 AM, 06 Jun 2005 by Eric Wolfram Permalink | Comments (0)
Debugging trick
tail -f /path/to/aolserver-error.log |grep "--"
Then while I'm working on OpenACS, I use ns_log Notice "--myvar: $myvar" to see pseudo-breakpoints in the code.
05:14 PM, 04 Jun 2005 by Jade Rubick Permalink | Comments (0)
Configuring OpenACS to use Postfix MTA (on MacOS X)
Once postfix is installed, all you need to do is enable it to start as your default Mailserver in /etc/hostconfig. Proceed with configuring Postfix, then onfigure OpenACS Notification Parameters to use Postfix. Finally, restart Postfix for the configurations to take effect. You may also need to restart your OpenACS server as well.
NOTE 1: Replace hostname.mydomain.tld with the hostname of your server. This should be something like openacs.org.Edit /etc/hostconfig to enable Postfix on PantherNOTE 2: I've assumed that the OpenACS server will run as the service0 user.
NOTE 3: You need to create the Maildir directory in the home directory of the service0 user.
$ mkdir /Users/service0/Maildir
MAILSERVER=-YES-Edit /etc/postfix/main.cf
myhostname=hostname.mydomain.tldEdit /etc/postfix/virtual
myorigin=$myhostname
inet_interfaces=$myhostname, localhost
mynetworks_style=host
virtual_maps=regexp:/etc/postfix/virtual
home_mailbox=Maildir/
Add the following regular expressions:Edit /etc/postfix/master.cf
/^notification-(.*)@hostname\.mydomain\.tld/ service0
/^bounce-(.*)@hostname\.mydomain\.tld/ service0
Uncomment line 77 and change:OpenACS: Configure Notifications Parameters
#smtp inet n - n - - smtpd
to
smtp inet n - n - - smtpd
EmailDomain: hostname.mydomain.tldOpenACS: Configure Mail Services Lite Parameters
EmailQmailQueue: /Users/service0/Maildir
EmailReplyAddressPrefix: notification
EmailQmailQueueScanP: 1
BounceDomain: hostname.mydomain.tldRestart Postfix
BounceMailDir: /Users/service0/Maildir
EnvelopePrefix: bounce
$ sudo Postfix stop
$ sudo Postfix start
07:39 PM, 25 May 2005 by Nick Carroll Permalink | Comments (0)
Advocacy
01:54 PM, 25 May 2005 by Ben Koot Permalink | Comments (2)
Blogroll as "How to navigation"
02:13 PM, 24 May 2005 by Ben Koot Permalink | Comments (0)
The idea
02:03 PM, 24 May 2005 by Ben Koot Permalink | Comments (0)
Bookmarklet [openacs.org]
08:13 AM, 24 May 2005 by Ben Koot Permalink | Comments (0)
A simple way to change
07:59 AM, 24 May 2005 by Ben Koot Permalink | Comments (0)
Categories
07:53 AM, 24 May 2005 by Ben Koot Permalink | Comments (0)
Call for non- or less-technical tips
11:56 AM, 23 May 2005 by Nick Grossman Permalink | Comments (0)
OpenACS Tip of the Week: Introduction to OpenACS
OpenACS Packages
OpenACS has transformed from a monolithic code base (3.x and below) to a neater modularised code base in the latest releases (4.x and above). Applications that use the OpenACS framework are now developed in self-contained modules called "packages". All packages are structured using the Model-View-Controller (MVC) pattern.
There are core packages such as the kernel, templating and authentication packages that give you the basis for a web application that supports user, group and application management. You can extend the functionality of a vanilla installation of OpenACS by plugging in already developed packages such as a calendar or wiki through a package installer interface. Or if you can't find a package that provides the functionality you need from OpenACS's extensive package catalog, then you can easily develop your own package.
A package contains an XML based .info file containing meta-data for the package. The core packages use the .info file for dependency checking, as well as for defining properties and specifying call-back commands. The package can also have an SQL directory that contains all SQL files for generating the data model for the application. There is a TCL directory that contains all library procedures for the application. Finally, there is a WWW directory that contains all the presentation logic for the Web application. The structure of the notes package is as follows:
notes
+ notes.info
+ sql
+ oracle
+ postgresql
* notes-create.sql
* notes-drop.sql
+ tcl
* notes-apm-callbacks.tcl
* notes-init.tcl
* notes-procs.tcl
+ www
* index.adp
* index.tcl
* index.xql
* index-postgresql.xql
* index-oracle.xql
In the SQL directory, the notes-create.sql file is called only once when the application is installed, and is used to create the data model in a database. Currently there is support for both Oracle and PostgreSQL in OpenACS, so depending on which RDBMS you are using, the notes-create.sql will be executed from the SQL sub-directory that corresponds to the RDBMS used.
In the TCL directory, the notes-apm-callbacks.tcl file contains procs that get called when the application is installed/mounted. The notes-init.tcl contains TCL procs that initiate the application when AOLServer starts up. The notes-procs.tcl contains TCL procs that can be used by files in WWW or by other packages.
In the WWW directory, each web page consists for an XQL file, a TCL file and an ADP file. The ADP file contains HTML and templating tags for presentation of data from the data base. The XQL file is an XML based file that contains SQL statements that can be used by the TCL file. SQL statements common to all database systems can be placed in file.xql, whereas RDBMS specific SQL statements can be placed in file-postgresql.xql or file-oracle.xql. The TCL file contains the logic for executing SQL statements and then pushing the returned data to the ADP template file.
That just about covers OpenACS and packages from a high-level overview. In future posts we will start blogging about more useful features in OpenACS.
11:02 AM, 23 May 2005 by Nick Carroll Permalink | Comments (0)
Welcome to the hints and tips blog
11:01 AM, 23 May 2005 by Jade Rubick Permalink | Comments (1)
| January 2005 | ||||||
| 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 | |||||