<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>markpasc.org weblog</title>
    <link rel="alternate" type="text/html" href="http://markpasc.org/mark/" />
    <link rel="self" type="application/atom+xml" href="http://markpasc.org/mark/weblog.xml" />
   <id>tag:markpasc.org,2008:/mark//2</id>
    <link rel="service.post" type="application/atom+xml" href="http://markpasc.org/mt/mt-atom.cgi/weblog/blog_id=2" title="markpasc.org weblog" />
    <updated>2008-03-19T16:37:36Z</updated>
    <subtitle>Have you seen my scratch skunk?</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.2rc2-en</generator>
 

<entry>
    <title>youcast.py</title>
    <link rel="alternate" type="text/html" href="http://markpasc.org/weblog/2008/03/19/youcastpy" />
    <link rel="service.edit" type="application/atom+xml" href="http://markpasc.org/mt/mt-atom.cgi/weblog/blog_id=2/entry_id=13770" title="youcast.py" />
    <id>tag:markpasc.org,2008:/mark//2.13770</id>
    
    <published>2008-03-19T16:28:47Z</published>
    <updated>2008-03-19T16:37:36Z</updated>
    
    <summary>I mentioned writing a Python script that turns a YouTube favorites feed into a podcast. Here it is....</summary>
    <author>
        <name>markpasc</name>
        <uri>http://markpasc.org/mark/</uri>
    </author>
    
    <content type="html" xml:lang="en" xml:base="http://markpasc.org/mark/">
        <![CDATA[<p>I <a href="http://mark.vox.com/library/post/tubecast.html">mentioned</a> writing a Python script that turns a YouTube favorites feed into a podcast. <span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://markpasc.org/mark/images/youcast.py">Here it is.</a></span></p>
]]>
        

    </content>
</entry>

