Friday, December 08, 2017

Open alternatives to proprietary software (IV): 7zip compressor/uncompressor

There are a lot of open compressing software, one of them is 7zip
  • Multisystem: available for Windows, GNU/Linux, Mac, Amiga, BeOS, DOS, Solaris, etc...
  • Support almost all compressing formats and it has an own one than compress the files very well.
  • It can open iso, cab, msi, linux packages, etc...
  • Very light, 1 or 2 Mb.
  • You can use it in your mother tongue, available 79 languages.
If you use ubuntu or debian install p7zip, p7zip-full y p7zip-rar packages and you can open almost all the files.
You can install it with the software center of your distro or from console with the commands:
apt-get install p7zip p7zip-full  p7zip-rar
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

Wednesday, November 15, 2017

Copy midnight commander (mc) from raspbian to recalbox

Midnight commander is the best double-panel file manager for GNU/Linux console. This is a very useful tool for newbies and lazy users like myself, by example using ssh protocol:



The easier way to get mc in recalbox is "steal" it to a raspbian we previously installed it.
These are the files and folders you need to copy:


Rasbian►►►Recalbox
/usr/bin/mc.../usr/bin/mc
/usr/lib/mc.../usr/lib/mc
/etc/mc.../etc/mc
/usr/share/mc.../usr/share/mc
/usr/lib/arm-linux-gnueabihf/libgpm.so.2.../lib/libgpm.so.2
/usr/lib/arm-linux-gnueabihf/libssh2.so.1.../lib/libssh2.so.1

You can copy the files by ssh, using the same mc if you have GNU/Linux in your PC (plug the cart to the PC), from raspbian if you have this system and recalbox, WinSCP if you use Windows, etc...

If you haven't raspbian here you are all the necesary files, each in the correct path.

Warning: you probably need copy again each time Recalbox will be updated (This is a fast and simple operation and Recalbox is updated every long time).
Anyway, if you want mc will be part of recalbox you can join to the request I asked in the official forum.
Artículo original en castellano

Monday, November 06, 2017

Open alternatives to proprietary software (III): UMplayer, the multimedia player

UMPlayer is an open source multimedia player with a lot of advantages:
  • Multisystem.
  • Plugins included inside. If it hangs for a buggy file the system doesn't hang.
  • I can play almost any multimedia file.
  • Adapted to your PC hardware, processor and graphics card.
  • Subtitles support is included.
  • It can play DVD, VCD, CD from the device or the files copied in a folder.
  • Supports TV, radio and videocast.
  • It can play youtube videos.
UMPlayer was my prefer multimedia player for a long time.


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

Sunday, October 22, 2017

How to run DOS games in Batocera or Recalbox 4.1

You can run fullscreen DOS games in Batocera or Recalbox (4.1 or newer).
You need copy them like this:
  1. Select /recalbox/share/roms/dos/
  2. Create a folder with the name of the game adding ".pc" (like  galaxia.pc)
  3. Copy all the files of the game to this folder.
  4. Create a dosbox.bat file, these file must content the fullname of the executable file (like GALAXIA.EXE).
  5. Update games in recalbox/batocera menu.
We need repeat steps 1 to 4 for each game we add, and do the step 5 when we finished.
Artículo original en castellano
Note: Don't use notepad for Windows because this buggy software can add strange and invisible characters. Better use a good text edit like jEdit.

Thursday, October 12, 2017

Open alternatives to proprietary software (II): Inkscape, the SVG editor

Inkscape is a marvellous softwate to make vertorial graphics, it use SVG open format, a standard than most software manage, including web browsers.
  • Available for multiple operating systems.
  • Very stable and light.
  • Compatible with other software.
  • Manage PDF files.
  • There is a lot of documentation to take advantage of the software.
You can see some screenshots to give you an idea of its possibilities.
Sometime ago, I design a forniture for my home in few minutes.

Artículo original en castellano

Tuesday, October 03, 2017

Manage recalbox from your PC browser: configuration, file upload, virtual remote control and kodi

Recalbox is surprising me every day with its ease of use and power, today I will talk about the wide possibilities of use from your PC browser.

Access to your configuration: http://recalbox.local

You can do here:
  • Configure the Recalbox OS.
  • Upload files dragging them.
  • Monitory the activity and see logs.

Virtual Game Pad: http://recalbox.local:8080 

If you click on Use Virtual Game Pad or input this url in your browser you see an image of a SNES virtual controller you can use like a real one.

You can use it with a mobile phone or tablet with access to your wifi.
Warning: Do not expect a high speed response due to limitations in your screen device.
 

Kodi: http://recalbox.local:8081 

You are probably asking for Kodi web service, can I use?
Yes, you can, but in recalbox use the 8081 port, and you can access if Kodi is running and the service activated.
So we can access from your PC web browser to your raspberry pi mediacenter, send youtube videos with Send to Kodi or use the mobile like a remote control with Yatse or any similar app.


