Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Monday, March 26, 2018

Amstrad CPC Easi-amsword to HTML converter made with javascript, html and css

In 80's, early computers consumers use simple and primitive word proccesors like Easy-amsword, made in Basic, usually included as a gift when you buy an Amstrad CPC464.
Some users make several docs than only this software can read, so now you need an operative Amstrad CPC or an emulator to read them, there isn't a simple way to convert them to new formats... until now.
I make a simple software to convert these files to simple HTML, so you can edit with a new wordproccesor as LibreOffice.org writer or HTML editors like BlueGriffon.
 Easi-amsword to HTML (source code)

How to install and run

  1. Download from here.
  2. Uncompress this ZIP file in a folder.
  3. Open eamsword2html.en.html file in your favourite web browser.

How to use

To use this software follow these steps:
  1. Select an easi-amsword file.
  2. Click on Convert button.
  3. Click on Save as HTML code, Convert to HTML or See as HTML code.


This software can use original easi-amsword files or the unofficial fork that manages several special characters or some format as bold, italics, overwrite, etc...
This software is under GNU/GPL 2 license so you can get here the source code, you can change to fix to your needs.
I hope it is useful for you to recover your documents of that time stored in tapes and you can preserve them for the future.

Notice: this software may be buggy, if you detect a bug comment in issues section.

If you can't extract your easi-amsword docs from your tapes, look at this.Artículo original en castellano

Monday, November 27, 2017

Add css over your blogger theme to get your blog more responsive

Blogger adds borders for bigger widths and doesn't show all the screen for small width, now you can solve this problem.



You can add css over your theme, you need go to blogger's back-end and select these options: Themes > Advanced > Add CSS.

I add these piece of code in my blog in order to get responsible widths, separate code, avoid overflow in images without deformations and something else:

body {
    min-width: 0px !important;
    padding: 0px;
}

.content-outer, .content-fauxcolumn-outer, .region-inner {
    min-width: 0px !important;
    max-width: 10000px !important;
}

th {
    background-color: #006600;
    color: #ffff99;
}

th, td {
    padding: 0.04em 0.3em;
}

code {
    background-color: white;
    padding: 0.2em 0.7em;
    margin: 0.5em;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
    border-radius: 0 0 2px 2px;
    display: block;
}

.main-outer img {
    max-width: 99%;
    height: auto;
}

.post-body img, .post-body .tr-caption-container {
   background: none;
}


You might use the special theme for mobile, you need select theme, press the nut and activate mobile theme.

Artículo original en castellano

Friday, October 27, 2017

jEdit, optimal configuration for programming

jEdit is a powerful editor for programming and we can get more useful making some adjustments in its configuration.

jEdit, best the last version

JEdit version included in most distros are usually very obsolete, so I recommend you uninstall this version, download the latest one from its official web and install this one.
To uninstall it in debian/ubuntu and install the downloaded version type these commands:
apt-get install remove
sudo dpkg -i jedit_X.Y.Z_all.deb


Add the plug-ins you'll need

Add a close repository with these menu options:
PluginsPlugin managerDownload optionsUpdate Mirror List

I add these plug-ins:
  • JDiffPlugins : Compare differences between two files.
  • FTP: open and save local files or files in a FTP or secure server, you can use asimetric passwords.
  • PHPParser: Colourize your code using the syntax of your programming language, php in this case.

Configurations that make your life easier

Access to configurations with these menu options:
UtilitiesGlobal options 
These are my recommendations:
jEdit ► Appearance ► Show splash screen on Startupsave time in startup.
jEdit ► Editing ► Tab widthTap step, I use 4 characters.
jEdit ► Editing ► Indent widthIndent step, I use 4 characters.
jEdit ► Editing ► Soft (emulated with spaces) tabsConvert tab into spaces. So your code will be equal in any editor.
jEdit ► Saving and Backup ► Two stage saveTurn it off to avoid change permission and owner of files when you save changes.
jEdit ► Saving and Backup ► Backup directoryAll backup files in a separate directory.
jEdit ► View ► Always show search barVery useful to quick search anything.
Artículo original en castellano

Wednesday, August 02, 2017

Install CPCtelera in Ubuntu

CPCtelera is a low-level C library that makes things much easier for who want to program software for Amstrad CPC. You can add various elements and compile the result directly into a DSK or CDT file, disk and tape CPC images respectively ready to run in a Emulator or burn in a physical medium to execute in a real Amstrad CPC.
CPCtelera

 Install it on Ubuntu 14.04 64 bits

  • Go to $HOME folder and download the latest version of CPCTelera source code, just type:
git clone https://github.com/lronaldo/cpctelera
  • Install all the libraries you need install it:
sudo apt-get install build-essential bison flex libboost1.55-dev libfreeimage-dev wget unzip wine
  • Start the instalation:
cd cpctelera
./setup.sh
If you need any other library the instalation tell you in the process.

Use

Read the CPCtelera Reference Manual there are also a lot of videos in youtube but most of them are on Spanish.
Artículo original en castellano