<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ruben Causyn on Medium]]></title>
        <description><![CDATA[Stories by Ruben Causyn on Medium]]></description>
        <link>https://medium.com/@rubencausyn?source=rss-666ccaf928f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Lh9d7rE8vv2r5oswbveEGA.jpeg</url>
            <title>Stories by Ruben Causyn on Medium</title>
            <link>https://medium.com/@rubencausyn?source=rss-666ccaf928f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 07:49:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rubencausyn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Drush Fatal Error: Cannot redeclare system_help() ]]></title>
            <link>https://medium.com/@rubencausyn/drush-fatal-error-cannot-redeclare-system-help-4e1a41c19f31?source=rss-666ccaf928f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e1a41c19f31</guid>
            <category><![CDATA[drush]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[os-x]]></category>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Wed, 05 Mar 2014 08:36:00 GMT</pubDate>
            <atom:updated>2016-10-20T09:30:06.971Z</atom:updated>
            <content:encoded><![CDATA[<h3>Drush Fatal Error: Cannot redeclare system_help()</h3><p>When running drush from Terminal in osx ensure that the directory path you are in is case-correct. For example, if you run drush in ~/sites/drupal when your path should be ~/Sites/drupal you will get this error:</p><p>Fatal error: Cannot redeclare system_help() (previously declared in /path/to/home/sites/drupal/modules/system/system.module:47) in /path/to/home/Sites/drupal/modules/system/system.module on line 106</p><p>Terminal will not force you to use the correct case when you cd into your drupal directory.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e1a41c19f31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick stats on a git repo.]]></title>
            <link>https://medium.com/ruben-causyn/quick-stats-on-a-git-repo-d2b82d04e503?source=rss-666ccaf928f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2b82d04e503</guid>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Tue, 28 May 2013 17:41:48 GMT</pubDate>
            <atom:updated>2024-02-29T22:00:53.946Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>git log — author=”” — pretty=tformat: — numstat | gawk ‘{ add += $1 ; subs += $2 ; loc += $1 — $2 } END \<br>{ printf “added lines: %s removed lines: %s total lines: %s\n”,add,subs,loc }’ -</blockquote><p>This code snippet helps you <strong>quickly understand the overall changes made to a codebase</strong>. It does this by:</p><ol><li><strong>Gathering information:</strong> It uses git log to view the history of changes in the codebase, filtering to include changes made by any author (--author=&quot;&quot;). It also formats the output (--pretty=tformat: --numstat) to show only the number of added and removed lines for each modification.</li><li><strong>Analyzing the data:</strong> The output from git log is then piped (|) to gawk, a tool used for processing text data. Here, gawk performs calculations on the numbers it receives:<br>It keeps track of the total lines added (add), removed (subs), and the overall change (loc), which is calculated by subtracting removed lines from added lines.</li><li><strong>Presenting the results:</strong> Finally, gawk uses printf to create a human-readable report, displaying the total number of added lines, removed lines, and the net change in lines of code.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2b82d04e503" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ruben-causyn/quick-stats-on-a-git-repo-d2b82d04e503">Quick stats on a git repo.</a> was originally published in <a href="https://medium.com/ruben-causyn">Ruben Causyn</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Drupal and apachesolr tomcat multi-core setup on debian/ubuntu]]></title>
            <link>https://medium.com/@rubencausyn/drupal-and-apachesolr-tomcat-multi-core-setup-on-debian-ubuntu-d6db902453c6?source=rss-666ccaf928f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6db902453c6</guid>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[apache-solr]]></category>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Mon, 08 Oct 2012 22:39:37 GMT</pubDate>
            <atom:updated>2016-10-20T09:30:04.020Z</atom:updated>
            <content:encoded><![CDATA[<p>As i had some work to figure out the best practices for setting up the tomcat multi-core setup, here’s the method i’ve used for building multi-core ApacheSolr with Tomcat in Debian/Ubuntu, for integration with both Drupal 6 and Drupal 7 sites.</p><p>Tested for the following:</p><ul><li>Ubuntu 10 and Debian 6</li><li>ApacheSolr versions 1.4.1 and 3.6.1</li><li>Drupal 6 and Drupal 7</li></ul><h4>Part 1: ApacheSolr and Tomcat 6 Setup:</h4><p>Install Tomcat6 packages and dependencies:</p><p>apt-get update<br>apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user</p><p>Download and Configure ApacheSolr Multi-core: (download page, 1.4.x could be on archives)</p><p>wget <a href="http://archive.apache.org/dist/lucene/solr/3.6.1/apache-solr-3.6.1.zip">http://archive.apache.org/dist/lucene/solr/3.6.1/apache-solr-3.6.1.zip</a><br>unzip apache-solr-3.6.1.zip<br>cd apache-solr-3.6.1<br>mkdir /usr/share/tomcat6/webapps<br>cp dist/apache-solr-3.6.1.war /usr/share/tomcat6/webapps/solr.war<br>cp -r example/solr /usr/share/tomcat6/<br>cp example/multicore/solr.xml /usr/share/tomcat6/solr/solr.xml<br>chown -R tomcat6 /usr/share/tomcat6</p><p>Create our config file<br>sudo nano /etc/tomcat6/Catalina/localhost/solr.xml</p><p>And fill it with the following configuration :</p><p>Restart the tomcat server:<br>/etc/init.d/tomcat6 restart</p><p>We now have ApacheSolr multi-core setup with Tomcat. This is ready to hook up with D6 and D7 sites.</p><h4>Part 2: Setup Drupal 6 or 7 Site to Connect to Solr:</h4><p>Install Drupal apachesolr module to your site. Download and install the SolrPHPClient (required in Drupal 6 only).</p><p>cd /path/to/drupal/site/<br>drush dl apachesolr<br>wget <a href="http://solr-php-client.googlecode.com/files/SolrPhpClient.r22.2009-11-09.zip">http://solr-php-client.googlecode.com/files/SolrPhpClient.r22.2009-11-09.zip</a><br>unzip SolrPhpClient.r22.2009–11–09.zip<br>mv SolrPhpClient sites/all/modules/apachesolr/<br>drush -y en apachesolr</p><p>Create solr instance directory for new site and copy solrconfig.xml and schema.xml files from Drupal apachesolr module.</p><p>mkdir /usr/share/tomcat6/solr/site1<br>cp -r /usr/share/tomcat6/solr/conf /usr/share/tomcat6/solr/site1/<br>cp /path/drupal/site/sites/all/modules/apachesolr/schema.xml /usr/share/tomcat6/solr/site1/conf/schema.xml<br>cp /path/drupal/site/sites/all/modules/apachesolr/solrconfig.xml /usr/share/tomcat6/solr/site1/conf/solrconfig.xml<br>vi /usr/share/tomcat6/solr/solr.xml</p><p>chown -R tomcat6:root /usr/share/tomcat6/solr/site1<br>/etc/init.d/tomcat6 restart</p><p>Login to Drupal Admin to configure ApacheSolr integration:<br>Drupal6: Site Configuration -&gt; ApacheSolr -&gt; Settings</p><p>Solr host name: localhost<br>Solr port: 8080<br>Solr path: /solr/site1</p><p>d6 solr admin<br>Drupal7: Configuration -&gt; Search and metadata -&gt; Apache Solr Search -&gt; Settings</p><p>Solr server URL: <a href="http://localhost:8080/solr/site1">http://localhost:8080/solr/site1</a><br>Description: example_localhost_solr_server</p><p>d7 solr admin<br>That’s it! Save your configuration and you will see a message/notice if everything is ok:</p><p>Apache Solr: Your site has contacted the Apache Solr server.<br>Apache Solr PHP Client Library: Correct version “Revision: 22”.</p><h4>Sources:</h4><p>I’ve based this on a few blogposts on the internet while researching my apache solr setup.</p><p><a href="http://www.geroldm.com/2012/08/drupal-and-apachesolrtomcat-multi-core-setup-in-debianubuntu/">http://www.geroldm.com/2012/08/drupal-and-apachesolrtomcat-multi-core-setup-in-debianubuntu/</a><br><a href="http://drupalconnect.com/blog/configuring-apache-solr-multi-core-drupal-and-tomcat-ubuntu-910">http://drupalconnect.com/blog/configuring-apache-solr-multi-core-drupal-and-tomcat-ubuntu-910</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6db902453c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snippet: Show user profile anywhere.]]></title>
            <link>https://medium.com/@rubencausyn/snippet-show-user-profile-anywhere-6d707ee4bf?source=rss-666ccaf928f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d707ee4bf</guid>
            <category><![CDATA[snippet]]></category>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Thu, 15 Dec 2011 11:59:31 GMT</pubDate>
            <atom:updated>2016-10-20T09:30:05.033Z</atom:updated>
            <content:encoded><![CDATA[<p>what if you want to show the full user profile in a custom block?</p><p>global $user;<br>$userdata = user_load($user-&gt;uid);<br>return drupal_render(user_view($userdata));</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d707ee4bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[fixing Drush 4.5 and Mamp (pro) 2.0]]></title>
            <link>https://medium.com/@rubencausyn/fixing-drush-4-5-and-mamp-pro-2-0-266d292321a?source=rss-666ccaf928f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/266d292321a</guid>
            <category><![CDATA[fix]]></category>
            <category><![CDATA[big]]></category>
            <category><![CDATA[drush]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Fri, 14 Oct 2011 10:32:16 GMT</pubDate>
            <atom:updated>2016-10-20T09:30:12.002Z</atom:updated>
            <content:encoded><![CDATA[<p>I am using Drush and Mamp for quite some time now on my mac.</p><p>Drush was installed with homebrew and was recently updated to the 4.5 version.</p><p>I upgraded my Mamp Pro to version 2.0 and started having issues with my Drush commands.</p><p>I started looking into it and discovered some changes to Mamp which led to drush not being able to do anything.</p><p>I will go trough the process I did to make things work again.</p><p>1. PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)</p><p>This was fixed by implementing the changes proposed in <a href="http://drupal.org/node/1226422#comment-4766824">a comment in the issue queue for drush</a></p><p>mamp changed the directories so to fix this asap i added<br>/Applications/MAMP/bin/php/php5.2.17/bin/php<br>/Applications/MAMP/bin/php/php5.3.6/bin/php<br>to drush/drush</p><p>The error went away but I now had issues with my memory limits, which was strange, as my memory limits in all php.ini-files were set high enough.</p><p>After some digging in Drush i found some information in the Readme-file that was worth trying to fix my issue.</p><p>As the memory limits were set high enough, but Drush wasn’t taking those limits in account, i tried the following:</p><blockquote>Alternately, if you only want to override a few values, copy example.drush.ini from the “examples” folder into $HOME/.drush or the folder /etc/drush and edit to suit. See comments in example.drush.ini for more details.</blockquote><p>I set the memory_limit in the newly created drush.ini in my drush-folder, and all was working again.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=266d292321a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Disable rss.xml and replace with own feed(s)]]></title>
            <link>https://medium.com/@rubencausyn/disable-rss-xml-and-replace-with-own-feed-s-b34a3a4e7a1b?source=rss-666ccaf928f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b34a3a4e7a1b</guid>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Mon, 05 Sep 2011 10:01:49 GMT</pubDate>
            <atom:updated>2016-10-20T09:30:09.999Z</atom:updated>
            <content:encoded><![CDATA[<p>While Drupal has no way of disabling the rss-feeds by default, it is possible to override the rss-output, and tell Drupal to use another feed.</p><p>Create a new module with following code, and make sure to replace with the naming of your choice. In this blog post I assume you know how to create your own modules.</p><p>function _menu_alter(&amp;$items) {<br> unset($items[‘rss.xml’]);<br>}</p><p>function _init() {<br> drupal_add_feed(url(https://medium.com/%E2%80%98feed/news%E2%80%99,%20array(%E2%80%98absolute%E2%80%99%20=&gt;%20TRUE)), ‘Website News RSS’);<br> // You can add as many feeds as you want.<br>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b34a3a4e7a1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[merge folders in OSX]]></title>
            <link>https://medium.com/@rubencausyn/merge-folders-in-osx-256d6ed91505?source=rss-666ccaf928f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/256d6ed91505</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[tricks]]></category>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Mon, 29 Aug 2011 09:59:05 GMT</pubDate>
            <atom:updated>2016-10-20T09:30:05.992Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the biggest frustrations in Finder is that you cannot merge folders when moving them around.</p><p>This Commandline solution does everything for you.<br>ditto -V source destination</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=256d6ed91505" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ubercart Checkout Tabs]]></title>
            <link>https://medium.com/@rubencausyn/ubercart-checkout-tabs-80906d371b7b?source=rss-666ccaf928f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/80906d371b7b</guid>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[modules]]></category>
            <category><![CDATA[featured]]></category>
            <category><![CDATA[big]]></category>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Mon, 22 Aug 2011 17:51:43 GMT</pubDate>
            <atom:updated>2016-10-20T09:30:10.997Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the clients I work for requested the ability to have the checkout of Ubercart split up in a multi-step process.</p><p>Ubercart is built having a one-page checkout process in mind, so refactoring Ubercart to have a multi-page checkout process would take quite a lot of work, and make the process of updating the core modules quite difficult.</p><p>This module provides some jQuery to convert the fieldsets in the checkout process of ubercart to a tabbed interface.</p><p>Enable this module and the checkout page gets tabbed.</p><p>The modules requires following modules:</p><ul><li>jquery_ui</li><li>jquery_update</li><li>uc_cart</li></ul><p><a href="http://drupal.org/sandbox/rubencausyn/1254172">Download this module</a> from drupal.org sandbox.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80906d371b7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Domain module not working.]]></title>
            <link>https://medium.com/@rubencausyn/domain-module-not-working-cc543b75220c?source=rss-666ccaf928f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc543b75220c</guid>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[big]]></category>
            <category><![CDATA[featured]]></category>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Mon, 22 Aug 2011 08:59:06 GMT</pubDate>
            <atom:updated>2016-10-20T09:30:09.005Z</atom:updated>
            <content:encoded><![CDATA[<p>One of my colleagues had issues with the <a href="http://www.drupal.org/project/domain">domain-module</a> while setting it up.</p><p>It was impossible to get trough the checklist of the module-configuration, while he actually followed the installation-instructions.</p><p>After some research I found that the error was related to a small typo in the settings.php .</p><p>Once I changed the settings.php cookie line to the following, it all worked:<br>$cookie_domain = ‘.example.com’;</p><p>Note the preceding ‘.’ to the domain name, this is very important to get the session-handling working correctly on all subdomains.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc543b75220c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>