Selasa, 09 Desember 2014

Bristol Digest, Vol 580, Issue 5

Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk

To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk

You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."


Today's Topics:

1. Re: DyGraph on a Pi (Shane McEwan)
2. Re: DyGraph on a Pi (Peter Hemmings)
3. James Martin 'Principles of Data-base Management' seeks new
home. (Chris Makepeace)
4. Re: DyGraph on a Pi (Nigel Sollars)


----------------------------------------------------------------------

Message: 1
Date: Tue, 09 Dec 2014 16:05:09 +0000
From: Shane McEwan <shane@mcewan.id.au>
To: bristol@mailman.lug.org.uk
Subject: Re: [bristol] DyGraph on a Pi
Message-ID: <54871DB5.4070207@mcewan.id.au>
Content-Type: text/plain; charset=utf-8

The next step is to open the Javascript Console in your web browser and
see if there's any Javascript errors.

Google Chrome: Menu* -> More Tools -> Javascript Console
Firefox: Menu* -> Developer -> Web Console (Make sure "JS" is
highlighted blue. The "Net" option is also a good one to turn on.)

* In recent versions of these browsers the "Menu" is the three
horizontal lines at the right of the address bar.

Shane.

On 09/12/14 15:00, Peter Hemmings wrote:
> Hi,
>
> Just had a quick look.
>
>
> On 09/12/14 10:05, Shane McEwan wrote:
>> A few things to try:
>>
>> Look in the Apache logs for errors. /var/log/apache/error.log,
>> /var/log/apache2/error.log or /var/log/www/error.log are likely
>> locations.
>>
> Corrected code as per your last para but still no page displayed.
> I had already checked apache2 served index.html OK and did as you
> suggested and got "What temperature...." OK
> I still have symlink and checked log:
>
> [Tue Dec 09 00:01:13 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] PHP Parse
> error: syntax error, unexpected 'phpinfo' (T_STRING) in
> /var/www/testphp.php on line 1
> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:02:58 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:02:59 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:03:01 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:08:45 2014] [notice] caught SIGTERM, shutting down
> [Tue Dec 09 00:09:06 2014] [notice] Apache/2.2.22 (Debian)
> PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
> [Tue Dec 09 09:18:07 2014] [notice] caught SIGTERM, shutting down
> [Tue Dec 09 09:18:27 2014] [notice] Apache/2.2.22 (Debian)
> PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
> [Tue Dec 09 14:10:26 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 14:14:18 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> pi@raspberry /var/log/apache2 $
>
> So its the DyGraph display that I need to check I assume!?
>
>> You mentioned in your first E-Mail that you symlinked something in
>> /var/www?
> Yep the "temp.log" in pi home directory was symlinked to temp.html in
> /var/www/.
>
>> I think, by default, Apache won't follow symlinks for security
>> reasons so maybe that could be causing problems? Try copying all the
>> required files into /var/www and avoid symlinks.
>
> I have just copied the log fie instead of linking and it did not work.
>
> Restarted apache2 and still no graph. I am still getting my text, so
> apache2 seems OK.
>> You don't need to make files executable. They just need to be readable
>> by the web user (probably www-data on Raspbian) but making them world
>> readable (chmod 644) is easier than messing around with changing owners.
>>
>> Change your HTML file to show something to tell you it's working.
>> Currently it's relying on the Javascript to display everything. Add this:
>>
>> <h1>What temperature is it?</h1>
>>
>> after the <body> line before the <div> line and reload the page in your
>> browser. If you see "What temperature is it?" then you're reading the
>> HTML file OK.
>>
>> Also, on the <div id=...> line, the last <div> at the end of the line
>> should actually be </div> which could be causing problems. And the last
>> line of the file, "<html>", should be "</html>". In HTML when you open a
>> tag (<...>) you should have a matching closing tag (</...>). HTML is
>> pretty forgiving so it might work without the closing tags but it's best
>> to not tempt fate.
>>
>> Good luck!
>>
>> Shane.
>>
>>
>>
>> _______________________________________________
>> Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
> Will have a look at DyGraph howto's later.
>
> Regards
>



------------------------------

Message: 2
Date: Tue, 09 Dec 2014 17:27:27 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] DyGraph on a Pi
Message-ID: <548730FF.8070602@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=utf-8; format=flowed

On 09/12/14 15:33, Max B wrote:
> this line
>
> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] PHP Parse error:
> syntax error, unexpected 'phpinfo' (T_STRING) in /var/www/testphp.php on
> line 1
>
> means you have the string phpinfo without the () at the top of your file
> which is causing php to crash out.

Thanks, that now works from my browser.
Will now look for javascript errors as suggested.


Will look at