<entry>
    <title>slurlmarker map</title>
    <link rel="alternate" type="text/html" href="http://markpasc.org/weblog/2006/09/29/slurlmarker_map" />
    <link rel="service.edit" type="application/atom+xml" href="http://markpasc.org/mt/mt-atom.cgi/weblog/blog_id=2/entry_id=8837" title="slurlmarker map" />
    <id>tag:markpasc.org,2006:/mark//2.8837</id>
    
    <published>2006-09-29T21:01:05Z</published>
    <updated>2006-12-22T03:56:40Z</updated>
    
    <summary>I said I thought it would be neat to map the slurlmarker links from del.icio.us on an SL map, like...</summary>
    <author>
        <name>markpasc</name>
        <uri>http://markpasc.org/mark/</uri>
    </author>
    
    <content type="html" xml:lang="en" xml:base="http://markpasc.org/mark/">
        <![CDATA[<p><a href="http://markpasc.org/weblog/2006/05/30/slurlmarker">I said</a> I thought it would be neat to map the <a href="http://markpasc.org/weblog/2006/05/30/slurlmarker">slurlmarker</a> <a href="http://del.icio.us/tag/slurl">links from del.icio.us</a> on an SL map, like Landmarker's view. <a href="http://neologasm.org/slurlmarker/">So I finally made it.</a> It uses <a href="http://plagger.org/">Plagger</a> to convert del.icio.us' RSS feed for links tagged <code>slurl</code> into a map view, twice an hour.</p>

<p>It would be nice to also show <a href="http://www.sluniverse.com/pics/">pictures</a> near those places in the map flyouts, but you can't get a Snapzilla feed for a place. So I could additionally map recent pictures like the secondlife.com front page used to, or map <em>globally recent</em> pictures that are near the landmarks, but not the most recent pictures from that place. As soon as the picture gets old enough, it goes away, which would happen plenty often given how many more Snapzilla users there are than slurlmarker users.</p>

<p>It would also have been nice to do it completely client side, using <a href="http://del.icio.us/help/json/">del.icio.us' JSON API</a>, but they only let you get a specific user's bookmarks with JSON. This view is built from <em>everyone's</em> links on the <code>slurl</code> tag, so I had to use Plagger for that.</p>

<p>I expect to add a helpful blurb to the page about how to get <a href="http://markpasc.org/weblog/2006/05/30/slurlmarker">the slurlmarker HUD</a> and post places with it, once the vendor is placed in world again.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Says still don&apos;t seem better than linked messages</title>
    <link rel="alternate" type="text/html" href="http://markpasc.org/weblog/2006/08/07/says_still_dont_seem_better_than_linked_messages" />
    <link rel="service.edit" type="application/atom+xml" href="http://markpasc.org/mt/mt-atom.cgi/weblog/blog_id=2/entry_id=8735" title="Says still don't seem better than linked messages" />
    <id>tag:markpasc.org,2006:/mark//2.8735</id>
    
    <published>2006-08-07T07:59:41Z</published>
    <updated>2006-08-07T16:30:32Z</updated>
    
    <summary>I got some feedback about the say vs linked message tests I did the other day. Arito Cotton suggested I...</summary>
    <author>
        <name>markpasc</name>
        <uri>http://markpasc.org/mark/</uri>
    </author>
    
    <content type="html" xml:lang="en" xml:base="http://markpasc.org/mark/">
        <![CDATA[<p>I got some feedback about <a href="http://markpasc.org/weblog/2006/08/05/says_dont_seem_better_than_linked_messages">the say vs linked message tests I did</a> the other day.</p>

<ul>
<li><a href="http://arifox.livejournal.com/">Arito Cotton</a> suggested I shouldn't use <code>LINK_ALL_OTHERS</code>, but address the prim I wanted to talk to specifically. As the object had only one prim to begin with, I didn't think this would matter, but I'll give it a whirl.</li>
<li><a href="http://slurl.com/secondlife/Mew/111/154/751/">CrystalShard Foo</a> suggested using <a href="http://secondlife.com/badgeo/wakka.php?wakka=llGetTime"><code>llGetTime()</code></a> instead of <code>llGetWallclock()</code>. The big yellow warning scared me off of <code>llGetTime()</code> before I read the "This timer should be used for performance-related uses only" at the end.</li>
<li><a href="http://beesbuzz.biz/">fluffy</a> <a href="http://markpasc.org/weblog/2006/08/05/says_dont_seem_better_than_linked_messages#c17738">suggested</a> I should optimize my script by batching up the messages and sending them in single says. Unfortunately the really slow exchange is an A &rarr; B &rarr; A &rarr; B pattern. Really I need to speed it up by revising the protocol so it only needs one A &rarr; B exchange, which has nothing to do with <code>llSay()</code> versus linked messages.</li>
</ul>

<p>So here's a new script:</p>

<pre><code>default {
    touch_start(integer total_number) {
        integer i;

        llOwnerSay("starting timer");

        llResetTime();

        for (i = 0; i &lt; 10000; i++) {
            llSay(1234, "hi this is my message");
        }

        float tSays = llGetAndResetTime();

        for (i = 0; i &lt; 10000; i++) {
            llMessageLinked(1, 0, "hi this is my message", NULL_KEY);
        }

        float tLinks = llGetAndResetTime();

        for (i = 0; i &lt; 10000; i++) {
            "hi this is my message";
        }

        float tNoop = llGetTime();

        llOwnerSay("Says:  " + (string) tSays);
        llOwnerSay("Links: " + (string) tLinks);
        llOwnerSay("Noop:  " + (string) tNoop);
    }
}
</code></pre>

<p>that yields new output:</p>

<blockquote>
  <p><code>[0:45]  timer: starting timer</code></p>
  
  <p><code>[0:56]  timer: Says:  279.611328</code></p>
  
  <p><code>[0:56]  timer: Links: 276.838348</code></p>
  
  <p><code>[0:56]  timer: Noop:  108.153099</code></p>
</blockquote>

<p>that shows pretty much the same thing.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Says don&apos;t seem better than linked messages</title>
    <link rel="alternate" type="text/html" href="http://markpasc.org/weblog/2006/08/05/says_dont_seem_better_than_linked_messages" />
    <link rel="service.edit" type="application/atom+xml" href="http://markpasc.org/mt/mt-atom.cgi/weblog/blog_id=2/entry_id=8733" title="Says don't seem better than linked messages" />
    <id>tag:markpasc.org,2006:/mark//2.8733</id>
    
    <published>2006-08-05T21:30:53Z</published>
    <updated>2006-08-07T16:34:50Z</updated>
    
    <summary>I&apos;m writing an LSL script, and it&apos;s too slow. A friend suggested using linked messages to send the message to...</summary>
    <author>
        <name>markpasc</name>
        <uri>http://markpasc.org/mark/</uri>
    </author>
    
    <content type="html" xml:lang="en" xml:base="http://markpasc.org/mark/">
        <![CDATA[<p>I'm writing an <a href="http://secondlife.com/badgeo/wakka.php?wakka=LSL">LSL</a> script, and it's too slow. A friend suggested using <a href="http://secondlife.com/badgeo/wakka.php?wakka=LinkMessages">linked messages</a> to send the message to another <a href="http://secondlife.com/badgeo/wakka.php?wakka=prim">prim</a> to say the string, in case there was a delay associated with saying something. But there doesn't seem to be:</p>

<pre><code>default {
    touch_start(integer total_number) {
        float start = llGetWallclock();
        integer i;   
        for (i = 0; i &lt; 10000; i++) {
            llSay(1234, "hi this is my message");
        }
        float end = llGetWallclock();

        llOwnerSay("10,000 says took " + (string) (end - start) + " secs");
    }
}
</code></pre>

<blockquote>
  <p><code>Object: 10,000 says took 229.000000 secs</code></p>
</blockquote>

<pre><code>default {
    touch_start(integer total_number) {
        float start = llGetWallclock();
        integer i;   
        for (i = 0; i &lt; 10000; i++) {
            llMessageLinked(LINK_ALL_OTHERS, 0, "hi this is my message", NULL_KEY);
        }
        float end = llGetWallclock();

        llOwnerSay("10,000 linked messages took " + (string) (end - start) + " secs");
    }
}
</code></pre>

<blockquote>
  <p><code>Object: 10,000 linked messages took 237.000000 secs</code></p>
</blockquote>

<p>I guess I need to optimize somehow else.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Darwinports&apos; mice squeal</title>
    <link rel="alternate" type="text/html" href="http://markpasc.org/weblog/2006/06/20/darwinports_mice_squeal" />
    <link rel="service.edit" type="application/atom+xml" href="http://markpasc.org/mt/mt-atom.cgi/weblog/blog_id=2/entry_id=8600" title="Darwinports' mice squeal" />
    <id>tag:markpasc.org,2006:/mark//2.8600</id>
    
    <published>2006-06-20T07:23:02Z</published>
    <updated>2006-06-20T07:47:55Z</updated>
    
    <summary>I keep trying to steal my few fleeting minutes at home to work on a project with Django, but so...</summary>
    <author>
        <name>markpasc</name>
        <uri>http://markpasc.org/mark/</uri>
    </author>
    
    <content type="html" xml:lang="en" xml:base="http://markpasc.org/mark/">
        <![CDATA[<p>I keep trying to steal my few fleeting minutes at home to work on a project with <a href="http://www.djangoproject.com/">Django</a>, but so far it's all been trouble setting up MySQL on the Mac.</p>

<p>I'm using DarwinPorts to install the UNIXy stuff like Apache 2, Python 2.4, and MySQL 5. I looked at Fink, since that's the one I'd heard of long before I had the Mac, but as they say in their currently newest news entry:</p>

<blockquote>
  <p>Fink on the Intel platform is still considered "beta" quality, and a number of packages (particularly packages in the "unstable" tree) either do not compile, or compile but do not run. Work to improve this situation is ongoing.</p>
</blockquote>

<p>Installing Apache was cake, but MySQL has been a headache. First I had to <a href="http://www.opendarwin.org/pipermail/darwinports/2006-April/033781.html">figure out</a> I needed the <code>+server</code> "variant" to get the Launch Services script for <em>actually running</em> mysqld. (Getting that installed--making sure the <code>+server</code> build was "activated" and the previous wasn't--was another stolen night, but I'll cop to that.) Now I just get the <code>Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock'</code> error as if it's not running, which I guess it isn't, despite there being some weird root process with "mysql5" in the name.</p>

<p>Oh, that's <a href="http://www.opendarwin.org/pipermail/darwinports/2006-April/033782.html">the problem from farther in the thread</a>. I guess it'll have the same solution, too, as "set up the main database" is the next step in <a href="http://wiki.opendarwin.org/index.php/DarwinPorts:MAMP">this "MAMP" guide</a>. That guide's a lot more helpful, in fact; I'm sorry I only found it <em>just now searching for that email thread.</em></p>

<p>Also, anti-props to everyone who thought it was OK to leave <code>.turd_mysql5</code> files in the empty directories <code>port</code> created. I don't want your shit (npi) on my computer.</p>
]]>
        

    </content>
</entry>

</feed>