Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jan-Erik Lärka

Pages: 1 ... 16 17 [18] 19 20 ... 22
256
Applications / jEdit 5.1.0 filebrowser
« on: January 24, 2015, 11:06:12 am »
Hello,

it's impossible to open and/or save files in jEdit 5.1.0

I suspect that the trailing backslash is the cause of the problem, something that is not allowed in OS/2.
The file browser doesn't list anything and just append the path over and over again, with a trailing backslash.

How can this be fixed, or better yet, get jEdit the developers to rewrite the code to remove trailing backslashes altogether.

//Jan-Erik

257
Applications / Re: Apache OpenOffice and Java
« on: January 15, 2015, 09:13:01 am »
Opening Text Document, and attempting to go to Tools-> Options  > Java causes the desktop to freeze. Via CAD I have to kill OpenOffice.

I have the same problem.

//Jan-Erik

258
Applications / Re: Graphical package management utility (Arca Noae)
« on: January 08, 2015, 04:26:36 pm »
Hope that the different distribution channels with different behaviour will be brought together into one collection.

That we'll see a section with other not so obvious applications available on hobbes as well, with images and descriptions from the users perhaps?

259
Applications / Re: Graphical package management utility (Arca Noae)
« on: January 07, 2015, 01:58:27 pm »
I hope that the unified installer will contain a visual display of applications and libraries etc. that I can choose from.
The current YUM lack that as one has to know the name of a number of additions to install/update.

260
Mail-News / Re: Send email from commandline (actually a rexx script)
« on: December 14, 2014, 01:48:18 am »
Hello,

I can inform you that James Moe and Doug Bissett, OS2VOICE, fixed PMMSend in lightning speed so that it can behave well with national characters that I need to use. Thank you James and Doug!

 :D

261
Mail-News / Re: Send email from commandline (actually a rexx script)
« on: December 13, 2014, 11:48:47 pm »
Thank you for your suggestions.

I'm trying to figure out RexxMail but will also look into Weasel.

I have Weasel, but need to use a specific server to handle the emails, so I don't know how to handle that.

//Jan-Erik

262
Mail-News / Re: Send email from commandline (actually a rexx script)
« on: December 13, 2014, 05:47:33 pm »
Any command line executable?

263
Mail-News / Re: Send email from commandline (actually a rexx script)
« on: December 13, 2014, 05:45:11 pm »
Tried RexxMail before I wrote here, but it has limitations (secure transfer through stunnel doesn't work?) and seem very focused on doing things by hand.

I use webmail/2 on my web server, but I don't know if it can work through stunnel and there are some problems with it so I had to rewrite it to support UTF-8 encoded emails, html-email and Windows users... that broke my version of it.  :-\

Regards,
Jan-Erik

264
Mail-News / Send email from commandline (actually a rexx script)
« on: December 13, 2014, 01:20:55 pm »
Hello,

What tool is available to send emails from command line?

I've created a quite large script that at the end has to reply to 12 e-mail addresses.
The text in the body has to contain national characters such as å, ä and ö and a png image (each different) as attachement.

1. PMMail run a filter that detect a certain file from a certain sender
2. PMMail launch my rexx script
3. My rexx script use a python script to convert the xlsx-file into a csv-file
4. My rexx script interpret the file and get the coordinates of addresses from google (maps api) specified in the csv-file
5. My rexx script write 1 + 4 × 10 different files based on areas, contacting info, misspelled addresses etc.
6. My rexx script start an OpenOffice .ods file that use a series of macros to (among other things) export 12 charts to a ftp-server through netdrive.
7. My rexx script should send an email to give a brief update and notify each person about the current status and attach a chart (png image) exported from the .ods-file by the macros to show how far they've come.

Suggestions?

No, PMMSend remove å, ä and ö, so it has to be fixed first.
Yes, they fixed the = ? encoding problem yesterday.

Ohh, yes, I need the solution up and running by tomorrow (Sunday 14 December 2014)  :P

Regards,
//Jan-Erik

265
Applications / Re: Apache OpenOffice 4.1.1 RC3
« on: December 11, 2014, 12:49:55 pm »
Possibly you need libpng (and its dependency zlib) installed.

Wohoo!
yum install libpng  :D
Thank you Dave!

Noticed one small thing on a printout however.
Spreadsheet, page 2,  printout with header show ¤%&/()=#=../¤ (Odd characters), page 1 ok.

Your OpenOffice 4.1.1 is stable and fast.

//Jan-Erik Lärka

266
Applications / Re: Apache OpenOffice 4.1.1 RC3
« on: December 10, 2014, 04:17:42 pm »
My main basic macro update all tabs, data pilotes and add conditional formatting as expected.
The other Basic macro can't export the charts as png-images (but on other platforms).
What should I do?

Regards,
//Jan-Erik




267
Applications / Re: Apache OpenOffice 4.1.1 RC3
« on: December 02, 2014, 12:46:06 pm »
Where do I change macro security level in Apache OpenOffice 4.1.1?
...
//Jan-Erik

Never mind, found it in another file :-)
I'll rewrite my script.
//Jan-Erik

