<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://opensource.glasgow.social/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://opensource.glasgow.social/feed.php">
        <title>Open Source Glasgow projects</title>
        <description></description>
        <link>https://opensource.glasgow.social/</link>
        <image rdf:resource="https://opensource.glasgow.social/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-03T15:12:06+0100</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://opensource.glasgow.social/projects/matrix_owncast?rev=1617826723&amp;do=diff"/>
                <rdf:li rdf:resource="https://opensource.glasgow.social/projects/matrix_php_class?rev=1617825573&amp;do=diff"/>
                <rdf:li rdf:resource="https://opensource.glasgow.social/projects/mobile_home_page?rev=1570193565&amp;do=diff"/>
                <rdf:li rdf:resource="https://opensource.glasgow.social/projects/the_quiz_app?rev=1570193601&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://opensource.glasgow.social/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Open Source Glasgow</title>
        <link>https://opensource.glasgow.social/</link>
        <url>https://opensource.glasgow.social/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://opensource.glasgow.social/projects/matrix_owncast?rev=1617826723&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-04-07T21:18:43+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:matrix_owncast</title>
        <link>https://opensource.glasgow.social/projects/matrix_owncast?rev=1617826723&amp;do=diff</link>
        <description>Matrix/Owncast

I run this code to link an Owncast chat to a Matrix room.  

It's designed to be temporary (you just run it from the command line) but it would be easy to modify to run as a cronjob and always be searching for when a stream starts.

I've seperated out the Owncast-to-Matrix and Matrix-to-Owncast components so you can choose which one you want (or run both).</description>
    </item>
    <item rdf:about="https://opensource.glasgow.social/projects/matrix_php_class?rev=1617825573&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-04-07T20:59:33+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:matrix_php_class</title>
        <link>https://opensource.glasgow.social/projects/matrix_php_class?rev=1617825573&amp;do=diff</link>
        <description>Matrix PHP Class


&lt;?php
    class matrix {
     
       function __construct() {
          $this-&gt;homeserver = &quot;glasgow.social&quot;;
          $this-&gt;access_token = &quot;ACCESS_TOKEN_HERE&quot;;
          // room lookups
          $this-&gt;rooms = array(      
                                     &quot;#room_name&quot;=&gt; &quot;!room_id:glasgow.social&quot;,
                               );
       }
     
       function post($msg, $room_name = &quot;#glasgow&quot;, $formatted_msg = null) {
          $msgtype = &quot;m.text&quot;;
          if(preg…</description>
    </item>
    <item rdf:about="https://opensource.glasgow.social/projects/mobile_home_page?rev=1570193565&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-04T13:52:45+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:mobile_home_page</title>
        <link>https://opensource.glasgow.social/projects/mobile_home_page?rev=1570193565&amp;do=diff</link>
        <description>Personal Homepage for your mobile device

This is designed to teach basic elements of HTML.

Let's create a file called homepage.php and enter the framework for a very simple HTML page:


&lt;!doctype html&gt;

&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;meta charset=&quot;utf-8&quot;&gt;

  &lt;title&gt;My Personal Homepage&lt;/title&gt;
  &lt;meta name=&quot;description&quot; content=&quot;Some links and information I'd like to see on my mobile at a glance&quot;&gt;
  &lt;meta name=&quot;author&quot; content=&quot;@neil@mckillop.org&quot;&gt;

&lt;/head&gt;

&lt;body&gt;

  &lt;h1&gt;My Mobile Home Page&lt;/h1&gt;
…</description>
    </item>
    <item rdf:about="https://opensource.glasgow.social/projects/the_quiz_app?rev=1570193601&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-04T13:53:21+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:the_quiz_app</title>
        <link>https://opensource.glasgow.social/projects/the_quiz_app?rev=1570193601&amp;do=diff</link>
        <description>The Quiz App

A basic quiz app in PHP that teaches beginners the basics of HTML forms, database access, arrays and JSON.

Questions

First, the questions.  Create a file called questions.php and enter something like this:



&lt;?php

$questions[0]['question'] = &quot;What was originally considered to be the ninth planet from the Sun but after 1992 had its status as a large planet changed?&quot;;
$questions[0]['answer'] = &quot;Pluto&quot;;

$questions[1]['question'] = &quot;How many days are there in February in a leap ye…</description>
    </item>
</rdf:RDF>
