Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:35 10 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBasic for Windows - alphas

     Page 12 of 12    
Author Message
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1526
Posted: 02:51pm 26 Feb 2022
Copy link to clipboard 
Print this post

  lizby said  ...
(Who has more rights on my laptop than I as administrator do? ... grrr)

SYSTEM.

EDIT
Google: windows get system rights
Edited 2022-02-27 01:04 by twofingers
causality ≠ correlation ≠ coincidence
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 06:47pm 26 Feb 2022
Copy link to clipboard 
Print this post

  twofingers said  Google: windows get system rights


Hmmm. When I get to "Advanced Security Settings for bin" (C:\bin), "Permissions", I see that "Administrators" have "Full Control" (as does SYSTEM), and I am the only Administrator.

So still looking for a solution.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 06:55pm 26 Feb 2022
Copy link to clipboard 
Print this post

Look at the security properties of the directory. You will probably find that neither SYSTEM nor administrator have write access rights. Somebody will have so use that account or it may be that administrator can give itself the required rights
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 07:38pm 26 Feb 2022
Copy link to clipboard 
Print this post

  matherp said  Look at the security properties of the directory. You will probably find that neither SYSTEM nor administrator have write access rights. Somebody will have so use that account or it may be that administrator can give itself the required rights

As above, both Administrators and SYSTEM have "Full Control" (as does now my (Administrator) user ID after I added it). I still get "Access is denied" when I try to copy it with a (new) DOS Administrator command prompt.

attrib \dl\micromite\_mmb4w\mmbasic.exe
 yields
A                    C:\dl\micromite\_mmb4w\MMBasic.exe

I do not have a mmb4w session active.

(Added: no problem copying it on another laptop.)

~
Edited 2022-02-27 06:27 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7501
Posted: 09:20pm 26 Feb 2022
Copy link to clipboard 
Print this post

Always handy to have a USB-stick linux for such occasions.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 09:49pm 26 Feb 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  Always handy to have a USB-stick linux for such occasions.

How would that help?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
mclout999
Guru

Joined: 05/07/2020
Location: United States
Posts: 483
Posted: 04:07am 27 Feb 2022
Copy link to clipboard 
Print this post

  lizby said  
  Mixtel90 said  Always handy to have a USB-stick linux for such occasions.

How would that help?


You can live boot from it and have a way to work on your system.  I have been using a few utility tool boot sticks designed to fix a lot of issues like lost logging passwords

This is just one of many videos or articles about boot utility sticks. v=3BZW0x7J190&ab_channel=ThioJoehttps://www.youtube.com/watch?v=3BZW0x7J190&ab_channel=ThioJoe

EDIT: Same guy shows how to use Ventoy multiboot tool.  Nice. I did not know about this one. You can have many boot tools on one USB stick. https://www.youtube.com/watch?v=CuonyS3xdwg&ab_channel=ThioJoe
Edited 2022-02-27 14:31 by mclout999
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7501
Posted: 09:37am 27 Feb 2022
Copy link to clipboard 
Print this post

I've used a USB stick of Puppy Linux as a rescue device a few times. You can even use it on a borrowed PC and leave no trace as the USB stick can also be your storage. :) The only requirement is that the machine is capable of booting from USB. It doesn't matter if the HDD is scrambled as you don't need to use it. You can still read, write, modify just about anything on the HDD even if windows can't even see it. You can also change file permissions. While running Puppy you can even go online, providing the hardware is working, to look for help.

It's a general purpose little OS. And it has a nice desktop. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 12:42pm 27 Feb 2022
Copy link to clipboard 
Print this post

I've also booted linux from a USB stick, but even if I am able under it to copy the file to where I want it, that won't help me when the next alpha is released (if I encounter the same problem).

It remains a mystery to me how a laptop which I own and am administrator of, used by no one else, can suddenly say (after a Win10 update, which might or might not have caused the problem), that I don't have the necessary rights to copy a file anywhere on my hard drive.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7501
Posted: 01:29pm 27 Feb 2022
Copy link to clipboard 
Print this post

Oh, you should know that Microsoft can do no wrong. ;)
I'd just boot into linux, change the permissions on the directory and go back to windows. Then wait to see what happens. It could just be a fluke of random electrons. There are a lot of them around.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3309
Posted: 01:49pm 27 Feb 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  I'd just boot into linux, change the permissions on the directory and go back to windows.