268
Applications / Re: Apache OpenOffice 4.1.1 RC3
« on: December 02, 2014, 09:05:55 am »
Where do I change macro security level in Apache OpenOffice 4.1.1?
I know it's not possible "inside" OpenOffice", but should be possible in some configuration file or registry.

In 3.2 it was possible to add some xml code to *common.xcd". I wrote a rexx script that did (and does) it nicely, though only in 3.2 as it seem to have changed in 4.x?
I need to export multiple Charts as png images (every Friday night) with code I've written.

//Jan-Erik

269
Utilities / Re: Print to Email.....sort of...
« on: October 24, 2014, 08:49:37 am »
You should use some REXX script to do what you want. We can perhaps post our partial solutions (functions) here to each task that has to be handled to create the e-mail(s).



Can we assume that the file ( clients.txt ) look like?
12345{TAB}John Doe{TAB}john.doe@gmail.com
67890{TAB}Jane Doe{TAB}jane.doe@gmail.com
13579{TAB}Joe Doe{TAB}joe.doe@gmail.com
24680{TAB}Jill Doe{TAB}jill.doe@gmail.com

Let's begin with some of the code for you all to add your suggestions to.
Code: [Select]
/* Script to send PDF-files to clients */
path = 'C:\invoices'
client_email = 'C:\invoices\clients.txt'

/* Load RexxUtil Library */
IF RxFuncQuery( 'SysLoadFuncs' ) THEN
DO
    CALL RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
    CALL SysLoadFuncs
END

/* Find the files to send */
IF( SysFileTree( path'\CLIENT*.PDF', 'filename.', 'FO' ) THEN
DO i = 1 TO filename.0 /* Go through each found filename */
  PARSE UPPER VALUE filename.i WITH 'CLIENT'clientno'INVOICE'invoiceno'.'extension

  /* Find the email address based on client number (clientno) */
  /* ... add the call to function here (instead of this comment) ... */

  /* Create the e-mail with PMMSend */
  /* ... add the call to function here (instead of this comment) ... */
END
RETURN rc

/* Find the email address based on client number (clientno) */
/* ... and write the actual function here (instead of this comment) ... */

/* Create the e-mail with PMMSend */
/* ... and write the actual function here (instead of this comment) ... */


270
Applications / Re: Regina REXX vs. OS/2 REXX
« on: October 03, 2014, 01:22:57 pm »
I do lots of stuff in classic REXX.  Admittedly on OS/2 I use the built-in REXX support, it just plain works.

...

So true all you wrote.

It's fairly easy to write a REXX extension library that can use C libraries, but someone has to do it.
It's even easier with a String class that can handle and convert from/to numbers and strings.

I dislike Python because of the strict and rigid indention rules.
===

OS/2 REXX is integrated with the os.
Regina is a separate executable.

Regina lack something I've come across and use in Classic REXX under OS/2-eCS.
Code: [Select]
/* "Main" entry of script */
stem.0 = 2
stem.1 = "Hello"
stem.2 = "World"
my_array.0 = 4
my_array.1 = "Say"
my_array.2 = "hi!"
my_array.3 = "to"
my_array.4 = "everyone"
my_variable = "Some text"
dont_expand_variable = "Exposed variable"
expand_variable = "stem. my_array. my_variable"
dont_expand_variable = "Hello!"
RETURN rexx_function_name()

/* Function below */
rexx_function_name PROCEDURE EXPOSE (expand_variable) dont_expand_variable
SAY expand_variable
SAY dont_expand_variable
DO i = 1 TO WORDS( expand_variable )
  check_variable = SUBWORD( expand_variable, i, 1 )
  IF RIGHT( check_variable, 1 ) = '.' THEN
    /* Assume this is a stem (array of accessible values).*/
    DO j = 1 TO VAL( check_variable'0' )
    /* Will output the text set in "main" */
      SAY VAL( check_variable''j )
    END
END
RETURN 0

The above code work in OS/2 Classic REXX and output "stem. my_array. my_variable" AND you can access the contents of stem.0 , stem.1, ... stem.N and my_array.0, my_array.1 ... my_array.N and my_variable just as with "dont_exand_variable" that will output the text "Exposed variable".

The same goes for parsing...
In OS/2 Classic REXX you can
...
/* Example code for PARSE below */
delimiter = "/"
text_2_parse "this is an example of text/code to split on the character with / into smaller parts."
DO WHILE POS( delimiter, text_2_parse ) > 0
  PARSE text_2_parse WITH pre(delimiter)test_2_parse
  SAY pre
END
SAY test_2_parse
/* end of example */
Would output:
this is an example of text
code to split on the character with
 into smaller parts.
======
ADDRESS in Regina is something I like that is very powerful.

Pages: 1 ... 16 17 [18] 19 20 ... 22