martes, 4 de noviembre de 2014

Deploying OS on Rasperry - partitions, filesystems,...

From my point of view default raspberry OS images lacks of some useful features, such as:

-a bigger fat partition (useful for data exchange; it able to insert this SD in a Windows computer and copy files there)
-additional partition for  data  (having system and data separated, it is possible to have smaller backups containing only system partition)

So, we can improve the default deployment with the following solutions:
  1. Deploy the standard image on a bigger SD card (default)
  2. Deploy the standard image on a bigger SD card and resize partitions (gparted)
  3. Manual method 1
  4. Manual method 2
    1. Deploy standard image on a bigger SD card
    2. Resize ext partition (decrease from begining) in order to free space after fat 32 partition
    3. Copy or pack (tar) files from fat32 partition
    4. Delete fat partition
    5. Create a new fat32 (lba) partition with desired size
    6. Paste, untar files on fat32 partition

Some examples

XBMC

SD 8GB
fat32 1GB(boot+media)
ext4 7GB(system+media)

SD 16GB 
fat32 8GB(boot+media)
ext4 8GB(system+media)

Raspbian

SD 16GB 
fat32 1GB(boot+media)
ext4 7GB(system)
ext4  8GB(data)


Partition backups on images

Backups to image can be done at partition level, using dd command or graphical tool (i.e Disks in Ubuntu)
To restore an image containing a partition, you have to create a partition on destination disk.
If you are using "Disks" and image size and destination partition have not the same size, it will alert you but don't worry it works.



Checking content of images

sudo fdisk /media/midisco/raspberry_cosas/OpenELEC-RPi.arm-4.0.5.img


Resizing OS from an image


Gparted

In theory with gparted it is possible to resize fat and ext partitions but it

sometimes can have problems resizing a  fat32 filesystem, it means that partition have desired size but filesystem and available space still having the original size.
-usually works fine with ext2, ext3 partitions


Manual method for fat32 partition

dd partition1(fat32) on a disk

Copy or pack (tar) files from fat32 partition
Delete partition
Create a new fat32 (lba) partition with desired size
Paste, untar files 

jueves, 28 de agosto de 2014

Raspberry Pi - Pimame/Piplay

Piplay 8.0.5beta

Commands/files
Sudo raspi-config (overclocking)
press 'LeftCtrl+Q': quit to terminal   

Map Keys:
/home/pi/pimame/pimame-menu/controller.yaml

Default pasword: pi / raspberry


Menu
    PSX-Usb Joystick1 - OK
    PSX-Usb Joystick2 - OK

Emulation
Neogeo (Final Burn Alpha )
    PSX Joystick
         Plug in port2 psx2usb adapter
         Select: insert coin
         Analog mode: to be able to use Up and down keys
   Audio: OK
   Games:
         Armoredwar         
         Mpang (Mighty Pang)
         Dino (Cadillac dinosaurs)
         Winjammer CD  (failing)
 
Final Burn Alpha (Arcade Cabinet and Neogeo emulator)
PSX Joystick (same than neogeo)
Games:
     Metalslug2
     Magical crystals

SNES
PSX Joystick
         Plug in port2 psx2usb adapter
Games:
     All - OK

Neogeo pocket
  PSX Joystick
  Games
     Metal slug 2

Scummvm
   Games cannot be in zip files
   Unzip to folders
   Manually Add game, from roms folder
  Audio: OK
   Games:
      Loom
  
MasterSystem
  Joystick ¿failing left and right arrows??


ZxSpectrum
Games cannot be in zip files
Unzip to folder




c64
Games cannot be in zip files
Unzip to folder




Turbografx 16

   Failing, nothing is displayed in screen

pcsx-reARMed (PSX)
   Menu is not properly displayed
   Bios missing warning
.iso, .img, .bin/.cue or .mdf/.mds
.ecm file. These will not work in this emuator, but can be 'un-ECMed' by using the utility software unecm

GBA
   Bios missing warning (Gba_bios)

NES
   Failing