But the permissions, as reported, are correct, so what would I change them to?

This seems to be a problem only for me, so I won't pursue it further here. Sorry for the diversion from the topic--I had hoped there would be a quick fix.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7501
Posted: 02:55pm 27 Feb 2022
Copy link to clipboard 
Print this post

"as reported" is the clue. What the permissions are and what windows tells you that they are may not be the same thing. Linux doesn't use the same permissions system as windows and will generally read and change the *actual* permissions bits. It's worth having a look at what linux says anyway if you suspect permissions have been changed.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Michal
Senior Member

Joined: 02/02/2022
Location: Poland
Posts: 125
Posted: 04:24pm 27 Feb 2022
Copy link to clipboard 
Print this post

Hi lizby,

Some files may be protected with a higher priority than Administrator.
Read on about TrustedInstaller.

Michal
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 04:11am 20 Oct 2022
Copy link to clipboard 
Print this post

Hello all,
I hope this is the correct place to ask these question as this thread seems to have gone cold but:

1) Is there a problem with JSON on MMB4W?
I have MMB4W 5.7.03 (the latest?) and I'm using Peters code above "Posted: 02:04am 26 Feb 2022" but with my APIKEY and my place ID.
At the end I've added:

Print "Sunset= ", json$(m%(),"sunset")    

expecting to get the EPOCH number of the sunset time.

It runs (very quickly), I get everything else printed but I only get blank for the sunset time.
Similarly, for most of the other parameters (I've tried almost all, including from the command line etc) I only get blank (and no error messages).
I've also re-keyed Peter's statements and they work.

Has Peter managed to pick the working ones or am I doing something very wrong?

2) Is there a newer version of MMB4W?
3) Is there a newer release of the manual.

4) the TCP command makes it so easy to access the web from a PC - is there any possibility of a similar one on the PicoMite (albeit with some LAN connector?) (the ESP8266 is a poor second in my view).

Many thanks,

Andrew
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6219
Posted: 05:56am 20 Oct 2022
Copy link to clipboard 
Print this post

  Quote  Print "Sunset= ", json$(m%(),"sunset")    

expecting to get the EPOCH number of the sunset time.


Print "Sunset= ", json$(m%(),"sys.sunset")


Difficult to see without formatting the string but you need the "sys" prefix.

Jim
VK7JH
MMedit
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 06:24am 20 Oct 2022
Copy link to clipboard 
Print this post

Thanks Jim,

Yes that did it!

I was about to ask why but I now see that it is within the sys brackets { } and "name" "Kew East" are outside it so don't need the sys. OpenWeather/JSON 101.

Any thoughts on my other three questions?

Cheers,

Andrew

Here is the output after I added the "sys."
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4251
Posted: 09:31am 20 Oct 2022
Copy link to clipboard 
Print this post

Hi Andrew,

You've resurrected the "alpha" thread, you need to look at the "beta" one: https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=14614

  Andrew_G said  2) Is there a newer version of MMB4W?

The latest stable release is 5.07.03b10. There was a b11 but it was unstable. I'm currently doing some work for Peter that may become the new b11/b12 but things have gone a bit haywire in Cassa Williams over the last couple of weeks.


  Andrew_G said  3) Is there a newer release of the manual.

Has there ever been a manual for MMB4W ? My observation is that Geoff generally doesn't produce a manual until an MMBasic port reaches release candidate (RC) state.


  Andrew_G said  4) the TCP command makes it so easy to access the web from a PC - is there any possibility of a similar one on the PicoMite (albeit with some LAN connector?) (the ESP8266 is a poor second in my view).

<Raises shields and retires to a safe distance> .

I shouldn't speak for Peter, but I imagine anything that he could do in this area with the PicoMite firmware could first be done (albeit with worse performance) by someone else in MMBasic (or a CSUB). If/when that happens I imagine Peter would take a view of whether to port it into the firmware (space permitting).

Best wishes,

Tom
Edited 2022-10-20 19:39 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 11:00am 20 Oct 2022
Copy link to clipboard 
Print this post

There are examples on TBS of using a ESP8266 with MMBasic to access weather. This works fine without any need for firmware changes including on the PicoMite
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 868
Posted: 11:20am 20 Oct 2022
Copy link to clipboard 
Print this post

Tom,
Oops and sorry. Thanks for your answers.

Peter, thanks and understood.

Andrew
 
     Page 12 of 12    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025