[Dspace-tech] Deleting tasks in the task pool via command line

2007-12-18 Thread Obiajulu Odu
 Hi,

Has anyone written a script to delete task (s)/item (s) in DSpace task
pool via command line?   I need it

 

Thanks

Obi 

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] How to use the SPI of DS1103

2007-12-18 Thread James Rutherford
Hi,

You seem to have found the wrong dspace. You're looking for
http://www.dspaceinc.com but you've found http://www.dspace.org.

cheers,

Jim

On Tue, Dec 18, 2007 at 05:48:11AM +, xixiu gong wrote:
 hi,all
   We have to use the SPI to transfer datas. and i try to using the following 
 s-function to transfer the data through the slaveDSP.
 
 But I can't get any ouput and even the SCLK is keeping high.
 
 
 /***
 FILE: onetran.c
 DESCRIPTION:
 S-function to transmit one data through the spi mode to extra device with the
 slave application (DS1103 version).
 Copyright (c) 1997-2005 dSPACE GmbH, GERMANY
 ***/
 #define S_FUNCTION_LEVEL 2
 #define S_FUNCTION_NAME onetran
 #include simstruc.h 
 /* Include basic real-time environment header. */
 /* Include the slave application source code to be found in
 %DSPACE_ROOT%\ds1103\Slvdsp1103.h */
 #ifndef MATLAB_MEX_FILE
 #include brtenv.h
 #include F:\dspace\ds1103\ds1103.h
 #include F:\dspace\ds1103\Slvdsp1103.h
 #endif
 
 /* Function: mdlInitializeSizes === */
 static void mdlInitializeSizes(SimStruct *S)
 {
 /* This S-function has no parameters. */
 ssSetNumSFcnParams(S, 0); /* No. of expected parameters */
 if (ssGetNumSFcnParams(S) != ssGetSFcnParamsCount(S)) return;
 
  /* Set the number of states to zero. */
 ssSetNumContStates(S, 0);
 ssSetNumDiscStates(S, 0);
 /* We have 4 input port with width 1*/
 
 if (!ssSetNumInputPorts(S, 1)) return;
 ssSetInputPortWidth(S, 0, 1);
 ssSetInputPortDataType(S, 0, SS_INT16);
 ssSetInputPortDirectFeedThrough(S, 0, 1);
 /* We have no output ports.*/
 
 if (!ssSetNumOutputPorts(S, 0)) return;
 
 /* This S-function has one sample time. */
 ssSetNumSampleTimes(S, 1);
 /* No work vectors and other special features are used. */
 ssSetNumRWork(S, 0);
 ssSetNumIWork(S, 0);
 ssSetNumPWork(S, 0);
 ssSetNumModes(S, 0);
 ssSetNumNonsampledZCs(S, 0);
 /* No additional options are used. */
 ssSetOptions(S, 0);
 }
 
 /* Function: mdlInitializeSampleTimes = */
 static void mdlInitializeSampleTimes(SimStruct *S)
 {
 /* Use INHERITED_sample time and no offset. */
 ssSetSampleTime(S, 0, INHERITED_SAMPLE_TIME);
 ssSetOffsetTime(S, 0, 0.0);
 }
 
 #define MDL_INITIALIZE_CONDITIONS
 #if defined(MDL_INITIALIZE_CONDITIONS)
 /* Function: mdlInitializeConditions === */
 static void mdlInitializeConditions(SimStruct *S)
 {
 #ifndef MATLAB_MEX_FILE
 {
   ds1103_slave_dsp_communication_init();
  ds1103_slave_dsp_spi_init(0, SLVDSP1103_SPI_MASTER, 115200, 
 SLVDSP1103_SPI_CLKPOL_FALL, SLVDSP1103_SPI_CLKPHS_WOD, 8);
  }
 #endif
 }
 #endif
 
 #undef MDL_START /* Change to #undef to remove function */
 #if defined(MDL_START)
 /* Function: mdlStart === */
 static void mdlStart(SimStruct *S)
 {
 
 }
 #endif /* MDL_START */
 
 /* Function: mdlOutputs ==*/
 static void mdlOutputs(SimStruct *S, int_T tid)
 {
  InputRealPtrsType u0 = ssGetInputPortRealSignalPtrs(S,0);
 
 #ifndef MATLAB_MEX_FILE
   int16_T idx0 = DSCOMDEF_AUTO_INDEX;
   ds1103_slave_dsp_spi_write_register(0, idx0);
  ds1103_slave_dsp_spi_write(0,idx0, *u0[0]);
 
 
 #endif
 }
 
 #undef MDL_UPDATE  /* Change to #undef to remove function */
 #if defined(MDL_UPDATE)
   /* Function: mdlUpdate 
 ==
* Abstract:
*This function is called once for every major integration time step.
*Discrete states are typically updated here, but this function is 
 useful
*for performing any tasks that should only take place once per
*integration step.
*/
   static void mdlUpdate(SimStruct *S, int_T tid)
   {
 }
 
 #endif /* MDL_UPDATE */
 
 
 
 /* Function: mdlTerminate ==*/
 static void mdlTerminate(SimStruct *S)
 {
 }
 #ifdef MATLAB_MEX_FILE /* Compile as a MEX file? */
 #include simulink.c /* MEX file interface mechanism */
 #else
 #include cg_sfun.h /* Code generation registration fcn */
 #endif
 
 
 
 
 
 Can you tell me what is wrong?

