<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0" xml:base="http://alexisyes.com">
<channel>
 <title>Alexisyes</title>
 <link>http://alexisyes.com</link>
 <description />
 <language>en</language>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Alexisyes" /><feedburner:info uri="alexisyes" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
 <title>Drush make files online generator</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/wOZac__C4oM/drush-make-files-online-generator</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;Quite useful: &lt;a href="http://drushmake.me/"&gt;http://drushmake.me/&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"&gt;
      &lt;h3 class="field-label"&gt;Tags&amp;nbsp;&lt;/h3&gt;
    &lt;span class="field-items"&gt;
                  &lt;a href="/tags/drush" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;drush&lt;/a&gt;            &lt;/span&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/wOZac__C4oM" height="1" width="1"/&gt;</description>
 <pubDate>Tue, 13 Mar 2012 19:47:52 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">77 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2012/03/13/drush-make-files-online-generator#comments</comments>
<feedburner:origLink>http://alexisyes.com/2012/03/13/drush-make-files-online-generator</feedburner:origLink></item>
<item>
 <title>Aegir tasks are not running</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/RvEmNuZAUIA/aegir-tasks-are-not-running</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;Whenever this happens, login to your aegir server, change directory to hostmaster installation and try to run:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;
drush @hostmaster hosting-dispatch --debug&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;
If this command will return you any errors - first you need to fix them. After that, you'll be fine.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"&gt;
      &lt;h3 class="field-label"&gt;Tags&amp;nbsp;&lt;/h3&gt;
    &lt;span class="field-items"&gt;
                  &lt;a href="/tags/aegir" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;aegir&lt;/a&gt;            &lt;/span&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/RvEmNuZAUIA" height="1" width="1"/&gt;</description>
 <pubDate>Mon, 12 Mar 2012 19:41:17 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">76 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2012/03/12/aegir-tasks-are-not-running#comments</comments>
<feedburner:origLink>http://alexisyes.com/2012/03/12/aegir-tasks-are-not-running</feedburner:origLink></item>
<item>
 <title>Update to Drupal 7</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/YTj7YHa2JOk/update-drupal-7-0</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;&lt;img src="http://groups.drupal.org/files/300x100.jpg" style="margin-right: 5px;" /&gt;Finally i updated my blog to Drupal 7 from Drupal 6.20. Wasn't hard at all, but still requires some skills and understanding of Drupal internals. Also site theme is now changed to &lt;a href="http://drupal.org/project/sky"&gt;Sky&lt;/a&gt; which is a nice CSS3 + HTML 5 powered theme implementing 960gs framework.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/YTj7YHa2JOk" height="1" width="1"/&gt;</description>
 <pubDate>Mon, 14 Feb 2011 15:21:19 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">69 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2011/02/14/update-drupal-7-0#comments</comments>
<feedburner:origLink>http://alexisyes.com/2011/02/14/update-drupal-7-0</feedburner:origLink></item>
<item>
 <title>Drush doesn't respect ssh-options in some commands</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/51-Qcqbs0l0/drush-doesnt-respect-ssh-options-some-commands</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;If your servers using non-standart SSH port, then Drush can fail using aliases for some commands (in my case it was sql-sync). The fix is already committed to HEAD, but until then you can apply patch from here&lt;br /&gt;&lt;a href="http://drupal.org/node/820514"&gt;http://drupal.org/node/820514&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/51-Qcqbs0l0" height="1" width="1"/&gt;</description>
 <pubDate>Tue, 17 Aug 2010 08:32:06 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">68 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2010/08/17/drush-doesnt-respect-ssh-options-some-commands#comments</comments>
<feedburner:origLink>http://alexisyes.com/2010/08/17/drush-doesnt-respect-ssh-options-some-commands</feedburner:origLink></item>
<item>
 <title>CSS Aggregation fails in Drupal 6.19</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/MEulXDI5H7g/css-aggregation-fails-drupal-619</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;And the fix is - convert all your CSS files into UTF-8 encoding.&lt;br /&gt;
