Sting | 16 May 08:36
Picon

About format code using {code:[Java]}


Hi, everyone! When I use {code} to format my java code, I don't know which one is the right "command".
{code:Java} or {code:java}, or even {code:[Java]}? And also I don't konw how to mark the end of the code. If I have a java method to post and I use:
{code:Java}
//my method here
public void sayHello() {
    System.out.println("hello");
}// the end of the method
 
Other expressions needn't to be formatted.
 
The problem is everything under {code:Java} is formatted.
 
Thank you very much!
--
Best regards!
Sting
_______________________________________________
SnipSnap-Users Mailing List
snipsnap-users <at> snipsnap.org | http://snipsnap.org/
http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
Michael Kaltschmidt | 16 May 13:30

Trademark-Symbol breaks link-macro


Hello everyone,

The trademark symbol ™ breaks the link macro, if it's used as a link label. The registered-char ® for example works flawlessly.
As I'm using the radeox-rss macro from http://tools.wootanga.de/, the links are automatically generated and contain the chars from the source of the feeds.

Converting (TM) to &#153; would help, but I don't want to replace each problematic char once I realize a problem.

Is there a clean way to fix that?

Regards, Michael
Michael Kaltschmidt
Technik Intranet
Abbott GmbH & Co KG
Knollstrasse 50
67061 Ludwigshafen
Tel +49-(0)-621-589 3105


============================================================================================================================
The information contained in this communication is confidential, may be subject to legal privileges, may constitute inside information, and is intended only for the use of the addressee. It is the property of Abbott Laboratories or its relevant affiliate. Unauthorized use, disclosure or copying of this communication or any part thereof is strictly prohibited and may be unlawful. If you have received this communication in error, please notify Abbott Laboratories immediately by return e-mail and destroy this communication and all copies thereof, including all attachments.
=============================================================================================================================
_______________________________________________
SnipSnap-Users Mailing List
snipsnap-users <at> snipsnap.org | http://snipsnap.org/
http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
Longman, Bill | 16 May 18:18
Favicon

Re: About format code using {code:[Java]}

All you should have to do is use a final "{code}" like this:
 
{code}
import foo;
public void callML() {
  System.out.println("Using two codes");
}
{code}
 
And I believe the default is Java, so you don't "really" need it.
 
Bill

From: snipsnap-users-bounces <at> snipforge.org [mailto:snipsnap-users-bounces <at> snipforge.org] On Behalf Of Sting
Sent: Monday, May 15, 2006 11:36 PM
To: snipsnap-users <at> snipforge.org
Subject: [SnipSnap-USERS] About format code using {code:[Java]}


Hi, everyone! When I use {code} to format my java code, I don't know which one is the right "command".
{code:Java} or {code:java}, or even {code:[Java]}? And also I don't konw how to mark the end of the code. If I have a java method to post and I use:
{code:Java}
//my method here
public void sayHello() {
    System.out.println("hello");
}// the end of the method
 
Other expressions needn't to be formatted.
 
The problem is everything under {code:Java} is formatted.
 
Thank you very much!
--
Best regards!
Sting
_______________________________________________
SnipSnap-Users Mailing List
snipsnap-users <at> snipsnap.org | http://snipsnap.org/
http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
Jean du Plessis | 16 May 16:13
Picon

Non-Serializable error

Hi

I am running the SnipSnap WAR under Jboss 3.2.4 on linux and MySql.

I get the following errors in my log files when using the wiki. However the wiki seems to be working fine.
Is there anyway to avoid the errors happening? They occur for almost any action I take in the wiki.

Thanx
Jean

2006-05-16 16:10:25,759 ERROR [org.apache.catalina.session.ManagerBase] Attempting to add non-Serializable object to session: org.snipsnap.app.Application <at> 1750345 class org.snipsnap.app.Application
java.lang.RuntimeException
        at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1212)
        at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
        at org.snipsnap.net.filter.InitFilter.doFilter(InitFilter.java:314)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.snipsnap.net.filter.GZIPFilter.doFilter(GZIPFilter.java:35)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:297)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:371)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:731)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663)
        at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:859)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)


