Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
124 user(s) are online (83 user(s) are browsing Forums)

Members: 0
Guests: 124

more...

Headlines

Forum Index


Board index » All Posts (thomas)




Re: Changing file type from project to program
Not too shy to talk
Not too shy to talk



Make sure that R and E bits are set for the file like Severin suggested.

To make a file executable, two conditions must be met:

1. the contents of the file has to be an executable program
2. the E bit has to be set in the file system

If either one condition is not met, you get the "not executable" error message.

Usually new files get all RWED bits on, but sometimes they get lost, for example when using an unsuitable archiver.

Also make sure that the file has not been corrupted. If the file structure is damaged, it won't be recongised as an executable program.

Go to top


Re: ObtainBestPen()
Not too shy to talk
Not too shy to talk



Where do you see an alpha channel? There is no way to specify an alpha channel. There is only red, green, blue, precision and fail if bad.


Go to top


Re: Reminder to anyone using the Contact option
Not too shy to talk
Not too shy to talk



Perhaps you should put this message on the Contact page, too.


Go to top


Re: Icon to BitMap
Not too shy to talk
Not too shy to talk



do_Gadget.GadgetRender has no meaning on OS4, it only contains some kind of legacy image for compatibility with old programs.

You can use IconControl to read the pixel data of the real image.

Or just use DrawIconState to render the icon into the bitmap.


Go to top


Re: GetInterface() fails for (68k) ID3tag.library, any ideas?
Not too shy to talk
Not too shy to talk


@ChrisH

Here is the source code of my version: http://thomas-rapp.homepage.t-online.de/download/id3tag_os4.lha

Maybe you find something by comparing with yours.


Go to top


Re: GetInterface() fails for (68k) ID3tag.library, any ideas?
Not too shy to talk
Not too shy to talk


@ChrisH

If you don't want to create it yourself, you can use the id3tag.l.main from this archive: http://aminet.net/package/mus/play/DAPlayer_os4

However, here are instructions how to do it yourself: http://thomas-rapp.homepage.t-online.de/ppclib.html

Go to top


Re: Insert/remove USB device
Not too shy to talk
Not too shy to talk



I don't know how to make it specific for USB, but generally you would just listen for IDCMP_DISKINSERTED and IDCMP_DISKREMOVED messages. Or, if you want to get the information when your window is inactive, too, you would create an input handler or commodity which watches for IECLASS_DISKINSERTED resp. IECLASS_DISKREMOVED events.

Regarding WinUAE I am quite sure that you have removable harddisk support, at least when using UAE controller.

Go to top


Re: Edit the Dock/AmiDock in OS3 Workbench?
Not too shy to talk
Not too shy to talk



AmigaForever does not contain AmiDock, it uses Toolmanager.

Use SYS:Prefs/Toolmanager to edit the config.

Go to top


Re: Detecting if a 68k prog is running on os4 ?
Not too shy to talk
Not too shy to talk



Even if the bug only shows on OS4, it is still a bug. You should fix it properly and not work around it.


Go to top


Re: How find handler/filesystem name of a volume?
Not too shy to talk
Not too shy to talk


@mritter0

Quote:
Identifying devices shouldn't be such a difficult task. The OS should know what each device specifically is and can tell you easily.


That's against its philosophy. From the very beginning AmigaDOS treated all devices the same. It does not know, does not need to know, does not want to know which type a device is. Each attempt to identify a device type in AmigaDOS is a hack, based on assumptions which might or might not always work.


Go to top


Re: How find handler/filesystem name of a volume?
Not too shy to talk
Not too shy to talk


@ChrisH

#include <proto/dos.h>

int main (void)

{
struct DosList *dl;
struct MsgPort *port;
struct Process *pr;
struct CommandLineInterface *cli;

dl LockDosList (LDF_VOLUMES|LDF_READ);

while (
dl NextDosEntry (dl,LDF_VOLUMES))
    {
    
Printf ("%-10b: ",dl->dol_Name);
    if ((
port dl->dol_Task))
        {
        if ((
port->mp_Flags PF_ACTION) == PA_SIGNAL)
            {
            
pr = (struct Process *) port->mp_SigTask;
            if (
pr->pr_Task.tc_Node.ln_Type == NT_PROCESS)
                {
                if ((
cli BADDR(pr->pr_CLI)))
                    {
                    if (
cli->cli_CommandName)
                        
Printf ("%b\\n",cli->cli_CommandName);
                    else
                        
Printf ("no command name\\n");
                    }
                else
                    
Printf ("no CLI\\n");
                }
            else
                
Printf ("task is not a process\\n");
            }
        else
            
Printf ("no task in port\\n");
        }
    else
        
Printf ("no port\\n");
    }

UnLockDosList (LDF_VOLUMES|LDF_READ);

return (
0);
}


gives something like this for me:

5smbvol
Users     
smbfs '//video/users'
Ram Disk  no CLI
Public    : no CLI
VideoWB   
no CLI
5
>


