• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu
Menu

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.

Show posts Menu

Messages - ALT

#1
Quote from: Mentore on 2012.08.30, 11:15:50
Really good news Martin, I'll look forward to get this software.

Too bad the sources got lost...

ISTR Alex Taylor made good projects with VisPro, so maybe he can help you.

Mentore

Actually, I don't use VisPro at all.  I've played with it a couple of times, but that's it.

I use VX-REXX, personally.
#2
Talk to Chuck McKinnis.  I know he uses VP/REXX - in fact, a few years ago, he and a couple of others were in negotiations with Dave Hock to try and buy the source to take over development.  Unfortunately, they couldn't reach a mutually-agreeable deal.

I was on the periphery of that discusson at the time, and in fact as part of that I was sent the binaries of VP/REXX 3.1 Gold (don't remember exactly why).  I think I still have them somewhere, but you'll probably do better to get them off Chuck or maybe Mensys.
#3
Storage / Re: JFS on Warp Server Advanced?
2012.08.27, 06:02:40
I'm pretty certain JFS requires a 4.5x kernel, which means Warp 4 with Fixpak 13+, or WSeB, or MCP/ACP/eComStation.  (IIRC it uses the KEE APIs which were added in 4.5x - at a minimum that requires the kernel itself, possibly some other system files as well.)  So Warp Server Advanced won't support it; at least, not without some very, very unorthodox hacking.

In principle JFS also requires LVM, although it might be possible to hack around that requirement as well with some combination of DANIDASD, BootJFS, and possibly using Linux to format the partition with particular parameters.  I don't recommend trying unless you really, really know what you're doing, though.

In short: no, basically you can't use JFS in Warp Server Advanced.  But if you have eCS or Warp 4 you can install the Warp Server components on top of that - IBM even had a support document describing how to do it (with Warp 4) at one time or other.

FWIW, on paper HPFS(386) is limited to a 64GB partition size, but it reportedly starts running into problems once you get much above 50GB.
#4
Applications / Re: LVM ... effin buggy
2012.08.04, 17:49:59
You can prevent the automount by deleting the USB widget from the eCenter, or by closing the eCenter entirely (eCS 2.x), or by killing the "USB Removable Device Monitor" daemon, USBMSDD.EXE (earlier eCS versions).

Anyway, the problem is that these devices are factory preconfigured with a partition that doesn't align to cylinder boundaries (or what LVM thinks cylinder boundaries should be).  You can use the OS/2 version of DFSee to resize the partition to, say, 10 MiB smaller than the current size - that should force the partition to align on the closest cylinder boundary, and this may fix the problem for you.  (Once done you will have to eject and remount the USB stick.)

The advantage of this method is that you don't necessarily lose the files on the disk (although of course you should still have a backup).
#5
Quote from: ivan on 2012.07.29, 11:40:05
Thanks for the information Alex but - isn't there always a but - why are things like World Clock, CPU etc., the same size on both systems?

It depends on how the program is written.  Programs which don't draw their windows in standard dialog units won't be affected.  For instance, Dr.Dialog, VX-REXX and I think Sibyl applications use their own window-drawing implementations.
#6
Quote from: aschn on 2012.07.29, 21:03:35
Quote from: ALT on 2012.07.29, 04:48:25
Changing the system wide default font also changes the default dialog unit size, which has the effect of rescaling all dialogs throughout the system.  

Holger Veith created a patch which fixes that bug: http://hobbes.nmsu.edu/download/pub/os2/system/patches/PMFIX.zip


It's not a bug, though.  It's supposed to do that.  Especially on DBCS systems it's quite important that it works the way it does.
#7
Quote from: ivan on 2012.07.28, 22:32:43
All I can say is that if that is the way eCS is going I don't want to know unless there is a reliable way of removing such 'enhancements'.

Actually, this has nothing to do with eCS.  That's the default program appearance.  You're the one running the "enhancement" in this case.   :)
#8
Quote from: ivan on 2012.07.28, 19:41:28
Having thought more about it, what I am seeing appears to be something like Dialogue Enhancer that I bought many years ago.  It was supposed to improve dialogue boxes by using some font other than the OS/2 standard.  One of the reasons I gave up using it was because it changed the physical size of the dialogue boxes.  I went on to use SETDFONT which does a system wide change of the default font.

There's your answer.

Changing the system wide default font also changes the default dialog unit size, which has the effect of rescaling all dialogs throughout the system. 

What your friend is seeing is actually the "normal" window size.  What you have is a reduced dialog caused by your changing of the system dialog font.  (You probably have yours set to 9.WarpSans.)

