Comput(bleth)er

PCs, laptops, macs, mp3 players, consoles, peripherals
Jangloid Mark
Posts: 1458
Joined: Mon Oct 01, 2007 6:38 pm
Last.fm: http://www.last.fm/user/JanglyMark
Location: Swansea, Wales
Contact:

Re: Comput(bleth)er

Post by Jangloid Mark » Thu Oct 18, 2012 11:59 pm

Another computing question, I'm afraid...

I have a nice little page to watch BBC1, which is less CPU heavy since the BBC added loads of stuff...

I have 4 questions...

1. Since the last BBC update, it bombs out when the program changes. Is there any way round this?

2. Is there a way to force a lower bitrate? I don't need HD...on my monitor, you couldn't tell the difference anyway...

3. Is there any way to force an increase in volume?

4. Is there any way of playing BBC live stream in VLC Media Player?

Code is thus (I didn't write it)....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>BBC Live Streams</title>
<script type="text/javascript" src="http://www.bbc.co.uk/emp/swfobject.js"></script>
<script type="text/javascript" src="http://www.bbc.co.uk/emp/embed.js"></script>
<!-- please do not include any scripts below this line in public bbc.co.uk pages. -->
<link type="text/css" rel="stylesheet" href="SyntaxHighlighter.css" />
<link href="style.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="http://www.bbc.co.uk/cs/jst/mod/1/jst_c ... "></script>
<script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shCore.js"></script>

<script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shBr ... "></script>
<script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/prot ... "></script>
<script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/scri ... "></script>
</head>
<body>
<div id="emp1" class="player" style="float:left">
<p>In order to see this content you need to have both <a href="http://www.bbc.co.uk/webwise/askbruce/a ... va_1.shtml" title="BBC Webwise article about enabling javascript">Javascript</a> enabled and <a href="http://www.bbc.co.uk/webwise/askbruce/a ... er_1.shtml" title="BBC Webwise article about downloading">Flash</a> installed. Visit <a href="http://www.bbc.co.uk/webwise/">BBC&nbsp;Webwise</a> for full instructions</p>

</div>

<script type="text/javascript">

dp.SyntaxHighlighter.HighlightAll('onceCode');
var width= 640;
var height= 395;
var volume= 100;
var playlist;
var config;
var revision;

function reload(url) {
var emp = new embeddedMedia.Player();
emp.setWidth(width);
emp.setHeight(height);
emp.setDomId("emp1");
emp.set("config_settings_autoPlay","true");
playlist = "http://www.bbc.co.uk/emp/simulcast/"+url+".xml";
emp.setPlaylist(playlist);
config = "http://www.bbc.co.uk/emp/simulcast/config_"+url+".xml";
emp.setConfig(config);
emp.write();
updateEmbed();
}

function updateEmbed() {
$('codeWrap').update('<pre name="code" class="js:nogutter" id="embedCode"></pre>');
$('embedCode').update("var emp = new embeddedMedia.Player();"+"\n"+
"emp.setWidth('"+width+"');"+"\n"+
"emp.setHeight('"+height+"');"+"\n"+
"emp.setPlaylist('"+playlist+"');"+"\n"+
"emp.setConfig('"+config+"');"+"\n"+
"emp.write();");
dp.SyntaxHighlighter.HighlightAll('code');
}

reload("bbc_one_london");
</script>
</body>
</html>
Love is a weakness in the knees...it's dangerous on the stairs...

Bandcamp : https://janglymark.bandcamp.com/
Facebook : http://www.facebook.com/Jangly.Mark
Skype : Jangly Mark (feel free to call me)

roundbitsofplastic
Posts: 5336
Joined: Fri Dec 19, 2008 12:57 pm
Location: Brumagem

Re: Comput(bleth)er

Post by roundbitsofplastic » Wed Feb 19, 2014 5:21 pm

Linux. Arrrrrrrrrrrrrrrgh :-(

I'm running Linuxon my til and have fonally convinced it that the printer is an actual thing, but all it does is print question marks with about 3 random other characters per line.

I tried looking for fixes online and frankly it is all greek to me. I increased th ebaud rate (wjatever that is) and it made fuck all difference.

*whimper*
I am struck speechless by the nape of your neck.

Human Vegan
Bite Yr Lip

User avatar
tonieee
Posts: 4477
Joined: Sun Sep 30, 2007 8:40 am
Last.fm: http://www.last.fm/user/tonieee
Location: Sheffield Sex City
Contact:

Re: Comput(bleth)er

Post by tonieee » Wed Feb 19, 2014 6:34 pm

roundbitsofplastic wrote:Linux. Arrrrrrrrrrrrrrrgh :-(

I'm running Linuxon my til and have fonally convinced it that the printer is an actual thing, but all it does is print question marks with about 3 random other characters per line.

I tried looking for fixes online and frankly it is all greek to me. I increased th ebaud rate (wjatever that is) and it made fuck all difference.

*whimper*
What type of linux is it and what make of printer and how are you connecting it (USB/network)? I've never had to adjust the baud rate (it's the speed at which the characters are transmitted to the printer) on any printer I've connected to Linux.

roundbitsofplastic
Posts: 5336
Joined: Fri Dec 19, 2008 12:57 pm
Location: Brumagem

Re: Comput(bleth)er

Post by roundbitsofplastic » Fri Feb 21, 2014 9:03 am

tonieee wrote:
What type of linux is it and what make of printer and how are you connecting it (USB/network)? I've never had to adjust the baud rate (it's the speed at which the characters are transmitted to the printer) on any printer I've connected to Linux.
It's Ubuntu. It's an Epson thermal printer contected by a serial port. I tried changing the baud rate cos I found a forum which suggested this might help. It didn't.
I am struck speechless by the nape of your neck.

Human Vegan
Bite Yr Lip

User avatar
tonieee
Posts: 4477
Joined: Sun Sep 30, 2007 8:40 am
Last.fm: http://www.last.fm/user/tonieee
Location: Sheffield Sex City
Contact:

Re: Comput(bleth)er

Post by tonieee » Fri Feb 21, 2014 10:03 am

roundbitsofplastic wrote:
tonieee wrote:
What type of linux is it and what make of printer and how are you connecting it (USB/network)? I've never had to adjust the baud rate (it's the speed at which the characters are transmitted to the printer) on any printer I've connected to Linux.
It's Ubuntu. It's an Epson thermal printer contected by a serial port. I tried changing the baud rate cos I found a forum which suggested this might help. It didn't.
It must be a pretty old printer if it uses a seriel port? I didn't think they made them like that anymore.