>
> HTH Max B
>
> On 9 December 2014 at 16:00, Peter Hemmings <peter@hemmings.eclipse.co.uk>
> wrote:
>
>> Hi,
>>
>> Just had a quick look.
>>
>>
>> On 09/12/14 10:05, Shane McEwan wrote:
>>
>>> A few things to try:
>>>
>>> Look in the Apache logs for errors. /var/log/apache/error.log,
>>> /var/log/apache2/error.log or /var/log/www/error.log are likely locations.
>>>
>>> Corrected code as per your last para but still no page displayed.
>> I had already checked apache2 served index.html OK and did as you
>> suggested and got "What temperature...." OK
>> I still have symlink and checked log:
>>
>> [Tue Dec 09 00:01:13 2014] [error] [client 192.168.0.4] File does not
>> exist: /var/www/favicon.ico
>> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] PHP Parse error:
>> syntax error, unexpected 'phpinfo' (T_STRING) in /var/www/testphp.php on
>> line 1
>> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] File does not
>> exist: /var/www/favicon.ico
>> [Tue Dec 09 00:02:58 2014] [error] [client 192.168.0.4] File does not
>> exist: /var/www/favicon.ico
>> [Tue Dec 09 00:02:59 2014] [error] [client 192.168.0.4] File does not
>> exist: /var/www/favicon.ico
>> [Tue Dec 09 00:03:01 2014] [error] [client 192.168.0.4] File does not
>> exist: /var/www/favicon.ico
>> [Tue Dec 09 00:08:45 2014] [notice] caught SIGTERM, shutting down
>> [Tue Dec 09 00:09:06 2014] [notice] Apache/2.2.22 (Debian)
>> PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
>> [Tue Dec 09 09:18:07 2014] [notice] caught SIGTERM, shutting down
>> [Tue Dec 09 09:18:27 2014] [notice] Apache/2.2.22 (Debian)
>> PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
>> [Tue Dec 09 14:10:26 2014] [error] [client 192.168.0.4] File does not
>> exist: /var/www/favicon.ico
>> [Tue Dec 09 14:14:18 2014] [error] [client 192.168.0.4] File does not
>> exist: /var/www/favicon.ico
>> pi@raspberry /var/log/apache2 $
>>
>> So its the DyGraph display that I need to check I assume!?
>>
>> You mentioned in your first E-Mail that you symlinked something in
>>> /var/www?
>>>
>> Yep the "temp.log" in pi home directory was symlinked to temp.html in
>> /var/www/.
>>
>> I think, by default, Apache won't follow symlinks for security
>>> reasons so maybe that could be causing problems? Try copying all the
>>> required files into /var/www and avoid symlinks.
>>>
>>
>> I have just copied the log fie instead of linking and it did not work.
>>
>> Restarted apache2 and still no graph. I am still getting my text, so
>> apache2 seems OK.
>>
>>> You don't need to make files executable. They just need to be readable
>>> by the web user (probably www-data on Raspbian) but making them world
>>> readable (chmod 644) is easier than messing around with changing owners.
>>>
>>> Change your HTML file to show something to tell you it's working.
>>> Currently it's relying on the Javascript to display everything. Add this:
>>>
>>> <h1>What temperature is it?</h1>
>>>
>>> after the <body> line before the <div> line and reload the page in your
>>> browser. If you see "What temperature is it?" then you're reading the
>>> HTML file OK.
>>>
>>> Also, on the <div id=...> line, the last <div> at the end of the line
>>> should actually be </div> which could be causing problems. And the last
>>> line of the file, "<html>", should be "</html>". In HTML when you open a
>>> tag (<...>) you should have a matching closing tag (</...>). HTML is
>>> pretty forgiving so it might work without the closing tags but it's best
>>> to not tempt fate.
>>>
>>> Good luck!
>>>
>>> Shane.
>>>
>>>
>>>
>>> _______________________________________________
>>> Bristol mailing list
>>> Bristol@mailman.lug.org.uk
>>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>>
>> Will have a look at DyGraph howto's later.
>>
>> Regards
>>
>> --
>> Peter H
>>
>>
>>
>> _______________________________________________
>> Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>
>
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
>

--
Peter H



------------------------------

Message: 3
Date: Tue, 9 Dec 2014 17:55:23 +0000
From: Chris Makepeace <chris@makepeace.net>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: [bristol] James Martin 'Principles of Data-base Management'
seeks new home.
Message-ID:
<CACOFJnX+RG1gpr7TkqtwMTLb18Q2ULW6fo0fg=snZt0Yos_1Ew@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

The above free to a digital antiquarian. Hard-backed and read once. The
future of databases, as seen in 1976.

?Cheers,?

--

ChrisM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20141209/c22ffd3d/attachment-0001.html>

------------------------------

Message: 4
Date: Tue, 9 Dec 2014 13:12:31 -0500
From: Nigel Sollars <nsollars@gmail.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] DyGraph on a Pi
Message-ID:
<CAG6aBkWy2SJ7a-zNZOq-LGquFeHuE=RsUJHYDABC8HrJ98wkjg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

since it seems you have the data all there, would it not be simpler to use
google charts ?,

Its pretty much what you have there plus scaling and other things. Its a
pretty simple api and you can theme it how you like.

Nige

On Tue, Dec 9, 2014 at 12:27 PM, Peter Hemmings <
peter@hemmings.eclipse.co.uk> wrote:

