A night-time view of a western European panorama from the International Space Station reveals city lights from Belgium and the Netherlands
Tuesday, 31 January 2012
Space Station captures the lights of Belgium and Holland from 250 miles up
iTunes MAC & iTunes PC not equal to iTunes iPad
So the wonderfull world of "comliant to this & that" on the spec sheet vs. reality set in again. Now this might be down to lack of product knowledge as well but so you learn.
From the little Apple experience I gained so far I could really say in a "pure" Apple eco-system everything works brilliant and as planned, but trying to add 3rd party or other service to this ecosystem seem to be problematic.
iTunes for PC & MAC have a feature for "Shared" resources
whereas iPad/iPhone itunes does not let you choose your itunes library. You always need to connect to your Mac/PC (remote) itunes and sync with your ipad.
So the feature called iTunes Server does not mean you can assume it can stream to all Apple type devices.
So in my instance where I enabled the iTunes server on a QNAP NAS the Workaround:
Use the QMobile application provided by QNAP to remotely play the music library on the iPad.
Monday, 30 January 2012
QNAP iTunes Server dying
Testing a few mp3's on the NAS to iTunes PC worked 100%, after transferring my complete collection the iTunes server kept on dying via the web interface. So it was back to the old trusted CLI via ssh and fault finding:
Firstly to check if the iTunes server process is running or not:
ps | grep mt-daapd
And to find the command options:
mt-daapd --help
To start the process manually:
mt-daapd -d 9 -c /etc/mt-daapd.conf -f
with
-d 9 setting the debug level to 9
-c to use a spesific configuration file
-f to run it in teh foreground allowing you to see the debug messages in real time.
running this will halt on the reason for the iTunes server to fail.
if the error is with .m3u files
this can be fixed by changing a line the qnaps /etc/mt-daapd.conf
turing: process_m3u 1 => process_m3u 0
In my instance a single mp3 file caused the process to stop, I corrected the mp3 id tag
Restarted the service and everything worked like a charm
Friday, 20 January 2012
Open Source speech recognition - help needed
The reason for this is that Free and Open Source ('FOSS') projects are required to purchase large speech corpora with restrictive licensing. Although there are a few instances of small FOSS speech corpora that could be used to create acoustic models, the vast majority of corpora (especially large corpora best suited to building good acoustic models) must be purchased under restrictive licenses.
How can you help ?
Record yourself reading some text, and upload your recordings to VoxForge using: http://www.voxforge.org/home/read
Thursday, 5 January 2012
QNAP NAS
So I took the plunge and migrated from an pc based NAS device (OpenFiler) to a QNAP NAS TS-412.
I am very impressed with the device build, really a solid design and after upgrading to the latest firmware it detected a 3TB Western Digital drive without any problems.
The device is extremely silent - to compare: the DVD player playing a DVD is making more noise than the NAS :-)
So I guess the next few blog postings will have something to do with services and applications on the NAS as and when I enable them.
Current firmware version: 3.5.2 Build 1126T
Monday, 22 August 2011
MySQL - How to append to select statements
At least 2 select commands are needed for a union.
select a as name from t1;
union all
select b as name from t2;
this will have a query result from both table 1 and 2 as a single result set.
Tuesday, 19 April 2011
Install LAMP server on Ubuntu in a single command
sudo apt-get install lamp-server^
Monday, 21 February 2011
Music Maps
Although services like youtube an last.fm can do this I wanted an interactive map and found the following:
http://audiomap.tuneglue.net/
http://www.music-map.com/
http://liveplasma.com/
Wednesday, 6 October 2010
Syslog-ng server on Ubuntu
- Remote logging needs to be enabled on the server
- Firewall needs to accept traffic for syslogs
- on the client logs need to be forwarded to the syslog server
- a log filter need to be created on the client
So a typical / basic setup that forwards everything to the servers default log destinations e.g. /var/log/syslog will look as follows:
Server side:
Basic config change to get the server accepting remote logs:
uncomment:
udp();
Client side:
The most basic setup to forward all logs to the syslog-ng server:
destination server { udp("192.168.0.1" port (514)); };
log {
source(s_all);
destination(server);
};
I am also sending logs from my Mikrotik device to the syslog-ng server as follows:
[user@Mikrotik] > /system logging action print
Flags: * - default
# NAME TARGET REMOTE
0 * memory memory
1 * disk disk
2 * echo echo
3 * remote remote 192.168.0.1:514
[user@Mikrotik] >
[user@Mikrotik] > /system logging print
Flags: X - disabled, I - invalid
# TOPICS ACTION PREFIX
0 info memory
1 error memory
2 warning memory
3 critical echo
4 warning remote mikrotik
Happy logging.
Tuesday, 5 October 2010
To test if a port is open on linux
It is a server/client application whereby you run the server in listen mode and then start the client on a different host and connect to the server, it can create both tcp and udp connections.
I had some trouble with the syntax on Ubuntu 10.04 Lucid Lynx and hence will post the commands that worked for me:
Server:
user@server:~$ sudo nc -l -u 514
-l : is for listen
-u : is for udp
Client:
user@client:~$ nc 192.168.0.1 -u 514
where 192.168.0.1 is the ip of the server
If it connects you can then type anything in the client and it will display in the server window confirming the port is available and no firewall is blocking teh traffic, hence you can move to the application layer.