2006-05-16 16:10:25,769 ERROR [org.apache.catalina.session.ManagerBase] Attempting to add non-Serializable object to session: User[jeandp,pass set,jeandp <at> gmail.com,Active,Editor:Admin] class org.snipsnap.user.User
java.lang.RuntimeException
        at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1212)
        at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
        at org.snipsnap.container.DefaultSessionService.getUser(DefaultSessionService.java:196)
        at sun.reflect.GeneratedMethodAccessor214.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.codehaus.nanning.Mixin$InvocationImpl.invokeNext(Mixin.java:119)
        at org.codehaus.nanning.Mixin.invokeMethod(Mixin.java:194)
        at org.codehaus.nanning.AspectInstance.invoke(AspectInstance.java:88)
        at $Proxy39.getUser(Unknown Source)
        at org.snipsnap.net.filter.InitFilter.doFilter(InitFilter.java:319)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.snipsnap.net.filter.GZIPFilter.doFilter(GZIPFilter.java:35)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:297)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:371)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:731)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663)
        at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:859)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)

_______________________________________________
SnipSnap-Users Mailing List
snipsnap-users <at> snipsnap.org | http://snipsnap.org/
http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
Jean du Plessis | 17 May 08:34
Picon

Non-Serializable error

Hi

I am running the SnipSnap WAR under Jboss 3.2.4 on linux and MySql.

I get the following errors in my log files when using the wiki. However the wiki seems to be working fine.
Is there anyway to avoid the errors happening? They occur for almost any action I take in the wiki.

Thanx
Jean

2006-05-16 16:10:25,759 ERROR [org.apache.catalina.session.ManagerBase] Attempting to add non-Serializable object to session: org.snipsnap.app.Application <at> 1750345 class org.snipsnap.app.Application
java.lang.RuntimeException
        at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1212)
        at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
        at org.snipsnap.net.filter.InitFilter.doFilter(InitFilter.java:314)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.snipsnap.net.filter.GZIPFilter.doFilter(GZIPFilter.java:35)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:297)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:371)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:731)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663)
        at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:859)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)


2006-05-16 16:10:25,769 ERROR [org.apache.catalina.session.ManagerBase] Attempting to add non-Serializable object to session: User[jeandp,pass set,jeandp <at> gmail.com,Active,Editor:Admin] class org.snipsnap.user.User
java.lang.RuntimeException
        at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1212)
        at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
        at org.snipsnap.container.DefaultSessionService.getUser(DefaultSessionService.java:196)
        at sun.reflect.GeneratedMethodAccessor214.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.codehaus.nanning.Mixin$InvocationImpl.invokeNext(Mixin.java:119)
        at org.codehaus.nanning.Mixin.invokeMethod(Mixin.java:194)
        at org.codehaus.nanning.AspectInstance.invoke(AspectInstance.java:88)
        at $Proxy39.getUser(Unknown Source)
        at org.snipsnap.net.filter.InitFilter.doFilter(InitFilter.java:319)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.snipsnap.net.filter.GZIPFilter.doFilter(GZIPFilter.java:35)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:297)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:371)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:731)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663)
        at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:859)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)

_______________________________________________
SnipSnap-Users Mailing List
snipsnap-users <at> snipsnap.org | http://snipsnap.org/
http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
Joel Oliveira | 17 May 13:33
Favicon

Re: About format code using {code:[Java]}

Chechk this out...

http://www.snipsnap.org/comments/Source+Code+Formatter+Tutorial 

	Joel Oliveira

---------------------------------------------------------------------

