The Following User Says Thank You to ataristic For This Useful Post: | ||
|
2012-10-07
, 07:05
|
|
Posts: 118 |
Thanked: 20 times |
Joined on May 2012
@ INDIA
|
#212
|
|
2012-10-07
, 08:12
|
Posts: 771 |
Thanked: 393 times |
Joined on Feb 2012
|
#213
|
I've spent the whole evening tinkering with scripts to run with the Billboard and found one thing that I'd love to see: unicode support with the script output!
As it is, it seems that the output from a {script:} tag is always considered iso-8859-1 instead of UTF-8, which means I can't use all sorts of fancy characters in the script itself.
Also the script output always includes a newline, which can be troublesome too...
edit: actually, the newline can be skipped by putting a zero byte at the end of the output of the python script
|
2012-10-07
, 13:47
|
Posts: 3 |
Thanked: 2 times |
Joined on Oct 2012
|
#214
|
|
2012-10-07
, 14:29
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#215
|
|
2012-10-07
, 14:45
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#216
|
#!/usr/bin/python import datetime seconds = int(float(open('/proc/uptime').read().split()[0])) print str(datetime.timedelta(0, seconds))[:-3]
chmod +x /home/user/uptime.py
|
2012-10-07
, 15:24
|
Posts: 397 |
Thanked: 185 times |
Joined on Oct 2011
|
#217
|
|
2012-10-07
, 15:26
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#218
|
The Following User Says Thank You to thedead1440 For This Useful Post: | ||
|
2012-10-07
, 15:37
|
Posts: 397 |
Thanked: 185 times |
Joined on Oct 2011
|
#219
|
|
2012-10-07
, 15:58
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#220
|
The video play back thing has been discussed on this thread several times...You can simply open an audio file, close it and it will also empty instead of doing a reboot...
It isn't a bug but more of the way the dbus (IIRC) works for video titles...
As it is, it seems that the output from a {script:} tag is always considered iso-8859-1 instead of UTF-8, which means I can't use all sorts of fancy characters in the script itself.
Also the script output always includes a newline, which can be troublesome too...
edit: actually, the newline can be skipped by putting a zero byte at the end of the output of the python script
Last edited by ataristic; 2012-10-06 at 22:35. Reason: found a trick