From here: &lt;a href="http://drupal.org/node/881132"&gt;http://drupal.org/node/881132&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"&gt;
      &lt;h3 class="field-label"&gt;Tags&amp;nbsp;&lt;/h3&gt;
    &lt;span class="field-items"&gt;
                  &lt;a href="/tags/fix" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;fix&lt;/a&gt;            &lt;/span&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/MEulXDI5H7g" height="1" width="1"/&gt;</description>
 <pubDate>Mon, 16 Aug 2010 08:09:32 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">67 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2010/08/16/css-aggregation-fails-drupal-619#comments</comments>
<feedburner:origLink>http://alexisyes.com/2010/08/16/css-aggregation-fails-drupal-619</feedburner:origLink></item>
<item>
 <title>Problem with Eclipse PHP project</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/-tZ0RuTkbeQ/problem-eclipse-php-project</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;Symptoms:&lt;br /&gt;
1. XDebug is not working&lt;br /&gt;
2. Code completion is not working&lt;br /&gt;
3. "Go-to definition" is not working (CTRL+Click on function name)&lt;br /&gt;
4. Eclipse do not see your PHP errors&lt;/p&gt;
&lt;p&gt;Usually this means that Eclipse do not know that your project is PHP type, sometimes it happens when you create a project via checkout from SVN. So, what to do:&lt;br /&gt;
1. Create new PHP project and save it. Check if everything working with the new project.&lt;br /&gt;
2. Check .project file in the root of the new project directory you just created. You should see something like this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;?xml version="1.0" encoding="UTF-8"??&gt;&lt;/code&gt;&lt;/p&gt;
&lt;projectdescription&gt;&lt;name&gt;New PHP Project&lt;/name&gt;&lt;br /&gt;&lt;comment&gt;&lt;/comment&gt;&lt;projects&gt;&lt;/projects&gt;&lt;buildspec&gt;&lt;br /&gt;&lt;buildcommand&gt;&lt;br /&gt;&lt;name&gt;org.eclipse.wst.validation.validationbuilder&lt;/name&gt;&lt;br /&gt;&lt;arguments&gt;&lt;br /&gt;&lt;/arguments&gt;&lt;br /&gt;&lt;/buildcommand&gt;&lt;br /&gt;&lt;buildcommand&gt;&lt;br /&gt;&lt;name&gt;org.eclipse.dltk.core.scriptbuilder&lt;/name&gt;&lt;br /&gt;&lt;arguments&gt;&lt;br /&gt;&lt;/arguments&gt;&lt;br /&gt;&lt;/buildcommand&gt;&lt;br /&gt;&lt;/buildspec&gt;&lt;br /&gt;&lt;natures&gt;&lt;br /&gt;&lt;nature&gt;org.eclipse.php.core.PHPNature&lt;/nature&gt;&lt;br /&gt;&lt;/natures&gt;&lt;br /&gt;&lt;/projectdescription&gt;&lt;br /&gt;
3. Open .project file from your old non-working project. See the difference? There are no validators definitions and nature of project is unknown&lt;br /&gt;
4. Copy contents from new .project file to old one. Make necessary modifications (like proper project name). Save.&lt;br /&gt;
5. Restart Eclipse.
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/-tZ0RuTkbeQ" height="1" width="1"/&gt;</description>
 <pubDate>Tue, 29 Jun 2010 15:37:30 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">66 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2010/06/29/problem-eclipse-php-project#comments</comments>
<feedburner:origLink>http://alexisyes.com/2010/06/29/problem-eclipse-php-project</feedburner:origLink></item>
<item>
 <title>HTTP error 0 in apachesolr_autocomplete</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/JmbRhbunR7A/http-error-0-apachesolrautocomplete</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;If you didn't know it before - there is a &lt;a href="http://drupal.org/project/apachesolr_autocomplete?"&gt;nice module&lt;/a&gt; which will provide autocomplete functionality to all of the search forms on your Drupal site. Recently i have installed this module on our development box and everything was pretty fine. Today i pushed a new version of the site to the preproduction box and autocomplete stops working with errors:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;