If your friend wants to match your appearance, he should set the default font to whatever yours is.  Note that there is no GUI for doing this, so he'll need to either use an CMD file like you, or edit OS2.INI directly.  Either way will require a reboot.

If your friend does this, he should also turn off the "set a default font for dialog windows" setting in eStyler preferences.
#9
If it's not on there already, feel free to use my Unicode programming workshop from Warpstock EU 2006:
http://wse2006.warpevents.eu/agenda_ses.html#unicodeapi
#10
Programming / Re: WPS Classes
2012.06.15, 16:19:52
Quote from: RobertM on 2012.06.14, 03:49:22
There are a few books that are great on the topic.

I'd love to know where, I haven't been able to find any.

Quote
http://www.amazon.com/OS-2-1-Workplace-Shell-Programming/dp/0679791620
- (good starting point at that price, even with its age)

According to the reviews, this book is actually about PM programming and contains no WPS information at all.

Last year I tried to dip my toes into WPS programming, but I hit a wall when I realized that there are (apparently) no clearly-written, comprehensive guides to be found anywhere.  I looked through the information on EDM/2 but it's all confusing and/or incomplete snippets, half of which seem to be using an obsolete version of the SOM compiler with a different programming syntax.

I just want a good, solid, methodical and comprehensive text on the subject, much the same way that Petzold's book was for Presentation Manager.  Is that too much to ask?  Surely all the developers who wrote WPS-aware programs back in the heydey must have gotten their training from somewhere... but I've never been able to find anything like that.

Sorry for the griping but as you can tell I got a bit (OK, a lot) discouraged about the whole topic.
#11
Utilities / Re: Change cCS blob at bootup
2012.05.23, 11:51:04
eCS comes with BrandLDR.

[C:\]brandldr /?
BrandLDR <file> <string>
example: BrandLDR E:\OS2LDR "eCS 1.03"

#12
Quote from: herwigb on 2012.05.20, 11:45:36
In case a DHCP server is used in a network, the WINS server is normally advertised by that (Windows clients make use of that), however most eCS DHCP clients are older than Samba and as there is no standardized place to set a WINS server in OS/2 TCP/IP (until  our current Samba Client there was no software to make use of it). In short: Currently the WINS server IP address has to be specified manually or via EVFSGUI 2.5. There is no way to obtain it on eCS from a DHCP server.

Actually, there is.

Basically, you need to add these lines to \mptn\etc\dhcpcd.cfg:
option 44 exec "setnbns.cmd 44 %s"
option 45 exec "setnbns.cmd 45 %s"
option 46 exec "setnbns.cmd 46 %s"

And then provide a REXX script called SETNBNS.CMD which updates the Samba configuration as needed.  The sample script IBM provides is for updating the IBMLAN configuration file -- this is nasty and requires a reboot every time the address changes.  I've pasted it here anyway to show how it works.  For Samba it should be much simpler, since Samba doesn't need to read its configuration file during CONFIG.SYS processing. 


/****************************************************************************
* SETNBNS.CMD
* by Peter Degotardi
* Revised April 21, 1998
* SETNBNS
* Return values: 0=successful, 1=unsuccessfull
* Accept DHCP options 44, 45 and 46 and put them in a queue where
* GETNBNS.CMD can read them.
****************************************************************************/
return_code = 1

/* Assume everything will fail */

/*** add RexxUtil functions ***/
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs

/* get option number and data from the command line */
parse arg option_tag option_data
if ((option_tag = '') | (option_data = '')) then
do
    return_code = 1
    /* wrong number of arguments */
    exit return_code
end

/*** strip leading and trailing spaces ***/
option_tag = strip(option_tag)
option_data = strip(option_data)

Select
    when (option_tag = 44) then      /* NBNS address */
    do
        if (check_IPaddr(option_data)) then
            return_code = queue_it(option_tag||','||option_data)
    end

    when (option_tag = 45) then
    do
        if (check_IPaddr(option_data)) then       /* NBDD address */
            return_code = queue_it(option_tag||','||option_data)
        end
    when (option_tag = 46) then
    do
        call lineout '\setnbns.log', 'option_data="'option_data'"'
        select
            when option_data = 8 then data = 'H-Node'
            when option_data = 4 then data = 'M-Node'
            when option_data = 2 then data = 'P-Node'
            otherwise data = 'B-Node'
        end
        return_code = queue_it(option_tag||','||data)
    end
    otherwise  nop     /* unsupported_option */
end
exit return_code


