<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://build2be.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>build2be/com/e - development</title>
 <link>https://build2be.com/category/development</link>
 <description></description>
 <language>en</language>
<item>
 <title>My development environment so far</title>
 <link>https://build2be.com/content/my-development-environment-so-far</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;h3&gt;Intro&lt;/h3&gt;

These are my notes when doing my first (drupal) presentation @ FrOSCon 2008 Drupal Room

This method uses the concepts
&lt;ol&gt;
&lt;li&gt;All drupal sites in directory www&lt;/li&gt;
&lt;li&gt;All site-config in a separate directory&lt;/li&gt;
&lt;li&gt;All site-data in a separate directory&lt;/li&gt;
&lt;/ol&gt;

This way an upgrade to another drupal version runs smoothly. Hmmm this was about developer environment.

&lt;h3&gt;Add new local domain&lt;/h3&gt;

Why do I need this? To make sites like http://nf.test http://nf.dev  or http://froscon.demo

&lt;pre&gt;&lt;code&gt;sudo su -
echo 127.0.0.254&amp;nbsp; froscon.demo &amp;gt;&amp;gt; /etc/hosts
exit&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;add apache site&lt;/h3&gt;
We need a new website with a configured drupal install somewhere. Key words are VirtualRoot and DocumentRoot.

This is my template &lt;a href=&quot;/sites/build2be.com/files/TEMPLATE.txt&quot;&gt;TEMPLATE&lt;/a&gt;
&lt;pre&gt;&lt;code&gt;sudo su -
cd /etc/apache2/sites-available
cp TEMPLATE.tmp froscon.demo
vi froscon.demo
# :%s/HOSTNAME/froscon.demo/g
# DON&amp;#039;T FORGET TO CHANGE DocumentRoot and log file locations
# :wq
exit&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;Let apache know of the new site&lt;/h4&gt;

&lt;pre&gt;&lt;code&gt;a2ensite froscon.demo
/etc/init.d/apache2 reload
exit&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Installing drupal&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;cd /home/clemens/www&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Get and unpack your drupal version&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;cd /home/clemens/usr/lib/drupal/core
wget http://ftp.drupal.org/files/projects/drupal-6.4.tar.gz
tar xvf drupal-6.4.tar.gz&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;create site&lt;/h3&gt;

This is my &lt;a href=&quot;/sites/build2be.com/files/new-site.php_.txt&quot;&gt;new-site.php&lt;/a&gt; script.

&lt;pre&gt;&lt;code&gt;cd /home/clemens/www
vi new-site.php
# change site name
# change drupal version

php new-site.php | bash&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;install site&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;cd ~/www/sites-data/froscon.demo/
cp default.settings.php settings.php 
chmod 777 settings.php&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Create the database&lt;/h3&gt;

This is my &lt;a href=&quot;/sites/build2be.com/files/new-db.php_.txt&quot;&gt;new-db.php&lt;/a&gt; script.

&lt;pre&gt;&lt;code&gt;vi new-db.php
# edit hostname
# :wq
php new-db.php | mysql -u root&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Fire up drupal&lt;/h3&gt;

http://froscon.demo

Do as drupal tells you
&lt;pre&gt;&lt;code&gt;chmod 777 settings.php&lt;/code&gt;&lt;/pre&gt;
and then reset it again
&lt;pre&gt;&lt;code&gt;chmod 755 settings.php&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;install drush&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;cd /home/clemens/www/site-config/froscon.demo/modules
wget http://ftp.drupal.org/files/projects/drush-6.x-1.x-dev.tar.gz
wget http://ftp.drupal.org/files/projects/drush_mm-6.x-1.x-dev.tar.gz
tar xzf drush_*&lt;/code&gt;&lt;/pre&gt;

http://froscon.demo/admin/build/modules

&lt;h3&gt;Running wild on the command line&lt;/h3&gt;

Install &lt;a href=&quot;/sites/build2be.com/files/drush.txt&quot;&gt;my drush script runner&lt;/a&gt; to follow along with the commands.
&lt;pre&gt;&lt;code&gt;cd ~/www
./drush froscon.demo help

./drush froscon.demo pm install simpletest cck node_factory

./drush froscon.demo mm dot | neato -o ~/froscon/2008/frosdem.png -T png

./drush froscon.demo -s -v mm enable drush_simpletest

./drush froscon.demo mm enable drush_simpletest nodereference&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Running simpletest&lt;/h3&gt;