PHP Fatal error:  Uncaught exception 'Exception' with message '"0" Status: Request failed' in /sites/all/modules/apachesolr/Drupal_Apache_Solr_Service.php:272&lt;br /&gt;
Stack trace:&lt;br /&gt;
#0 /sites/all/modules/apachesolr/SolrPhpClient/Apache/Solr/Service.php(964): Drupal_Apache_Solr_Service-&amp;gt;_sendRawGet('http://192.168....')&lt;br /&gt;
#1 /sites/all/modules/apachesolr/apachesolr_search.module(246): Apache_Solr_Service-&amp;gt;search('finance', 0, '20', Array)&lt;br /&gt;
#2 /sites/all/modules/apachesolr/drush/apachesolr.drush.inc(145): apachesolr_search_execute('finance')&lt;br /&gt;
#3 [internal function]: apachesolr_drush_solr_search('finance')&lt;br /&gt;
#4 /usr/share/drush/includes/drush.inc(51): call_user_func_array('apachesolr_drus...', Array)&lt;br /&gt;
#5 /usr/share/drush/drush.php(90): drush_dispatch(Array)&lt;br /&gt;
#6 /usr/share/drush/drush.php(40): drush_main()&lt;br /&gt;
#7 {main}&lt;br /&gt;
  thrown in /sites/all/modules/apachesolr/Drupal_Apache_Solr_Service.php on line 272&lt;br /&gt;
Drush command could not be completed.&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I did some investigation and the problem was in the size of headers which were getting passed to solr. Fix in server.xml:&lt;/p&gt;
&lt;p&gt;Change:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;connector port="8080" protocol="HTTP/1.1"&gt;&lt;/connector&gt;
               connectionTimeout="20000"&lt;br /&gt;
               redirectPort="8443"&lt;br /&gt;
               URIEncoding="UTF-8"/&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;
To:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;connector port="8080" protocol="HTTP/1.1"&gt;&lt;/connector&gt;
               connectionTimeout="20000"&lt;br /&gt;
               redirectPort="8443"&lt;br /&gt;
               URIEncoding="UTF-8"&lt;br /&gt;
               maxHttpHeaderSize="8192"/&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;
And restart Tomcat.&lt;/p&gt;
&lt;p&gt;Related issues on Drupal.org:&lt;br /&gt;&lt;a href="http://drupal.org/node/781068"&gt;"0" Status: Request failed&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Helpful handbook page:&lt;br /&gt;&lt;a href="http://drupal.org/node/443980"&gt;Troubleshooting&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/JmbRhbunR7A" height="1" width="1"/&gt;</description>
 <pubDate>Mon, 21 Jun 2010 11:04:11 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">65 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2010/06/21/http-error-0-apachesolrautocomplete#comments</comments>
<feedburner:origLink>http://alexisyes.com/2010/06/21/http-error-0-apachesolrautocomplete</feedburner:origLink></item>
<item>
 <title>search_index table is too big while using Apache SOLR?</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/VgJ_hqfObAA/searchindex-table-too-big-while-using-apache-solr</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;The reason - core search module is still indexing content. The solution - go to admin/settings/search and set "Number of items to index per cron run" to 0. This will prevent core search module to work. And to clear the tables you can press "Re-index site" button.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"&gt;
      &lt;h3 class="field-label"&gt;Tags&amp;nbsp;&lt;/h3&gt;
    &lt;span class="field-items"&gt;
                  &lt;a href="/tags/drupal" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;drupal&lt;/a&gt;,                 &lt;a href="/tags/solr" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;solr&lt;/a&gt;,                 &lt;a href="/tags/search" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;search&lt;/a&gt;            &lt;/span&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/VgJ_hqfObAA" height="1" width="1"/&gt;</description>
 <pubDate>Mon, 21 Jun 2010 08:55:19 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">64 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2010/06/21/searchindex-table-too-big-while-using-apache-solr#comments</comments>