/****************************************************************************
* check_IPaddr
* Check a dotted decimal IP address for valid format.
*
* Return 0 if there are not 4 octets or the data is out of range or
* there are embedded blanks in the address, else return 1.
****************************************************************************/
check_IPaddr: Procedure
    parse arg addr
    addr = strip(addr)
    parse var addr octet.1 '.' octet.2 '.' octet.3 '.' octet.4
    do pos = 1 to 4
        if (verify(octet.pos, '0123456789', N) \= 0) then
        return 0
        /* not an unsigned number */
        if ((octet.pos < 0) | (octet.pos > 255)) then
        return 0
    end
return 1


/****************************************************************************
* hex2ascii_string (option_data)
*
* Take a hex string in the form 'hex"nn nn nn ... ", verify it's a valid
* hex string, and convert it to an ASCII character string.
*
* Returns the string if the data is valid, a null string if not.
****************************************************************************/
hex2ascii_string: Procedure
    parse arg 'hex' '"' data '"'
    if (\ DATATYPE(data, X)) then return ""
    data = strip(data, 'B', '09'x)
return X2C(data)


/****************************************************************************
* queue_it
* Put the data in a queue where it can be read by GETNBNS.
* Tries to create the queue. If a different name is returned, the queue
* must already exist, so delete the 'wrong' queue, set the queue to the
* 'correct' one, and put the data there.
****************************************************************************/
queue_it: Procedure
    parse arg data
    qname = 'NBNSINFO'
    /* The queue we're using */
    new_queue = rxqueue("create", qname)
    if new_queue \= qname then
        rc = rxqueue("delete", new_queue)
    rc = rxqueue("set", qname)
    queue data
return 0

#13
There are a few ways to activate syntax highlighting in EPM.  Any of the following will do it:

  • Add the 'toggle syntax highlighting' button to the toolbar (using the "buffet") and press that any time you want to activate highlighting for the current file.
  • Open a command dialog (Ctrl+I) and enter the command 'toggle_parse 1 epmkwds.c' (for C files)
  • Enable the 'REXX Profile' option under Misc. settings, and create a file PROFILE.ERX in the \OS2\APPS directory like the one shown below.  This only works when opening a file in a new edit window.
  • Upgrade to the NEPMD package.

Sample profile.erx:

/* PROFILE.ERX - EPM REXX Profile */

'extract /filename'

PARSE UPPER SOURCE . . me .
PARSE VAR me pathspec '\PROFILE.ERX' .

DO i = 1 TO filename.0

    fullname = TRANSLATE( FILESPEC("NAME", filename.i ))
    lastdot  = LASTPOS(".", fullname )
    IF lastdot > 0 THEN ext = SUBSTR( fullname, lastdot )
    ELSE                ext = ""

    IF ( ext == "") | ( ext == ".TXT") | ( ext == ".DOC") | ( ext == ".1ST") | ( ext == ".SYS")
        THEN LEAVE

    SELECT
        WHEN ext == ".CPP" | ext == ".H" | ext == ".HPP" THEN ext = ".C"
        WHEN ext == ".ERX"                               THEN ext = ".CMD"
        WHEN ext == ".HTML"| ext == ".SGS"               THEN ext = ".HTM"
        WHEN ext == ".JAVA"                              THEN ext = ".JAV"
        WHEN ext == ".PRL" | ext == ".CGI"               THEN ext = ".PL"
        WHEN ext == ".DLG"                               THEN ext = ".RC"
        WHEN ext == ".FOR"                               THEN ext = ".F90"
        WHEN LEFT( fullname, 8 ) == "MAKEFILE"           THEN ext = ".MAK"
        OTHERWISE NOP
    END

    syntaxfile = pathspec'\EPMKWDS'ext
    IF STREAM( syntaxfile, 'C', 'QUERY EXISTS') \= '' THEN 'toggle_parse 1' syntaxfile

END
#14
The T43 is more compatible, at least if you use APM rather than ACPI mode.  Not sure how well ACPI works on the T43, but since it supports APM very well you don't need ACPI.

Of course, the T43 is a slightly older system, with all else that implies.
#15
Quote from: fvanzeveren on 2012.05.14, 10:45:45
The default soud volume is way too loud. So, I went to the Sound Control Panel. The default theme is set to "Desktop". I did not change it. I checked the "Apply same volume to all sounds" option (or something like that) and move the sound cursor to 10%....

But, when I press return or tab or when I closed the dialog, the theme switched to <no theme> (or sth like that... sorry, I have no access to my laptop now)... and changes did not apply: when rebooting, the sound level was back to its too loud level. The only way I found was to change the level of all sounds one at a time (thus unchecking the "apply same volume to all sounds" option) and to save everything under a new theme...

So, the "apply same volume to all sounds" check box does not work.

Yeah, that happens on some systems.  Near as I can tell, it's caused by certain sound drivers, or possibly by a combination of the sound driver + hardware.