> On 09/12/14 15:33, Max B wrote:
>
>> this line
>>
>> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] PHP Parse error:
>> syntax error, unexpected 'phpinfo' (T_STRING) in /var/www/testphp.php on
>> line 1
>>
>> means you have the string phpinfo without the () at the top of your file
>> which is causing php to crash out.
>>
>
> Thanks, that now works from my browser.
> Will now look for javascript errors as suggested.
>
>
> Will look at
>
>
>
>> HTH Max B
>>
>> On 9 December 2014 at 16:00, Peter Hemmings <peter@hemmings.eclipse.co.uk
>> >
>> wrote:
>>
>> Hi,
>>>
>>> Just had a quick look.
>>>
>>>
>>> On 09/12/14 10:05, Shane McEwan wrote:
>>>
>>> A few things to try:
>>>>
>>>> Look in the Apache logs for errors. /var/log/apache/error.log,
>>>> /var/log/apache2/error.log or /var/log/www/error.log are likely
>>>> locations.
>>>>
>>>> Corrected code as per your last para but still no page displayed.
>>>>
>>> I had already checked apache2 served index.html OK and did as you
>>> suggested and got "What temperature...." OK
>>> I still have symlink and checked log:
>>>
>>> [Tue Dec 09 00:01:13 2014] [error] [client 192.168.0.4] File does not
>>> exist: /var/www/favicon.ico
>>> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] PHP Parse error:
>>> syntax error, unexpected 'phpinfo' (T_STRING) in /var/www/testphp.php on
>>> line 1
>>> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] File does not
>>> exist: /var/www/favicon.ico
>>> [Tue Dec 09 00:02:58 2014] [error] [client 192.168.0.4] File does not
>>> exist: /var/www/favicon.ico
>>> [Tue Dec 09 00:02:59 2014] [error] [client 192.168.0.4] File does not
>>> exist: /var/www/favicon.ico
>>> [Tue Dec 09 00:03:01 2014] [error] [client 192.168.0.4] File does not
>>> exist: /var/www/favicon.ico
>>> [Tue Dec 09 00:08:45 2014] [notice] caught SIGTERM, shutting down
>>> [Tue Dec 09 00:09:06 2014] [notice] Apache/2.2.22 (Debian)
>>> PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
>>> [Tue Dec 09 09:18:07 2014] [notice] caught SIGTERM, shutting down
>>> [Tue Dec 09 09:18:27 2014] [notice] Apache/2.2.22 (Debian)
>>> PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
>>> [Tue Dec 09 14:10:26 2014] [error] [client 192.168.0.4] File does not
>>> exist: /var/www/favicon.ico
>>> [Tue Dec 09 14:14:18 2014] [error] [client 192.168.0.4] File does not
>>> exist: /var/www/favicon.ico
>>> pi@raspberry /var/log/apache2 $
>>>
>>> So its the DyGraph display that I need to check I assume!?
>>>
>>> You mentioned in your first E-Mail that you symlinked something in
>>>
>>>> /var/www?
>>>>
>>>> Yep the "temp.log" in pi home directory was symlinked to temp.html in
>>> /var/www/.
>>>
>>> I think, by default, Apache won't follow symlinks for security
>>>
>>>> reasons so maybe that could be causing problems? Try copying all the
>>>> required files into /var/www and avoid symlinks.
>>>>
>>>>
>>> I have just copied the log fie instead of linking and it did not work.
>>>
>>> Restarted apache2 and still no graph. I am still getting my text, so
>>> apache2 seems OK.
>>>
>>> You don't need to make files executable. They just need to be readable
>>>> by the web user (probably www-data on Raspbian) but making them world
>>>> readable (chmod 644) is easier than messing around with changing owners.
>>>>
>>>> Change your HTML file to show something to tell you it's working.
>>>> Currently it's relying on the Javascript to display everything. Add
>>>> this:
>>>>
>>>> <h1>What temperature is it?</h1>
>>>>
>>>> after the <body> line before the <div> line and reload the page in your
>>>> browser. If you see "What temperature is it?" then you're reading the
>>>> HTML file OK.
>>>>
>>>> Also, on the <div id=...> line, the last <div> at the end of the line
>>>> should actually be </div> which could be causing problems. And the last
>>>> line of the file, "<html>", should be "</html>". In HTML when you open a
>>>> tag (<...>) you should have a matching closing tag (</...>). HTML is
>>>> pretty forgiving so it might work without the closing tags but it's best
>>>> to not tempt fate.
>>>>
>>>> Good luck!
>>>>
>>>> Shane.
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Bristol mailing list
>>>> Bristol@mailman.lug.org.uk
>>>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>>>
>>>> Will have a look at DyGraph howto's later.
>>>
>>> Regards
>>>
>>> --
>>> Peter H
>>>
>>>
>>>
>>> _______________________________________________
>>> Bristol mailing list
>>> Bristol@mailman.lug.org.uk
>>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>>
>>>
>>
>>
>> _______________________________________________
>> Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
>>
> --
> Peter H
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
>



--
?Science is a differential equation. Religion is a boundary condition.?

Alan Turing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20141209/dbe159d3/attachment.html>

------------------------------

_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol

End of Bristol Digest, Vol 580, Issue 5
***************************************

Tidak ada komentar:

Posting Komentar