> -----Original Message-----
> From: snipsnap-users-bounces <at> snipforge.org 
> [mailto:snipsnap-users-bounces <at> snipforge.org] On Behalf Of 
> snipsnap-users-request <at> snipforge.org
> Sent: Tuesday, May 16, 2006 11:00 AM
> To: snipsnap-users <at> snipforge.org
> Subject: snipsnap-users Digest, Vol 16, Issue 1
> 
> Send snipsnap-users mailing list submissions to
> 	snipsnap-users <at> snipforge.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
> or, via email, send a message with subject or body 'help' to
> 	snipsnap-users-request <at> snipforge.org
> 
> You can reach the person managing the list at
> 	snipsnap-users-owner <at> snipforge.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of snipsnap-users digest..."
> 
> 
> Today's Topics:
> 
>    1. About format code using {code:[Java]} (Sting)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 16 May 2006 14:36:25 +0800
> From: Sting <stingh711 <at> gmail.com>
> Subject: [SnipSnap-USERS] About format code using {code:[Java]}
> To: snipsnap-users <at> snipforge.org
> Message-ID:
> 	<51835e810605152336h11de19c1j25d419fb2005e3e4 <at> mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi, everyone! When I use {code} to format my java code, I 
> don't know which
> one is the right "command".
> {code:Java} or {code:java}, or even {code:[Java]}? And also I 
> don't konw how
> to mark the end of the code. If I have a java method to post 
> and I use:
> {code:Java}
> //my method here
> public void sayHello() {
>     System.out.println("hello");
> }// the end of the method
> 
> Other expressions needn't to be formatted.
> 
> The problem is everything under {code:Java} is formatted.
> 
> Thank you very much!
> -- 
> Best regards!
> Sting
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> /lurker/list/snipsnap-users.en.html/attachments/20060516/2f0c1
323/attachment.html 
> 
> ------------------------------
> 
> _______________________________________________
> snipsnap-users mailing list
> snipsnap-users <at> snipforge.org
> http://snipforge.org/cgi-bin/mailman/listinfo/snipsnap-users
> 
> 
> End of snipsnap-users Digest, Vol 16, Issue 1
> *********************************************
> 
Scott Blachowicz | 30 May 06:36

Adding/updating wiki/weblog pages from command line

Hi-

I was just thinking that I could use my snipsnap setup to keep track
of my daily status/tasks done sort of information. What I would like
to do is to have a weblog (or wiki) page where various bullet points
are arranged by day and it would be real nice if I could just do quicky
little command line commands to add an entry. So, sitting at a shell
prompt (on my Linux box), I could run a command like this:

    didTask 'Finished updating my SnipSnap software.'

and that 'didTask' script would go find the appropriate page in
snipsnap. If an entry for the current day didn't exist, it would create
one. Then it would update the current day's information to add the
notation from its command line (along with the current time of day).

That way, I could come into the web page interface and cut/paste the
day's info into a status report email or some such.

Does anyone have any suggestions on how to do that? (or better
suggestions about software to use for something like this...yes, I could
roll my own, but I was hoping to find something that already exists).

Thanx, Scott
Tulun Tokou | 30 May 17:28
Picon
Favicon

Re: snipsnap-users Digest, Vol 16, Issue 5

Hi,
I was thinking of using snipsnap for my research
study. Does anyone knows how to use/write macro to
parse xml file? Let say i have an XML file (i.e
announcement) and would like to display it in
snipsnap. The macro will be able to display the
announcement (an xml file) in the snipsnap
environment.
Anyone have any suggestion how can i do that?

thanks very much

~yunn~

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Ryan Barrett | 30 May 20:08
Picon

Re: Adding/updating wiki/weblog pages from command line

On Mon, 29 May 2006, Scott Blachowicz wrote:

> I was just thinking that I could use my snipsnap setup to keep track of my
> daily status/tasks done sort of information. What I would like to do is to
> have a weblog (or wiki) page where various bullet points are arranged by
> day and it would be real nice if I could just do quicky little command
> line commands to add an entry.

hi scott! you could definitely write a macro to do this, and use curl or
wget's basic auth support to write a shell script to do the POST.

having said that, though, why use snipsnap? why not just use a text file,
with a little shell script or two to manage timestamps, etc? don't get me
wrong, i love snipsnap...but it doesn't seem like the right tool for this.

-Ryan

--
http://snarfed.org/
Ryan Barrett | 30 May 20:10
Picon

Re: snipsnap-users Digest, Vol 16, Issue 5

On Tue, 30 May 2006, Tulun Tokou wrote:

> I was thinking of using snipsnap for my research study. Does anyone knows
> how to use/write macro to parse xml file? Let say i have an XML file (i.e

hi tulun! sure, this is doable. macros are just java code, so they can do
anything java can do. to parse XML, you'd just import a SAX (recommended) or
DOM parser, e.g. xalan or jdom, and use it as you would normally.

-Ryan

--
http://snarfed.org/

Gmane