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 - Alex Taylor

Pages: [1] 2 3 ... 20
1
Applications / Re: Time sync in VirtualBox guest off by 1 hour
« on: July 20, 2021, 03:44:14 am »
FWIW, Dmitry seems to have isolated the problem in libcn and has provided a test build (link in the quoted ticket) which appears to fix the problem here.

2
For the past several days, I have been getting redirected to a page with this error whenever I log on to OS2World.

Logon itself succeeds. I can hit Back or select the Home page link and continue from there.

3
Applications / Re: Time sync in VirtualBox guest off by 1 hour
« on: July 19, 2021, 03:40:54 am »
OS/2 doesn't adjust to daylight saving time anyway. Of course, I can set daytime (if I run it) to take DST into account, but I wasn't running daytime while using the additions.

Mine does, what am I doing right?

Presumably, you're running either an add-on program which does this, like DSTswitch, or a network time sync utility like CLKMGR or daytime.


In any case, there has been some progress in identifying the problem here. It seems the VBox additions are not the only affected program: https://github.com/bitwiseworks/libc/issues/109

4
Applications / Re: Time sync in VirtualBox guest off by 1 hour
« on: July 17, 2021, 01:45:10 am »
I often set the time sync of the VM to be independent of the host operating system.  To disable time sync:
Use a command line:
"C:\Program Files\Oracle\VirtualBox\VBoxManage" setextradata "arca_vm" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1

Unfortunately, I assume that will have much the same effect on the clock as disabling additions, meaning I can't set it up to sync when resuming the VM from pause state.  The nice thing about the additions is that the clock is constantly kept in sync and doesn't rely on running a remote sync tool at regular intervals like daytime.

It's not good to set up a remote sync tool to run every minute (or less), which is what would be needed to simulate this function in the guest.

The VM reads and presents the system time as the host operating system presents it, this means that when you install a guest system you should always instruct the guest operating system not to adjust to daylight savings time, and not to use internet time correction/lookup. It is getting the correct time from the host anyway.

Otherwise both the systems will correct themselves during DST changeovers.

OS/2 doesn't adjust to daylight saving time anyway. Of course, I can set daytime (if I run it) to take DST into account, but I wasn't running daytime while using the additions.

5
Applications / Time sync in VirtualBox guest off by 1 hour
« on: July 16, 2021, 04:19:36 am »
I'm setting up an OS/2 (ArcaOS 5.0.6) guest in VirtualBox 6.1.22 running on Windows 10. 

I've installed the OS/2 Guest Additions, which (among other things) keeps the guest time synced to the host. Except... it insists on setting the guest's time to 1 hour behind the correct time. I assume that it's failing to take DST into account.

My guest TZ value is:

TZ=EST5EDT,3,2,0,7200,11,1,0,7200,3600

which is correct, and works fine for native OS/2 time sync programs like DAYTIME.

My host (Win) is set to the UTC-5 (Eastern US & Canada) zone with daylight saving time enabled. It does show the correct time (which is one hour ahead of what the guest shows).

Has anyone seen this before, and have any ideas how to fix it? This is a real problem. I've temporarily had to disable Additions entirely but that's obviously a terrible workaround.

6
Setup & Installation / Re: A question of fonts
« on: June 14, 2021, 11:43:11 pm »
Judging by your screenshot, it actually appears to be working.

Believe it or not, that is actually the font's name that you see in the font folder.  More accurately, it's the string which the font header has in its face name field.

My command-line font header tool reports the following on this font:

Code: [Select]
FreeType 2 library initialized successfully.
Font (null) read successfully.
Names table contains 12 entries:
 0: Plat 1, Enc 3, Lang 0x2, ID  4  [4 bytes]
 1: Plat 3, Enc 1, Lang 0x409, ID  0  (U)"Copyright (c) 2016 Swiss Typefaces Sarl. All rights reserved."
 2: Plat 3, Enc 1, Lang 0x409, ID  2  (U)"¶"
 3: Plat 3, Enc 1, Lang 0x409, ID  3  (U)"Copyright (c) 2016 Swiss Typefaces Sarl. All rights reserved."
 4: Plat 3, Enc 1, Lang 0x409, ID  4  (U)"¶"
 5: Plat 3, Enc 1, Lang 0x409, ID  5  (U)"Version 1.000"
...

Strings 2 and 4 are the font name strings.

Just to verify that this isn't some bug in FreeType (which my tool uses), I opened the font in FontLab Studio and examined the header there. I confirmed it has a null value as the family name, and a single junk character as the face name.

I also notice that the font's license field says that it's licensed exclusively for the use of eBay, Inc.

I conclude that this is a special font designed for a specific application, and is not designed for general use.