<feedburner:origLink>http://alexisyes.com/2010/06/21/searchindex-table-too-big-while-using-apache-solr</feedburner:origLink></item>
<item>
 <title>Function path_to_theme() can catch you</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/Hj64fRfOLSg/function-pathtotheme-can-catch-you</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;&lt;b&gt;Return the path to the current themed element.&lt;/b&gt;&lt;br /&gt;
The main thing is that if you will call it from the module preprocess hook - it will return the&lt;br /&gt;
 path to the module. &lt;/p&gt;
&lt;p&gt;So if you want to keep your logic in code and still be able to help your designer/js-coder (who doesn't know for sure where is the custom module files, but know the theming a bit):&lt;/p&gt;
&lt;p&gt;&lt;code&gt;drupal_add_js(drupal_get_path('theme', variable_get('theme_default', 'garland')) ."/js/cooljavacriptfilehere.js");&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;From &lt;a href="http://api.drupal.org/api/function/path_to_theme/6"&gt;api.drupal.org&lt;/a&gt;:&lt;br /&gt;
It can point to the active theme or the module handling a themed implementation. For example, when invoked within the scope of a theming call it will depend on where the theming function is handled. If implemented from a module, it will point to the module. If implemented from the active theme, it will point to the active theme. When called outside the scope of a theming call, it will always point to the active theme.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/Hj64fRfOLSg" height="1" width="1"/&gt;</description>
 <pubDate>Tue, 30 Mar 2010 14:53:02 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">62 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2010/03/30/function-pathtotheme-can-catch-you#comments</comments>
<feedburner:origLink>http://alexisyes.com/2010/03/30/function-pathtotheme-can-catch-you</feedburner:origLink></item>
<item>
 <title>Managing comments access on the fly</title>
 <link>http://feedproxy.google.com/~r/Alexisyes/~3/M0TJ4ojnXyA/managing-comments-access-fly</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even" property="content:encoded"&gt;&lt;p&gt;As you may already know, you can control the comments module behavior with user permissions and with per node-type settings. But what if you want to change the node comments access on the fly?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;The problem:&lt;/b&gt;&lt;br /&gt;
On some nodes i want to disable the comment form for current user, but show him the comments. It is possible with the default comment settings of this node type or with access permissions. But what if the permissions are configured for full read-write access for the current type of node and current user have permission to post comments?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
No normal solution for the moment. The blocker is &lt;i&gt;comment_render()&lt;/i&gt; function which is not granular enough for checking for changed permissions on the fly. There are temporary solutions with templating system which requiring overriding default box.tpl.php and checking for the access in this template (it is very ugly, because the point of templates is to separate site logic from display) and overriding default comment callbacks in &lt;i&gt;comment/reply/%nid&lt;/i&gt; menu item with &lt;i&gt;hook_menu_alter()&lt;/i&gt;. &lt;/p&gt;
&lt;p&gt;The point of this post? There are a lot of small common things which are very hard to implement using current state of some core modules. Hope that Drupal 7 will fix that.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"&gt;
      &lt;h3 class="field-label"&gt;Tags&amp;nbsp;&lt;/h3&gt;
    &lt;span class="field-items"&gt;
                  &lt;a href="/tags/drupal" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;drupal&lt;/a&gt;,                 &lt;a href="/tags/comments" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;comments&lt;/a&gt;,                 &lt;a href="/tags/access" typeof="skos:Concept" property="rdfs:label skos:prefLabel"&gt;access&lt;/a&gt;            &lt;/span&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Alexisyes/~4/M0TJ4ojnXyA" height="1" width="1"/&gt;</description>
 <pubDate>Tue, 23 Mar 2010 10:54:59 +0000</pubDate>
 <dc:creator>Alex</dc:creator>
 <guid isPermaLink="false">61 at http://alexisyes.com</guid>
 <comments>http://alexisyes.com/2010/03/23/managing-comments-access-fly#comments</comments>
<feedburner:origLink>http://alexisyes.com/2010/03/23/managing-comments-access-fly</feedburner:origLink></item>
</channel>
</rss>

