Dec. 11th, 2013

alexpgp: (St. Jerome w/ computer)
From the w3.org Web site, I learned that, although character encoding can be declared "inside" of HTML text (either as a meta charset attribute in HTML5 or in a pragma directive in HTML 4.01, which is what I have been doing and relying upon) it can—and apparently should—also be specified inside the so-called "HTTP header," which is an animal I had not paid much attention to before.

(These headers are what arrives from a server before the part that ends up rendered in a browser, between the <html> and </html> tags.)

This basically means that in my Perl script, after declaring my use of the CGI module and creating a CGI object to work with:
use CGI;
$q = CGI->new;
instead of just sending a "standard" set of headers with:
print $q->header;
I should specify character encoding with:
print $q->header('text/html; charset=utf-8');
So I tried this out, getting rid of the declarations inside the HTML output.

And it works! Chrome auto-detects the right encoding if it is specified in the HTTP header information!

A small victory, but I think life is made up of small victories.

Cheers...

Streaming!

Dec. 11th, 2013 11:02 am
alexpgp: (St. Jerome w/ computer)
I had been feeling a little disappointed by the scope of what I could do with the Chromecast dongle I picked up during the Thanksgiving special offer season until yesterday, when I learned that an additional ten or so supported apps had become available. As someone who is much more interested in "casting" the stuff in my local cloud to my television (instead of the stuff from places like Netflix or a proprietary media store), Chromecast came off looking like a dud.

One of the new offerings, however, is something called Avia, which—after making a $3 in-app purchase that, inter alia, provides access to Dropbox and DLMA and squelches advertising—can talk to servers running DLMA, a version of which just happens to be installable on a Raspberry Pi (there's a very clear and accurate tutorial for installing something called minidlma here).

The setup works, but for some reason not all of my media files have been indexed.

Something to figureout later, I guess...

Profile

alexpgp: (Default)
alexpgp

January 2018

S M T W T F S
  1 2 3456
7 8910111213
14 15 16 17181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 10th, 2025 02:31 pm
Powered by Dreamwidth Studios