<?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>Rafadamar!!</title>
	<atom:link href="http://rafadamar.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rafadamar.com</link>
	<description>Hate me for who I am not who you think I am.</description>
	<lastBuildDate>Sat, 17 Jul 2010 04:49:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ideas for Posts</title>
		<link>http://rafadamar.com/2010/05/ideas-for-posts/</link>
		<comments>http://rafadamar.com/2010/05/ideas-for-posts/#comments</comments>
		<pubDate>Sat, 29 May 2010 00:48:06 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Random Thoughts]]></category>

		<guid isPermaLink="false">http://rafadamar.com/?p=110</guid>
		<description><![CDATA[I&#8217;m writing this post to jot down ideas for posts that I&#8217;ve had in the past. You see, my brain is a little funny. It thinks of interesting little ideas. If I don&#8217;t write them down, I usually don&#8217;t remember them. I&#8217;ve been writing ideas into my journal and cellphone so that I have more [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m writing this post to jot down ideas for posts that I&#8217;ve had in the past. You see, my brain is a little funny. It thinks of interesting little ideas. If I don&#8217;t write them down, I usually don&#8217;t remember them. I&#8217;ve been writing ideas into my journal and cellphone so that I have more material to work with.</p>
<p>I decided to share them for two reasons: to see what you want to see and to possibly inspire a reader. I want to know what you want to see because I&#8217;m not the most motivated person in the world. But, if I see that someone wants to see a certain idea written by me, I would certainly find motivation to write. By writing this post, I am sharing my ideas with the world. If any of these ideas inspire you, go ahead and write about them. I want to contribute to the writing community in any way. I&#8217;m happy with a contribution that is just a small idea.</p>
<h2>Developing Planets</h2>
<p>The setting for this idea is the far future when many planets of our solar system&#8211;and maybe other solar systems&#8211;have been colonized. Politics can now be seen on a larger scale. The terms 1st world and 3rd world are quite literal. A planet can be a developing world or a developed world.</p>
<p>Earth is now a developing world. How has politics changed on the planet itself? Is America still in charge? Is their only one government? How have nuclear arms or climate change affected Earth&#8217;s development? All those questions set up the status quo of Earth. It could go many directions. Maybe Earth is ruled by one government because a global catastrophe created a need for that. Maybe a nuclear war has somehow made Australia the superpower. Maybe none of that happened and the Earthlings simply haven&#8217;t come up with space travel yet. The lack of space travel is impeding our development. The point here is there are many reasons why Earth is a developing world in this setting.</p>
<p>The point of view can be from that of a federation of planets deciding whether or not to aid Earth in its development. Maybe Earth has been trying to get into contact with this federation for a while.</p>
<p>If I were to write a story about that, it would be to highlight how power changes when scope changes or to highlight how power changes through time. Humanity may have started on Earth, but will it leave it behind? When will Earth become a foreign land?</p>
<h2>7 Days Gang</h2>
<p>This idea is about a group of assassins that give their targets seven days to live. This gang is powerful and has access to many resources. The story can be about how the gang got its name. Many of its targets have tested it in various ways. One of them flew to another country and disguised himself as somebody else. Another thought he could buy his way out. One thought joining the gang would prevent it. Yet another thought the threat of mutual destruction would prevent it.</p>
<p>There could be a character in the gang who decides to kill people because of simple offenses. One day while eating at a cafe a waiter spills soup on him. The character then wipes himself off and tells the waiter, &#8220;You have seven days to live.&#8221;. The waiter doesn&#8217;t know whether to believe him. The waiter thinks it may be an idle threat. &#8220;Maybe he&#8217;s not from the gang? Even if he were, he wouldn&#8217;t kill me for this. Would he?&#8221;, he thinks. In seven days, the waiter is killed.</p>
<p>A story can also be about a target and what he or she does for the seven days. There can be several responses to being outright told, &#8220;You have seven days to live.&#8221;. The target can try to run and hide. The target can go into depression or denial. The target may even accept it and have the best time of his or her life.</p>
<p>For some reason, I imagine the setting to be in Japan with samurai. The limited technology of the time makes the idea more interesting, but it could work with a modern setting.</p>
<h2>Evil Brother</h2>
<p>This idea is definitely a dark one. A brother sees that his younger brother is crazy. He hides that fact from his parents somehow and uses his brother&#8217;s lunacy to his advantage. The evil brother manipulates his younger brother into murdering people.</p>
<p>Maybe the evil brother stumbled upon a way to hypnotize the younger brother in their childhood. It&#8217;s a weird idea. The evil brother is able to get away with murder that way. The younger brother is just a pawn.</p>
<h2>Dreaming</h2>
<p>This is really just a scene my mind thought up.</p>
<p>A person awakes from sleep. This person has fallen asleep while watching a movie with two others in his room. Something feels wrong though. The person can&#8217;t see the faces of the two others although their bodies look familiar. That&#8217;s when he notices a sound, but it&#8217;s not coming from the TV. In fact, no sound is coming from the TV. The sound becomes clearer. Something is being said in an alien tongue. The person assumes he is still dreaming. He goes back to sleep with a strange feeling.</p>
<p>That&#8217;s all I got. Maybe he&#8217;s been abducted by aliens. Maybe he wakes up in a dream that he cannot get out of. The reasons for this situation can be pretty complicated. One just has to think of them.</p>
<h2>Importing Work</h2>
<p>This idea is about a nation that has gotten rid of retirement and vacations so that its workforce can have more time to work. The nation actually imports work from other nations. What does that mean? If you are a citizen of the importing nation, your life is one of work. If you are of the other nation, you don&#8217;t have to work.</p>
<p>Maybe the importing country has made its workforce this way because it gets more tax revenue to pay off debts or to pay for war. Maybe it is actually a colony of the other nation. In this case, the resource the colonizing nation is after is time. Time for its citizens to relax. This story can focus on the politics and economics of this situation. How is this system viable? What kind of taxing is done so that both nation&#8217;s governments profit from the situation? I imagine the colonizing nation saying, &#8220;All this work is good for the colony. Before they had no economy whatsoever, now it is booming!&#8221;.</p>
<p>The story can be about how other nations view this situation or about how the working nation&#8217;s citizens react to the situation. Is the nation&#8217;s control over the people so strong that they support it? Or, is their civil unrest?</p>
<h2>One Day</h2>
<p>This is a story of two men who hate each other so much they fight to the death. With his last breath, the dying man says, &#8220;One day I will kill you.&#8221; This can go two ways.</p>
<p>One way, the dead man comes back to life and eventually kills his killer. Maybe it&#8217;s for supernatural reasons. For example, maybe their hate was so strong that it brought him back to life. Maybe some deity brought him back to life to exact his revenge. Maybe he was turned into a zombie because of a military experiment.</p>
<p>The other way is more symbollic. Maybe a person with the same name as the murdered man kills the other guy. Maybe someone who looks very similar to the murdered man kills the other guy. Maybe the guy had a twin!</p>
<h2>Space Trucking</h2>
<p>This story is about a space trucker reflecting on his job. It suits him well because he is a loner. He cannot imagine life in the past stuck on one planet surrounded by people. His home is literally his driver&#8217;s seat. His cargo ship is the cheapest model and the cockpit is the only living space. He eats where he drives. He sleeps where he drives. He pees where he drives. The rest of the ship is dedicated to carrying cargo.</p>
<p>The setting is in the future and in space. The trucker&#8217;s special kind of ship makes for a strange living situation, but it is one he enjoys. His small living area is completely decorated with things that make him happy.</p>
<h2>Armed Treaties</h2>
<p>This is an idea about treaty organizations getting some muscle. Treaty organizations have their own armies or hired mercenaries that they use to ensure their treaties are followed. The changed dynamics this creates are pretty interesting. Treaties are more effective, but now nations have more to worry about. Pressure from other nations or the treaty organization itself can be a reason why nations still take part in treaties.</p>
<p>If a treaty organization has its own army, maybe it gets soldiers for that army from the nations participating in the treaty. In this case, maybe a fake war is started by the participating nations so that they can legally withdraw soldiers from the treaty organization&#8217;s army. The participating nations then break the rules of the treaty to their hearts&#8217; content.</p>
<h2>Non-fiction</h2>
<p>I&#8217;ve also got some ideas for non-fiction posts. I&#8217;ll write a post about that later though.</p>
<p>Let me know your thoughts on these ideas! And again, feel free to use them as your own.</p>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2010/05/ideas-for-posts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HowTo: Integrate Privatemsg with the Flag and jQuery_Impromptu modules</title>
		<link>http://rafadamar.com/2010/05/howto-integrate-privatemsg-with-the-flag-and-jquery_impromptu-modules/</link>
		<comments>http://rafadamar.com/2010/05/howto-integrate-privatemsg-with-the-flag-and-jquery_impromptu-modules/#comments</comments>
		<pubDate>Thu, 13 May 2010 01:36:19 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://rafadamar.com/?p=97</guid>
		<description><![CDATA[I needed a way for a user to be prompted to send a message to the author of a node after it was flagged. This was my solution. jQuery Impromptu provides a nice way of implementing a pop-up feature. Flag of course flags a node. &#60;?php // Load necessary to avoid error module_load_include('pages.inc','privatemsg'); // Adds [...]]]></description>
			<content:encoded><![CDATA[<p>I needed a way for a user to be prompted to send a message to the author of a node after it was flagged. This was my solution.</p>
<p><a href="http://drupal.org/project/jquery_impromptu">jQuery</a> Impromptu provides a nice way of implementing a pop-up feature.<br />
<a href="http://drupal.org/project/flag">Flag</a> of course flags a node.</p>
<pre class="brush: php">&lt;?php
  // Load necessary to avoid error
  module_load_include('pages.inc','privatemsg');

  // Adds javascript to header
  jquery_impromptu_add();

  // Gets rid of whitespaces that break javascript code
  // drupal_get_form retrieves the privatemsg form
  // $uid is the author of the node
  // $title is the title of the node
  $form = str_replace("\r", '', str_replace("\n", '', drupal_get_form('privatemsg_new', $uid, $title)));

  // javascript that runs jquery_impromptu on flag event
  print '&lt;script language="javascript"&gt;';
  print "
  $(document).bind('flagGlobalAfterLinkUpdate', function(event, data) {
    if(data.flagStatus == 'flagged'){
      $.prompt('$form');
    }
  });
  ";
  print '&lt;/script&gt;';

  // Necessary because previous module_load_include changes title
  drupal_set_title(check_plain($node-&gt;title));
?&gt;
</pre>
<p>For more information on how you can customize the privatemsg form, look here <a href="http://drupal.org/node/624528">http://drupal.org/node/624528</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2010/05/howto-integrate-privatemsg-with-the-flag-and-jquery_impromptu-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checho&#8217;s Bar</title>
		<link>http://rafadamar.com/2009/12/chechos-bar/</link>
		<comments>http://rafadamar.com/2009/12/chechos-bar/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 07:59:33 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Deep Thoughts]]></category>
		<category><![CDATA[Short Stories]]></category>
		<category><![CDATA[drugs]]></category>
		<category><![CDATA[society]]></category>
		<category><![CDATA[stream of consciousness]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This night wasn&#8217;t different from any other. I was slightly drunk and walking back home from the bar. Checho, the bartender, had taken away my keys as usual. Normally, Checho&#8217;s practice of taking away his patrons&#8217; keys never worked. They were always too drunk and too macho to let Checho decide if they could drive [...]]]></description>
			<content:encoded><![CDATA[<p>This night wasn&#8217;t different from any other. I was slightly drunk and<br />
walking back home from the bar. Checho, the bartender, had taken away<br />
my keys as usual. Normally, Checho&#8217;s practice of taking away his<br />
patrons&#8217; keys never worked. They were always too drunk and too macho to<br />
let Checho decide if they could drive home.</p>
<p>I didn&#8217;t question his wisdom because he didn&#8217;t question my ID. I&#8217;m 18 and Checho&#8217;s bar was the only bar that let me in. Why ruin a good thing?</p>
<p>Beer had flowed into me faster than my hard-earned money going back into the socioeconomic system which I thought repressed me. That&#8217;s why I drank. The Man could have my money, but he&#8217;d never have my mind. No. My mind I saved for philosophy, drugs, and alcohol.</p>
<p>That&#8217;s how I spent my time. I gave my money to Checho. Checho would use that money to buy his wife a bracelet. The jeweler who sold Checho the bracelet would take his money and buy whatever it is jewelers buy. I essentially traded in my time at my job for beer. From that, a jeweler was capable of satisfying his material needs. The world kept turning.</p>
<p>&#8220;Hey man. What&#8217;s good?&#8221;</p>
<p>I turned to the speaker. I didn&#8217;t know what to say. I have trouble with slang. Would &#8220;Not much.&#8221; be an appropriate response? I have no idea. It was only then that I took in my surroundings and the look of the speaker.</p>
<p>I had taken a shortcut home as always. The alley was not well lit. The only light was the moon&#8217;s. The speaker addressing me was under a broken lamppost. His face was obscured by the shadow from his hood. Our clothes weren&#8217;t so different. What is it about baggy jeans and a hoodie? I could&#8217;ve been him had things gone differently in life.</p>
<p>&#8220;Not much. How are you?&#8221;, I said.</p>
<p>&#8220;I&#8217;m good man. I got the chron. 25 a g.&#8221;</p>
<p>So many things pass through your mind when confronted with such a sales pitch. Why does he assume I smoke weed? Is he gonna rob me? Do I have enough money for this? Do I need more weed? Is he a cop? What drives a man to selling weed to strangers in a dark alley?</p>
<p>A strange feeling comes over me. Its a mix of confusion, terror, and glee. This man at this hour at this alley and here I am. Questions are zooming through my mind, but I already have my answer.</p>
<p>I say, &#8220;Sounds good.&#8221; And, we step into the shadows. Three things are true: he&#8217;s not a cop, he&#8217;s not going to rob me, and I want to be high. We both reach into our backpockets. Its a beautiful ballet. I reach for my wallet and he reaches for a gram of chronic. The chronic comes out in a plastic bag shaped nicely into a ball. The money is crumpled lettuce. We exchange our goods in a mock handshake of goodbyes.</p>
<p>I get to get high and he gets to pay his bills. Some guy at the electric company will be able to put his kid through college. This lettuce is powerful.</p>
<p>The hardest part about smoking is the preparation. You need to clean<br />
the weed, put it in some kind of smoking apparatus, and light it.<br />
Thankfully, good chron stems can be smoked. So, I didn&#8217;t need to clean<br />
it. I have a pipe. No need to roll a joint. Lighting is easy. A lighter always seems to appear<br />
in my hands at the exact time I need one.</p>
<p>I was already on my way down the alley. If you know me, then you know that I carry a bag wherever I go. My dad always told me, &#8220;Just like the Boy Scouts, always be prepared.&#8221;</p>
<p>From my bag, comes the pipe. The pipe is in my left hand as I search for my smoking tool with my right. This tool is perfect. It cleans, it scoops, it packs! I feel it in my bag and grasp it. The tool is now poking a hole in my bag of chron. It scoops up a good amount for the walk home. I pour the chron into the pipe.</p>
<p>Chk! Chk! The lighter in my hand clicks into the night and finally comes alive. Fire meet chron. Chron meet fire. You two are a wonderful match.</p>
<p>I inhale deeply.</p>
<p>The walk home is much more comfortable. A day of working and yet it is now that I feel I have contributed most to society. I have finally gained happiness from a purchase of material goods. I have joined my brethren in sweet bliss.</p>
<p>But, tomorrow I will still see Checho. His wife wants more jewelry and I will need more beer.</p>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2009/12/chechos-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Black Bile Defiles</title>
		<link>http://rafadamar.com/2009/11/black-bile-defiles/</link>
		<comments>http://rafadamar.com/2009/11/black-bile-defiles/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 13:13:27 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Poetry]]></category>
		<category><![CDATA[melancholy]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Melancholy perverts Temperaments eclipse Everything that man skirts The ill-humor grips With curses or laughter A time will come When now and hereafter You shall be numb]]></description>
			<content:encoded><![CDATA[<p>Melancholy perverts<br />
Temperaments eclipse<br />
Everything that man skirts<br />
The ill-humor grips</p>
<p>With curses or laughter<br />
A time will come<br />
When now and hereafter<br />
You shall be numb</p>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2009/11/black-bile-defiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Game I&#8217;ve Been Dying to Make</title>
		<link>http://rafadamar.com/2009/11/the-game-ive-been-dying-to-make/</link>
		<comments>http://rafadamar.com/2009/11/the-game-ive-been-dying-to-make/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 01:08:46 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[game development]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The reason I started to learn web development stuff like HTML &#38; CSS when I was a kid was so that I could one day make a massive multiplayer online role playing game(MMORPG). I still have that goal in mind! For a couple of years now, I&#8217;ve been developing a game in my head. I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>The reason I started to learn web development stuff like HTML &amp; CSS when I was a kid was so that I could one day make a massive multiplayer online role playing game(MMORPG). I still have that goal in mind!</p>
<p>For a couple of years now, I&#8217;ve been developing a game in my head. I&#8217;ve created some goals that I want that game accomplish:</p>
<ul>
<li>It has to be open-ended</li>
<li>It should be realistic</li>
<li>The interface should be text-based with natural language</li>
<li>It should have different types of gameplay</li>
<li>It should be free</li>
</ul>
<p><!--break-->The open-ended feel, realism, and natural language interface goals are there to make the game immersive. I don&#8217;t want the player to feel like they&#8217;re playing a game. I want them to invest more time, thought, and emotion in this game than the usual game. The game should almost feel like an extension of life. A sort of alternate universe where the player gets to live out different life scenarios. It&#8217;s not just a game. It&#8217;s a way of living a different life.</p>
<p>That means the point of this game isn&#8217;t pretty graphics. You&#8217;re going to be able to shoot somebody&#8211;and maybe even headshot somebody&#8211;but you&#8217;re not going to see it on the screen. You&#8217;re going to read it. The imagination has a much better visualization engine than anything I could write or any open source alternative out there. And, that is why I want the game to be text-based. I&#8217;m hoping the immersiveness of it aids the player in imagining everything while reading how the game is playing out.</p>
<p>The game should have different types of gameplay so that its hard to be bored by the game and so that it can broaden its audience. That does mean that two players should be able to get a similar experience from the game even if the part of the game each player takes part in has different gameplay. For example, some players can have a purely business/logisitcs/tycoon kinda game, others can have a stock market kinda game, others can have a kingdom/mafia kinda game, and others can have a third-person(in the literary sense) shooter.</p>
<p>It has to be free because I remember being bored as fuck as a kid. I remember wishing a game like this existed and that it was free so I could play it. So, yea its gonna be free.</p>
<p>I&#8217;ve of course thought about how all of this will be coded. Creating a realistic feel and a an open-ended feel will be complicated. I need to make walking, driving, bus routes, non-player characters(NPCs), and a whole lotta other complicated crap work smoothly. We&#8217;re not even talking about natural language yet. If a PHP library, jQuery plugin, or Drupal module don&#8217;t already exist for natural language interpretation, it&#8217;s probably gonna be a bitch to code. Maybe some crazy Python programmer out there made something I could use. We&#8217;ll see. Since it&#8217;s text based, I&#8217;m going to need to output everything properly. Everything includes: location description, actions taking place by neighboring players &amp; NPCs, actions you&#8217;ve done, possible error messages. Creating functionality for different types of gameplay and making sure each interacts with the other gameplays in a realistic and meaningufl way will also be difficult. The stock market player&#8217;s decisions should affect the kingdom players decions. To make it free, the coding has to be done well as to not waste calls to the server.</p>
<p>This is going to be a very complex game. The decision tree will be huge. The possibilities will be hopefully endless.</p>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2009/11/the-game-ive-been-dying-to-make/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Script to Check If a Site is Up</title>
		<link>http://rafadamar.com/2009/11/php-script-to-check-if-a-site-is-up/</link>
		<comments>http://rafadamar.com/2009/11/php-script-to-check-if-a-site-is-up/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 22:10:12 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I needed to develop this script in order to check whether or not my streaming media server was up. At first, I tried to use PHP&#8217;s system function with BASH&#8217;s wget, but that wasn&#8217;t working. I ended up using PHP&#8217;s file_get_contents. &#60;?php function chkuri($link){ //$link is the website which i am checking // If file_get_contents [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to develop this script in order to check whether or not my streaming media server was up. At first, I tried to use PHP&#8217;s system function with BASH&#8217;s wget, but that wasn&#8217;t working. I ended up using PHP&#8217;s file_get_contents.</p>
<pre class="brush:php">
&lt;?php
function chkuri($link){
//$link is the website which i am checking
// If file_get_contents failed to retrieve
// the page, it's not up
  if(!file_get_contents($link)){
    return 'I\'m sorry, but the Ampache server is down. :(';
// It is up
  }else{
    return 'It\'s up! &lt;a href="'.$link.'"&gt;Click here to go!&lt;/a&gt;';
  }
}
print '&lt;h2&gt;'.chkuri('http://martinez.homelinux.org/ampache').'&lt;/h2&gt;';
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2009/11/php-script-to-check-if-a-site-is-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Essential Drupal 6 Modules</title>
		<link>http://rafadamar.com/2009/11/essential-drupal-6-modules/</link>
		<comments>http://rafadamar.com/2009/11/essential-drupal-6-modules/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 22:03:43 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[These are the modules I find myself installing on almost every Drupal instance I have created. If you want, you can just run the code within the appropriate &#8216;modules&#8217; folder of your Drupal instance. The links will change as time goes on so please take that into account. Content Construction Kit The Content Construction Kit [...]]]></description>
			<content:encoded><![CDATA[<p>These are the modules I find myself installing on almost every Drupal instance I have created. If you want, you can just run the code within the appropriate &#8216;modules&#8217; folder of your Drupal instance. The links will change as time goes on so please take that into account.</p>
<h3><a href="http://drupal.org/project/cck">Content Construction Kit</a></h3>
<p>The Content Construction Kit (CCK) allows you to add custom fields to nodes. CCK is basically what lets you create great custom content-types for your Drupal instance.</p>
<pre class="brush: bash">
wget http://ftp.drupal.org/files/projects/cck-6.x-2.6.tar.gz
tar xfvz cck-6.x-2.6.tar.gz
</pre>
<h3><a href="http://drupal.org/project/date">Date</a></h3>
<p>The Date module comes with an API that allows other modules to use newer PHP date functions. It also adds a nice Date field for use with CCK. The Date module also comes with a pop-up date picker.</p>
<pre class="brush: bash">
wget http://ftp.drupal.org/files/projects/date-6.x-2.4.tar.gz
tar xfvz date-6.x-2.4.tar.gz
</pre>
<h3><a href="http://drupal.org/project/views">Views</a></h3>
<p>Views is an amazing module. A view can be a collection of nodes of a certain type. The view can be displayed as a table, grid, teaser list, full node list, and a RSS feed. There are a number of arguments and variables you an change to make dynamic views.</p>
<pre class="brush:bash">
wget http://ftp.drupal.org/files/projects/views-6.x-2.7.tar.gz
tar xfvz views-6.x-2.7.tar.gz
</pre>
<h3><a href="http://drupal.org/project/wysiwyg">WYSIWYG</a>, <a href="http://drupal.org/project/imce">IMCE</a>, &amp; <a href="http://drupal.org/project/imce_wysiwyg">The Bridge</a></h3>
<p>These three modules combine to form a near perfect WYSIWYG editor. The WYSIWYG module is an API that enables multiple editors to work with Drupal. IMCE is an image/file uploader. The IMCE WYSIWYG Bridge module brings the two together. The Bridge is only compatible with the FCKeditor and TinyMCE WYSIWYG editors, but those two are probably the best ones out there.</p>
<pre class="brush: bash">
wget http://ftp.drupal.org/files/projects/wysiwyg-6.x-2.0.tar.gz; wget http://ftp.drupal.org/files/projects/imce_wysiwyg-6.x-1.0.tar.gz; wget http://ftp.drupal.org/files/projects/imce-6.x-1.3.tar.gz
tar xfvz wysiwyg-6.x-2.0.tar.gz; tar xfvz imce_wysiwyg-6.x-1.0.tar.gz; tar xfvz imce-6.x-1.3.tar.gz
</pre>
<h3><a href="http://drupal.org/project/captcha">CAPTCHA</a> &amp; <a href="http://drupal.org/project/recaptcha">reCAPTCHA</a></h3>
<p>These two modules enable a simple anti-spam measure. You could use CAPTCHA on its own, but I prefer reCAPTCHA simply because it helps digitize books while also preventing spam. You could also use the <a href="http://drupal.org/project/mollom">Mollom module</a> or the <a href="http://drupal.org/project/spam">Spam module</a>.</p>
<pre class="brush: bash">
wget http://ftp.drupal.org/files/projects/captcha-6.x-2.0.tar.gz; wget http://ftp.drupal.org/files/projects/recaptcha-6.x-1.3.tar.gz
tar xfvz captcha-6.x-2.0.tar.gz; tar xfvz recaptcha-6.x-1.3.tar.gz
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2009/11/essential-drupal-6-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s that time of year</title>
		<link>http://rafadamar.com/2009/11/its-that-time-of-year/</link>
		<comments>http://rafadamar.com/2009/11/its-that-time-of-year/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 08:21:16 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Random Thoughts]]></category>
		<category><![CDATA[good times]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Dear Diary. Tonight, I came home sleepy, but hungry. I opened the fridge and, to my surprise, found egg nog. I poured myself a glass and drank it gleefully. Egg nog is delicious! Today is going to be a good day. I can&#8217;t wait to wake up!]]></description>
			<content:encoded><![CDATA[<p>Dear Diary.</p>
<p>Tonight, I came home sleepy, but hungry. I opened the fridge and, to my surprise, found egg nog. I poured myself a glass and drank it gleefully. Egg nog is delicious!</p>
<p>Today is going to be a good day.</p>
<p>I can&#8217;t wait to wake up!</p>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2009/11/its-that-time-of-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Worst Honor</title>
		<link>http://rafadamar.com/2009/11/the-worst-honor/</link>
		<comments>http://rafadamar.com/2009/11/the-worst-honor/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 21:41:11 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Random Thoughts]]></category>
		<category><![CDATA[shit]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I think the worst honor one could give to a person is to commission an ice sculpture of them. What a horrible thing that would be! The person would have to model in a cold place right? How long does it take to make an ice sculpture anyway? Imagine this scenario: &#8220;Hey! For being such [...]]]></description>
			<content:encoded><![CDATA[<p>I think the worst honor one could give to a person is to commission an ice sculpture of them.</p>
<p>What a horrible thing that would be! The person would have to model in a cold place right? How long does it take to make an ice sculpture anyway? Imagine this scenario:</p>
<p style="padding-left: 30px;">&#8220;Hey! For being such a great person, I&#8217;ve commissioned an ice sculpture in your image.&#8221;</p>
<p style="padding-left: 30px;">&#8220;Um, ok. When can I see it?&#8221;</p>
<p style="padding-left: 30px;">&#8220;Well, you have to model for it on Tuesday. It&#8217;ll take about 3 hours and you have to stand in a room that&#8217;s freezing, but it&#8217;ll be great!&#8221;<!--break--></p>
<p style="padding-left: 30px;">&#8220;Can you just take me to lunch or something?&#8221;</p>
<p style="text-align: center;"><img class="mceItem" title="No really. You're welcome!" src="/sites/default/files/images/china%20harbin%20ice%20sculpture%202009%20mongolian%20team%20%2800%29.jpg" alt="A man posing unhappily in front of an ice festival entrance." width="500" height="375" /></p>
<p>In the end, there&#8217;d be a great big beautiful ice sculpture of this honorable person. This person would get to admire it for a while. Then, the frozen doppelganger melts away unless that person keep it somewhere cold.</p>
<p style="padding-left: 30px;">&#8220;Here&#8217;s your ice sculpture! Um, I hope you have a walk-in freezer.&#8221;</p>
<p>Or, worse:</p>
<p style="padding-left: 30px;">&#8220;We&#8217;re going to put your ice sculpture in an avant-garde art museum. It&#8217;ll melt on the floor and liberal arts student will write their thesis on how amazing that is.&#8221;</p>
<p>Art &amp; beauty are ephemeral, but ice sculpture takes that to a whole new level. You can&#8217;t create it in the comfort of your own home. You can&#8217;t do it comfortably! I&#8217;m sure an ice sculptor looks as though he or she is going to have a snowball fight when working. Instead of a fun snowball fight, they&#8217;re carving ice.</p>
<p>I just thought of one positive side of ice sculpting. If I were an ice sculptor, I&#8217;d save the ice shavings and make snowcones. I&#8217;d model for an ice sculptor if I got at least five snowcones in the process.</p>
<p>I guess this wouldn&#8217;t be the worst honor then. That is if you get the snowcones. Now a shit sculpture, that cannot have any redeeming qualities.</p>
<p><a title="What a piece of shit!" href="http://www.flickr.com/photos/83163517@N00/72053196/" target="_blank"></a></p>
<p style="text-align: center;"><a title="What a piece of shit!" href="http://www.flickr.com/photos/83163517@N00/72053196/" target="_blank"><img class="mceItem" title="What a piece of shit!" src="/sites/default/files/images/72053196_9c6c001fd5.jpg" alt="A shit sculpture. I'm not joking." width="500" height="333" /></a></p>
<address>In honor of <a href="http://twitter.com/calumvs">@calumvs</a><br />
</address>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2009/11/the-worst-honor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Taxonomy Block on blog page, blog entries, and blog terms</title>
		<link>http://rafadamar.com/2009/11/display-taxonomy-block-on-blog-page-blog-entries-and-blog-terms/</link>
		<comments>http://rafadamar.com/2009/11/display-taxonomy-block-on-blog-page-blog-entries-and-blog-terms/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 03:03:38 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[drupal 6]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[You will need to download and install one module and its dependencies for this to work. Download the Advanced Taxonomy Blocks module &#38; install it. In your terminal enter: wget http://ftp.drupal.org/files/projects/taxonomyblocks-6.x-1.8.tar.gz tar xfvz taxonomyblocks-6.x-1.8.tar.gz Repeat for its dependencies. Configure your block Once installed, you can configure Taxonomy blocks. You can do so by going to [...]]]></description>
			<content:encoded><![CDATA[<p>You will need to download and install one module and its dependencies for this to work.</p>
<h3>Download the <a href="http://drupal.org/project/taxonomyblocks">Advanced Taxonomy Blocks module</a> &amp; install it.</h3>
<p>In your terminal enter:</p>
<pre class="brush: bash">
wget http://ftp.drupal.org/files/projects/taxonomyblocks-6.x-1.8.tar.gz
tar xfvz taxonomyblocks-6.x-1.8.tar.gz
</pre>
<p>Repeat for its dependencies.</p>
<h3>Configure your block</h3>
<p>Once installed, you can configure Taxonomy blocks. You can do so by going to your administration page and selecting &#8216;Advanced Taxonomy Blocks configuration&#8217; under the &#8216;Site Configuration&#8217; section.</p>
<h3>Set visibilty settings with PHP</h3>
<p>Now, enable the block you just configured in the Blocks page. For the &#8216;Page specific visibility settings&#8217;, select the PHP-mode. Remember to substitute the vocabulary IDs for the <a href="http://api.drupal.org/api/function/taxonomy_get_tree/6">taxonomy_get_tree function</a>.</p>
<p>Enter the following PHP code:</p>
<pre class="brush: bash">&lt;?php
// If node-&gt;type == blog
if(arg(0) == 'node' &amp;&amp; is_numeric(arg(1))){
  $node = node_load((1))</span>;
    if($node-&gt;type == 'blog'){
      return TRUE;
    }
    // Main blog page
    }else if(arg(0) == 'blog'){
      return TRUE;
    // On tag page that is a blog tag
    }else if(arg(0) == 'taxonomy' &amp;&amp; is_numeric(arg(2))){
      $tid = arg(2);
      $tree1 = taxonomy_get_tree(1);
      $tree2 = taxonomy_get_tree(2);
      foreach($tree1 as $term){
        if($term-&gt;tid == $tid){
          return TRUE;
        }
      }
      foreach($tree2 as $term){
        if($term-&gt;tid == $tid){
         return TRUE;
        }
      }
    }else{
      return FALSE;
    }
  return FALSE;
}
?&gt;
</pre>
<p>If everything&#8217;s working, you should be able to see the taxonomy of the blog page, term pages associated with the blog, and on every blog entry.</p>
]]></content:encoded>
			<wfw:commentRss>http://rafadamar.com/2009/11/display-taxonomy-block-on-blog-page-blog-entries-and-blog-terms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