Content-Description: ATT1.txt
 -
 SF.Net email is sponsored by:
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services
 for just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Content-Description: ATT2.txt
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech


-- 
James Rutherford  |  Hewlett-Packard Limited registered Office:
Research Engineer |  Cain Road,
HP Labs   |  Bracknell,
Bristol, UK   |  Berks
+44 117 312 7066  

[Dspace-tech] Handle Server install error dspace 1.4.1

2007-12-18 Thread Nigel Pegus
Hello,

 

I have recently installed dspace 1.4.1 on Linux AS version 3 update 6
with Java 1.5.0, apache ant 1.7.0 and postgresql-8.2.3.

I have also made and verified required entries in dspace.cfg file
(handle prefix and handle server directory path).

 

To setup the Handle Server using simple setup Writing simple Handle
server configuration I run the following command:

./make-handle-config

 

I then get the following error:

 

Error setting up the server:

java.lang.NullPointerException

java.lang.NullPointerException

at
net.handle.server.SimpleSetup.responseToPrompt(SimpleSetup.java:930)

at
net.handle.server.SimpleSetup.getIPAddress(SimpleSetup.java:572)

at net.handle.server.SimpleSetup.main(SimpleSetup.java:96)

./make-handle-config: line 90: /dspace/handle-server/config.dct: No such
file or directory

./make-handle-config: line 99: /tmp/handleconfig6179: No such file or
directory

 

 

The dspace/handle-server folder is empty and the dspace handle server
log has only this entry:

Error reading configuration: java.io.FileNotFoundException:
/dspace/handle-server/config.dct (No such file or directory)

 

From older installations I think the handle-server folder is then
populated with numerous entries, one of which is the config.dct file so
I do not think this is really an issue

I may be wrong but I suspect that Java is not working as it should for
some reason and creating the config.dct file 

 

Can anyone offer any input on the cause/solution to the error indicated
above?

 

Thanks,

 

 

Nigel Pegus

Main Library, Systems Unit

The University of the West Indies

ext: 2241 

 

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Debugging XSLT in Manakin

2007-12-18 Thread Dorothea Salo
If this is completely unworkable, feel free to scoff at me, but...

Is there *any* way that Manakin can be nudged to give more information
about XSLT problems in a theme? As it is, when I break something
non-obviously (that is, not a gross XML well-formedness error), all I
can do is guess wildly what I just broke. Given that every Manakin
tweak means a Subversion commit, checkout, rebuild... this is
uncommonly tiresome and time-consuming when things break often. (And I
break stuff a lot.)

Surely SAX knows where it is when a stylesheet blows up? Can it be
persuaded to disgorge that information?

Dorothea

-- 
Dorothea Salo[EMAIL PROTECTED]
Digital Repository Librarian  AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech