<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
    <channel>
        <title>Asielen's site</title>
        <link>http://www.byond.com/members/Asielen</link>
        <description></description>
        <lastBuildDate>Fri, 10 Feb 2012 22:32:52 +0000</lastBuildDate>
        <language>en-us</language>
    
                <item>
            <title>Intermittent problem while retrieving a webpage using world.Export()</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=199063</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=199063</guid>
            <pubDate>Wed, 25 Jan 2012 23:57:32 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=199063#comments</comments>
            
            <description>&lt;b&gt;Code:&lt;/b&gt;&lt;br&gt;
&lt;div class=&quot;dmcode&quot;&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre class=&quot;dmcode&quot;&gt;
client/&lt;span class=&quot;dmkeyword&quot;&gt;verb&lt;/span&gt;&lt;br&gt;    Test_Any_Site(&lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/url &lt;span class=&quot;dmkeyword&quot;&gt;as&lt;/span&gt; text)          &lt;span class=&quot;dmcomment&quot;&gt;//eg: www.google.com&lt;/span&gt;&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/site = &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;br&gt;        world &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;TESTING - &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[url]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;&lt;/span&gt;&lt;br&gt;        site = get_website(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;http://&lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[url]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;&lt;/span&gt;)&lt;br&gt;        world &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;site length &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[length(site)]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span class=&quot;dmkeyword&quot;&gt;proc&lt;/span&gt;&lt;br&gt;    get_website(url)&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/list/site = &lt;span class=&quot;dmkeyword&quot;&gt;new&lt;/span&gt;()&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/site_text = &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/refresh = 0&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;while&lt;/span&gt;(!site_text &amp;amp;&amp;amp; refresh&amp;lt;10)&lt;br&gt;            refresh++&lt;br&gt;            site = world.Export(url)&lt;br&gt;&lt;br&gt;            &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt;(!site)   &lt;span class=&quot;dmcomment&quot;&gt;//Site is not loading at all&lt;/span&gt;&lt;br&gt;                world &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;ATTEMPT &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[refresh]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; FAILED  &amp;#064; &amp;lt;&lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[url]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt;&amp;gt; - NO SITE - NEXT TRY &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[2*refresh]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; seconds&amp;quot;&lt;/span&gt;&lt;br&gt;                sleep(refresh*20) &lt;span class=&quot;dmcomment&quot;&gt;//Pause between retrys for better chance of getting a page (longer each time)&lt;/span&gt;&lt;br&gt;                &lt;span class=&quot;dmkeyword&quot;&gt;continue&lt;/span&gt;&lt;br&gt;&lt;br&gt;            site = site[&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;CONTENT&amp;quot;&lt;/span&gt;]&lt;br&gt;            site_text = file2text(site)&lt;br&gt;&lt;br&gt;            &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt;(length(site_text)&amp;lt;10) &lt;span class=&quot;dmcomment&quot;&gt;//Arbitrary length to catch bad sites&lt;/span&gt;&lt;br&gt;                world &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;ATTEMPT &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[refresh]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; FAILED  &amp;#064; &amp;lt;&lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[url]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt;&amp;gt; - BAD SITE- &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[site_text]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt;- NEXT TRY &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[2*refresh]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; seconds&amp;quot;&lt;/span&gt;&lt;br&gt;                site_text = &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;br&gt;                sleep(refresh*20) &lt;span class=&quot;dmcomment&quot;&gt;//Pause between retrys for better chance&lt;/span&gt;&lt;br&gt;&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;if&lt;/span&gt;(!site_text)  &lt;span class=&quot;dmcomment&quot;&gt;//If even after all that, no site was loaded return null&lt;/span&gt;&lt;br&gt;            world &amp;lt;&amp;lt; &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;# ERROR # ATTEMPT &lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[refresh]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt; - NO SITE &amp;#064; &amp;lt;&lt;/span&gt;&lt;span class=&quot;dmbrace&quot;&gt;[url]&lt;/span&gt;&lt;span class=&quot;dmstring&quot;&gt;&amp;gt;&amp;quot;&lt;/span&gt;&lt;br&gt;            &lt;span class=&quot;dmkeyword&quot;&gt;return&lt;/span&gt;&lt;br&gt;&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;return&lt;/span&gt; site_text
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Problem description:&lt;/b&gt;&lt;br&gt;
While trying to retrieve a webpage in-order to parse its contents, I occasionally receive a bad site when I don't believe I should.&lt;br&gt;
&lt;br&gt;
I am not sure if this is a code problem or a web page problem. Occasionally instead of getting the webpage, I get something along the lines of:&lt;br&gt;
â¹&lt;br&gt;
and that is it.&lt;br&gt;
&lt;br&gt;
It doesn't happen all the time (maybe 10% of the time) and it doesn't happen with all sites. One site I seem to have the most trouble with is: &lt;a href=&quot;http://www.politifact.com/personalities/&quot;&gt;http://www.politifact.com/personalities/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description>
        </item>
                <item>
            <title>nth root algorithm</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=155663</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=155663</guid>
            <pubDate>Wed, 20 Apr 2011 23:18:04 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=155663#comments</comments>
            
            <description>I am trying to expand upon hobnobs bignum datum but I can not figure out how to solve for nth roots.&lt;br&gt;
