<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>W-Shadow.com &#187; Magic</title>
	<atom:link href="http://w-shadow.com/blog/category/magic/feed/" rel="self" type="application/rss+xml" />
	<link>http://w-shadow.com</link>
	<description>Slightly Advanced Computer Stuff (and some magic)</description>
	<lastBuildDate>Fri, 20 Nov 2009 16:32:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Become a Vampire</title>
		<link>http://w-shadow.com/blog/2008/05/08/how-to-become-a-vampire/</link>
		<comments>http://w-shadow.com/blog/2008/05/08/how-to-become-a-vampire/#comments</comments>
		<pubDate>Thu, 08 May 2008 17:16:44 +0000</pubDate>
		<dc:creator>White Shadow</dc:creator>
				<category><![CDATA[Magic]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dark]]></category>
		<category><![CDATA[evil]]></category>
		<category><![CDATA[how to become a vampire]]></category>
		<category><![CDATA[hypnosis]]></category>
		<category><![CDATA[magick]]></category>
		<category><![CDATA[mortals]]></category>
		<category><![CDATA[night vision]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[vampires]]></category>
		<category><![CDATA[weirdness]]></category>

		<guid isPermaLink="false">http://w-shadow.com/?p=179</guid>
		<description><![CDATA[I was looking at some search stats and noticed that this question (how to become a vampire?) was more common than you might expect. Every day, nearly 100 people were looking for a way to join the ranks of the stylish undead. &#8220;An interesting topic for a little tutorial&#8221;, I thought. Hence this post.
It seems [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking at some search stats and noticed that this question (<strong>how to become a vampire?</strong>) was more common than you might expect. Every day, nearly 100 people were looking for a way to join the ranks of the stylish undead. &#8220;An interesting topic for a little tutorial&#8221;, I thought. Hence this post.</p>
<p>It seems the jury&#8217;s still out on how, <em>exactly</em>, vampires are created. Some sources cite ancient beliefs (mostly useless superstition), some insist on the popular bitten-by-vampire myth, and some claim that you simply can&#8217;t &#8220;become&#8221; a vampire if you&#8217;ve been born human. Maybe there&#8217;s no single way. So, instead of focusing on any of the aforementioned approaches, I&#8217;ll describe three common vampiric features that you can attain without any supernatural help.</p>
<h3>Hypnotism (<em>AKA</em> Mesmerism)</h3>
<p>&#8220;True&#8221; vampires have it easy &#8211; some mind-control skills are supposedly included in the whole <em>dark revenant</em> package, along with good looks and sharp teeth. But don&#8217;t despair, &#8230; wait, no, despair is cool. Ahem. As I was saying, hypnosis and <a rel="nofollow" href="http://en.wikipedia.org/wiki/Neuro-linguistic_programming">neuro-linguistic programming</a> are well within the reach of mere mortals, so you are free to learn and use it &#8211; even if your heart is still beating. Head over to Google or <a href="http://www.amazon.com/gp/search?ie=UTF8&amp;keywords=hypnosis&amp;tag=wshadowcom-20&amp;index=blended&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325">Amazon.com</a><img src="http://www.assoc-amazon.com/e/ir?t=wshadowcom-20&amp;l=ur2&amp;o=1" alt="" style="border: medium none  ! important; margin: 0px ! important;" width="1" border="0" height="1"> and check out the numerous sites and books available. Just don&#8217;t fall for the &#8220;forbidden secrets revealed!!&#8221; shtick and you should be fine.</p>
<p>To get an (optimistic) idea of what you might achieve, take a look at Derren Brown. He&#8217;s done some <a href="http://www.youtube.com/watch?v=lW2yKlNFFuU">very</a> <a href="http://www.youtube.com/watch?v=k_oUDev1rME">impressive</a> <a href="http://www.youtube.com/watch?v=3Vz_YTNLn6w">things</a> (videos).</p>
<h3>Night Vision</h3>
<p>	Excellent low-light vision is something I&#8217;ve always wanted. You can improve your night vision by using <a href="http://www.wikihow.com/See-in-the-Dark">a few tricks</a>, and science might eventually <a href="http://www.guardian.co.uk/science/2004/jul/07/sciencenews.research">figure something out</a>. </p>
<p>The most promising idea I discovered is <a href="http://www.navaching.com/hawkeen/nwalk.html">NightWalking</a>. The website has a heavy slant towards philosophy/spirituality that reminds me vaguely of <a href="http://en.wikipedia.org/wiki/Carlos_Castaneda" title="Carlos Castaneda" rel="wikipedia nofollow">Carlos Castaneda</a>, but it also contains a detailed guide on improving your peripheral vision. As you might already know, in a situation when there&#8217;s very little light, peripheral vision is much more effective than central vision. Better peripheral vision = better night vision, so this is definitely something worth trying.</p>
<h3>Dark and Mysterious</h3>
<p>The &#8220;dark&#8221; part won&#8217;t be a problem &#8211; just pick something from the wide range of goth stuff available. Maybe invest in coloured contact lenses and/or appropriate makeup.</p>
<p>As for being mysterious, well&#8230; <em>* nods and smiles knowingly *</em></p>
<p>Ah, okay, I&#8217;ll be more verbose. There&#8217;s a bunch of <a href="http://www.google.com/search?q=how+to+be+mysterious">lame</a> <a href="http://www.wikihow.com/Be-Mysterious-and-Stand-Out">tutorials</a> about &#8220;how to be mysterious&#8221; on the web, but they&#8217;re generally a crazy mix of the somewhat useful and the completely ridiculous. In my opinion the coveted &#8220;aura of mysteriousness&#8221; is a pinch of secrecy + a certain form of inner confidence. And it&#8217;s not the kind of confidence that lets you approach strangers and sing on stage. I&#8217;m talking about the kind that frees you from seeking external validation of your thoughts, actions and existence. This is something that very few people have, but it can be learned. Think.</p>
<h3>Miscellaneous Thoughts</h3>
<p>I suspect most people in the &#8220;how to become a vampire&#8221; crowd are looking for a shortcut to becoming <em>cool</em> (is that a pun?). That is understandable. My main reservation about this is that it&#8217;s an unlikely shortcut &#8212; and that most wanna-be&#8217;s don&#8217;t really understand what they&#8217;re asking for when they say &#8220;I want to be a vampire!&#8221;. </p>
<p>Personally, I consider the concept of blood-craving bona-fide vampires unrealistic. I haven&#8217;t seen any reasonable biological explanations for it, and the idea that &#8220;it&#8217;s magic!&#8221; doesn&#8217;t do it for me on this overall low-magic planet. Psychic vampirism is a different thing entirely, but there&#8217;s generally nothing glamorous about being unable to sustain your existence without becoming a (possibly unknowing) parasite. Okay, parasitism might not be the only way, but I won&#8217;t discuss that here.</p>
<p>Hey, this is probably the weirdest post on this site (so far) <img src='http://w-shadow.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<hr/>Copyright &copy; 2009 <strong><a href="http://w-shadow.com">W-Shadow.com</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@w-shadow.com so we can take legal action immediately.]]></content:encoded>
			<wfw:commentRss>http://w-shadow.com/blog/2008/05/08/how-to-become-a-vampire/feed/</wfw:commentRss>
		<slash:comments>704</slash:comments>
		</item>
		<item>
		<title>Building a DeviantArt Recommendation Engine</title>
		<link>http://w-shadow.com/blog/2008/04/29/building-a-deviantart-recommendation-engine/</link>
		<comments>http://w-shadow.com/blog/2008/04/29/building-a-deviantart-recommendation-engine/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 22:02:48 +0000</pubDate>
		<dc:creator>White Shadow</dc:creator>
				<category><![CDATA[Magic]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[collaborative filtering]]></category>
		<category><![CDATA[DeviantArt]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[recommendation engine]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://w-shadow.com/?p=174</guid>
		<description><![CDATA[DeviantArt, with its huge number of artworks and a large userbase, is just the kind of site that could use a good recommendation engine. A recommendation engine is basically a program that analyzes your tastes and recommends some images that you might like. There do not seem to be any official plans to create a recommendation system. So I went ahead and started building my own recommendation engine for DA.]]></description>
			<content:encoded><![CDATA[<p><strong>DeviantArt</strong>, with its huge number of artworks and a large userbase, is just the kind of site that could use a good <strong>recommendation engine</strong>. A recommendation engine is basically a program that analyzes your tastes and recommends some images/products/whatever that you might like.</p>
<p>Unfortunately there don&#8217;t seem to be any official plans to create a recommendation system. So, being the naive creature that I am, I went ahead and started building my own recommendation engine for DA. Maybe I&#8217;m in over my head. </p>
<h3>Seeing is believing</h3>
<p>Here are some screenshots of recommendations that my current system generated. They&#8217;re all of the &#8220;people that liked this also liked that&#8221; type &#8211; deviation-based. The script can also make user-based recommendations &#8211; &#8220;based on your past favorites, you might like this&#8221; &#8211; but I won&#8217;t post those screenshots here, because suggestions the script made for <em>me</em> wouldn&#8217;t make a lot of sense to <em>you</em> <img src='http://w-shadow.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Anyway, here we go. The &#8220;source&#8221; deviation has a red border, and the pictures are the top five generated recommendations. <em>If you think I chose the best examples you are, of course, completely correct <img src='http://w-shadow.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </em></p>
<p><img src="http://w-shadow.com/wp-content/uploads/2008/04/scr1-within-me.jpg" alt="DeviantArt Recommendation Engine Screenshot 1" title="Screenshot 1 - IMHO, very good results" class="alignnone size-full wp-image-176" width="500" height="110"></p>
<p><img src="http://w-shadow.com/wp-content/uploads/2008/04/scr2-golden.jpg" alt="DeviantArt Recommendation Engine Screenshot 2" title="Screenshot 2 - So-so." class="alignnone size-full wp-image-177" width="500" height="99"></p>
<p><img src="http://w-shadow.com/wp-content/uploads/2008/04/scr3-erotic.jpg" alt="DeviantArt Recommendation Engine Screenshot" title="Screenshot 3 - I think the suggestions are fitting." class="alignnone size-full wp-image-175" width="500" height="113"></p>
<p>The algorithm might be improved by taking into account what categories each deviation belongs to, so that the suggestions are similar to the initial image.</p>
<h3>Getting Technical</h3>
<p>I used the free version of Vogoo PHP Lib as the basis of the recommendation algorithm. Vogoo implements several collaborative filtering algorithms, including both item-based and user-based models. I have modified it to improve performance, because some of the original scripts do get sluggish when you have tens of thousands of rows in the DB. Sooner or later I&#8217;ll also start tweaking the suggestion algorithms &#8211; lots of room for experimenting there.</p>
<p>The rest of the setup is PHP + MySQL + Apache, all running on my PC (for now).</p>
<p>I&#8217;d love to put the system online and let other people check it out (when I manage to add at least a rudimentary user interface to it), but the harsh truth is that none of my shared hosting servers could possibly handle it. The script needs a lot of bandwidth and CPU power to effectively support more than a couple of users. And even if I had that, I&#8217;m not sure if I wouldn&#8217;t run into trouble with DA for downloading thousands of RSS feeds non-stop.</p>
<p>I <em>could</em> get a VPS&#8230; which would cost ten times more than my current hosting. Hmm. </p>
<p>Anyway, lets delve deeper into the technical aspects (or you can stop reading now if delving isn&#8217;t your thing <img src='http://w-shadow.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ). </p>
<h3>More data!</h3>
<p>There are a few things that need to be considered even before you can start daydreaming about how to generate the actual suggestions. One of the tasks is choosing what to use as the source data, and how to obtain it. The first part is easy &#8211; your past favorites are a natural source of information about what kind of deviations you like. Getting that information is more complex. If a recommendation engine was developed by DA programmers this wouldn&#8217;t be a problem at all &#8211; they could query the DeviantArt database(s) straight away. However, a random hobbyist (I) obviously can&#8217;t do the same, and DeviantArt doesn&#8217;t have an API. I resorted to using the RSS feeds of user favorites, and checking the &#8220;Who favorite&#8217;d this?&#8221; lists on individual deviations.</p>
<p>So I&#8217;ve got a way to access the favorites&#8230; and I&#8217;ve got a resource problem. There are millions of users and probably <em>billions</em> of recorded favorites on DA. It would take a few years to download all that through RSS feeds (if you don&#8217;t want to inadvertently <a href="http://en.wikipedia.org/wiki/Denial-of-service_attack" title="Denial-of-service attack" rel="wikipedia" target="_blank" class="zem_slink" rel='nofollow'>DDoS</a> DeviantArt) and a decent server farm to analyze it. I decided to be selective and only download the info that is reasonably relevant to the users that use the suggestion engine (me and a few randomly chosen usernames). It goes like this : </p>
<ol>
<li>For every &#8220;active&#8221; user I look at which deviations (s)he recently +fav&#8217;ed. </li>
<li>For every one of those deviations, I check what other users also favorited them.</li>
<li>For every of <em>those</em> users I also find what their latest favorites are.</li>
</ol>
<p>Visually the algorithm could be imagined as a pyramid or an upside-down tree.</p>
<h3>How much is enough?</h3>
<p>As far as I know, recommender algorithms work better with more data. On the other hand, there are technical limitations to how much information you can store and process. So how much information do you need to generate decent recommendations? Here&#8217;s my experience : </p>
<ul>
<li><strong>300 favs processed</strong> &#8211; Meh. You&#8217;d get better results by picking random pictures.</li>
<li><strong>2500 favs processed</strong> &#8211; So-so. Three or four out of 40 images were pretty good.</li>
<li><strong>43 500 favs processed</strong> &#8211; Finally getting somewhere! About 30% of the suggestions were worthy of a +fav.</li>
</ul>
<p>By the way, it took more than 24 hours to gather the <strong>43 thousand</strong> favorites. That&#8217;s partly because my connection is slow.</p>
<h3>In Conclusion</h3>
<p>I wrote this post mainly because I wanted to see what reactions and comments (if any) I&#8217;d get. If there&#8217;s enough interest I might try and figure out how to get the script up and running on a public site somewhere. If nobody cares, well, at least I have another programmer&#8217;s toy to amuse myself with <img src='http://w-shadow.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<hr/>Copyright &copy; 2009 <strong><a href="http://w-shadow.com">W-Shadow.com</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@w-shadow.com so we can take legal action immediately.]]></content:encoded>
			<wfw:commentRss>http://w-shadow.com/blog/2008/04/29/building-a-deviantart-recommendation-engine/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Why Steve Pavlina Can&#8217;t Fly</title>
		<link>http://w-shadow.com/blog/2007/09/27/why-steve-pavlina-cant-fly/</link>
		<comments>http://w-shadow.com/blog/2007/09/27/why-steve-pavlina-cant-fly/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 20:56:51 +0000</pubDate>
		<dc:creator>White Shadow</dc:creator>
				<category><![CDATA[Magic]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[law of attraction]]></category>
		<category><![CDATA[magick]]></category>
		<category><![CDATA[personal development]]></category>
		<category><![CDATA[subjective reality]]></category>

		<guid isPermaLink="false">http://w-shadow.com/blog/2007/09/27/why-steve-pavlina-cant-fly/</guid>
		<description><![CDATA[Have you noticed the bit of the subheading up there on this page that says &#8220;(and some magic)&#8221;? It&#8217;s a kind of disclaimer; it gives me the justification to post just about any crazy rant I want. Unfortunately I don&#8217;t do that very often, if ever. It&#8217;s all programming and tutorials on this blog. Well, [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://w-shadow.com/wp-content/uploads/2007/09/am837693_jump_of_joy.jpg' alt='Fly' style='float: left; margin-right: 10px; margin-bottom: 6px;' />Have you noticed the bit of the subheading up there on this page that says &#8220;(and some magic)&#8221;? It&#8217;s a kind of disclaimer; it gives me the justification to post just about any crazy rant I want. Unfortunately I don&#8217;t do that very often, if ever. It&#8217;s all programming and tutorials on this blog. Well, not today! This one really is about magic <img src='http://w-shadow.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8230; and why we haven&#8217;t seen the &#8220;<a href="http://www.stevepavlina.com/">Steve Pavlina</a> &#8211; The Flying Man&#8221; headline anywhere yet.</p>
<h3>Strong vs. Weak Magic</h3>
<p>In the old days, people believed in wizards, sorcerers, shamans, priests and other beings of great power. A wizard (or some similar creature) could call down fire and lighting, control the elements, fly, and become invisible and more. Let&#8217;s call this &#8220;strong magic&#8221;. Tales of their abilities abound, yet I doubt the persons described were often seen by someone first-hand, if ever. </p>
<p>On the other hand, it&#8217;s likely that commoners could, if they so desired, meet a lower-ranking &#8220;witch&#8221; or a &#8220;wise man&#8221;. There&#8217;s a different name for these in every language, but basically they were said to possess, to some degree, an array of less impressive yet still useful powers like healing (possibly with herbs), limited precognition, the ability to lay a curse on someone, etc. Let&#8217;s call this &#8220;weak magic&#8221;.</p>
<h3>Modern Magic</h3>
<p>Nowadays, magic is a trendy thing. Astrology, intuitive readings, Law of Attraction, Wicca, ESP, bioenergetics &#8211; the list goes on. Note that I use &#8220;magic&#8221; as a blanket term, and yes, I&#8217;ve heard about &#8220;magick&#8221;, too.</p>
<p>Nowadays, people don&#8217;t really believe in strong magic. It seems like a cute fantasy, and it sure generates some nice profits for the entertainment industry, but that&#8217;s about it. Most people are content with /playing/ a sorcerer and don&#8217;t even consider becoming one. That would be ridiculous, wouldn&#8217;t it? You can&#8217;t <em>really</em> throw fireballs in the real life, right? </p>
<p>Nowadays, magic is a virtual commodity. People want to use it to solve problems, not explore the (im-)possibilities. People want to get fit, pay the bills and find a better job. It&#8217;s the Law of Attraction that gets called on, it&#8217;s the &#8220;Magic for Housewives&#8221;, not &#8220;arcane knowledge&#8221;. This might sound unbelievable, but the part of general populace that is aware of magic will either disregard it or treat it in a down-to-earth manner, using it to do what they&#8217;re <em>already</em> doing slightly better. And nobody really <em>needs</em> telekinesis to survive, don&#8217;t they?</p>
<h3>The Law of Distraction</h3>
<p>I mentioned Steve Pavlina in the title &#8211; that&#8217;s because he&#8217;s the one espousing <a href="http://www.stevepavlina.com/blog/2007/09/subjective-reality-simplified/">subjective reality</a> and LoA, too. The subjective reality concept is neat &#8211; it basically places no explicit limits on what you can achieve with it. Theoretically, you could fly, or use telekinesis, or do whatever you can imagine. Strangely enough, Steve hasn&#8217;t mastered levitation yet, and I&#8217;ll bet he never will, not in this life. </p>
<p>That&#8217;s because every noteworthy guru (&#038; Steve sure is noteworthy; I&#8217;m not sure about the &#8220;guru&#8221; part) is either advocating weak magic or even &#8220;really weak magic&#8221;. They will tell you how to solve real, practical problems &#8211; financial troubles, weight issues, finding your &#8220;true self&#8221; and so on. That&#8217;s all well and good, but I miss the fireballs, I really do.</p>
<p>Ultimately Steve&#8217;s approach is about personal development rising ones consciousness, and that is extremely unlikely to lead to fireballs and lightning bolts. A person at high level of consciousness will have neither the need nor desire to solve their problems with a torrent of pure, deadly power &#8211; not even if they <em>could</em>. It&#8217;s assumed only those at lower levels of thought find fantasies of strong magic appealing. If you want it, you&#8217;re not evolved enough to have it, and if you were of high enough level, you probably wouldn&#8217;t want it anyway.</p>
<p>Damn, I still think pyrokinesis, levitation and power in general would be cool! Me want! Yeah, I know, I have issues, but I sort of like that.</p>
<hr/>Copyright &copy; 2009 <strong><a href="http://w-shadow.com">W-Shadow.com</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@w-shadow.com so we can take legal action immediately.]]></content:encoded>
			<wfw:commentRss>http://w-shadow.com/blog/2007/09/27/why-steve-pavlina-cant-fly/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