Go to top


Re: How find handler/filesystem name of a volume?
Not too shy to talk
Not too shy to talk



For SMBFS you could check if dol_Task points to a proper MsgPort whose mp_SigTask points to a Process with pr_CLI set and cli_CommandName beginning with "smbfs".


Go to top


Re: SSD in a MicroA1. Is it worth it?
Not too shy to talk
Not too shy to talk


@Raziel

Quote:
How do you change "Heads" or any other "Physical Data" with Media Toolbox?

I tried and it won't let me, the information displayed in MT's RDB/disk geometry window is just that, information, with no means to be edited.


No idea. I thought they were editable in expert mode. HDToolbox allows to edtit them.

They are not physical after all. There are no heads, tracks and cylinders in an SSD and even a harddrive does not allow access to this internal geometry data.


Quote:
Also, i've got Cylinders, Secors, Heads and Blocks per cylinder, Total cylinders, Total sectors and Block size, but i don't find any "Secotrs per track".


'Cylinders' is the same as 'Total Cylinders'.

'Sectors' is the same as 'Sectors per Track'.

'Heads' is the same as 'Tracks per Cylinder'.

'Blocks per Cylinder' is just the result of multiplying Sectors and Heads. 'Block' is used as a different word for 'Sector' in this context.

'Total number of Sectors' is just the result of multiplying 'Sectors per Cylinder' by 'Total Cylinders'.


Quote:
Regarding block sizes, i'm using SFS with 4096 and it works like a charm, what would be the advantage of using a block size of 512 other than it "might" be slower on SSD's?


The documentation says that SFS does not support anything but 512. That it "works like a charm" does not mean that it is safe.


Go to top


Re: SSD in a MicroA1. Is it worth it?
Not too shy to talk
Not too shy to talk



When you install the drive, change heads and sectors per track so that one cylinder has 2048 sectors. Then all your partitions will automatically be aligned to megabyte boundaries.

When creating partitions, change file system block size to 4096 so that file system clusters are aligned to SSD pages. (Note that only FFS supports block sizes other than 512. If you use another file system, leave it at 512.)

Leave a certain percentage at the end of the drive empty, then the drive can use this space as spare sectors for its over-provisioning and things like that.

DO NOT FORMAT PARTITIONS!! Always use quick format. If you do normal format, the drive will be unable to do its garbage collection and such because all sectors have been written to already. GC and automatic TRIM need sectors which have not been written to.

If you still have the choice, buy one which is advertised with automatic TRIM, garbage collection and all these features, because there is no support in AmigaOS for SSDs. The drive has to do all the work on its own.


Go to top


Re: Assigned project: Assign manager
Not too shy to talk
Not too shy to talk


Quote:
An add assign is an assign created with the ADD directive. (assign s: path: ADD)

Quote:
Ability to toggle if an assign is an add assign or not


I wish people would understand what they write about before they write it.

Go to top


Re: Listbrowser
Not too shy to talk
Not too shy to talk



Do you need to know about the click (which node was clicked on)?

If not, you can just set GA_ReadOnly to TRUE. Then the browser will not react on clicks.


Go to top


Re: RHash bug
Not too shy to talk
Not too shy to talk



Which means that SMBFS is the only one which does it right.

Quote:
smbfs redirects to SYS: (I'd consider this a bug)

Go to top


Re: BEWARE unreliable Seagate HDs (esp. 7200.11 & 7200.14)
Not too shy to talk
Not too shy to talk


Given that a 3TB HDD has almost 6 million sectors, having 2000 bad ones is not such a big deal.

As you can see, they have been reallocated automatically by the drive, the OS didn't even see them as bad.

Once the OS reports a bad sector is when you should start to worry.

OTOH using a 3TB HDD is stupid anyway. If it dies, 3TB of data is lost for good. You only need to drop it or hit it by accident and it is dead.

Even nowadays 80GB or 160GB is plenty of space for OS, programs and data.

If you need to store huge amounts of data, you shouldn't save it on a single harddrive but rather on a RAID of some kind which does not lose anything if only one of many disks fails.


Go to top


Re: error validating amigaos 4.1?
Not too shy to talk
Not too shy to talk


Quote:
Seen it before, can't remind the proper solution.


The directory it tries to write its log file to does not exist.


Go to top


Re: Environmental variables - Library?
Not too shy to talk
Not too shy to talk



If you talk about OS3 which will never again change, then ok, do what you want.

But if you develop for OS4 and want to be future-proof, then RTFM! And please don't argue against what the docs say.

I know that up to now env vars are stored in files and can be used like files. But anyway the env system should be considered a black box which can change. Don't give bad advice only because you know about the inner workings. They might change in the future.

(And harddisk activity while reading or writing data proves nothing. Of course permanent settings have to be saved to disk, otherwise they wouldn't be permanent.)

Go to top



TopTop
« 1 (2) 3 4 5 ... 14 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project