PxPlus User Forum

Twitter Twitter Twitter

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 - Mike King

Pages: 1 ... 28 29 [30] 31 32 ... 65
436
Programming / Re: New Linux Versions = Decreased performance?
« on: December 29, 2020, 07:49:49 PM »
About a year ago there was a issue that hit the news about a potential security leak in Intel processors.  The problem had to do with one process reading the cache of another process.

The correction, which for most was done via software, was notable in that it slowed down the systems quite significantly.  Perhaps this is what you are seeing.

Here is a link:  https://www.extremetech.com/computing/261420-early-data-shows-linux-update-fix-intel-security-flaw-hits-performance-hard

437
Nomads / Re: Changing the Screen_ID$ property of a Nomads Object
« on: December 29, 2020, 03:18:54 PM »
Technically the object could however there is no functionality to allow you to override the type of output to be used.

While I have not tried this, you might be able to fake it out by creating your panel as a Dialog, then create another "Window" panel which does nothing other than embed the Dialog panel.  You should then be able to select which type of output based on the panel name.

438
Programming / Re: New Linux Versions = Decreased performance?
« on: December 29, 2020, 03:14:20 PM »
You might want to check the size of the disc cache and buffers on the various platforms.

Try:   free -m  (The -m indicates output MB)

The newer operating system may be using more memory (not uncommon) resulting in less space in memory to buffer data.

439
Registration and Setup / Re: WindX Version
« on: December 24, 2020, 12:59:20 PM »
Yes it is the same as in the MSE variable but since reading the MSE variable requires an exchange between the host and WindX, we save this value in TCB(88) which avoids the packet exchange.

The most current version of the protocol is 13 ($0d$)

440
Registration and Setup / Re: WindX Version
« on: December 24, 2020, 11:44:20 AM »
TCB(88) is the version of the WindX program not the version of PxPlus.  The WindX version doesn't change unless there is new functionality added to the WindX<-->Host protocol.

Our utilities use the value in TCB(88) to determine what options on the protocol are available.

441
Programming / Re: Converting UTC to local time
« on: December 22, 2020, 12:21:58 PM »
Running on Linux or Unix you can use the system 'date' routine to perform all the time zone and daylight savings adjustments for you.  First off convert your date/time into the following format: 

YYYYMMDD hh:mm:ss UTC

Then pass this to the 'date' system command as follows:

sue:~ # date --date "20201222 12:00:00 UTC"
Tue Dec 22 07:00:00 EST 2020


The system will provide you the local date/time adjusting for Daylight savings,

Now if you want to find the date/time for other time zones you can simply set the environment variable TZ to the target time zone before running the date command.  The easiest way to accomplish this would be a shell script:

sue:~ # cat date.sh
#!/bin/bash
export TZ=$1
date --date="$2"


This would allow you to do the following:

sue:~ # ./date.sh America/Toronto "20201222 12:00:00 UTC"
Tue Dec 22 07:00:00 EST 2020

sue:~ # ./date.sh America/Chicago "20201222 12:00:00 UTC"
Tue Dec 22 06:00:00 CST 2020

sue:~ # ./date.sh America/Vancouver "20201222 12:00:00 UTC"
Tue Dec 22 04:00:00 PST 2020

sue:~ # ./date.sh Europe/Paris "20201222 12:00:00 UTC"
Tue Dec 22 12:00:00 Asis 2020

sue:~ # ./date.sh Asia/Tokyo "20201222 12:00:00 UTC"
Tue Dec 22 21:00:00 JST 2020

sue:~ # ./date.sh Europe/Moscow "20201222 12:00:00 UTC"
Tue Dec 22 16:00:00 MSK 2020


As for Daylight savings -- If I provide a date that occurs during daylight savings the routine automatically determine the proper offset and time zone.  Take 2 months ago in Toronto and we get:

sue:~ # ./date.sh America/Toronto "20201022 12:00:00 UTC"
Thu Oct 22 08:00:00
EDT 2020






442
Thin Client/WindX / Re: winproc.rsz performance - increasing speed
« on: December 21, 2020, 11:56:38 AM »
Make sure you are running with Turbo mode enabled (system parameter 'TU' enabled).  Generally it should be on when using Nomads.

443
Nomads / Re: cmd_str$="End" not working in object nomads issue
« on: December 21, 2020, 09:39:46 AM »
The method for Nomads Objects that is called when the user or application request closure of the panel is OnExit() (not On_Exit as posted in your message).

This method can return 0 if the close is not to occur or 1 if you want the closure to happen.

For more details see OnExit() at:
https://manual.pvxplus.com/page/NOMADS%20Graphical%20Application/Appendix/OOP%20Interface/NOMADS%20Object.htm