The baud rate could make a difference then but you'd need to know the correct baud rate for your printer (which I guess is what you found on the forum?). You'd also need the correct printer driver.

With USB and network printers it's all done automatically for you these days so I've not had to worry about such things for years.

You could try checking out the open printing database to see if your printer's compatible with Linux: http://www.linuxfoundation.org/collabor ... abaseintro. There's also some forums on there that might help.

roundbitsofplastic
Posts: 5336
Joined: Fri Dec 19, 2008 12:57 pm
Location: Brumagem

Re: Comput(bleth)er

Post by roundbitsofplastic » Fri Feb 21, 2014 6:49 pm

It must be a pretty old printer if it uses a seriel port? I didn't think they made them like that anymore.

The baud rate could make a difference then but you'd need to know the correct baud rate for your printer (which I guess is what you found on the forum?). You'd also need the correct printer driver.

With USB and network printers it's all done automatically for you these days so I've not had to worry about such things for years.

You could try checking out the open printing database to see if your printer's compatible with Linux: http://www.linuxfoundation.org/collabor ... abaseintro. There's also some forums on there that might help.
Thanks Tonieee! I will have a look at the link :-)

I was under the impression that thermal printers still use serial ports? I know nothing.

The printer doesn't LOOK that old, noneof the hardware does to my eyes. Maybe it's just in good nick but has been in storage for years :-/
I am struck speechless by the nape of your neck.

Human Vegan
Bite Yr Lip

User avatar
tonieee
Posts: 4477
Joined: Sun Sep 30, 2007 8:40 am
Last.fm: http://www.last.fm/user/tonieee
Location: Sheffield Sex City
Contact:

Re: Comput(bleth)er

Post by tonieee » Fri Feb 21, 2014 7:12 pm

I don't really know about thermal printers so you might be right - I haven't seen one since about 1985 when it was attached to a ZX Spectrum!

roundbitsofplastic
Posts: 5336
Joined: Fri Dec 19, 2008 12:57 pm
Location: Brumagem

Re: Comput(bleth)er

Post by roundbitsofplastic » Tue Mar 18, 2014 5:25 pm

Still can't get the fucking thing to work. It occasionally prints a test that looks sensible, then prints uter fucking nonsense.

Also, if someone would make Unicenta run reports I woulf be their BFF.
I am struck speechless by the nape of your neck.

Human Vegan
Bite Yr Lip

User avatar
tonieee
Posts: 4477
Joined: Sun Sep 30, 2007 8:40 am
Last.fm: http://www.last.fm/user/tonieee
Location: Sheffield Sex City
Contact:

Re: Comput(bleth)er

Post by tonieee » Tue Apr 15, 2014 7:24 pm

I'm messing around with mustache.js (a JavaScript template library that's spelt wrong) at the moment and it gets it's name from the fact that it uses lots of curly brackets (e.g. "Hello {{name}}") and they look a bit like moustaches. This is making me smile a lot.

User avatar
tonieee
Posts: 4477
Joined: Sun Sep 30, 2007 8:40 am
Last.fm: http://www.last.fm/user/tonieee
Location: Sheffield Sex City
Contact:

Re: Comput(bleth)er

Post by tonieee » Wed Apr 16, 2014 11:15 am

It gets better: there its a kind of extended version of mustache.js called handlebar.js. Us computer programmers are such wacky guys!

User avatar
tonieee
Posts: 4477
Joined: Sun Sep 30, 2007 8:40 am
Last.fm: http://www.last.fm/user/tonieee
Location: Sheffield Sex City
Contact:

Re: Comput(bleth)er

Post by tonieee » Fri Apr 25, 2014 10:48 am

I just read this in the comments on a news article about the end of Nokia and it made me go "aaah". I wasn't sure whether to put it in here our the poetry thread but I'm not really a poetry person and I am a computery person.

The computer center is empty,
Silent except for the whine of the cooling fans.
I walk the rows of CPUs,
My skin prickling with magnetic flux.
I open a door, cold and hard,
And watch the lights dancing on the panels.
A machine without soul, men call it,
But its soul is the sweat of my comrades,
Within it lie the years of our lives,
Disappointment, friendship, sadness, joy,
The algorithmic exultations,
The long nights filled with thankless toil,
I hear the echoes of sighs and laughter,
And in the darkened offices
The terminals shine like stars.

– Geoffrey James, The Zen of Programming

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest