Tuesday, April 24, 2018

How to add an useful option to Icaros' GUI

by on Tuesday, April 24, 2018
Adding a new function to Icaros Desktop's GUI can be straightforward. In this short lesson Mr. Besser will teach you how to add an useful "Browse with ZuneView" context-menu option for your drawers, to let you do exactly what the name of this new option suggests. First of all, be sure you're running Magellan as main GUI, otherwise this tutorial wouldn't be of any use to you. Left-click on an empty spot of your workbench and press the keys rAROS + 5 to open Magellan's editor for file-types

Select "Icaros Drawers" on the left menu, then click on the "Edit" button to the right. The action editor will appear:

Click on the Add button under the "Icon Menu..." field. The "Icaros Drawers : Icon Menu" window will appear.

Now please follow me and pay attention. First of all, move the pointer the the Label field (1) and enter a name for the new option we're adding, in this case "Browse with ZuneView".  Press Enter. Click on the Add button (2) and the "Command" text will appear above. Click on the Command  button (3) and select the AmigaDOS option. Then try to find ZuneView executable using the file browser (4). We suggest to start with the system volume using SYS:, which is device-agnostic. Click on the {} button on the right (5) and select the first available option, {f}. Move to the Flags field (6) and activate the Run asynchronously option. Then click on the Use button on the bottom-left corner.

Click on the Use button on the bottom-left corner of the "Icaros Drawers" window and on the Save button of the File Types one. Now just right click on a folder name in list-view mode et voilà, the new option will show in the context menu. Happy browsing!

Friday, March 30, 2018

MiniMount for The C64 Mini

by on Friday, March 30, 2018
Ok, I admit. When I saw that crazy little thing called "The C64 Mini" I could not resist and I had to get one in my hands. As a former C64 user, I must admit Retro Games Ltd did a very good job, bringing a nice pretty console with a damn simple user interface to the market. Unluckily, simpleness and user friendlyness stop when you decide to play something else than the 64 games already bundled with the machine. In order to mount a different .d64 disk image, in fact, you are supposed to copy your file to the root of a USB pendrive and rename it into "THEC64-drive8.d64" every time. Quite a boring thing to do every time by hand, isn't it? Well, luckily enough, I can save some of your precious time, sharing the script I wrote - for AROS and Windows - to automate the process. Just download the version you need and extract all files into the root of the USB pendrive you're using to mount .d64 files on your C64 Mini, then start "minimount" and choose a .d64 file. It will be copied and renamed according to your little console's needs.

> Download MiniMount 0.1 for AROS
> Download MiniMount 0.1 for Windows

NOTE: the AROS version should work also on any other Amiga(ish) operating system, since only AmigaDos commands are used. The Windows version needs a little program (stored in the Data directrory) called OpenFileBox.exe - which is basically a "requestfile" replacement for Windows by Rob van der Woude. It's included in the zip archive.

Monday, March 19, 2018

Icaros 2.2.2 release candidate available to supporters and beta testers

by on Monday, March 19, 2018