http://froscon.demo/admin/build/simpletest

&lt;pre&gt;&lt;code&gt;vi ~/www/sites-config/froscon.demo/settings.php &lt;/code&gt;&lt;/pre&gt;

http://froscon.demo/admin/build/simpletest

&lt;h3&gt;uninstall modules&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;./drush froscon.demo -v -s mm uninstall content

./drush froscon.demo mm uninstall content
rm -r sites-config/froscon.demo/modules/cck/

./drush froscon.demo mm dot | neato -o ~/froscon/2008/frosdem.png -T png&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;eclipse&lt;/h3&gt;

- a test from node_factory
- mylyn task tracking
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-upload field-type-file field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;div class=&quot;table-responsive&quot;&gt;
&lt;table class=&quot;table table-hover table-striped sticky-enabled&quot;&gt;
 &lt;thead&gt;&lt;tr&gt;&lt;th&gt;Attachment&lt;/th&gt;&lt;th&gt;Size&lt;/th&gt; &lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/TEMPLATE.txt&quot; type=&quot;text/plain; length=434&quot; title=&quot;TEMPLATE.txt&quot;&gt;TEMPLATE.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;434 bytes&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/new-site.php_.txt&quot; type=&quot;text/plain; length=2266&quot; title=&quot;new-site.php_.txt&quot;&gt;new-site.php_.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;2.21 KB&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/new-db.php_.txt&quot; type=&quot;text/plain; length=451&quot; title=&quot;new-db.php_.txt&quot;&gt;new-db.php_.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;451 bytes&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/drush.txt&quot; type=&quot;text/plain; length=581&quot; title=&quot;drush.txt&quot;&gt;drush.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;581 bytes&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-4 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;free form:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/drushmm&quot;&gt;drush_mm&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/category/drush&quot;&gt;drush&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/development&quot;&gt;development&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/category/planet-drupal&quot;&gt;planet drupal&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/simpletest&quot;&gt;simpletest&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 22 Aug 2008 11:40:43 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">57 at https://build2be.com</guid>
 <comments>https://build2be.com/content/my-development-environment-so-far#comments</comments>
</item>
<item>
 <title>First (baby) steps with Flash / ActionScript</title>
 <link>https://build2be.com/content/first-baby-steps-flash-actionscript</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;I want to build some flash games. Just for fun? Yes and no.&lt;/p&gt;
&lt;p&gt;Yes because it&#039;s fun to learn ActionScript. No because I hope to make money some day.&lt;/p&gt;
&lt;p&gt;Some pointers for my system setting which is linux&lt;br /&gt;
- &lt;a href=&quot;http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part_ASLR.html&quot;&gt;ActionScript Language Reference&lt;/a&gt;&lt;br /&gt;
- &lt;a href=&quot;http://haxe.org/&quot;&gt;a swf compiler and more&lt;/a&gt;&lt;br /&gt;
- swftools&lt;/p&gt;
&lt;p&gt;My first trials ended with a moving square rotating on click ... not very ... but I have some idea how it works.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Sun, 16 Mar 2008 19:29:46 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">35 at https://build2be.com</guid>
 <comments>https://build2be.com/content/first-baby-steps-flash-actionscript#comments</comments>
</item>
<item>
 <title>Entity Relation Diagrams</title>
 <link>https://build2be.com/content/entity-relation-diagrams</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;What is the best way to translate a relational database into a drupal based site.&lt;/p&gt;
&lt;p&gt;In looking for modules i ran into the next modules.&lt;/p&gt;
&lt;p&gt;nodefamily looks promissing to navigate through nodes. It promisses to be a directed graph so it MUST BE cool ;-)&lt;/p&gt;
&lt;p&gt;views_fusion makes it possible to create joined views &quot;fuse multiple views into one&quot; It looks unmaintained since may 2007.&lt;/p&gt;
&lt;p&gt;nodehierarchy looks like nodefamily.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Sun, 09 Mar 2008 16:43:22 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">30 at https://build2be.com</guid>
 <comments>https://build2be.com/content/entity-relation-diagrams#comments</comments>
</item>
<item>
 <title>Just browsing the drupal 6 module list.</title>
 <link>https://build2be.com/content/just-browsing-drupal-6-module-list</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;It&#039;s amazing to see so many modules being converted.&lt;/p&gt;
