No subject


Wed Dec 17 06:27:09 EST 2008


library of all possible color combinations or generate the images with a
some sort of svg render.


On Tue, Dec 16, 2008 at 7:34 AM, Martin Langhoff
<martin.langhoff at gmail.com>wrote:

> Hi - I've been a bit snowed under :-) some notes...
>
> On Sat, Dec 13, 2008 at 2:16 PM, Lucas Wojciehcowski
> <msa.swimmer at gmail.com> wrote:
> > 1) This does NOT happen before the page loads. Unfortunately I can't use
> PHP
> > to redirect the user gracefully... The place were it makes sense to put
> the
> > redirection is after the page begins to load. The redirect() function is
> > built into moodle, and uses javascript. I would feel more comfortable
> using
> > the php header to do an immediate server-side redirect, but I would
> rather
> > leave the program flow intact.
>
> Hmmm, ok.
>
> > 2) This does not redirect admins, only users.
>
> I know, but we won't have admins - there's an admin acct that exists,
> but nobody uses it. No access to it. Instead, the teachers in the
> school get a role that is a slightly customised "course creator".
>
> > 3) Do you want me to work upstream? I'm sure I can figure out how to add
> a
> > configuration variable and submit a more polished patch by tonight. I
> just
> > ran in sub 20 degree wind, and my hands don't have enough dexterity to
> code!
>
> No - just checking for the option is ok, but we do have to get the
> code in shape for eventual inclusion upstream. In your revised patch,
> youcheck for the variable in a way that will make PHP throw a warning
> if the value is not initialised. In Moodle we generally do
>
>   if (!empty($CFG->foo)) { // does not throw warning
>
> instead of
>
>  if ($CFG->foo) { // Warning: undefined value
>
> > 4) I saw those pages, and can't wait to tackle some more of those
> problems.
> > One little superficial feature I think would be nice to add is having the
> > user's avatars reflect their XO colors. That would not be too hard to do
> > with a little bit of javascript. I'm really excited by the idea working
> with
> > the XO web apps.
>
> Cool - in terms of the XO colours, how would you do that? (I have an
> overly complex plan, will  take a while to get it done...)
>
> cheers,
>
>
>
> m
> --
>  martin.langhoff at gmail.com
>  martin at laptop.org -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
>

------=_Part_772_4313345.1229528295015
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

What do you think about the moodle Elgg integration? Is that too much &quot;extra baggage&quot; for the OLPC project, or could it be a nice solution for blog integration? I&#39;m not sure how we are going to be able to tackle some of your more ambitious moodle modifications (such as blog integration) working upstream without absolute support of the moodle developers.<br>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Lucas Wojciehcowski</b> <span dir="ltr">&lt;<a href="mailto:msa.swimmer at gmail.com">msa.swimmer at gmail.com</a>&gt;</span><br>
Date: Tue, Dec 16, 2008 at 1:52 PM<br>Subject: Re: [PATCH] Workflow Simplification<br>To: Martin Langhoff &lt;<a href="mailto:martin.langhoff at gmail.com">martin.langhoff at gmail.com</a>&gt;<br><br><br>2) I understand what you&#39;re saying. I think this code change will only effect students.<div>
<br></div><div>3) Ok, I can make that little change, although I don&#39;t think it would throw an error... PHP is soft typed... I don&#39;t think I tested it without a value set.</div>
<div><br></div><div>I was thinking that I would be able to get the&nbsp;configuration&nbsp;file from the users computer with the XO colors, and parse that file through javascript. From there, I&#39;m not sure if it would be more&nbsp;efficient&nbsp;to simply call from a library of all possible color combinations or generate the images with a some sort of svg render.<div>
<div></div><div class="Wj3C7c"><br>
<br><div class="gmail_quote">On Tue, Dec 16, 2008 at 7:34 AM, Martin Langhoff <span dir="ltr">&lt;<a href="mailto:martin.langhoff at gmail.com" target="_blank">martin.langhoff at gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi - I&#39;ve been a bit snowed under :-) some notes...<br>
<br>
On Sat, Dec 13, 2008 at 2:16 PM, Lucas Wojciehcowski<br>
<div>&lt;<a href="mailto:msa.swimmer at gmail.com" target="_blank">msa.swimmer at gmail.com</a>&gt; wrote:<br>
</div><div>&gt; 1) This does NOT happen before the page loads. Unfortunately I can&#39;t use PHP<br>
&gt; to redirect the user gracefully... The place were it makes sense to put the<br>
&gt; redirection is after the page begins to load. The redirect() function is<br>
&gt; built into moodle, and uses javascript. I would feel more comfortable using<br>
&gt; the php header to do an immediate server-side redirect, but I would rather<br>
&gt; leave the program flow intact.<br>
<br>
</div>Hmmm, ok.<br>
<div><br>
&gt; 2) This does not redirect admins, only users.<br>
<br>
</div>I know, but we won&#39;t have admins - there&#39;s an admin acct that exists,<br>
but nobody uses it. No access to it. Instead, the teachers in the<br>
school get a role that is a slightly customised &quot;course creator&quot;.<br>
<div><br>
&gt; 3) Do you want me to work upstream? I&#39;m sure I can figure out how to add a<br>
&gt; configuration variable and submit a more polished patch by tonight. I just<br>
&gt; ran in sub 20 degree wind, and my hands don&#39;t have enough dexterity to code!<br>
<br>
</div>No - just checking for the option is ok, but we do have to get the<br>
code in shape for eventual inclusion upstream. In your revised patch,<br>
youcheck for the variable in a way that will make PHP throw a warning<br>
if the value is not initialised. In Moodle we generally do<br>
<br>
 &nbsp; if (!empty($CFG-&gt;foo)) { // does not throw warning<br>
<br>
instead of<br>
<br>
 &nbsp;if ($CFG-&gt;foo) { // Warning: undefined value<br>
<div><br>
&gt; 4) I saw those pages, and can&#39;t wait to tackle some more of those problems.<br>
&gt; One little superficial feature I think would be nice to add is having the<br>
&gt; user&#39;s avatars reflect their XO colors. That would not be too hard to do<br>
&gt; with a little bit of javascript. I&#39;m really excited by the idea working with<br>
&gt; the XO web apps.<br>
<br>
</div>Cool - in terms of the XO colours, how would you do that? (I have an<br>
overly complex plan, will &nbsp;take a while to get it done...)<br>
<br>
cheers,<br>
<br>
<br>
<br>
m<br>
<font color="#888888">--<br>
</font><div><div></div><div>&nbsp;<a href="mailto:martin.langhoff at gmail.com" target="_blank">martin.langhoff at gmail.com</a><br>
&nbsp;<a href="mailto:martin at laptop.org" target="_blank">martin at laptop.org</a> -- School Server Architect<br>
&nbsp;- ask interesting questions<br>
&nbsp;- don&#39;t get distracted with shiny stuff &nbsp;- working code first<br>
&nbsp;- <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>
</div></div></blockquote></div><br></div></div></div>
</div><br>

------=_Part_772_4313345.1229528295015--


More information about the Server-devel mailing list