A new release of Icaros Desktop is now available to beta testers and project supporters on Patreon (a supporter is a patron who's pledging 15 dollars/month or more). Since it's still a "beta" version, only the Live! edition ISO file is currently available for testing. This new version includes these enhancements:

- added FolderSync2
- added Appbuilder to demo programs
- added Gilbert to Games
- added GLColumns to OpenGL Games
- added MUI examples to Development
- added metaDiary to Applications
- added RTF-Riddle to Applications
- added Janus-UAE2 (WinUAE port) to Emulators
- added BackupCopy to Filesystems
- updated Hollywood plugins to latest version
- updated AROS libraries
- updated AROS system files
- added mod2wav to CLI commands
- added PDF to PNG option in Magellan GUI
- added MOD to wave option in Magellan GUI
- updated redit (68K) to version 2
- added GPmark to Benchmarks
- added b4sdl and HGui to develoment languages/tools
- added clipo to management tools
- added LuxCC to development tools
- added VMT to misc
- added VAMP to Multimedia players
- added AmiTimeKeeper to Networking
- updated cloud handlers for Gdrive and Dropbox
- AmiBridge can now be optional to save space on system partition
- added DigiClock: digital clock now shown on top right corner of menu bar

To download new build, supporters can use the following link:

> DOWNLOAD  (supporters* only)

(*) To become a supporter, just pledge 15 euros or more to Icaros Desktop on Patreon. Thank you.

Friday, February 23, 2018

Step-by-step guide to hosted Icaros on 64bit Ubuntu

by on Friday, February 23, 2018
Are you still trying to host Icaros Desktop on your 64-bit Ubuntu-based computer, without success? Well, that's a pity: it seems that some new Linux distros can give unexpected problems with our beloved AROS environment. But don't worry! Jess Suau has written a GREAT post about it on his blog. What are you doing still here? Follow this link a read it immediately!

> Jess Suau's guide to hosted Icaros on 64-bit Ubuntu


Fixed issue with Ghostscript

by on Friday, February 23, 2018
Some days ago, I wrote that Icaros' new PDF to PNG option would have worked only if paths and file names had no spaces, and this was due to a precise Ghostscript 8.50 limitation (no spacing allowed; and it does not accept paths surrounded by commas, neither for the input file name, nor for the output one). My initial approach was setting up a Dopus5 action with a command like this:

gs -sDEVICE=png16m -sOutputFile={ou}-p%03d.png {f}

(and some other more or less important switches I don't mention here). If you have ever read Dopus 5 user manual, you should know that once this action was applied to a file name, it would have meant something like:

gs -sDEVICE=png16m -sOutputFile=FILENAME.PDF-p%03d.png THE:PATH/TO/FILENAME.PDF

So, nothing wrong when your input file is something like sys:Pippo/Pluto.pdf

gs -sDEVICE=png16m -sOutputFile=Pluto.pdf-p%03d.png sys:Pippo/Pluto.pdf

but what if your file name included spaces? Let's imagine your pdf is sys:Pippo/Report about 2017.pdf. The resulting command line would have been:

gs -sDEVICE=png16m -sOutputFile=Report about 2017.pdf-p%03d.png sys:Pippo/Report about 2017.pdf

and ghostscript would have interpreted it like this:

gs | -sDEVICE=png16m | -sOutputFile=Report | about | 2017.pdf-p%03d.png | sys:Pippo/Report | about | 2017.pdf

This line would have de facto included 4 unexpected/wrong arguments: about; 2017.pdf-p%03d.png; about and 2017.pdf-p%03d.png. And this explains why the action on some files wouldn't have worked. And no, as I said, using "sys:Pippo/Report about 2017.pdf" wouldn't have worked as well.

So, the solution I found to this problem deals with two potential issues: a space in the sub-directory path, and a space in resulting PNG names. The former issue has been worked around by temporarily copying the pdf file to the RAM Drive, giving it a fixed short name like T:PDFFILE. The latter has been resolved processing the source file name with gsar, removing all spaces. In the future I will improve this search & replace job by adding also other characters Ghostscript does not like. I implemented all this with my old PoorPDF trick (do you remember?): I just respawn the procedure but, instead of showing all images on the screen like I did in the past, I rewrote the script to act like a simple converter, asking the user where to put all PNG images. So, here's what's new on Icaros today:

1. I implemented a poorpdpng command in C: which accepts a file name to open (your PDF file), stores it into a temporary variable and executes a script

2. I wrote the sys:Tools/PoorPDF/PoorPDF2PNG script which a) gets the file name from the variable; b) copies the source PDF file to t:tmppdf; c) cleans the original filename from spaces; d) asks the user where to put output images; e) converts the PDF pages into 150dpi PNG images using the right names.

PoorPDF2PNG asking user where PNG images should be placed

Et voilà. Now spaces are not a problem anymore. By the way, since I was at converting things, I decided to implement also a MOD to WAV/IFF converter. I found on Aminet a program for 68K called "mod2wav" which included sources, and I decided to try building it for AROS too. Thanks to its author Martin Cameron, it worked like a charm with a single 'make' hit. I uploaded it to the Archives too, and it should appear in the next hours. Now Dopus5 has also a "MOD > WAV" option for module songs, and new dafault action for them will be playing with mikmod player, which will be added to sys:Utilities drawer.

Monday, February 19, 2018

Converting PDF files - the quick way

by on Monday, February 19, 2018
Some days ago I was at office and I needed to convert some PDF files into PNG images. Nothing really difficult, there are so many applications doing that, but the quickest I know was and still is Ghostscript. I really love the command line approach, moreover when I have to deal with multiple files, however every time I need to look for the right switches in the on-line help. Since I hadn't ghostscript for Windows at hand, I just fired up my Icaros Desktop virtual machine, imported all PDF files I needed to convert, and exported the resulting PNG files a few minutes later. Quick. Functional. Easy. But since it's not the first time I run Icaros Desktop just for this specific task, I decided to add a PDF -> PNGs option to PDF file type in Dopus 5. That way, just selecting the file and this option would do the trick. I also decided to include this in mainstream Icaros, even though at the moment there is a little shortcoming: PDF file name and path must not include spaces. Maybe I will find a way to fix this as well, but starting from Icaros 2.2.2 you should be able to convert your files with a couple of mouse clicks. Default resolution will be 150 dpi, which should be enough to render readable texts and detailed images. 

ZuneView showing results of a conversion

Example of converted page