Mapping keyboard:
pygame module to work with the keyboard
KeyASCII ASCII      Common Name
K_BACKSPACE   \b      backspace
K_TAB         \t      tab
K_CLEAR               clear
K_RETURN      \r      return
K_PAUSE               pause
K_ESCAPE      ^[      escape
K_SPACE               space
K_RSHIFT              right shift
K_LSHIFT              left shift
K_RCTRL               right ctrl
K_LCTRL               left ctrl
K_RALT                right alt
K_LALT                left alt
K_RMETA               right meta
K_LMETA               left meta
K_LSUPER              left windows key
K_RSUPER              right windows key

lunes, 18 de agosto de 2014

Configuring Raspberry

Common Raspberry configuration

http://elinux.org/RPiconfig#
System configuration parameters that would normally be kept and set using the BIOS are now stored in a text file named "config.txt". 

http://elinux.org/R-Pi_ConfigurationFile
http://www.raspians.com/Knowledgebase/raspberry-pi-configuration-file/
Including an example configuration file with comments

i.e
Make display smaller to stop text spilling off the screen
## overscan_left
##     Number of pixels to skip on left
overscan_left=20


http://elinux.org/RPi_cmdline.txt
File is for passing arguments to the Linux kernel and it can be found in /boot/
i.e   ip=192.168.0.10    (Static ip for direct RJ45 cable connect)



Configuring Openelec

Network, programs, openelec configuration, Connections

Install addons
Programs, Openelec configuration, Addons
XBMC backups
CU lrc lyrics

Create a backup
programs, openelec settings, system, backup
->storage/XBMC

Configuring RaspBMC

As backup feature is not included, addon XBMC backup can be installed  but it is not working  (tested on ver 2014-06) 
Install/config from Addons, Program Addons
Execute from from "Programs"; but it will not show an icon

Configuring RiscOS

Default image work with a CRT screen however, Risc os has a screen resolution is too high for a CRT TV and it is impossible to use the OS.
How to configure screen

Configuring Raspbian



multimedia player GUI for omx player

>>>from https://github.com/KenT2/tboplayer
tboplayer
A GUI interface using jbaiter's pyomxplayer wrapper to control omxplayer

Required pexpect:
wget http://pexpect.sourceforge.net/pexpect-2.3.tar.gz
     tar xzf pexpect-2.3.tar.gz
     cd pexpect-2.3
     sudo python ./setup.py install

Installing tboplayer:
From a terminal window open in your home directory type:
     wget https://github.com/KenT2/tboplayer/tarball/master -O - | tar xz

There should now be a directory 'KenT2-tboplayer-xxxx' in your home directory. Rename the directory to tboplayer

Open the tboplayer directory and from a terminal opened in THIS directory:

    python tboplayer.py

TBOPlayer is developed on Raspbian Wheezy with python 2.7
<<<<

Useful software for Raspbian:

gnumeric
abiword
sylpheed
gmusicbrowser (music browser)
gstreamer
GNOME partition editor (gparted)
xarchiver
pyneighborhood
mp3


viernes, 4 de julio de 2014

CA Clarity related software (BO, CAPA,...)

CAPA (from Oracle UPK)
Player - Version 11.1.0
Build 11.1.0.14160

Compatible ff 3.6.28

  
BOXI Xcelsius SP6 (from SAP)
requires:
-Ms Office installed
-Flashplayer for IE

Tested with:
Win7
Office 2007
IE11



BO /Infoview
 
Logs on the BO server
<>/CA/SharedComponents/CommonReporting3/bobje/logging

Address for Query Builder
....AdminTools/querybuilder

miércoles, 1 de enero de 2014

Welcome to Synzed Lyrics (LRC) (2nd edition)

(Update from an old post from 16/06/08 18:29)

What am i talking about?



An easy definition could be: .lrc files are the subtitles for the music, and looks like .SRT files(video subtitles) are text files with a timestamp before each phrase.



ex. [min:sec.mmm] bla bla bla bla



Note: Some people tags the lyrics in different way (by hand or by software), the players should work with all but could fail if the developer didn't think in that.



Real examples of tags:



[0:34] 1 digit for minute and 2 for seconds

[01:07.037] 2 digit for minutes and 3 for milliseconds

[00:15.38] 2 digits for minutes and 2 for milliseconds ¿wrong?

[1:01.296] 1 digit for minutes and 3 for milliseconds



Minilyrics isn't the same as videosubtitles therefore the millisecond precision is not necessary and any value is correct.



In beginning every line of text has its own time stamp but in the last years, lyrics downloaded from some webs, when a sentence is repeated there are as many time stamps as required at the beginning, and luckily most of players/addons supports this new feature

i.e:

[00:48.20][01:49.38][02:35.50]
clean out the bank and bump off your daddy




These timestamps must be syncronized with the music file (ogg, mp3,etc...)



what do I need?

A music player hardware or software, with support for lyrics (a  plugin for your application is a common solution)favourite player, this player can be a hardware or software, some cheap mp3 player support .srt files (I suppose ipod too).




Software for:

Windows/Linux:
XBMC (Karaoke + Cu lyrics addon)
Nightingale (a son of Songbird and based in Firefox) (addon Mlyric)

Winamp, Amarok,..... (some of them need a plugin)

Songbird+scrolling lyric (don't read from local lrc files, download the lyric/minilyric from internet)*

Apple MacOS: XBMC (Karaoke + Cu lyrics addon)

Nokia Maemo: Mediabox (small font and not configurable)

PalmOS: ptlyrics (+Pocket tunes)*

Symbian: LCG Jukebox
Raspberry Pi: XBMC (Karaoke + Cu lyrics addon)
Android: Minilyrics(.lrc + .txt fullscreen)




* include creation of minilyrics (tag time on lyrics)



How/where I can get lyrics?



Lyrics addons:
Minilyrics software. Output: .lrc .txt files
Cu lyrics addon (XBMC). Output: .lrc .txt files
Mlyric addon (Nightingale). Output: id3tag Unsynced tag



Webs:
http://www.lrcdb.org/

http://www.lyrdb.com/

or if you want a pack with lrcfiles + mp3 you can search in torrent with "ramones mania"



and one example of lrc file: Bad Religion - Turn on the light



Present and Future

This was quite unknown format, more know in Asia than Europe or America, furthermore it is not very commercial (most of media-players devices doesn't support it as per default) . Maybe Apple will create their own copy and will sell it as a very modern feature...

However, nowadays the lack of support from big companies  is not a so bad  because people made their .lrc files by themselves (is as easy as to edit an lyric text file and add the timestamps) and it is quite easy to find lyric for many bands





viernes, 22 de noviembre de 2013

Clarity functional administration

Clarity direct addresses

v13
Project audit trail
.../niku/nu#action:odf.projectAuditTrailReturn&id= %projectid%
Task audit trail
.../niku/nu#action:odf.taskAuditTrailReturn&id=%taskid%&projectId=%projectid%
Licenses per user(there is not a direct menu entry)
.../niku/nu#action:userbyrights&user_id=%userid%

Report scheduling with cron

Based in  standard cron format.
Five time parameters separated by "spaces"
Different values for a same parameter are separated by "comma"
* = any value



*    *    *    *    *

min (0 - 59)
hour (0 - 23)
day of month (1 - 31)
month (1 - 12)
day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names)


Theme for testing



Clarity_theme_lime_testing.css


CAPA and versions


Clarity v13.1
CAPA Player - Version 11.1.0 Build 11.1.0.1111
Clarity v13.2
CAPA Player - Version 11.1.0 Build 11.1.0.28260


Prefixes portlets and reports


COP. , from PMO Accelerator (portlets)
CATS. ,  from Best Practises Accelerator (obsolete reports replaced by CSP and portlets by cop)
RPT_PMO_ ,  Obsolete reports from PMO Accelerator (Releases previous to 3.1)
CSP_,  from Clarity Solution Pack (reports and portlets)




viernes, 4 de octubre de 2013

Raspberry Pi - stuff


Raspberry Hardware

 ARM1176JZF-S a 700 MHz (familia ARM11)
3Conector RCA (PAL y NTSC),
HDMI (rev1.3 y 1.4),
61 Interfaz DSI para panel LCD62 63
HDMI Type A

Spanish Lesson:
Raspberry Pi y GPIO
http://www.diverteka.com/?p=1370

http://techcrunch.com/2012/10/21/getting-started-with-the-raspberry-pi-is-not-as-easy-as-pie/

Software/Images


Most of raspberry images are based in copy files to SD formated in FAT, and during the 1st boot, original partition is dynamically resized  and new partitions are created.


rpix86 is a PC emulator for the Raspberry Pi
http://rpix86.patrickaalto.com/index.html

 chameleon Pi
 http://chameleon.enging.com/?q=download

Installation

//Raspbian//
dd
gparted
wifi config


multimedia player GUI for omx player
>>>from https://github.com/KenT2/tboplayer
tboplayer
A GUI interface using jbaiter's pyomxplayer wrapper to control omxplayer

Required pexpect:
wget http://pexpect.sourceforge.net/pexpect-2.3.tar.gz
     tar xzf pexpect-2.3.tar.gz
     cd pexpect-2.3
     sudo python ./setup.py install

Installing tboplayer:
From a terminal window open in your home directory type:
     wget https://github.com/KenT2/tboplayer/tarball/master -O - | tar xz

There should now be a directory 'KenT2-tboplayer-xxxx' in your home directory. Rename the directory to tboplayer

Open the tboplayer directory and from a terminal opened in THIS directory:

    python tboplayer.py

TBOPlayer is developed on Raspbian Wheezy with python 2.7
<<<<


install mp3 player
video
//Raspbmc//

  1. Uncompress downloaded file
  2. Identify SD card device (i.e /dev/mmblkxx) (1)
  3. Format/remove partition from SD card. Disks or Fdisk (2)
  4. Applying image to SD
    •  sudo dd if=/path/sd.img of=/dev/mmcblk0 (3)
    •  /path/ mounter folder where image is placed
  5. Boot Raspberry with SD
    • (Raspbmc will do some actions over SD, Sucha as partition resizing etc)
  6. (optional) From PC, resize/create partitions
    • (i.e with gparted) (4)
    • Create a fat32 partition
    • Copy multimedia to SD

(1) use Disks, dmesg, ...
(2) if there is problem try with a different card reader, usb to SD adaptor,..
(3) Use dd command or restore image from Disks on GUI, wait because it can take sometime and there is not a progress bar
(4) gparted recommended, but other software could done this action

OS
Username: pi. Password: raspberry

login via ssh
raspbmc
 username: root
 password: root
openelec
  username: root
  password: openelec




martes, 6 de agosto de 2013

Retro IT Culture

 

Best abandon books and webs where to read about the old times of IT

Basic Rules!!




Tecnología Obsoleta:
http://www.alpoma.net/tecob/



The probably the best IT books ever published including the best illustrations:

http://www.paraquenoseolviden.com/gallery2/v/electronica/

http://www.paraquenoseolviden.com/gallery2/v/equipos_electronicos/

Just DIY:
http://www.paraquenoseolviden.com/gallery2/v/comohacer/






viernes, 26 de julio de 2013

XML - Editor, Tools,...

XML editing software
Java is not compatible with UTF8 with BOM and XOG is based in Java
so use UTF8 (withoutBOM) or cp1252 aka ANSI

--Ms.Notepad XML 2007
(be careful writes UTF8 with BOM)
   Outline view with XML elements. Able to drag and drop elements from one file to other

--XML Spear 3.1. Good free software! it is possible to select the enconding(even UTF8 with BOM)
   Outline with element, no drag and drop
   Able to open big files (>20MB)  
   Plugin for Clarity

--Eclipse Indigo+WTP
   By default not able to manage big xml files
  Outline view with XML elements, Able to drag and drop elements from one file to other (in different Eclipse windows)

 Eclipse XML Editors and Tools
  org.eclipse.wst.xml_ui.feature
  org.eclipse.wst.xsl.feature

--Notepad++
  it is not an specific editor but it has colour syntax and can be used to compare two files (plugin compare)

--PSPad
  it is not an specific editor but it has colour syntax and can be used to compare two files(Tools, text Differences)


Web services
Create XSD from web:
http://www.xmlforasp.net/CodeBank/System_Xml_Schema/BuildSchema/BuildXMLSchema.aspx
XSD in Russian Doll Style or Separate Complex Types

!note.  resulting XSD is not proper to map Clarity instances, value is missing.

Flame-Ware Solutions XML-2-XSD v2.0
http://www.flame-ware.com/Products/XML-2-XSD/
!note. resulting XSD has xmlns:msdata, not proper to map Clarity