&lt;br&gt;
I cam across this algorithm:&lt;br&gt;
(http://en.wikipedia.org/wiki/Shifting_nth_root_algorithm).&lt;br&gt;
&lt;br&gt;
It seems to be the best way to find the nth root of a number that is stored as a string. However, I can't figure out how to get a generic version of this algorithm working. I can kind of get it working for square root and cube root but not for any nth root. Does anyone have an implementation of this algorithm for BYOND or perhaps a pseudo code example or any other method for solving the nth root of a number stored as a text string of arbitrary length?&lt;br&gt;
&lt;br&gt;
Here are a couple other example of the algorithm as used to solve square roots and cube roots.&lt;br&gt;
&lt;a href=&quot;http://xlinux.nist.gov/dads//HTML/cubeRoot.html&quot;&gt;http://xlinux.nist.gov/dads//HTML/cubeRoot.html&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://xlinux.nist.gov/dads//HTML/squareRoot.html&quot;&gt;http://xlinux.nist.gov/dads//HTML/squareRoot.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description>
        </item>
                <item>
            <title>Pass error messages through a proc</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=155728</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=155728</guid>
            <pubDate>Tue, 05 Apr 2011 01:05:39 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=155728#comments</comments>
            
            <description>Is it possible to pass runtime error messages through a proc and modify the output? At times when I am debugging, I would like to be able to add extra info to the error output that would only be displayed if the proc crashed. I don't see how it could be done but maybe someone has an idea.</description>
        </item>
                <item>
            <title>Map Initialization at runtime</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=155875</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=155875</guid>
            <pubDate>Thu, 24 Feb 2011 12:26:27 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=155875#comments</comments>
            
            <description>I just have a question about these world variables.&lt;br&gt;
&lt;br&gt;
It seems from experimenting that no matter what, if you want to use a map you have to initiate the map in someway before runtime, either through setting maxx and maxy or actually creating a map. If you do this then you can adjust these variables during runtime to change the maps size.&lt;br&gt;
&lt;br&gt;
Example (This works):&lt;br&gt;
&lt;div class=&quot;dmcode&quot;&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre class=&quot;dmcode&quot;&gt;
world&lt;br&gt;  maxx = 1&lt;br&gt;  maxy = 1&lt;br&gt;&lt;br&gt;turf/grass&lt;br&gt;  text = &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;#&amp;quot;&lt;/span&gt;&lt;br&gt;&lt;br&gt;client&lt;br&gt;  &lt;span class=&quot;dmkeyword&quot;&gt;verb&lt;/span&gt;&lt;br&gt;    Set_Map()&lt;br&gt;      world.maxx = 10&lt;br&gt;      world.maxy = 10&lt;br&gt;      &lt;span class=&quot;dmkeyword&quot;&gt;new&lt;/span&gt;/turf/grass(locate(10,1,1))&lt;br&gt;      view = 10
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
However, if you don't setup a map at runtime, there is nothing you can do to initialize the map.&lt;br&gt;
&lt;br&gt;
Example (this doesn't work-no map initialization):&lt;br&gt;
&lt;div class=&quot;dmcode&quot;&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre class=&quot;dmcode&quot;&gt;
turf/grass&lt;br&gt;  text = &lt;span class=&quot;dmstring&quot;&gt;&amp;quot;#&amp;quot;&lt;/span&gt;&lt;br&gt;&lt;br&gt;client&lt;br&gt;  &lt;span class=&quot;dmkeyword&quot;&gt;verb&lt;/span&gt;&lt;br&gt;    Set_Map()&lt;br&gt;      world.maxx = 10&lt;br&gt;      world.maxy = 10&lt;br&gt;      &lt;span class=&quot;dmkeyword&quot;&gt;new&lt;/span&gt;/turf/grass(locate(10,1,1))&lt;br&gt;      view = 10
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
Now I know this isn't a big deal and I can work around any issue with this. I am just wondering out of curiosity if there is a way to initialize a map at runtime.</description>
        </item>
                <item>
            <title>Circle Coordinates</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=155900</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=155900</guid>
            <pubDate>Wed, 16 Feb 2011 10:41:37 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=155900#comments</comments>
            
            <description>So I have been trying to figure this out and I haven't seen anything directly related to this in the forum-a lot of things that are close but not quite.&lt;br&gt;
&lt;br&gt;
I am trying to create a proc that given a x,y value and a radius, it will return a list of all the coordinates within the circle (not just a ring but a filled circle). I can't use range or view because this does not apply to turfs. It is more of an abstraction using an array set up as array[x][y].&lt;br&gt;
&lt;br&gt;
If anyone has any ideas or if I missed anything in the forum let me know.&lt;br&gt;
&lt;br&gt;
I have tried adapting something I used in my graph program using polar coordinates:&lt;br&gt;
&lt;div class=&quot;dmcode&quot;&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre class=&quot;dmcode&quot;&gt;
Gr_Polar(&lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/radius &lt;span class=&quot;dmkeyword&quot;&gt;as&lt;/span&gt; num, &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/ang &lt;span class=&quot;dmkeyword&quot;&gt;as&lt;/span&gt; num)&lt;br&gt;  &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/py = radius*sin(ang)&lt;br&gt;  &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/px = radius*cos(ang)&lt;br&gt;  &lt;span class=&quot;dmkeyword&quot;&gt;return&lt;/span&gt; list[px][py] &lt;span class=&quot;dmcomment&quot;&gt;//this is a global list&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
But this doesn't really give the best results since I have to round it which creates off center shapes.&lt;br&gt;
&lt;br&gt;
If it is any help, I probably wont have a radius greater than 4.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description>
        </item>
                <item>
            <title>Snow War v4.10</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=107777</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=107777</guid>
            <pubDate>Sun, 30 Jan 2011 05:12:22 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=107777#comments</comments>
            
            <description>&lt;a target=&quot;_blank&quot; href=&quot;http://www.byond.com/members/Asielen/files/2011-01/Asielen-0001/snowwarscreen.png&quot; rel=&quot;thumbnail&quot;&gt;&lt;img width=&quot;400&quot; height=&quot;256&quot; src=&quot;http://www.byond.com/members/Asielen/files/2011-01/Asielen-0001/snowwarscreen_thumb.jpg&quot;&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Snow War has been updated for the first time in a long time.&lt;br&gt;
&lt;br&gt;
It was originally created for a contest way back in January of 2008 but it was only sort of working at that point.&lt;br&gt;
&lt;a href=&quot;http://www.byond.com/members/LummoxJR?command=view_post&amp;post=38113&quot;&gt;Original Contest&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I have decided to clean it up and make it a more finished product. Please feel free to leave any comments on how I can improve it.&lt;br&gt;
&lt;br&gt;
Also, check out the help file SnowWarGuide.pdf in my files.</description>
        </item>
                <item>
            <title>Refreshing</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=107723</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=107723</guid>
            <pubDate>Sat, 29 Jan 2011 00:06:11 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=107723#comments</comments>
            
            <description>After coming back from a long hiatus due to school, the most refreshing part of this community is not the site change or the removal of rips but rather how much more open the administrators have become.&lt;br&gt;
&lt;br&gt;
I remember when I started here it was an extremely closed community. I applaud the efforts made by Tom in being a more public figure around here. It is nice to see that he is personally responding to posts and clarifying the site policies. I hope that once all this controversy dies down, he remains an active and visible part of the community, while continuing to improve Byond.&lt;br&gt;
&lt;br&gt;
So, instead of whining and complaining about how things change, I thank you Tom for the effort put into this site.&lt;br&gt;</description>
        </item>
                <item>
            <title>Import From Excel or CSV File to a list</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=159226</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=159226</guid>
            <pubDate>Fri, 17 Apr 2009 21:37:01 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=159226#comments</comments>
            
            <description>Hey I was just wondering if anyone knows of a way to import a values from an excel or .csv file and put them into a list within Byond.&lt;br&gt;
&lt;br&gt;
I guess I could just read the .csv file as text and parse out the individual columns but I figured I would ask first to see if anyone has come up with a better solution or something similar that could be easily modified to suit my needs.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description>
        </item>
                <item>
            <title>Next Step.</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=43599</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=43599</guid>
            <pubDate>Sat, 31 May 2008 20:24:45 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=43599#comments</comments>
            
            <description>I will be attending the University of Southern California next fall as a Junior in the Business school after having gone to Long Beach City College for the last 2.5 years. For the last about semester I have been doing a lot of paperwork in regards to transfering so I haven't been very active and now going to USC next fall I will probably not have as much time so I probably not keep active. However, I will probably still lurk occasionally on this key or my other key (drumersl)&lt;br&gt;
&lt;br&gt;
It has been fun Byond.&lt;br&gt;
&lt;br&gt;
Fight On!&lt;br&gt;</description>
        </item>
                <item>
            <title>Philosophy: Morality</title>
            <link>http://www.byond.com/members/Asielen?command=view_post&amp;post=38644</link>
            <guid>http://www.byond.com/members/Asielen?command=view_post&amp;post=38644</guid>
            <pubDate>Tue, 29 Jan 2008 23:00:40 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Asielen?command=view_comments&amp;post=38644#comments</comments>
            
            <description>I am taking an Ethics class this semester and I am curious to see what this communities take on morality is.&lt;br&gt;
&lt;br&gt;
In case you dont know what the categories are:&lt;br&gt;
&lt;br&gt;
Objectivist:&lt;br&gt;
You believe there is absolute moral truth that is the same for everyone and unaffected by what we think or feel about it.&lt;br&gt;
&lt;br&gt;
Subjectivism:&lt;br&gt;
You believe that moral truth is determined by what an individual thinks about something.&lt;br&gt;
&lt;br&gt;
Emotivism:&lt;br&gt;
You believe that moral truth is determined by how an individual feels about something.&lt;br&gt;
&lt;br&gt;
Cultural Relativist (aka Conventionalism):&lt;br&gt;
You believe that moral truth is determined by a culture or society.&lt;br&gt;
&lt;br&gt;
Nihilist:&lt;br&gt;
You think that there is not moral truth at all.&lt;br&gt;</description>
        </item>
            
    </channel>
</rss>