444
Thin Client/WindX / Re: Auth Failure error
« on: December 17, 2020, 11:50:40 AM »
Try removing the WindX INI file which contains the authorization information.

It should be:

C:\Users\<username>\AppData\Roaming\PxPlus\windxcfg.ini

445
Language / Re: Using get_file_box to drag files to pxplus.
« on: December 17, 2020, 10:52:14 AM »
Two options:

  • If all you want to do is drop files you can use the standard PxPlus directive DROP FILE ON <control> RETURN <CTL event>.  See https://manual.pvxplus.com/page/directives/drop_on.htm#filedrop.
  • If you want to be able to drop things other than files and have then converted into files you can create a Shell.Explorer object pointing to a dummy/empty directory.  You can scan for drop events if you need to know when a file/message is dropped into the directory or read the directory when done. 
    Something like:

    d$="dir_"+dte(0:"YYYYMMDD%hz%mz%sz")
    DIRECTORY d$
    DEF OBJECT Xplr,@(10,5,20,10)="Shell.Explorer"
    xplr'Navigate2(pth(d$))


446
Programming / Re: PasteFilter cannot be turned off
« on: December 10, 2020, 12:29:39 PM »
By default the PasteFilter is off on ALL input that provide for multiple lines of input and takes the setting from the 'PasteFilter" option for single line inputs (default is on)

When I created a panel here with a multiple line high input and loaded the clipboard using:

CLIP_BOARD WRITE "Line 1"+$0d0a$+"Line 2"+$0909$+"tab"+$0d0a$+"Line3"+$0d0a$

If I then pasted this into the input I got three lines.

However we have noted that for some reason there seems to be a difference in "How" you paste the data.  If you right click and paste the filter seems to always apply, however using the keyboard paste CTRL-V the filter does not unless enabled.

We will see if we can determine the reason for the discrepancy.

447
ODBC / Re: Sage/ProvideX ODBC
« on: December 09, 2020, 07:49:18 PM »
Unfortunately the ODBC driver that Sage100 uses is different than the PxPlus SQL ODBC driver.  Although the underlying database and file structures are similar, the enhanced PxPlus version comes in both a 32 and 64 bit version as well as versions for various Linux/Mac platforms.

You would need to contact Sage for assistance with their driver.

448
Language / Re: Strange error 2
« on: December 08, 2020, 04:12:48 PM »
We looked at the logic in memory files and could not an error 2.  The only thing we can think of, assuming its really a memory file, might be if you had a pending IO to a file that returned an error 2 due to space exhaustion or the like.  Some file IO operations are buffered to improve performance.  Its possible when flushing a ending IO operation in background we received an error condition.

It could also be some form of embedded IO for the memory file that itself had the error 2. 

Can you also confirm you are running PVX 15.10 -- To the best of my knowledge there never was a PVX 15.10 -- there was a PxPlus 15.10 but not PVX 15.10.

449
Tips and Techniques / Re: How does SVN work?
« on: December 06, 2020, 02:06:10 PM »
As I said our repository is shared by all our developers and they access it via the internet from anywhere (I've made numerous accesses from cruise ships and on the beach or at the pool on Caribbean islands).

We use putty with ssh certificates to assure who has access to the repository and provide the contributors individual log on userids with certificates for the Linux server. 

The server is on a dynamic IP address on a home cable modem and we use dnsexit.com to provide the dns name services for the server.

I suspect you could use something as small as a raspberry pi to host the repository if you wanted but certainly any old Windows box could be setup with Linux to run as a server.

450
Tips and Techniques / Re: How does SVN work?
« on: December 04, 2020, 09:41:09 AM »
Stéphane,

For us we host the SVN server in-house -- actually quite literally in-house as the server resides off site at our home thus serving not only as the repository but off site backup for all the source.

We back the repository up nightly to both a server in our office and to one of our web site servers which is at a hosting provider (and get daily emails confirming backup was successful -- so at least someone sends me mail on a daily basis ;) )

This setup has worked well for the past 15 years (that is when PVX Plus was founded) and, apart from the odd time when the internet was down, it has provided us easy and secure access to the SVN repository for all our staff. 

Setting up the SVN server on a Linux system was pretty easy to do and took about a hour what with installing and configure the software.  We firewalled the router and network plus provided access keys (SSH encryption certificates) for each of the developers.

We opted to have a private server as it is less a target than a centralized hosting service provider or things like GITHUB might be.  If someone wants to hack into a server they are more likely to target larger sites as the reward would be greater.

As I said, this has worked well for 15 years so my personal recommendation would be to do it in-house as opposed to trying to deal with 3rd parties for setup, backup and ongoing control of user access.



Pages: 1 ... 28 29 [30] 31 32 ... 65