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 - André Heldoorn

Pages: [1] 2 3 ... 22
1
Programming / Re: Rexx -> IBM C
« on: October 14, 2018, 11:01:27 am »
It may even be a bug of FF 62.0.3, or a feature of DOM. DOM says the source code of the selected text is "£".  The source code of the whole page gets is right by showing the original "£". Perhaps, with ye olde charset=iso-8859-1 or all charsets, is DOM trying to be smart when £ may not be required (anymore) to display the GBP character correctly.

The source of the "&" in the same name is always "&".

AFAICT all browsers are showing the HTML page correctly. It could have been my bug because the "£" was a last character of a name, but it wasn't.

If you ever want to copy & paste HTML code, then don't use "DOM source" but use the source code of the whole page. Apparently DOM may show interpreted, improved or simplified source code.

2
Programming / Re: Rexx -> IBM C
« on: October 13, 2018, 08:08:07 pm »
"Boussard&Gavaudan £" -> "Boussard&Gavaudan £". I was expecting a £ as a final character now

FWIW: possibly a feature (of a FF) instead of a bug. The real source code uses £, but source code displayed by a FF apparently shows this as £ again. The target browser is Netscape/2 (and anything newer), so I didn't check which character may possible be supported by now without having to HTMLífy this character.

The code now uses strcat() and switch(). No pointers (to pointers) yet, but the global variable isn't that large and I claim to know how that works. Instead of using HTMLName(record.name) I'm using strcpy(buffer,record.name);HTMLName() now.

3
Programming / Re: Rexx -> IBM C
« on: October 12, 2018, 01:27:58 pm »
I don't think the code you have will work like you want it to.  You're scanning through buffer[ i ], and you're updating into buffer[ ++i ], meaning when you encounter "&" you'll be replacing it with "&" and overwriting whatever would've come after.

Thanks, I'll apply the suggestions, if anything to avoid a weird coding style. Main ones: compile a new string to not save a few bytes or to mimic a Rexx function, and switch.

The & code works (which should insert "amp;"), but the other code may be broken:

"Boussard&Gavaudan £" -> "Boussard&Gavaudan £". I was expecting a £ as a final character now, but I'll have to check that specific character later. Not important; this is about not adopting a weird coding style due to mainly ported code. Fixing a bug, if any, should be easy. The on-topic & is the expected result.

4
Hardware / Re: The best ThinkPad models for running ArcaOS?
« on: October 12, 2018, 12:43:11 pm »
If WiFi is that important to you, stay with the T60, until the WiFi driver is made available. By then, there may be other options, including your E540.

Or upgrade to a pimped T60p, which could take care of the resolution: http://www.thinkwiki.org/wiki/Category:T60p.

5
Setup & Installation / Re: ecomstation 1.1 and USB
« on: October 12, 2018, 12:31:03 pm »
it works with ecomstation 2.2, but I have no success with 1.1.

Same hardware, same order of attaching devices to the same ports? And so on. Do devices (charging phone, USB gadgets, ...) which don't require OS support work? There are many reasons why a device doesn't work, will sometimes work, and so on.

6
Programming / Rexx -> IBM C
« on: October 10, 2018, 11:36:50 am »
I've got a list of names, with about 10 possibly occuring characters which have to be converted to Netscape's HTML. I'm checking all characters and insert missing characters ("&": "amp", "á": "á"). The number of characters is known and limited.

The virtual code below works. Is this a normal way to do this? Should I be using "case" instead of a nested "if"? Several apps use the same code (and names), so should this become a DLL?

Execution speed is not a problem. Speed gains are nice-to-have, in this case.

Just checking, I don't want to get used to bad programming habits like using a sprintf(buf,"%s",text) instead of a strcpy(buf,text). I'm aware of the lack of comments, and so on. A global variable (buffer) is used to avoid arguments, TBH. With Rexx I'd use functions like INSERT and/or CHANGESTR, but I assumed that with C you'll have to insert characters the harder way.


Code: [Select]
void HTMLName(void)
{
int i,j,len;

len=strlen(buffer);

for (i=0;i<len;i++)
   {
   if (buffer[i]=='&')
      {             
      for (j=len+3;j-4>i;j--)
         buffer[j]=buffer[j-4];
      buffer[++i]='a';
      buffer[++i]='m';
      buffer[++i]='p';
      buffer[++i]=';';
      buffer[len+4]=0;
      len=strlen(buffer);
      }
   else if (buffer[i]=='á')
      {             
      for (j=len+6;j-7>i;j--)
         buffer[j]=buffer[j-7];
      buffer[i]='&';
      buffer[++i]='a';
      buffer[++i]='a';
      buffer[++i]='c';
      buffer[++i]='u';
      buffer[++i]='t';
      buffer[++i]='e';
      buffer[++i]=';';
      buffer[len+7]=0;
      len=strlen(buffer);
      }
   else if (buffer[i]=='¥')
      {             

      ...

      }
   else if (buffer[i]== ... )
      {             

      ...

      }
   }
return;
}