&lt;p&gt;I definitely needs to start converting my modules too!&lt;/p&gt;
&lt;p&gt;It take quite some time to upgrade my modules. I guess coder.module will help a lot with all hints.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 07 Mar 2008 12:47:49 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">28 at https://build2be.com</guid>
 <comments>https://build2be.com/content/just-browsing-drupal-6-module-list#comments</comments>
</item>
<item>
 <title>Some references</title>
 <link>https://build2be.com/content/some-references</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;Writing an article without pointer is pointless. So here is a start.&lt;/p&gt;
&lt;p&gt;Version dependencies are described here &lt;a href=&quot;http://www.debian.org/doc/debian-policy/ch-relationships.html&quot;&gt;http://www.debian.org/doc/debian-policy/ch-relationships.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For a functional dependency specification (Nix and NixOS) see &lt;/p&gt;
&lt;ul&gt;&lt;li&gt;the paper of Eelco Dolstra &lt;a href=&quot;http://www.cs.uu.nl/~eelco/pubs/nspfssd-lisa2004-final.pdf&quot;&gt;http://www.cs.uu.nl/~eelco/pubs/nspfssd-lisa2004-final.pdf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;the developers manual &lt;a href=&quot;http://nix.cs.uu.nl/dist/nix/nix-0.11/manual/#chap-package-management&quot;&gt;http://nix.cs.uu.nl/dist/nix/nix-0.11/manual/#chap-package-management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;the project homepage &lt;a href=&quot;http://nix.cs.uu.nl/nixos/index.html&quot;&gt;http://nix.cs.uu.nl/nixos/index.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 07 Mar 2008 09:18:12 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">27 at https://build2be.com</guid>
 <comments>https://build2be.com/content/some-references#comments</comments>
</item>
<item>
 <title>direct debit payment method for ubercart</title>
 <link>https://build2be.com/content/direct-debit-payment-method-ubercart</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;Call me stupid but I thought it was easy. Building a new payment method.

I know drupal development a little. I read the &lt;a href=&quot;http://www.ubercart.org/docs/developer/244/core_systems&quot;&gt;core_systems&lt;/a&gt; and &lt;a href=&quot;http://www.ubercart.org/docs/developer/240/ubercart_hooks&quot;&gt;ubercart_hooks&lt;/a&gt;. No sweat developing this new payment method.

&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 06 Mar 2008 13:45:30 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">26 at https://build2be.com</guid>
 <comments>https://build2be.com/content/direct-debit-payment-method-ubercart#comments</comments>
</item>
<item>
 <title>A node as an editable block</title>
 <link>https://build2be.com/content/node-editable-block</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;I want to create a edit node into a block with ajax submit.&lt;/p&gt;
&lt;p&gt;I wanted to try panels 2 minipanel with a node%/edit override together. But some hour later ... nothing found yet.&lt;/p&gt;
&lt;p&gt;This raw view may be handy: &lt;a href=&quot;http://drupal.org/node/48816&quot;&gt;http://drupal.org/node/48816&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But why not using some php? Below is a raw version&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
global $user;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;$sql = &quot;select nid from {node} where uid == %d&quot;;&lt;br /&gt;
$result = db_query( db_rewrite_sql( $sql), $user-&amp;gt;uid);&lt;br /&gt;
$row = db_fetch_array( $result);&lt;/p&gt;
&lt;p&gt;if( isset( $row) &amp;amp;&amp;amp; isset( $row[&#039;nid&#039;]){&lt;br /&gt;
$node = node_load( 30);&lt;br /&gt;
print drupal_get_form($node-&amp;gt;type .&#039;_node_form&#039;, $node);&lt;br /&gt;
}&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 25 Feb 2008 15:57:08 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">13 at https://build2be.com</guid>
 <comments>https://build2be.com/content/node-editable-block#comments</comments>
</item>
<item>
 <title>Like a DLL hell</title>
 <link>https://build2be.com/content/dll-hell</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;Just installed some modules. It eventually becomes overwhelming. So many modules.

&lt;div style=&quot;height:700px;width:700px;overflow:auto&quot;&gt;
&lt;img src=&quot;http://build2be.com/sites/build2be.com/files/callcenter.png&quot;/&gt;
&lt;/div&gt;

This is an installation while building a callcenter website.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-4 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;free form:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/development&quot;&gt;development&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 19 Feb 2008 09:46:02 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">7 at https://build2be.com</guid>
</item>
</channel>
</rss>
