<?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>Itty Bitty Talks</title>
	<atom:link href="https://www.ittybittytalks.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ittybittytalks.com</link>
	<description>Small Tech Talk by Ron</description>
	<lastBuildDate>Fri, 13 Feb 2015 06:28:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.1</generator>
	<item>
		<title>Presentation on Varnish Cache</title>
		<link>https://www.ittybittytalks.com/presentation-varnish-cache/</link>
					<comments>https://www.ittybittytalks.com/presentation-varnish-cache/#comments</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Sat, 07 Feb 2015 19:29:40 +0000</pubDate>
				<category><![CDATA[Server Administration]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=290</guid>

					<description><![CDATA[<p>Watch the presentation video on youtube: My presentation on varnish cache. The goal of the presentation was: Thorough understanding of Varnish. Understanding of how VCL works and how to use it. Know how varnish works with Drupal and WordPress. Debug using varnish tools.</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/presentation-varnish-cache/">Presentation on Varnish Cache</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><iframe src="https://www.slideshare.net/slideshow/embed_code/44387846" width="660" height="534" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p>Watch the presentation video on youtube:</p>
<p><iframe width="660" height="495" src="https://www.youtube.com/embed/hZQc335WIvc?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>My presentation on varnish cache. The goal of the presentation was:</p>
<ul>
<li>Thorough understanding of Varnish.</li>
<li>Understanding of how VCL works and how to use it.</li>
<li>Know how varnish works with Drupal and WordPress.</li>
<li>Debug using varnish tools.</li>
</ul>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/presentation-varnish-cache/">Presentation on Varnish Cache</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/presentation-varnish-cache/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Drupal Ajax Contact Form</title>
		<link>https://www.ittybittytalks.com/drupal-ajax-contact-form/</link>
					<comments>https://www.ittybittytalks.com/drupal-ajax-contact-form/#comments</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Sun, 02 Nov 2014 11:03:53 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=271</guid>

					<description><![CDATA[<p>Drupal&#8217;s core contact module provides a contact page and a form with it. Lately one of my project had requirement to publish the ajax contact form as a block in any region of any page. So I wrote this small module that will alter the core contact module that adds a &#8230;</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/drupal-ajax-contact-form/">Drupal Ajax Contact Form</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Drupal&#8217;s core contact module provides a contact page and a form with it. Lately one of my project had requirement to publish the ajax contact form as a block in any region of any page. So I wrote this small module that will alter the core contact module that adds a contact block containing ajax form.</p>
<p>You can give it a try.</p>
<p>Module Documentation Page: <a title="https://www.drupal.org/node/2239821" href="https://www.drupal.org/node/2239821">https://www.drupal.org/node/2239821</a></p>
<p>Git clone URL:</p>
<pre>git clone git://git.drupal.org/sandbox/boyron/2239821.git</pre>
<p><a href="http://www.ittybittytalks.com/wp-content/uploads/2014/11/ajax_contact.zip">Download the module code</a></p>
<p><a href="http://www.ittybittytalks.com/drupal-tips-and-tricks/">Read other Drupal tips I wrote here.</a></p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/drupal-ajax-contact-form/">Drupal Ajax Contact Form</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/drupal-ajax-contact-form/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to merge Drupal views filters</title>
		<link>https://www.ittybittytalks.com/merge-drupal-views-filters/</link>
					<comments>https://www.ittybittytalks.com/merge-drupal-views-filters/#comments</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Wed, 07 May 2014 06:02:35 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=261</guid>

					<description><![CDATA[<p>Earlier we talked about how to force Drupal views contextual filter to use logical OR condition. Now consider the following case: You have a topic (taxonomy term) page. Each topic has some sub-topics (taxonomy terms under topics) In the topic page, you have resource list which shows resources tagged with &#8230;</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/merge-drupal-views-filters/">How to merge Drupal views filters</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Earlier we talked about <a title="How to force Drupal views contextual filter to use logical OR condition" href="http://www.ittybittytalks.com/how-to-force-drupal-views-contextual-filter-to-use-logical-or-condition/" target="_blank">how to force Drupal views contextual filter to use logical OR condition.</a></p>
<p>Now consider the following case:</p>
<ul>
<li>You have a topic (taxonomy term) page.</li>
<li>Each topic has some sub-topics (taxonomy terms under topics)</li>
<li>In the topic page, you have resource list which shows resources tagged with this topic. The list is made by a drupal view with topic set as contextual filter.</li>
<li>Now the list need a sub topics filter. Sub topics under this topic, that the list belongs to, will only shows up using views exposed filter.</li>
</ul>
<p>The complexity here is both topic and sub topic shares the same database id (field_topics_tid) and both are set in your views contextual filter and exposed filter.</p>
<p>So when user chooses a sub topics filter, views query will look like</p>
<pre style="color: #666666;">WHERE field_data_field_topics.field_topics_tid = &lt;topic_id_from_contextual_filter&gt; AND field_data_field_topics.field_topics_tid = &lt;topic_id_from_resource_filter&gt;</pre>
<p>As you see this will not generate a valid results.</p>
<p>We will need to do a logical OR using IN operator like</p>
<pre style="color: #666666;">WHERE field_data_field_topics.field_topics_tid IN (&lt;topic_id_from_contextual_filter&gt;, &lt;topic_id_from_resource_filter&gt;)</pre>
<p>Check this code from one of my projects to see how can we achieve this using views API.<br />
<script src="https://gist.github.com/fe10c8e4571fd0d31d24.js"></script><br />
Please let me know if you have any questions.</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/merge-drupal-views-filters/">How to merge Drupal views filters</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/merge-drupal-views-filters/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to commit, push and trigger jenkins build at once from command line</title>
		<link>https://www.ittybittytalks.com/commit-push-trigger-jenkins-build/</link>
					<comments>https://www.ittybittytalks.com/commit-push-trigger-jenkins-build/#comments</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Tue, 06 May 2014 10:51:32 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=258</guid>

					<description><![CDATA[<p>Earlier we talked about how to trigger jenkins build from command line. Now consider a situation, when you are doing the development alone in the team and you need to commit your codes, push them and build each time to see an output. In this case, you can create a &#8230;</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/commit-push-trigger-jenkins-build/">How to commit, push and trigger jenkins build at once from command line</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Earlier we talked about <a title="how to trigger a jenkins build from command line" href="http://www.ittybittytalks.com/how-to-automate-your-jenkins-build-script/" target="_blank">how to trigger jenkins build from command line</a>.</p>
<p>Now consider a situation, when you are doing the development alone in the team and you need to commit your codes, push them and build each time to see an output.</p>
<p>In this case, you can create a simple shell script that will</p>
<ul>
<li>take your commit message as argument and</li>
<li>then commit your modified files (which are versioned already)</li>
<li>then push your commit</li>
<li>and do the build as well</li>
</ul>
<script src="https://gist.github.com/f8464ec8122fc5ff6b79.js"></script>
<p>Save the script as <strong class="file-name js-selectable-text">commit.push.build.sh </strong>run the script as</p>
<pre><strong class="file-name js-selectable-text">./commit.push.build.sh "commit message"</strong></pre>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/commit-push-trigger-jenkins-build/">How to commit, push and trigger jenkins build at once from command line</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/commit-push-trigger-jenkins-build/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to force Drupal views contextual filter to use logical OR condition</title>
		<link>https://www.ittybittytalks.com/how-to-force-drupal-views-contextual-filter-to-use-logical-or-condition/</link>
					<comments>https://www.ittybittytalks.com/how-to-force-drupal-views-contextual-filter-to-use-logical-or-condition/#comments</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Fri, 02 May 2014 13:49:31 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[contextual filter]]></category>
		<category><![CDATA[Drupal views]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=207</guid>

					<description><![CDATA[<p>Drupal views by default uses the logical AND operator for contextual filters in &#8216;WHERE&#8217; clause in views query. This is true when you have: One contextual filter and one or more normal/exposed filters. More than one contextual filters. If you want to apply OR instead of AND, you will need &#8230;</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/how-to-force-drupal-views-contextual-filter-to-use-logical-or-condition/">How to force Drupal views contextual filter to use logical OR condition</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<figure id="attachment_224" aria-describedby="caption-attachment-224" style="width: 200px" class="wp-caption alignright"><a href="http://www.ittybittytalks.com/how-to-force-drupal-views-contextual-filter-to-use-logical-or-condition/drupal-views2/" rel="attachment wp-att-224"><img loading="lazy" class="size-full wp-image-224" src="http://www.ittybittytalks.com/wp-content/uploads/2014/05/drupal-views2.jpg" alt="Drupal views" width="200" height="200" srcset="https://www.ittybittytalks.com/wp-content/uploads/2014/05/drupal-views2.jpg 200w, https://www.ittybittytalks.com/wp-content/uploads/2014/05/drupal-views2-150x150.jpg 150w" sizes="(max-width: 200px) 100vw, 200px" /></a><figcaption id="caption-attachment-224" class="wp-caption-text">Drupal views</figcaption></figure>
<p>Drupal views by default uses the logical AND operator for contextual filters in &#8216;WHERE&#8217; clause in views query. This is true when you have:</p>
<ul>
<li>One contextual filter and one or more normal/exposed filters.</li>
<li>More than one contextual filters.</li>
</ul>
<p>If you want to apply <em>OR</em> instead of <em>AND</em>, you will need to implement two hooks.</p>
<ul>
<li>hook_views_query_alter() in file MY_MODULE.views.inc and</li>
<li>hook_views_api() in MY_MODULE.module</li>
</ul>
<script src="https://gist.github.com/4102aa67452fafdd1331.js"></script>
<p>Note the index &#8216;0&#8217; in code `<span style="color: #000000;">$query-&gt;where[0][&#8216;type&#8217;] = &#8216;OR&#8217;;</span>`. This indicates the first group of conditions in &#8216;<em><strong>where</strong></em>&#8216; clause which is for contextual filters.</p>
<p><em>I am sure you know, why MY_MODULE is written in caps everywhere. If you don&#8217;t, put a comment here and we will answer of course. (But, will see how to get the treat from you first <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> )</em></p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/how-to-force-drupal-views-contextual-filter-to-use-logical-or-condition/">How to force Drupal views contextual filter to use logical OR condition</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/how-to-force-drupal-views-contextual-filter-to-use-logical-or-condition/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Drupal tips and tricks</title>
		<link>https://www.ittybittytalks.com/drupal-tips-and-tricks/</link>
					<comments>https://www.ittybittytalks.com/drupal-tips-and-tricks/#comments</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Fri, 02 May 2014 10:02:59 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal tips and tricks]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=200</guid>

					<description><![CDATA[<p>This will be an index of all Drupal tips and tricks that I write down in different places. Please also feel free to share yours in the comment below. ** I will be continuously updating this post. ** Drupal tips and tricks index An introduction to Drupal Context module. How &#8230;</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/drupal-tips-and-tricks/">Drupal tips and tricks</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This will be an index of all Drupal tips and tricks that I write down in different places. Please</p>
<figure id="attachment_214" aria-describedby="caption-attachment-214" style="width: 300px" class="wp-caption alignright"><a href="http://www.ittybittytalks.com/drupal-tips-and-tricks/drupal-tips/"><img loading="lazy" class="wp-image-214 size-medium" title="Drupal tips and tricks" src="http://www.ittybittytalks.com/wp-content/uploads/2014/05/drupal-tips-300x209.png" alt="Drupal tips and tricks" width="300" height="209" srcset="https://www.ittybittytalks.com/wp-content/uploads/2014/05/drupal-tips-300x209.png 300w, https://www.ittybittytalks.com/wp-content/uploads/2014/05/drupal-tips-700x488.png 700w, https://www.ittybittytalks.com/wp-content/uploads/2014/05/drupal-tips.png 732w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-214" class="wp-caption-text">Drupal tips and tricks</figcaption></figure>
<p>also feel free to share yours in the comment below.</p>
<p>** I will be continuously updating this post. **</p>
<h2>Drupal tips and tricks index</h2>
<ul>
<li><a style="font-family: sans-serif; font-size: medium; font-style: normal; font-variant: normal; line-height: normal;" title="Drupal Context Module: How to" href="http://www.ittybittytalks.com/drupal-context-module-how-to/" target="_blank">An introduction to Drupal Context module.</a></li>
<li><a title="How to install Drush in windows" href="http://www.ittybittytalks.com/how-to-install-drush-in-windows/" target="_blank">How to install DruSh in Windows.</a></li>
<li><a title="Change Drupal theme using DruSh" href="https://gist.github.com/boyron/92901aafba867b437cfe" target="_blank">Change your Drupal site theme (default/admin) using DruSh.</a></li>
<li><a title="Auto upgrade Drupal" href="https://github.com/boyron/auto-upgrade-drupal" target="_blank">Upgrade Drupal core and contributed modules using a shell script.</a></li>
<li><a title="How to force Drupal views contextual filter to use logical OR condition" href="http://www.ittybittytalks.com/how-to-force-drupal-views-contextual-filter-to-use-logical-or-condition/" target="_blank">Apply logical OR condition for Drupal views contextual filter.</a></li>
<li><a title="How to change Drupal administrator password using DruSh." href="https://gist.github.com/boyron/c8b09f801ca42481ab18" target="_blank">Change admin password using DruSh.</a></li>
<li><a title="How to merge Drupal views filters" href="http://www.ittybittytalks.com/merge-drupal-views-filters/" rel="bookmark">How to merge Drupal views filters</a></li>
<li><a href="http://www.ittybittytalks.com/drupal-ajax-contact-form/">Drupal Ajax Contact Form</a></li>
</ul>
<p>&nbsp;</p>
<p><a title="Book Review – The Pragmatic Programmer: From Journeyman to Master" href="http://www.ittybittytalks.com/book-review-the-pragmatic-programmer-from-journeyman-to-master/" target="_blank">Footnote: The pragmatic programmer book review. Every programmer should read this <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></a></p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/drupal-tips-and-tricks/">Drupal tips and tricks</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/drupal-tips-and-tricks/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>&#8220;A wet man does not fear the rain.&#8221;</title>
		<link>https://www.ittybittytalks.com/a-wet-man-does-not-fear-the-rain/</link>
					<comments>https://www.ittybittytalks.com/a-wet-man-does-not-fear-the-rain/#respond</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Thu, 01 May 2014 10:42:16 +0000</pubDate>
				<category><![CDATA[My Stories]]></category>
		<category><![CDATA[Quote]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=198</guid>

					<description><![CDATA[<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/a-wet-man-does-not-fear-the-rain/">&#8220;A wet man does not fear the rain.&#8221;</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" class="aligncenter" src="http://www.topgear.com/uk/assets/cms/38afc0ae-dac4-4b38-af7c-c381564ed6ee/Large%20Image.jpg?p=081201_10:26" alt="A wet man does not fear the rain." width="560" height="315" /></p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/a-wet-man-does-not-fear-the-rain/">&#8220;A wet man does not fear the rain.&#8221;</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/a-wet-man-does-not-fear-the-rain/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>&#8220;No matter how far down the wrong road you&#8217;ve gone, turn back.&#8221;</title>
		<link>https://www.ittybittytalks.com/no-matter-how-far-down-the-wrong-road-youve-gone-turn-back/</link>
					<comments>https://www.ittybittytalks.com/no-matter-how-far-down-the-wrong-road-youve-gone-turn-back/#respond</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Wed, 30 Apr 2014 08:32:31 +0000</pubDate>
				<category><![CDATA[My Stories]]></category>
		<category><![CDATA[Quote]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=115</guid>

					<description><![CDATA[<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/no-matter-how-far-down-the-wrong-road-youve-gone-turn-back/">&#8220;No matter how far down the wrong road you&#8217;ve gone, turn back.&#8221;</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" class="aligncenter" src="http://pixdaus.com/files/items/pics/5/31/80531_3645ce3db3695673d61bd479bc003c67_large.jpg" alt="" width="900" height="600" /></p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/no-matter-how-far-down-the-wrong-road-youve-gone-turn-back/">&#8220;No matter how far down the wrong road you&#8217;ve gone, turn back.&#8221;</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/no-matter-how-far-down-the-wrong-road-youve-gone-turn-back/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to trigger Jenkins build from command line</title>
		<link>https://www.ittybittytalks.com/how-to-automate-your-jenkins-build-script/</link>
					<comments>https://www.ittybittytalks.com/how-to-automate-your-jenkins-build-script/#comments</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Fri, 21 Mar 2014 15:53:34 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[jenkins]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=110</guid>

					<description><![CDATA[<p>Pragmatic programmers automates everything 🙂 Yes! And why not build a script for your Jenkins build. Well, it’s not that hectic but still requires few steps: Open the browser. Write the Jenkins URL. Login. Find the job. Click build. 🙂 Won’t you feel happy, if the same operations work for &#8230;</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/how-to-automate-your-jenkins-build-script/">How to trigger Jenkins build from command line</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<figure id="attachment_217" aria-describedby="caption-attachment-217" style="width: 300px" class="wp-caption alignright"><img loading="lazy" class="wp-image-217 size-medium" title="Automate your build script using jenkins." src="http://www.ittybittytalks.com/wp-content/uploads/2014/03/jenkins.build_-300x300.jpg" alt="Automate your build script using jenkins." width="300" height="300" srcset="https://www.ittybittytalks.com/wp-content/uploads/2014/03/jenkins.build_-300x300.jpg 300w, https://www.ittybittytalks.com/wp-content/uploads/2014/03/jenkins.build_-150x150.jpg 150w, https://www.ittybittytalks.com/wp-content/uploads/2014/03/jenkins.build_-432x432.jpg 432w, https://www.ittybittytalks.com/wp-content/uploads/2014/03/jenkins.build_-268x268.jpg 268w, https://www.ittybittytalks.com/wp-content/uploads/2014/03/jenkins.build_.jpg 500w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-217" class="wp-caption-text">Automate your build script using jenkins.</figcaption></figure>
<p>Pragmatic programmers automates everything <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Yes! And why not build a script for your Jenkins build. Well, it’s not that hectic but still requires few steps:</p>
<ul>
<li>Open the browser.</li>
<li>Write the Jenkins URL.</li>
<li>Login.</li>
<li>Find the job.</li>
<li>Click build. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></li>
</ul>
<p>Won’t you feel happy, if the same operations work for only one step? Write the command and press enter! Boom!! <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Lets see how to accomplish this. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>We have discussed the solution here based on the OS.</p>
<h2>OS X</h2>
<p>If you are a Mac guy/girl, its pretty easy. Just write the following command:<br />
<script src="https://gist.github.com/dd66be912e772197fb82.js"></script><br />
Do not forget to replace the placeholder values.</p>
<figure style="width: 415px" class="wp-caption alignright"><img loading="lazy" style="border: 1px solid #ccc;" title="Jenkins User Configure" src="http://kb.jaxara.com/sites/kb.jaxara.com/files/ron/images/jenkins-user-configure.png" alt="Jenkins User Configure" width="415" height="141" /><figcaption class="wp-caption-text">Jenkins User Configure</figcaption></figure>
<ul>
<li>&lt;your_jenkins_username&gt; is your Jenkins username that you use to login to Jenkins.</li>
<li>To get your &lt;your_jenkins_API_key&gt;:
<ul>
<li>Login to your Jenkins.</li>
<li>Click on the username in the top right.</li>
<li>Click on Configure.</li>
<li>Click on ‘Show API Token’ button.</li>
<li>You got it. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></li>
</ul>
</li>
</ul>
<ul>
<li>&lt;jenkins_server_url&gt; is your respective Jenkins server URL (development or staging).</li>
<li>&lt;your_jenkins_job_name&gt; is the job that you want to build.</li>
</ul>
<figure style="width: 360px" class="wp-caption alignright"><img loading="lazy" style="border: 1px solid #ccc;" title="Jenkins user get API token" src="http://kb.jaxara.com/sites/kb.jaxara.com/files/ron/images/jenkins-user-get-API-token.png" alt="Jenkins user get API token" width="360" height="96" /><figcaption class="wp-caption-text">Jenkins user get API token</figcaption></figure>
<p>Prepare the command by replacing the placeholders with proper values as described above and run it.</p>
<p>That’s it. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> This is how you can trigger jenkins build from command line <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Isn’t it fabulous? <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><strong>Do not forget to save the command somewhere. You can also create different batch files for different projects for even easier operation. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></strong></p>
<p><a title="How to commit, push and trigger jenkins build at once from command line" href="http://www.ittybittytalks.com/commit-push-trigger-jenkins-build/" target="_blank">How to commit, push and trigger jenkins build at once from command line.</a></p>
<h2>Linux</h2>
<p>If you are a nix guy/girl but could not catch the Mac yet, don’t worry. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> You can just follow the instructions for OS X above. It will just work. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Alternatively, you can use &#8216;wget&#8217; instead of &#8216;curl&#8217; if you’re a wget fan. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>And if you&#8217;re a &#8216;wget&#8217; fan, you already know how to use &#8216;wget&#8217;. Hence, I am not repeating the instructions for &#8216;wget&#8217;. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>It&#8217;s just replacing &#8216;curl&#8217; with &#8216;wget&#8217; and parameter are same. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Doesn&#8217;t work? Better use &#8216;curl&#8217; lah&#8230; <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<h2>Windows</h2>
<p>That’s the 3<sup>rd</sup> in my list. If you are actually a *nix guy/girl but somehow forced to use windows and helpless :|, Why don’t you use gitbash in windows and use *nix commands. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> That will just work. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>If you do not understand, what I mean, (then probably you&#8217;re not a *nix person :P) ‘gitbash’ is a program combined of git and bash. A bash is shell that runs commands once you type the name of command and press enter. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>For *nix fans in windows, good news is, gitbash accepts all basic *nix commands. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<ul>
<li>Download  the git bash from here <a style="font-family: sans-serif; font-size: medium; font-style: normal; font-variant: normal; line-height: normal;" title="msysgit" href="https://code.google.com/p/msysgit/downloads/list?q=label:Featured" target="_blank">https://code.google.com/p/msysgit/downloads/list?q=label:Featured</a> (at the time of this article writing, it was named as Git-1.9.0-preview20140217.exe) and install it.</li>
<li>Just follow the instructions from OS X section and you are done <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></li>
</ul>
<p>However, if you are a born windows user and scared of *nix, you can use Jenkins-cli.jar to run command line build commands.</p>
<ul>
<li>Download Jenkins-cli.jar from http://&lt;your_jenkins_server_url&gt;/jnlpJars/jenkins-cli.jar. (Here &lt;your_jenkins_server_url&gt; is your respective Jenkins server URL (development or staging))</li>
<li>Go to http://&lt;your_jenkins_server_url&gt;/cli and build your command by following the instructions there.</li>
</ul>
<p>Again do not forget to save the command somewhere. You can also create different batch files for different projects for even easier operation. <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><em>Disclaimer: I am using OS X/*nix while writing this article and hence tested those environments. I did not test the windows .jar option. Please let me know if you face any issue here. I will fix/correct and will update this article. Thank you!</em></p>
<p><em>And please forgive my pinches for using windows. I just could not love windows over *nix OSes yet.</em></p>
<p>Next recommended article to read: <a title="How to commit, push and trigger jenkins build at once from command line" href="http://www.ittybittytalks.com/commit-push-trigger-jenkins-build/">how to commit, push and trigger Jenkins build at once in one command.</a></p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/how-to-automate-your-jenkins-build-script/">How to trigger Jenkins build from command line</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/how-to-automate-your-jenkins-build-script/feed/</wfw:commentRss>
			<slash:comments>16</slash:comments>
		
		
			</item>
		<item>
		<title>Drupal Context Module: How to</title>
		<link>https://www.ittybittytalks.com/drupal-context-module-how-to/</link>
					<comments>https://www.ittybittytalks.com/drupal-context-module-how-to/#comments</comments>
		
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Sun, 09 Mar 2014 14:56:38 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[context mdoule]]></category>
		<category><![CDATA[Drupal context]]></category>
		<guid isPermaLink="false">http://www.ittybittytalks.com/?p=106</guid>

					<description><![CDATA[<p>Drupal is the magic CMS to build a website really fast. Using Drupal modules like views, panels, context, display suites, you can create a website almost without writing any code. &#160; Today we will discuss the functionality of context module. Consider the following statements. &#160; If your age is between &#8230;</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/drupal-context-module-how-to/">Drupal Context Module: How to</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<figure id="attachment_228" aria-describedby="caption-attachment-228" style="width: 300px" class="wp-caption alignright"><a href="http://www.ittybittytalks.com/drupal-context-module-how-to/drupal-context/" rel="attachment wp-att-228"><img loading="lazy" class="size-medium wp-image-228" src="http://www.ittybittytalks.com/wp-content/uploads/2014/03/drupal.context-300x46.jpg" alt="Drupal context module" width="300" height="46" srcset="https://www.ittybittytalks.com/wp-content/uploads/2014/03/drupal.context-300x46.jpg 300w, https://www.ittybittytalks.com/wp-content/uploads/2014/03/drupal.context.jpg 525w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-228" class="wp-caption-text">Drupal context module</figcaption></figure>
<p>Drupal is the magic CMS to build a website really fast. Using Drupal modules like views, panels, context, display suites, you can create a website almost without writing any code.</p>
<p>&nbsp;</p>
<p>Today we will discuss the functionality of context module. Consider the following statements.</p>
<p>&nbsp;</p>
<ul>
<li><strong>If</strong> your age is between 13 and 19, <strong>then</strong> you are a teenager.</li>
<li>I<strong>f</strong> you are a pragmatic programmer, <strong>then</strong> you are a hard worker.</li>
<li><strong>If</strong> the page URL starts with ‘en’, <strong>then</strong> set the language context to ‘English’.</li>
</ul>
<p>&nbsp;</p>
<p>We know these statements (if &lt;condition&gt;, then &lt;action&gt;) are very common in Drupal development. Using context module, you can implement this kind of conditional statements and their actions very easily without writing any code.</p>
<p>&nbsp;</p>
<p>Lets see how.</p>
<p>&nbsp;</p>
<h1>Install the module and dependencies</h1>
<p>&nbsp;</p>
<p><span style="font-size: 10px;"><span style="font-family: courier new,courier,monospace;">drush dl context, ctools</span></span></p>
<p><span style="font-size: 10px;"><span style="font-family: courier new,courier,monospace;">drush en ctools, context, context_ui –y</span></span></p>
<p>&nbsp;</p>
<p>Context module is dependent on ctools module, so install ctools as well. Enable Context UI for context administration purpose.</p>
<p>&nbsp;</p>
<h1>Create a context</h1>
<p>&nbsp;</p>
<ul>
<li>Login to your site as an administrator.</li>
<li>Go to ‘Administration &gt; Structure &gt; Context’.</li>
<li>Click on ‘Add’.</li>
</ul>
<p><img style="width: 388px; height: 131px; border-width: 1px; border-style: solid; float: right;" src="http://kb.jaxara.com/sites/kb.jaxara.com/files/ron/images/Screen%20Shot%202014-03-09%20at%203_43_06%20PM.png" alt="Name your context" /></p>
<p>&nbsp;</p>
<p><strong>Name your context. It has to be unique.</strong></p>
<p>&nbsp;</p>
<p>We recommend follow the variable naming convention (no space, small letters, no special characters, underscores not dashes). That way you will be able to export, import your context using features.</p>
<p>&nbsp;</p>
<p><strong>Setup conditions.</strong></p>
<p>&nbsp;</p>
<p><img style="width: 332px; height: 396px; border-width: 1px; border-style: solid; float: right;" src="http://kb.jaxara.com/sites/kb.jaxara.com/files/ron/images/Screen%20Shot%202014-03-09%20at%203_14_36%20PM.png" alt="Setup Context Conditions" />Some example conditions that you can setup are:</p>
<p>&nbsp;</p>
<ul>
<li>If the path is …</li>
<li>If the language is …</li>
<li>If the taxonomy term is …</li>
<li>If the taxonomy vocabulary is …</li>
<li>If the value of a date field is …</li>
<li>If content type is …</li>
<li>If logged in user role is …</li>
<li>If the organic group of the content is …</li>
<li>Etc</li>
</ul>
<p>&nbsp;</p>
<p><strong>Setup Reactions</strong></p>
<p>&nbsp;</p>
<p>Some example reactions:</p>
<p>&nbsp;</p>
<ul>
<li>Publish a block</li>
<li>Set breadcrumbs</li>
<li>Set OG group context</li>
<li>Set some meta data</li>
<li>Exclude the page from search engines etc</li>
<li>Disable some theme region for the page</li>
<li>Set a CSS body class for the theme etc</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img style="width: 281px; height: 247px; border-width: 1px; border-style: solid; float: right;" src="http://kb.jaxara.com/sites/kb.jaxara.com/files/ron/images/Screen%20Shot%202014-03-09%20at%203_23_09%20PM.png" alt="" /></p>
<p>Well, these conditions and reactions are not all. You can implement your own custom context conditions and reactions using Drupal context API. We will discuss that one the other day.</p>
<p>&nbsp;</p>
<p>Happy Drupaling <img src="https://s.w.org/images/core/emoji/13.0.1/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.ittybittytalks.com/drupal-context-module-how-to/">Drupal Context Module: How to</a> appeared first on <a rel="nofollow" href="https://www.ittybittytalks.com">Itty Bitty Talks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ittybittytalks.com/drupal-context-module-how-to/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