7
Applications / Re: Gimp & ArcaOS
« on: October 10, 2018, 11:17:01 am »
Trying to run my HobX11 on ArcaOS results in a popup about an illegal copy or such and suggests reinstalling ... Probably the version that shipped with eCS 1.x would work given putting ecsreg.ini or ecsreg1.ini in the right place.

Is any of the X environments a fully functional component of eCS 1.x indeed?

8
Applications / Re: Gimp & ArcaOS
« on: October 09, 2018, 11:44:58 pm »
The needed librarieas are from 2005 and I didn't want to replace the newer ones installed - that would probably break most of the newer software installed.

I'm not using Gimp, but you could add SET BEGINLIBPATH=x:\GIMP and SET LIBPATHSTRICT=T to all WPS program objects of Gimp. Unless newer libraries are even better than the ones in that package of required libraries.

9
Applications / Re: My experience with ArcaOS & problems I've faced etc.
« on: October 09, 2018, 10:45:24 am »
Yes, Firefox has become so bloated that even Mozilla gave up on its rendering engine

Retorical: one of the blessings of Agile software development? Too bad; whatever...

If possible and needed I do download YouTube videos by default, and with Windows the Internet Exploder tends to be a better choice for higher-res videos.

10
Utilities / Re: architecture/substitute of cmd.exe ?
« on: October 09, 2018, 10:37:31 am »
BTW, Thanks for the ME Editor.  I find it useful when I need a text file open and available on the desktop for days - the other editors force a reboot after a week if they are left open.

Yet another advantage of ME is its Col mode (click on NormBlk to toggle), to e.g. delete a column of text in a file with a fixed line width.

11
Applications / Re: Help with ArcaOS font settings...
« on: October 08, 2018, 10:44:48 am »
I shouldn't have any dragged & dropped fonts, but "HELP REXX SysIni" or e.g. the app Initor may be an "easy" way to uninstall (all) test fonts. Or restore the previous desktop...

(3840x2160) resolution. I might consider using 1920x1080 to evade the issue, but Panorama isn't giving me that option. Other than functional 4K, only some 4:3 resolution options are given.

Without wanting to promote any of the 4:3 settings, my maximum X is 1600 and my maximum Y is 1200. Sizes of e.g. button are in fixed units (so not 10% of the width of the screen), so excuse me for making some of the PM apps look like a broken pixel.

A version with a.o. larger buttons would come down to a second release for XXL resultions like yours, and installing a matching font could become an implied requirement. With my default font the maximum size is 14, IIRC; you may need 18+. AFAICT the problem of larger buttons would also apply to larger images ("tiles") somehow, and then authors will have to replace buttons by small and large images.

Apps which are designed for XXL resolutions may look ugly with 50% or less of your resolution. As if the rest of the world is as blind as a bat, or should upgrade their stamp-sized monitors. The problem is not that authors will still have 640x480 in mind, albeit it doesn't help that visual dialog editors and default system fonts may be as old as a maximum size of 1024x768.

So contacting (many) authors may not help, but one could be tempted to consider modernizing a design. Not as small as possible to reduce a footprint or to support small screens, but "clear". Unfortunately disadvantages are quite clear too, like an external font becoming an implied requirement on top of e.g. an OS/2 Warp 3 install. At the moment I'd consider a second XXL release (same code, but larger PM elements), but mainly just because it may be interesting to see what it looks like and what can be done with a "clear" touchscreen look, despite of the fact that I don't like "tiles" for theoretical touch screens and mobile devices.

12
Applications / Re: Help with ArcaOS font settings...
« on: October 07, 2018, 01:10:23 pm »
change titlebar or dialog texts, but it appears setting fonts to a larger size would mess the dialog up. The text may get cropped, and not all elements are affected by the font change (some fonts remain unchanged even after applying the new font).

I'd suggest to contact the author of the PM app. Any text-related element, per window, may have been intentionally designed with a specific text size, element size and/or text font in mind, and the OS won't solve all possible issues. If a small button is designed for a 12.Default "Ok", then the 2 dropped 10.Japanese or 18.Japanese characters "Oh-ka" may not fit.

The author may not be willing to help you, because it's possible that you are destroying the concept of a lovely small window by claiming that you are as blind as a bat and need a font size of at least 60. There is more to it than just not using "12.Default" as a property of displayed text.

13
Applications / Re: Lucide 141b9 or 141b10
« on: October 07, 2018, 12:23:23 am »
You need 0.59.0 it has only been on netlabs-exp for a couple of weeks. It contains popple70.dll

Thanks, couldn't find 59 @ the RPM ZIP directory.

14
Applications / Re: Lucide 141b9 or 141b10
« on: October 06, 2018, 07:18:58 pm »
Lucide 1.4.1 requires libc 0.6.6-38, libcx 0.6.3-1 and Poppler 0.59.0. They are available from the netlabs-exp RPM repository.
Not 0.49.0?

15
Utilities / Re: architecture/substitute of cmd.exe ?
« on: October 06, 2018, 03:53:48 pm »
A maximum of 8160 (80x102) is used in e.g. REXXUTIL.C indeed.

So one may have to write a PMCMD.EXE, which won't be compatible with CMD.EXE nor CMD.EXE's character mode anyway.

Pages: [1] 2 3 ... 22