Recent

Author Topic: Test Hook To OS Signals  (Read 1573 times)

Khrys

  • Full Member
  • ***
  • Posts: 221
Re: Test Hook To OS Signals
« Reply #15 on: March 12, 2025, 09:57:26 am »
If you refuse to run non-free Javascript like Richard Stallman, you could just clone the repository without using a browser at all:  git clone https://github.com/gcarreno/TestHookToOSSignals.git

I am not all that sure that Richard Stallman is an ideal example to us all.

I added the Stallman comparison to take a jab at those who demand special treatment because they refuse to use popular services for kooky reasons   :-X

MarkMLl

  • Hero Member
  • *****
  • Posts: 8382
Re: Test Hook To OS Signals
« Reply #16 on: March 12, 2025, 11:36:16 am »
I added the Stallman comparison to take a jab at those who demand special treatment because they refuse to use popular services for kooky reasons   :-X

I sympathise with the person being discussed here, but the bottom line is that she refuses to listen when people tell here that there's easy ways round the problems she's seeing.

I believe she's running Windows and that she protests that she can't afford to buy a "new" computer, which probably means v7 or later. I suspect that she's using whatever browser was shipped with it, which- if it really is an old computer- is probably so raddled with unfixed security flaws that she's far more at risk from that than from using even the most intrusive social media.

Firefox still supports OSes that "old", and is reasonably well-behaved when it comes to leaking embarassing details of ones personal life (whether or not the person being discussed has any, I prefer not to speculate).

It's possible- in fact this is how I have worked for the last 20 years or so- to have a default profile with absolutely everything locked down (install NoScript, disable more of the JavaScript etc. internal support and so on) and that will be /far/ more robust than anything shipped with an old version of Windows: and /far/ less intrusive than e.g. Chrome.

Then have a separate profile used /only/ for Github etc., another separate profile used only for banking, and so on.

There is absolutely no reason for even the most paranoid to not do something like that. And I write as somebody who has resolutely avoided Twitter, Facebook, Whatsapp and so on: sometimes to my detriment, but basically the only things they know about me have been acquired without my consent.

I don't like faceless multinationals. I like rapacious American companies masquerading as multinationals even less. But my dislike for those is nothing when compared with persistent messaging that I really /must/ join such-and-such a communications channel, and that extends all the way from Facebook to Joanna's execrable IRC.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1362
Re: Test Hook To OS Signals
« Reply #17 on: March 12, 2025, 01:19:47 pm »
@Joanna
Thanks for showing some of the code. I think that GitHub changed something because I can now View code on the same old browser.
Ah, you could not see it ?  Sorry, I thought it was a case of you not wanting to go there. I see no reason for a read only page to to be running invasive JS stuff. My Firefox has DDG Privacy Essentials and AdBlocker Ultimate and they allow me to use both read and write Github. Hope it stays that way ....
Quote

On line 6 inside case statement, isn’t it better to use otherwise. It would make it more readable because otherwise is only used in case statements.
Yep, agree. Its just I can remember 'else' but not, usually 'otherwise' ! Maybe I will now ?
Quote
As for stallman, it looks like he stuck his foot in his mouth. It should obvious to anyone that many problems could be averted if people refrained getting “intimate” with others whom they are not married to...
What an interesting world that would make !  Seriously, I think RMS does have a condition where he says (and writes) things before considering how they will be read by other people. I value the work he has done with GNU and opensource but I would not want to be in his inner circle of friends.
Davo
I prefer Firefox because it has a night mode. I have tried all sorts of browsers on different computers and GitHub didn’t work on most of them. It was showing me a black screen with black font and to see what was there I had to copy and paste elsewhere. I’m not too pleased about who bought GitHub either..

Otherwise has always been the default option for case statements Since I’ve used pascal. I'm not sure why else was added. It’s inconsistent because it’s supposed to be paired with an if then statement. By all means an else makes sense if there is an if then else statement as part of the case statement options.

I can’t say that I’m an expert on stallman but i would guess that there are people who don’t like what he is doing with the free Software Foundation and maybe arranged for him to be baited into an off topic discussions that could be used to smear him and hopefully destroy/disrupt the free Software Foundation.
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

MarkMLl

  • Hero Member
  • *****
  • Posts: 8382
Re: Test Hook To OS Signals
« Reply #18 on: March 12, 2025, 02:26:56 pm »
I prefer Firefox because it has a night mode. I have tried all sorts of browsers on different computers and GitHub didn’t work on most of them. It was showing me a black screen with black font and to see what was there I had to copy and paste elsewhere. I’m not too pleased about who bought GitHub either..

That's reasonable, but in that case you need to investigate the multiple profiles facility.

I don't know about the black-on-black side, particularly since I think you're a Windows user. I've seen that sort of think with KDE on Linux using Intel display hardware, it mostly went away when I got an AMD card.

Quote
Otherwise has always been the default option for case statements Since I’ve used pascal. I'm not sure why else was added. It’s inconsistent because it’s supposed to be paired with an if then statement. By all means an else makes sense if there is an if then else statement as part of the case statement options.

Sorry but that's rubbish. J&W ed.2 doesn't document else and explicitly says that if there's no matching case label the result is undefined, I think (but am not sure) that else was a Borland thing and they subsequently added otherwise to allow for things like

Code: Pascal  [Select][+][-]
  1. case something of
  2.   foo: begin...end;
  3.   bar: if bletch then begin...end
  4. else
  5. ...
  6. end;
  7.  

where the compiler will incorrectly associate the else with the final if-then.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1186
  • Professional amateur ;-P
Re: Test Hook To OS Signals
« Reply #19 on: March 12, 2025, 03:50:12 pm »
Hey Davo,

@Gus
I think that's not possible any more in more recent versions. When I researched this via Google, and I think also on ChatGPT, they mentioned FpSignal.
But I got an error and had to opt for fpSigAction.
Hmm, works fine for me. I am using FPC324-branch and a "uses ... baseunix, ...

That's rather interesting!!! Thanks for double checking!!
I'll have a proper look at what I fucked up!!

Cannot thank you enough for your time spent on this !!

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12162
  • FPC developer.
Re: Test Hook To OS Signals
« Reply #20 on: March 12, 2025, 05:51:44 pm »
(signal is usually a wrapper that calls sigaction)

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1186
  • Professional amateur ;-P
Re: Test Hook To OS Signals
« Reply #21 on: March 12, 2025, 07:35:03 pm »
Hey marcov,

(signal is usually a wrapper that calls sigaction)

Hey, also good to know!!

I guess I'll try again on signal since I really don't like having the warnings about non used variables. I hate them!! :D

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

 

TinyPortal © 2005-2018