7
Networking / Re: Arcamapper (SAMBA) loses connection
« on: May 28, 2021, 01:40:16 am »
I use a Synology NAS from ArcaOS with the latest ArcaMapper. (Actually, my current installed NDPSMB and Samba libraries are probably newer than what's in 5.0.6 as I have some components installed from the arcanoae-exp repo.)

I have no problems from my ArcaOS laptop browsing images on the NAS with PMView. I recently moved a lot of my DSLR photos onto the NAS and haven't had any issues.

One thing that may be worth mentioning - I have EA Support turned off for all my shares on the NAS, precisely because ext* doesn't support them to the extent OS/2 assumes. If the EAs are indeed a problem, you might be better off turning them off when mounting the share, because most programs are capable of recognizing when EAs are unavailable and acting accordingly. OTOH, if they think EAs are supported and they aren't (adequately), then I could see some things running into problems.


(Disclaimer: I work for Arca Noae, so you might not take my assurances as perfectly objective, although I assure you they are perfectly sincere.)

8
Web applications / Re: QT5 simplebrowser
« on: February 21, 2021, 06:53:54 pm »
Looks like libevent is what you want:

[C:\]yum provides */evnt*
libevent-2.1.11-2.oc00.i686 : Abstract asynchronous event notification library
Repo        : netlabs-rel
Matched from:
Filename    : /@unixroot/usr/lib/evnto217.dll
Filename    : /@unixroot/usr/lib/evnte217.dll
Filename    : /@unixroot/usr/lib/evntc217.dll
Filename    : /@unixroot/usr/lib/evnt217.dll
Filename    : /@unixroot/usr/lib/evntp217.dll

9
Networking / Re: OpenSSH_7.7p1 tcgetattr: Invalid argument
« on: January 28, 2021, 01:38:40 pm »
The SSHD port has always been a bit rough around the edges. Make sure your TERM setting is something reasonable, whatever the documentation recommends or perhaps 'os2'.

Also see what your login shell is: CMD, TNPIPE, or VIOROUTE. If one of those doesn't work well, try one of the others.  (I always found TNPIPE seemed to work most smoothly, but it has some limitations.)

10
Multimedia / Re: Updated Uniaud32 build
« on: January 24, 2021, 06:37:18 pm »
No significant changes - mainly updated some libraries to the latest kernel (rbtree, regmap, regcache) and some code cleanups from AlexT

?? ???

11
I need to take a couple of ICO (icon) files and convert them to an OS/2 BMP format. Seems easy enough, right?

Well, my problem is that doing the conversion does not preserve the ICON's background transparency...why not?

That's because unlike ICO, the BMP format doesn't support transparency.


Quote
So if transparent BMP is off the table, what's the easiest way for me to apply a particular colour as background to an ICO file so it's still preserved in the BMP image itself?

Sure. Open the Icon Editor, choose File -> New and select the Bitmap format, with a size identical to the icon you want.  Then open the icon in another instance of Icon Editor, use the fill tool to fill in the background colour you want, and then choose Edit -> Select All and Edit -> Copy, then paste it into the instance which has the bitmap open. Then save the bitmap.


12
Applications / Re: PMView - colour vibrancy gone after save?
« on: November 23, 2020, 04:57:41 am »
My understanding is that saving as JPEG (more accurately, JFIF) with "100%" quality does not mean lossless compression.  It means (approximately speaking) 100% of the possible fidelity available using the lossy JPEG compression.  Or, to put it another way, "the least amount of loss possible". You will still lose image quality. (You may also quite possibly end up with a larger image than you would have using PNG.)

That said, there is apparently a (non-JFIF) JPEG standard for lossless compression, but AIUI it uses a different file format and is not commonly used or implemented.

13
Programming / Re: How can I place a progress bar inside a window?
« on: September 19, 2020, 05:50:58 am »
The PM slider control has a 'ribbon' mode which allows it to be used as a (crude) progress bar. 

Otherwise there is no built-in "pure" PM progress bar control, but various different GUI toolkits provide their own.

XWPHelpers is an open source example. It provides lots of additional controls like progress bar, tooltips, etc.  However you generally have to compile the library yourself which can be a bit complicated to set up (and IIRC you need the IBM compiler for that).
http://trac.netlabs.org/xwphelpers/browser/branches/branch-1-0

The AFCUTIL library originally written for Styler/2 has various controls too, including a 'progress dialog'. This is also open source but unfortunately not really documented (and the source comments are mostly in Italian...)
https://github.com/OS2World/UTIL-WPS-Styler_2/tree/master/utildll

There used to be commercial libraries that had controls like this. I presume IBM's OpenClass library had one. There were others too.

14
Networking / Re: TP-Link - USB to Ethernet
« on: September 14, 2020, 11:06:29 pm »
The AN driver is current and should work well with supported chipsets (the Moschip controller).

Martin's problem is that the TP-Link uses a Realtek controller for which there is no OS/2 driver.

15
Programming / Re: WPS Locale Object Questions
« on: August 22, 2020, 06:48:49 am »
There are basically three sets of localization settings in OS/2:
  • The COUNTRY settings defined in CONFIG.SYS and COUNTRY.SYS.
  • The PM_National settings used globally by Presentation Manager and various old PM applications.
  • Universal Language Support (ULS) locales.

What you see in the Locale (or Country) Palette are ULS locale objects. These locales are available for applications to use if they are written to take advantage of them. (In other words, applications that use the Universal Language Support API or another API that uses ULS in turn.)

Locale objects were designed to make it possible for individual applications to use standardized language and localization settings for arbitrary locales, and not be restricted by the old global PM_National settings in OS2.INI.  Much of Presentation Manager itself, however, is not ULS enabled and thus only uses the PM_National settings; ditto many old PM applications.  (You can sync PM_National with a given locale object by using the 'mark as default' option in the Locale Palette, thereby causing these ULS-unaware applications to use the settings for that locale.)

ULS-aware applications have the option of using 'system' locale objects, which are defined (hard-coded) by OS/2; or 'user locales', which are the ones defined in the Locale Palette. IIRC, when you create a locale object instance for a given locale name, you will be returned the user locale by that name if one is defined, or the system locale by that name otherwise (assuming it exists). Hence, user locales can be used to override system locales, although I believe there are some limitations on this (I don't recall what).

ULS and PM_National both apply at the application level (in the latter case, Presentation Manager itself is such an application). Conversely, what you get from DosQueryCtryInfo is the COUNTRY locale information which runs at the base OS level.  It's basically always accessible to any type of application, but is much more limited in scope.

In short: DosQueryCtryInfo returns the lowest-level (and simplest) locale information. Applications can choose to use higher-level locale data (PM_National or ULS locale objects) depending on how much trouble they want to go to.  ULS objects are the most flexible but also the most work to deal with.

Pages: [1] 2 3 ... 20