Advice: If you can't access from these URLs, use your IP instead of recalbox.local
Artículo original en castellano

Tuesday, September 26, 2017

Add your favorites apps in raspbian aplications panel

You can change your favourites apps in aplications panel editing the file /home/pi/.config/lxpanel/LXDE-pi/panels/panel 

Modify the zone with these line at the beginning:
Plugin {
   type=launchbar

There must be a content like this:
Plugin {
  type=launchbar
  Config {
    Button {
      id=/usr/share/applications/iceweasel.desktop
    }
    Button {
      id=/usr/share/raspi-ui-overrides/applications/pcmanfm.desktop
    }
    Button {
      id=/usr/share/raspi-ui-overrides/applications/lxterminal.desktop
    }
    Button {
      id=/usr/share/applications/kodi.desktop
    }
  }
}
Here we define like our favorites apps iceweasel web browser, pcmanfm file explorer, lxterminal and kodi:


You need restart rasbian or at least X server:
sudo /etc/init.d/lightdm restart


Artículo original en castellano

Monday, September 18, 2017

Open alternatives to proprietary software (I): PSPP, statistic analysis

One reason that many users argue for not to leave the proprietary systems and migrate to GNU/Linux is that the application that they usually use does not exist in the free systems ... or so they believe.
In most case there are some alternative free software that do the same function as their private one, but you know the name of the equivalent software, pages like alterativeTo will help you to find the right software.


I start this series talking about PSPP, an stadistics analysis software, than can replace the well-known SPSS with advantages:
  • SPSS great compatibily.
  • Multi-system: works in GNU/Linux, Windows and Mac.
  • You can try it without instalations using this CD-live.
  • You can export to Excel, opendocument (LibreOffice Calc), gnumeric, ascii and several database managers.
  • No problems with number of licenses because is free sofware, save money and avoid problems with backpacks or license servers when network is offline.
  • You can also export to ASCII, PDF, PostScript or HTML.
  • You can get several types of stadistical graphics.
This is a good oportunity to start get rid of that drug called proprietary software.
 
See wikipedia and the official page for more details.

There is also a lot of courses, books and video-tutorials.
Artículo original en castellano

Saturday, September 09, 2017

Compiling LeoCAD in any GNU/Linux

LeoCAD is a LDraw file editor, a open format to make LEGO(R), TENTE(R), EXIN CASTILLOS(R), etc... virtual models.

I follow this steps to compile Leocad:
  1. Install subversion and the necesary libraries to compile QT code:
    sudo apt-get install git libqt4-dev zlib1g-dev
  2. Download the lastest version of code in a folder, for example $HOME
    cd $HOME
    git clone https://github.com/leozide/leocad/
  3. Change to this directory, compile and install:
    cd leocad
    qmake leocad.pro
    make
    sudo make install 
  4. If we use the LEGO library we might launch the software with this command (I suppose you download the library in /opt/ldraw/lego):
    leocad -l /opt/ldraw/lego/
You can also use the Tente® 3D library, then the comand to run might be:
leocad -l /opt/ldraw/tente
If you compile in a raspberry pi, use qmake-qt4 leocad.pro instead of qmake leocad.pro.

Original articles

Friday, September 01, 2017

How to run CPCXFS under Debian or Ubuntu

CPCXFS is a DSK Amstrad CPC disk image editor for use with emulators, you can:
  • Create new DSK images.
  • List the contents of the DSK.
  • Add, rename or delete files in the DSK.
  • Etc.

Setup

Follow these steps in order to install it in your GNU/Linux distro:
  • Add the necessary packages to compile and install:
    sudo apt-get install termcap* build-essential
  • Download the lastest versión.
  • You can uncompress it with nautilus, mc or console with the command:
    unzip -x cpcxfs.zip
  • Compile it:
    cd src
    make -f makefile.lnx clean
    make -f makefile.lnx
  • Move the binary to /usr/local/bin to get available in any path
    sudo mv cpcxfs /usr/local/bin/

Use

You can use this software in the linux console, you can see all the possibilities with the command:
cpcxfs --help

You can see some help files into the zip:
  • cpcxfs.doc: text plain file, you can use your distro text editor.
  • cpcxfs.hlp: windows help file, you can use xchm to read it.
Some interesting examples of use:
ExamplesResult
cpcxfs disc.dsk -dShow the contents of the DSK
cpcxfs disc.dsk -sShow statistics and technical information about the DSK
cpcxfs disc.dsk -g fileExtract a file from the DSK
cpcxfs disc.dsk -p fileAdd a file from the DSK
cpcxfs disc.dsk -mg file*Extract the files from the DSK acording to the input mask
cpcxfs disc.dsk -mp file*Add the files from the DSK acording to the input mask
cpcxfs disc.dsk -hMore help
..
Artículo original en castellano