<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7531788851905887292</id><updated>2025-09-04T01:18:27.936-07:00</updated><category term="Apache Access Log"/><category term="Apache Error Log"/><category term="Capybara Check and select drop down option"/><category term="Gii Tools In YII"/><category term="Git Setup Remote Tracking Branch"/><category term="How to fix PHP errors related to timezone (function.strtotime and function.date)"/><category term="Installing YII Framework on Windows"/><category term="Jenkins does not Execute all Windows Batch Command"/><category term="Jenkins git upstream forever long"/><category term="Remote Desktop Standard Users Win 7"/><category term="There is no tracking information for the current branch"/><category term="Unable to create Git index.lock File Exists"/><category term="YII Webserver Error"/><category term="Yii - alias is invalid"/><category term="Yii Active Records"/><category term="Yii Require Once Cpanel Error"/><category term="cannot run program sh in jenkins"/><category term="css input button text height"/><category term="display .gitignore file in netbeans"/><category term="startup shutdown tomcat server in mac"/><title type='text'>My Tech Notes</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>43</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-2188538198826874828</id><published>2013-09-04T23:53:00.001-07:00</published><updated>2013-09-04T23:53:26.743-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Remote Desktop Standard Users Win 7"/><title type='text'>How to Enable Remote Desktop For Standard Users in Win 7</title><content type='html'>&lt;ol style=&quot;background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14.44444465637207px; line-height: 22.22222328186035px; margin: 0px;&quot;&gt;
&lt;li&gt;Click Start -&amp;gt; Control Panel -&amp;gt; Systems&lt;/li&gt;
&lt;li&gt;Click Remote Setting on the left hand nav&lt;/li&gt;
&lt;li&gt;Select &quot;Allo connections from computers running any version of remote desktop (less secure)&lt;/li&gt;
&lt;li&gt;Click Select users&lt;/li&gt;
&lt;li&gt;Add the &quot;Standard&quot; users that you want to enable the remote desktop&lt;/li&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/2188538198826874828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/09/how-to-enable-remote-desktop-for.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2188538198826874828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2188538198826874828'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/09/how-to-enable-remote-desktop-for.html' title='How to Enable Remote Desktop For Standard Users in Win 7'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-4538262358660638157</id><published>2013-09-02T19:12:00.000-07:00</published><updated>2013-09-02T19:12:15.432-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="There is no tracking information for the current branch"/><title type='text'>Git Pull Error - There is no tracking information for the current branch</title><content type='html'>Usually I can just do a git pull to get the latest update from master. However, I receive the following error/warning when I try to do git pull.&lt;br /&gt;
&lt;br /&gt;
To solve this, I need to do &quot;git pull origin master&quot;&lt;br /&gt;
&lt;br /&gt;
D:\xampp\htdocs\website&amp;gt;git pull&lt;br /&gt;
remote: Counting objects: 5, done.&lt;br /&gt;
remote: Compressing objects: 100% (3/3), done.&lt;br /&gt;
remote: Total 3 (delta 2), reused 0 (delta 0)&lt;br /&gt;
Unpacking objects: 100% (3/3), done.&lt;br /&gt;
From 192.168.1.15:web/website&lt;br /&gt;
&amp;nbsp; &amp;nbsp;25bc2eb..0b66cee &amp;nbsp;master &amp;nbsp; &amp;nbsp; -&amp;gt; origin/master&lt;br /&gt;
There is no tracking information for the current branch.&lt;br /&gt;
Please specify which branch you want to merge with.&lt;br /&gt;
See git-pull(1) for details&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; git pull &amp;lt;remote&amp;gt; &amp;lt;branch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you wish to set tracking information for this branch you can do so with:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; git branch --set-upstream-to=origin/&amp;lt;branch&amp;gt; master&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/4538262358660638157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/09/git-pull-error-there-is-no-tracking.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/4538262358660638157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/4538262358660638157'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/09/git-pull-error-there-is-no-tracking.html' title='Git Pull Error - There is no tracking information for the current branch'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-5909001394761770229</id><published>2013-07-08T20:09:00.000-07:00</published><updated>2013-07-08T20:10:53.681-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Yii - alias is invalid"/><title type='text'>Alias &quot;{alias}&quot; is invalid. Make sure it points to an existing PHP file and the file is readable.</title><content type='html'>&lt;div class=&quot;source&quot; style=&quot;background-color: white; border: 0px; margin: 0px 0px 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;file&quot; style=&quot;background-color: transparent; border: 0px; font-family: Verdana; font-size: 12px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
The following error occur on my Yii web app&lt;/div&gt;
&lt;div class=&quot;file&quot; style=&quot;background-color: transparent; border: 0px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: #f3f3f3; font-family: Verdana; font-size: 15px; line-height: 24px;&quot;&gt;Alias &quot;ext.dropdown.DropDownBox&quot; is not valid.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 24px;&quot;&gt;&amp;nbsp;Make sure it points to an existing PHP file and the file is readable.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;file&quot; style=&quot;background-color: transparent; border: 0px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 24px;&quot;&gt;I have checked that all of the permission is readable. This error only occurs in production and not in our test environment (mac and windows).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;file&quot; style=&quot;background-color: transparent; border: 0px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 24px;&quot;&gt;It turns out that our prod environment is using Centos and in my code I call&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;file&quot; style=&quot;background-color: transparent; border: 0px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 24px;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 15px; line-height: 24px;&quot;&gt;$this-&amp;gt;widget(&#39;ext.dropdown.DropDownBox&#39;, array(...&quot; which should have been&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;file&quot; style=&quot;background-color: transparent; border: 0px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 24px;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 15px; line-height: 24px;&quot;&gt;$this-&amp;gt;widget(&#39;ext.drop&lt;b&gt;D&lt;/b&gt;own.DropDownBox&#39;, array(...&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;file&quot; style=&quot;background-color: transparent; border: 0px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 24px;&quot;&gt;Centos is very strict on case sensitivity. My extension folder name is with capital D &quot;dropDown&quot; and therefore I should have called the extension with capital D.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;file&quot; style=&quot;background-color: transparent; border: 0px; font-family: Verdana; font-size: 12px; font-weight: bold; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
D:\xampp\YII\framework\YiiBase.php(316)&lt;/div&gt;
&lt;div class=&quot;code&quot; style=&quot;background-color: transparent; border: 0px; font-family: Verdana; font-size: 12px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;pre style=&quot;background-color: #ffffee; border: 1px solid rgb(238, 238, 238); font-family: Menlo, Consolas, &#39;Lucida Console&#39;, monospace; font-size: 11pt; line-height: 18px; margin-bottom: 0.5em; margin-top: 0.5em; outline: 0px; padding: 0.5em; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;304&lt;/span&gt;         if($isClass &amp;amp;&amp;amp; (class_exists($className,false) || interface_exists($className,false)))
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;305&lt;/span&gt;             return self::$_imports[$alias]=$className;
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;306&lt;/span&gt; 
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;307&lt;/span&gt;         if(($path=self::getPathOfAlias($alias))!==false)
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;308&lt;/span&gt;         {
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;309&lt;/span&gt;             if($isClass)
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;310&lt;/span&gt;             {
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;311&lt;/span&gt;                 if($forceInclude)
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;312&lt;/span&gt;                 {
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;313&lt;/span&gt;                     if(is_file($path.&#39;.php&#39;))
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;314&lt;/span&gt;                         require($path.&#39;.php&#39;);
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;315&lt;/span&gt;                     else
&lt;span class=&quot;error&quot; style=&quot;background-color: #fce3e3; border: 0px; display: block; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;ln error-ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; font-weight: bold; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;316&lt;/span&gt;                         throw new CException(Yii::t(&#39;yii&#39;,&#39;Alias &quot;{alias}&quot; is invalid. Make sure it points to an existing PHP file and the file is readable.&#39;,array(&#39;{alias}&#39;=&amp;gt;$alias)));
&lt;/span&gt;&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;317&lt;/span&gt;                     self::$_imports[$alias]=$className;
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;318&lt;/span&gt;                 }
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;319&lt;/span&gt;                 else
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;320&lt;/span&gt;                     self::$classMap[$className]=$path.&#39;.php&#39;;
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;321&lt;/span&gt;                 return $className;
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;322&lt;/span&gt;             }
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;323&lt;/span&gt;             else  // a directory
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;324&lt;/span&gt;             {
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;325&lt;/span&gt;                 if(self::$_includePaths===null)
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;326&lt;/span&gt;                 {
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;327&lt;/span&gt;                     self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));
&lt;span class=&quot;ln&quot; style=&quot;background-color: transparent; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-width: 0px 1px 0px 0px; color: #999999; margin: 0px; outline: 0px; padding: 0px 0.5em 0px 0px; vertical-align: baseline;&quot;&gt;328&lt;/span&gt;                     if(($pos=array_search(&#39;.&#39;,self::$_includePaths,true))!==false)
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/5909001394761770229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/07/alias-alias-is-invalid-make-sure-it.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5909001394761770229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5909001394761770229'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/07/alias-alias-is-invalid-make-sure-it.html' title='Alias &quot;{alias}&quot; is invalid. Make sure it points to an existing PHP file and the file is readable.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-6941603310092089233</id><published>2013-07-05T02:19:00.000-07:00</published><updated>2013-07-05T02:19:05.108-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jenkins git upstream forever long"/><title type='text'>Jenkins fecthing upstream git changes take forever</title><content type='html'>&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Started by user &lt;a class=&quot;model-link&quot; href=&quot;http://192.168.1.15:8080/user/null&quot; style=&quot;color: #5c3566;&quot;&gt;anonymous&lt;/a&gt;
Building remotely on &lt;a class=&quot;model-link&quot; href=&quot;http://192.168.1.15:8080/computer/Windows%20Server%202003&quot; style=&quot;color: #5c3566;&quot;&gt;Windows Server 2003&lt;/a&gt; in workspace c:\jenkins\workspace\your_app
Checkout:your_app / c:\jenkins\workspace\your_app - hudson.remoting.Channel@4296f09:Windows Server 2003
Using strategy: Default
Last Built Revision: Revision 9dc0a0401d62dd02f41a85ce00450d23ca85114f (origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;.&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;.&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;.&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;.&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;It just never ends&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;To solve this:&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;1. Go to your jenkins server&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;2. Go to jenkins workspace and do git pull&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;3.&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;The authenticity of host &#39;192.168.1.15 (192.168.1.15)&#39; can&#39;t be established.
RSA key fingerprint is 6e:a3:e2:b5:b4:9f:02:4c:35:50:4f:8f:52:57:2b:d0.
&lt;b&gt;&lt;i&gt;Are you sure you want to continue connecting (yes/no)? yes&lt;/i&gt;&lt;/b&gt;
Warning: Permanently added &#39;192.168.1.15&#39; (RSA) to the list of known hosts.
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 11 (delta 9), reused 0 (delta 0)
Unpacking objects: 100% (11/11), done.
From 192.168.1.15:k24/obat24&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;The reason jenkins does not work is because git is asking whether you want to add the rsa key fingerprint. You need to do this once manually and after that jenkins will be able to do the git pull for you.&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/6941603310092089233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/07/jenkins-fecthing-upstream-git-changes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/6941603310092089233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/6941603310092089233'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/07/jenkins-fecthing-upstream-git-changes.html' title='Jenkins fecthing upstream git changes take forever'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-5321493603463132846</id><published>2013-07-01T08:28:00.002-07:00</published><updated>2013-07-01T08:28:55.629-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Yii Require Once Cpanel Error"/><title type='text'>Yii Require Once Error Cpanel</title><content type='html'>I tried to install Yii the first time on my cpanel hosting. However, when I try to launch my website I got the following errors:&lt;br /&gt;
&lt;br /&gt;
Warning: require_once(/home/user_name/public_html/yii/demos/your_app/../../YII/framework/yii.php) [function.require-once]: failed to open stream: No such file or directory in /home/user_name/public_html/yii/demos/your_app/index.php on line 12&lt;br /&gt;
&lt;br /&gt;
Fatal error: require_once() [function.require]: Failed opening required &#39;/home/user_name/public_html/yii/demos/your_app/../../YII/framework/yii.php&#39; (include_path=&#39;.:/usr/lib/php:/usr/local/lib/php&#39;) in /home/user_name/public_html/yii/demos/your_app/index.php on line 12&lt;br /&gt;
&lt;br /&gt;
However, when I try the Yii demo apps like hangman, it works.&lt;br /&gt;
&lt;br /&gt;
So I copied yii/demos/hangman/index.php to your_app/index.php file and it works. The reason I got the above error is because the yii path on my cpanel is different than on my local.&lt;br /&gt;
&lt;br /&gt;
My cpanel index.php (I install yii on my public_html/yii)&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-size: 11px;&quot;&gt;&amp;lt;?php

// change the following paths if necessary
$yii=dirname(__FILE__).&#39;/../../framework/yii.php&#39;;
$config=dirname(__FILE__).&#39;/protected/config/main.php&#39;;

// remove the following line when in production mode
// defined(&#39;YII_DEBUG&#39;) or define(&#39;YII_DEBUG&#39;,true);

require_once($yii);
Yii::createWebApplication($config)-&amp;gt;run();&lt;/pre&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/5321493603463132846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/07/yii-require-once-error-cpanel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5321493603463132846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5321493603463132846'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/07/yii-require-once-error-cpanel.html' title='Yii Require Once Error Cpanel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-8636979279913148956</id><published>2013-06-30T20:16:00.000-07:00</published><updated>2013-06-30T20:16:04.724-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Yii Active Records"/><title type='text'>Yii Active Records</title><content type='html'>&lt;a href=&quot;http://qatechnotes.blogspot.com/2013/06/how-to-enable-gii-tools-in-yii.html&quot; target=&quot;_blank&quot;&gt;Yii Active Record&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
PostController.php&lt;br /&gt;
&lt;br /&gt;
//Assuming we have a database table with ID, title, content, category_id and user_id as a field&lt;br /&gt;
&lt;br /&gt;
public function actionActiveRecord()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; //example of what Yii Active record can return&lt;br /&gt;
&amp;nbsp; $model = Post::model()-&amp;gt;find(&#39;id = 1&#39;);&lt;br /&gt;
&amp;nbsp; echo $model-&amp;gt;title;&lt;br /&gt;
&amp;nbsp; $model = Post::model()-&amp;gt;find(&#39;category_id = 2 AND user_id = 1&#39;);&lt;br /&gt;
&amp;nbsp; echo $model-&amp;gt;title;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; //alternatively you can use Yii Active record find by attributes&lt;br /&gt;
&amp;nbsp; $model = Post::model()-&amp;gt;findByAttributes(array(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;category_id&#39; =&amp;gt; 2,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;user_id&#39; &amp;nbsp; &amp;nbsp; =&amp;gt; 1,&lt;br /&gt;
&amp;nbsp; ));&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; echo $model-&amp;gt;title;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; //or you can use findByPk&lt;br /&gt;
&amp;nbsp; $model = Post::model()-&amp;gt;findByPk(1)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; //if you need to display more than 1 data findAll&lt;br /&gt;
&amp;nbsp; $model = Post::model()-&amp;gt;findAll(&#39;category_id = 2&#39;);&lt;br /&gt;
&amp;nbsp; foreach($model as $m){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; echo $m-&amp;gt;title.&quot;&amp;lt;br/&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; echo $m-&amp;gt;content.&quot;&amp;lt;br/&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/8636979279913148956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/yii-active-records.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/8636979279913148956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/8636979279913148956'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/yii-active-records.html' title='Yii Active Records'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-2807236085649681507</id><published>2013-06-30T01:11:00.003-07:00</published><updated>2013-06-30T01:11:30.707-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gii Tools In YII"/><title type='text'>How to enable Gii Tools In YII</title><content type='html'>&lt;a href=&quot;http://qatechnotes.blogspot.com/&quot; target=&quot;_blank&quot;&gt;Setting GII Tools in YII&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1. Open your_app/protected/config/main.php&lt;br /&gt;
2. uncomment the following th enable the Gii tool&lt;br /&gt;
/*&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;gii&#39;=&amp;gt;array(&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&#39;class&#39;=&amp;gt;&#39;system.gii.GiiModule&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&#39;password&#39;=&amp;gt;&#39;Enter Your Password Here&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;// If removed, Gii defaults to localhost only. Edit carefully to taste.&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&#39;ipFilters&#39;=&amp;gt;array(&#39;127.0.0.1&#39;,&#39;::1&#39;),&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;),&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;*/&lt;br /&gt;
&lt;br /&gt;
3. The UrlManager code needs to be uncommented as well&lt;br /&gt;
/*&lt;br /&gt;
&#39;urlManager&#39;=&amp;gt;array(&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&#39;urlFormat&#39;=&amp;gt;&#39;path&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&#39;rules&#39;=&amp;gt;array(&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&#39;&amp;lt;controller:\w+&amp;gt;/&amp;lt;id:\d+&amp;gt;&#39;=&amp;gt;&#39;&amp;lt;controller&amp;gt;/view&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&#39;&amp;lt;controller:\w+&amp;gt;/&amp;lt;action:\w+&amp;gt;/&amp;lt;id:\d+&amp;gt;&#39;=&amp;gt;&#39;&amp;lt;controller&amp;gt;/&amp;lt;action&amp;gt;&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&#39;&amp;lt;controller:\w+&amp;gt;/&amp;lt;action:\w+&amp;gt;&#39;=&amp;gt;&#39;&amp;lt;controller&amp;gt;/&amp;lt;action&amp;gt;&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;),&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;),*/&lt;br /&gt;
4. Change the Gii password&lt;br /&gt;
5. Go to your localhost/your_app/gii</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/2807236085649681507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/how-to-enable-gii-tools-in-yii.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2807236085649681507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2807236085649681507'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/how-to-enable-gii-tools-in-yii.html' title='How to enable Gii Tools In YII'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-8227975029955112456</id><published>2013-06-29T19:03:00.000-07:00</published><updated>2013-06-29T19:03:13.632-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Installing YII Framework on Windows"/><title type='text'>How To Install YII Framework on Windows</title><content type='html'>&lt;a href=&quot;http://qatechnotes.blogspot.com/&quot; target=&quot;_blank&quot;&gt;Step By Step Guide to Install YII Framework on Windows&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Installing YII Framework on Windows&lt;br /&gt;
&lt;br /&gt;
1. Download YII framework on www.yiiframework.com&lt;br /&gt;
2. Install XAMPP&lt;br /&gt;
3. Put YII framework (rename to YII) on the XAMPP folder. e.g c:/xampp/yii&lt;br /&gt;
4. Open System Properties -&amp;gt; Advanced -&amp;gt; Environment Variables -&amp;gt; Edit System Variables (PATH) -&amp;gt; Put YII path into the&lt;br /&gt;
system variables. e.g c:/xampp/YII;c:/xampp/php&lt;br /&gt;
5. Open CMD&lt;br /&gt;
6. Go to c:/xampp/htdocs/&lt;br /&gt;
7. Execute &quot;yiic webapp your_app&quot;&lt;br /&gt;
8. Automatically your_app will be generated&lt;br /&gt;
9. Open localhost/your_app&lt;br /&gt;
&lt;br /&gt;
Yiic will automatically generate your web application.&lt;br /&gt;
&lt;br /&gt;
PS C:\xampp\htdocs&amp;gt; yiic webapp your_app&lt;br /&gt;
Create a Web application under &#39;C:\xampp\htdocs\your_app&#39;? (yes|no) [no]:yes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/assets&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/css&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate css/bg.gif&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate css/form.css&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate css/ie.css&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate css/main.css&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate css/print.css&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate css/screen.css&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/images&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate index-test.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate index.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/.htaccess&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/commands&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/commands/shell&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/components&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/components/Controller.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/components/UserIdentity.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/config&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/config/console.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/config/main.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/config/test.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/controllers&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/controllers/SiteController.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/data&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/data/schema.mysql.sql&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/data/schema.sqlite.sql&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/data/testdrive.db&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/extensions&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/messages&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/migrations&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/models&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/models/ContactForm.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/models/LoginForm.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/runtime&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/tests&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/tests/bootstrap.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/tests/fixtures&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/tests/functional&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/tests/functional/SiteTest.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/tests/phpunit.xml&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/tests/report&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/tests/unit&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/tests/WebTestCase.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/views&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/views/layouts&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/views/layouts/column1.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/views/layouts/column2.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/views/layouts/main.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/views/site&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/views/site/contact.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/views/site/error.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/views/site/index.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/views/site/login.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/protected/views/site/pages&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/views/site/pages/about.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/yiic&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/yiic.bat&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate protected/yiic.php&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/themes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/themes/classic&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/themes/classic/views&lt;br /&gt;
&amp;nbsp; &amp;nbsp;generate themes/classic/views/.htaccess&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/themes/classic/views/layouts&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/themes/classic/views/site&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mkdir C:/xampp/htdocs/your_app/themes/classic/views/system&lt;br /&gt;
&lt;br /&gt;
Your application has been created successfully under C:\xampp\htdocs\your_app.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/8227975029955112456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/how-to-install-yii-framework-on-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/8227975029955112456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/8227975029955112456'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/how-to-install-yii-framework-on-windows.html' title='How To Install YII Framework on Windows'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-7744575575443491928</id><published>2013-06-26T18:39:00.002-07:00</published><updated>2013-06-26T18:39:28.794-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="startup shutdown tomcat server in mac"/><title type='text'>How to Startup Tomcat server in MAC</title><content type='html'>How to Startup/Shutdown Tomcat server in MAC&lt;br /&gt;
&lt;br /&gt;
/Library/tomcat/bin/startup.sh&lt;br /&gt;
/Library/tomcat/bin/shutdown.sh</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/7744575575443491928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/how-to-startup-tomcat-server-in-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7744575575443491928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7744575575443491928'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/how-to-startup-tomcat-server-in-mac.html' title='How to Startup Tomcat server in MAC'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-2829924497094686514</id><published>2013-06-22T07:18:00.000-07:00</published><updated>2013-06-22T07:18:05.631-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="display .gitignore file in netbeans"/><title type='text'>How to display .gitignore file in netbeans</title><content type='html'>To display .gitignore file in netbeans simply modify the miscellaneous options in:&lt;br /&gt;
&lt;br /&gt;
Tools-&amp;gt;Options-&amp;gt;miscellaneous -&amp;gt;Files&lt;br /&gt;
&lt;br /&gt;
And change the Files ignore by the IDE:&lt;br /&gt;
From:&lt;br /&gt;
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(htaccess)$).*$&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(htaccess|gitignore)$).*$</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/2829924497094686514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/display-gitignore-netbeans.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2829924497094686514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2829924497094686514'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/display-gitignore-netbeans.html' title='How to display .gitignore file in netbeans'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-7825317184735544366</id><published>2013-06-21T01:27:00.000-07:00</published><updated>2013-06-21T01:27:00.138-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css input button text height"/><title type='text'>CSS style submit button height</title><content type='html'>To adjust the text on the submit input button use the following CSS style:&lt;br /&gt;
&lt;br /&gt;
line-height: 2;</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/7825317184735544366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/css-style-submit-button-height.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7825317184735544366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7825317184735544366'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/css-style-submit-button-height.html' title='CSS style submit button height'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-3256789767978436914</id><published>2013-06-03T23:41:00.002-07:00</published><updated>2013-06-03T23:41:50.056-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unable to create Git index.lock File Exists"/><title type='text'>Unable to create Git index.lock File Exists</title><content type='html'>fatal: Unable to create &#39;/Users/username/Sites/testsite/.git/index.lock&#39;: File exists.&lt;br /&gt;
&lt;br /&gt;
If no other git process is currently running, this probably means a&lt;br /&gt;
git process crashed in this repository earlier. Make sure no other git&lt;br /&gt;
process is running and remove the file manually to continue.&lt;br /&gt;
&lt;br /&gt;
Just delete the index.lock file&lt;br /&gt;
&lt;br /&gt;
rm /Users/username/Sites/testsite/.git/index.lock&lt;br /&gt;
git pull</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/3256789767978436914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/unable-to-create-git-indexlock-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/3256789767978436914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/3256789767978436914'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/unable-to-create-git-indexlock-file.html' title='Unable to create Git index.lock File Exists'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-5301304798712248366</id><published>2013-06-02T23:57:00.001-07:00</published><updated>2013-06-02T23:57:42.702-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Access Log"/><category scheme="http://www.blogger.com/atom/ns#" term="Apache Error Log"/><title type='text'>Apache Access Log, Error Log in Mac</title><content type='html'>is located in&lt;br /&gt;
&lt;br /&gt;
tail - f /var/log/apache2/access_log&lt;br /&gt;
tail - f /var/log/apache2/error_log</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/5301304798712248366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/apache-access-log-error-log-in-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5301304798712248366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5301304798712248366'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/06/apache-access-log-error-log-in-mac.html' title='Apache Access Log, Error Log in Mac'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-4776535433570600036</id><published>2013-05-31T21:23:00.002-07:00</published><updated>2013-05-31T21:23:59.511-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to fix PHP errors related to timezone (function.strtotime and function.date)"/><title type='text'>PHP error - It is not safe to rely on the system&#39;s timezone settings</title><content type='html'>To fix the bellow error:&lt;br /&gt;
&lt;br /&gt;
1. Find you php.ini files&lt;br /&gt;
2. &amp;nbsp;to see your php.ini files- you need to pass in the INFO_GENERAL parameters as without the parameters you will get the same error as phpinfo() will trigger the timezone issue settings&lt;br /&gt;
3. Edit your php.ini files and go to&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;; Defines the default timezone used by the date functions

; http://php.net/date.timezone

;date.timezone =

&lt;/pre&gt;
&lt;br /&gt;
Change to what ever your time zone is. For a list of php timezone please visit http://id1.php.net/manual/en/timezones.asia.php&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;; Defines the default timezone used by the date functions

; http://php.net/date.timezone

date.timezone = &quot;Asia/Dubai&quot;

&lt;/pre&gt;
&lt;br /&gt;
Ps: don&#39;t forget to delete the &quot;;&quot;&lt;br /&gt;
&lt;br /&gt;
4. Restart your apache server. if you are using mac use &quot;sudo apachectl restart&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
date(): It is not safe to rely on the system&#39;s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#39;Asia/Dubai&#39; for &#39;WIT/7.0/no DST&#39; instead</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/4776535433570600036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/it-is-not-safe-to-rely-on-system-timezone-settings-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/4776535433570600036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/4776535433570600036'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/it-is-not-safe-to-rely-on-system-timezone-settings-php.html' title='PHP error - It is not safe to rely on the system&#39;s timezone settings'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-6280609427443019754</id><published>2013-05-31T20:09:00.001-07:00</published><updated>2013-05-31T20:10:49.743-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="YII Webserver Error"/><title type='text'>CException CAssetManager is invalid</title><content type='html'>To fix the below error:&lt;br /&gt;
&amp;nbsp;1. Set the group permission to WWW using&lt;br /&gt;
&amp;nbsp;sudo chown user:www assets (mac)&lt;br /&gt;
&amp;nbsp;sudo chown user.www assets (linux)

&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;------------------
Websever Error

CException

CAssetManager.basePath &quot;/Users/user/Sites/website-code/assets&quot; is invalid. Please make sure the directory exists and is writable by the Web server process.

/Users/user/YII/framework/web/CAssetManager.php(138)

126     }
127 
128     /**
129      * Sets the root directory storing published asset files.
130      * @param string $value the root directory storing published asset files
131      * @throws CException if the base path is invalid
132      */
133     public function setBasePath($value)
134     {
135         if(($basePath=realpath($value))!==false &amp;amp;&amp;amp; is_dir($basePath) &amp;amp;&amp;amp; is_writable($basePath))
136             $this-&amp;gt;_basePath=$basePath;
137         else
138             throw new CException(Yii::t(&#39;yii&#39;,&#39;CAssetManager.basePath &quot;{path}&quot; is invalid. Please make sure the directory exists and is writable by the Web server process.&#39;,
139                 array(&#39;{path}&#39;=&amp;gt;$value)));
140     }
141 
142     /**
143      * @return string the base url that the published asset files can be accessed.
144      * Note, the ending slashes are stripped off. Defaults to &#39;/AppBaseUrl/assets&#39;.
145      */
146     public function getBaseUrl()
147     {
148         if($this-&amp;gt;_baseUrl===null)
149         {
150             $request=Yii::app()-&amp;gt;getRequest();
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/6280609427443019754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/cexception-cassetmanager-is-invalid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/6280609427443019754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/6280609427443019754'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/cexception-cassetmanager-is-invalid.html' title='CException CAssetManager is invalid'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-4864300567035341412</id><published>2013-05-27T02:22:00.002-07:00</published><updated>2013-05-27T02:22:45.802-07:00</updated><title type='text'>Windows Batch File Not Executing</title><content type='html'>I use jenkins to automate my cucumber test automation.

I use windows to execute the batch command in Jenkins

&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;bundle install --path vendor
set test_env=test_server 
bundle exec cucumber features\regression\dashboard.feature
&lt;/pre&gt;
&lt;br /&gt;
However, only the first line is executed by jenkins. It turns out that jenkins creates a .bat file for those above commands and jenkins calls the commands as 
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;cmd \c call hudson.bat
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
And apparently the cmd &quot;Call&quot; command only works on the first command.

To fix the issue simply append the keyword &quot;call&quot; on every command.&lt;br /&gt;
&lt;br /&gt;
The solution:

&lt;br /&gt;
&lt;pre&gt;call bundle install --path vendor
set test_env=test_server
call bundle exec cucumber features\regression\dashboard.feature
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/4864300567035341412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/windows-batch-file-not-executing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/4864300567035341412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/4864300567035341412'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/windows-batch-file-not-executing.html' title='Windows Batch File Not Executing'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-8355017004440756125</id><published>2013-05-27T02:20:00.000-07:00</published><updated>2013-05-27T02:20:27.676-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Jenkins does not Execute all Windows Batch Command"/><title type='text'>Jenkins does not execute All Windows Batch Command</title><content type='html'>I use jenkins to automate my cucumber test automation.

I use windows to execute the batch command in Jenkins

&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;bundle install --path vendor
set test_env=test_server 
bundle exec cucumber features\regression\dashboard.feature
&lt;/pre&gt;
&lt;br /&gt;
However, only the first line is executed by jenkins. It turns out that jenkins creates a .bat file for those above commands and jenkins calls the commands as 
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;cmd \c call hudson.bat
&lt;/pre&gt;
&lt;pre&gt;
&lt;/pre&gt;
And apparently the cmd &quot;Call&quot; command only works on the first command.

To fix the issue simply append the keyword &quot;call&quot; on every command.&lt;br /&gt;
&lt;br /&gt;
The solution:

&lt;br /&gt;
&lt;pre&gt;call bundle install --path vendor
set test_env=test_server
call bundle exec cucumber features\regression\dashboard.feature
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/8355017004440756125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/jenkins-not-execute-windows-batch-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/8355017004440756125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/8355017004440756125'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/jenkins-not-execute-windows-batch-command.html' title='Jenkins does not execute All Windows Batch Command'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-2270945431086406112</id><published>2013-05-24T01:34:00.003-07:00</published><updated>2013-05-24T01:36:17.808-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cannot run program sh in jenkins"/><title type='text'>Cannot run program sh in jenkins</title><content type='html'>&lt;pre style=&quot;background-color: white; font-size: 11.111111640930176px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Error from Jenkins console:&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11.111111640930176px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11.111111640930176px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;[cuke-test] $ sh -xe C:\Users\username\AppData\Local\Temp\4\hudson4066016990068916818.sh
The system cannot find the file specified
FATAL: command execution failed
&lt;a class=&quot;lowkey&quot; href=&quot;http://stacktrace.jenkins-ci.org/search?query=java.io.IOException&quot; style=&quot;text-decoration: none;&quot;&gt;java.io.IOException&lt;/a&gt;: Cannot run program &quot;sh&quot; (in directory &quot;c:\jenkins\workspace\&lt;span style=&quot;font-size: 11.111111640930176px;&quot;&gt;cuke&lt;/span&gt;&lt;span style=&quot;font-size: 11.111111640930176px;&quot;&gt;-test&quot;): CreateProcess error=2, The system cannot find the file specified&lt;/span&gt;
 at java.lang.ProcessBuilder.start(Unknown Source)
 at hudson.Proc$LocalProc.&amp;lt;init&amp;gt;(Proc.java:244)
 at hudson.Proc$LocalProc.&amp;lt;init&amp;gt;(Proc.java:216)
 at hudson.Launcher$LocalLauncher.launch(Launcher.java:763)
 at hudson.Launcher$ProcStarter.start(Launcher.java:353)
 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:988)
 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:955)
 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
 at hudson.remoting.Request$2.run(Request.java:326)
 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at hudson.remoting.Engine$1$1.run(Engine.java:58)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
 at java.lang.ProcessImpl.create(Native Method)
 at java.lang.ProcessImpl.&amp;lt;init&amp;gt;(Unknown Source)
 at java.lang.ProcessImpl.start(Unknown Source)
 ... 17 more
Build step &#39;Execute shell&#39; marked build as failure&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11.111111640930176px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11.111111640930176px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Solution:&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; font-size: 11.111111640930176px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;- It turns out that I copied a job from a linux slave and therefore the default build step that was used was &quot;Execute shell&quot;. To fix the issue just change the &quot;Execute shell&quot; to &quot;Execute Windows batch command&quot;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/2270945431086406112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/cannot-run-program-sh-in-jenkins.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2270945431086406112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2270945431086406112'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/cannot-run-program-sh-in-jenkins.html' title='Cannot run program sh in jenkins'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-241427020755857950</id><published>2013-05-07T18:24:00.006-07:00</published><updated>2013-05-07T18:26:58.050-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Git Setup Remote Tracking Branch"/><title type='text'>Git Setup Remote Tracking Branch</title><content type='html'>&lt;br /&gt;
&lt;b&gt;Git global setup&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
git config --global user.name &quot;Test User&quot;&lt;br /&gt;
git config --global user.email &quot;testuser@gmail.com&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Create Repository&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
mkdir testproject&lt;br /&gt;
cd testproject&lt;br /&gt;
git init&lt;br /&gt;
touch README&lt;br /&gt;
git add README&lt;br /&gt;
git commit -m &#39;first commit&#39;&lt;br /&gt;
git remote add origin git@gitlab.testserver-123.testuser/testprojects.git&lt;br /&gt;
git push -u origin master&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Existing Git Repo?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
cd existing_git_repo&lt;br /&gt;
git remote add origin git@gitlab.testserver-123.testuser/testprojects.git&lt;br /&gt;
git push -u origin master</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/241427020755857950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/git-setup-remote-tracking-branch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/241427020755857950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/241427020755857950'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/git-setup-remote-tracking-branch.html' title='Git Setup Remote Tracking Branch'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-2321507751327311000</id><published>2013-05-03T00:56:00.001-07:00</published><updated>2013-05-03T00:56:33.565-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Capybara Check and select drop down option"/><title type='text'>Capybara Check Select Options</title><content type='html'>To check Select options using Capybara&lt;br /&gt;
&lt;br /&gt;
To choose the select option:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;select(&#39;Morning&#39;, :from =&amp;gt; &#39;Shift&#39;)
&lt;/pre&gt;
&lt;br /&gt;
To check the value of the select options:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;page.has_select?(&#39;Shift&#39;, :selected =&amp;gt; &#39;Morning&#39;)
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/2321507751327311000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/capybara-check-select-options.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2321507751327311000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/2321507751327311000'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/05/capybara-check-select-options.html' title='Capybara Check Select Options'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-7291809311651379023</id><published>2013-03-28T01:06:00.003-07:00</published><updated>2013-03-28T01:06:55.358-07:00</updated><title type='text'>Creating GIT branch and merge</title><content type='html'>&lt;br /&gt;
&lt;pre style=&quot;border: 0px; color: #070707; font-size: 14px; line-height: 1.2em; margin-bottom: 1em; margin-left: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;--- to create:&lt;/pre&gt;
&lt;pre style=&quot;border: 0px; color: #070707; font-size: 14px; line-height: 1.2em; margin-bottom: 1em; margin-left: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;git checkout master
&lt;span class=&quot;gp&quot; style=&quot;border: 0px; color: navy; font-family: inherit; font-style: inherit; font-weight: bold; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$&lt;/span&gt; git checkout -b new-branch&lt;/pre&gt;
&lt;pre style=&quot;border: 0px; color: #070707; font-size: 14px; line-height: 1.2em; margin-bottom: 1em; margin-left: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;--- to merge&lt;/pre&gt;
&lt;pre style=&quot;border: 0px; color: #070707; font-size: 14px; line-height: 1.2em; margin-bottom: 1em; margin-left: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;git commit -am &quot;commit file in branch&quot;&lt;/pre&gt;
&lt;pre style=&quot;border: 0px; color: #070707; font-size: 14px; line-height: 1.2em; margin-bottom: 1em; margin-left: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;git checkout master&lt;/pre&gt;
&lt;pre style=&quot;border: 0px; color: #070707; font-size: 14px; line-height: 1.2em; margin-bottom: 1em; margin-left: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;git merge new-branch&lt;/pre&gt;
&lt;pre style=&quot;border: 0px; color: #070707; font-size: 14px; line-height: 1.2em; margin-bottom: 1em; margin-left: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/7291809311651379023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/03/creating-git-branch-and-merge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7291809311651379023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7291809311651379023'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/03/creating-git-branch-and-merge.html' title='Creating GIT branch and merge'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-5740213197304957707</id><published>2013-03-19T06:47:00.001-07:00</published><updated>2013-03-19T06:47:29.585-07:00</updated><title type='text'>Resizing image to create thumbnail in MAC</title><content type='html'>to resize an image or images in a directory use the following command:&lt;br /&gt;
&lt;br /&gt;
//to resize all of the images in a directory to 245x245 size&lt;br /&gt;
sips --resampleHeightWidth 245 245 *</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/5740213197304957707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/03/resizing-image-to-create-thumbnail-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5740213197304957707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5740213197304957707'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/03/resizing-image-to-create-thumbnail-in.html' title='Resizing image to create thumbnail in MAC'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-5564875547469446231</id><published>2013-01-22T19:21:00.001-08:00</published><updated>2013-01-22T19:21:49.355-08:00</updated><title type='text'>How to remove custom Alexa toolbar from Chrome extension completely</title><content type='html'>I created a custom free Alexa toolbar and installed it as an extension on my Chrome. &lt;br /&gt;&lt;br /&gt;So whenever I open my chrome, the custom alexa extension appears as another menu on chrome. However, the extension apparently makes my browser test automation to fail. &lt;br /&gt;I remove the extension manually from the chrome setting. I thought the extension is removed completely.&lt;br /&gt;&lt;br /&gt;However, it turns out that Alexa still saves the extension on your hardisk. Whenever, my test automation runs, it loads up the extension to chrome again. I tried to remove it again, but it always appears. This is very annoying. &lt;br /&gt;&lt;br /&gt;To find the location of the Alexa chrome extension just open regedit and search for &quot;Alexa&quot; and remove any of alexa information.&lt;br /&gt;&lt;br /&gt;For me the culprit is stored in &quot;C:\Users\&amp;lt;username&amp;gt;\AppData\Local\Alexa\atbpg-MSXGM-1.2.crx&quot;. And this file will be loaded by chrome automatically. &lt;br /&gt;&lt;br /&gt;I deleted the file and the Alexa chrome extension never comes up again.</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/5564875547469446231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2013/01/how-to-remove-custom-alexa-toolbar-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5564875547469446231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/5564875547469446231'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2013/01/how-to-remove-custom-alexa-toolbar-from.html' title='How to remove custom Alexa toolbar from Chrome extension completely'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-7081348314720788436</id><published>2012-11-07T15:10:00.002-08:00</published><updated>2012-11-07T15:10:28.689-08:00</updated><title type='text'>Internal error in Forbidden Patterns Policy</title><content type='html'>&lt;br /&gt;
Microsoft Visual Studio&lt;br /&gt;
&lt;br /&gt;
This override warning in VS occur when editing files&lt;br /&gt;
&lt;br /&gt;
Internal error in Forbidden Patterns Policy.&lt;br /&gt;
Error Loading The Forbidden Patterns Policy policy (The policy assembly &#39;Microsoft.TeamFoundation.PowerTools.CheckinPolicies.ForbiddenPatternsPolicy, Version-10.0.0.0,&lt;br /&gt;
Culture=neutral, PublicKeyToken=b03f5fd23423&#39; is not registered.). Installation instructions:&lt;br /&gt;
&lt;br /&gt;
Error Loading The Forbidden Patterns Policy policy (The policy assembly &#39;Microsoft.TeamFoundation.PowerTools.CheckinPolicies.ForbiddenPatternsPolicy, Version-10.0.0.0,&lt;br /&gt;
Culture=neutral, PublicKeyToken=b03f5fd23423&#39; is not registered.). Installation instructions:&lt;br /&gt;
&lt;br /&gt;
To solve this please ensure you have the TFS Powertools extensions for Visual Studio installed.&lt;br /&gt;
&lt;br /&gt;
Goto tools-&amp;gt;extension manager and you should find it in the online section.&lt;br /&gt;
&lt;br /&gt;
http://visualstudiogallery.msdn.microsoft.com/b1ef7eb2-e084-4cb8-9bc7-06c3bad9148f&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/7081348314720788436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2012/11/internal-error-in-forbidden-patterns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7081348314720788436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7081348314720788436'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2012/11/internal-error-in-forbidden-patterns.html' title='Internal error in Forbidden Patterns Policy'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7531788851905887292.post-7524140464169449934</id><published>2012-11-07T04:29:00.002-08:00</published><updated>2012-11-07T04:31:09.091-08:00</updated><title type='text'>Rails SMTP email setup</title><content type='html'>I am using rails 3.2.6.
&lt;br&gt;&lt;br&gt;
To setup SMTP email using ruby:
&lt;br&gt;&lt;br&gt;
1. Add the following code into the /config/environment.rb
&lt;br&gt;&lt;br&gt;
require File.expand_path(&#39;../application&#39;, __FILE__)
&lt;br&gt;&lt;br&gt;
# Initialize the rails application
AppName::Application.initialize!
&lt;br&gt;&lt;br&gt;
ActionMailer::Base.delivery_method = :smtp
&lt;br&gt;&lt;br&gt;
ActionMailer::Base.smtp_settings = {&lt;br&gt;
  :address  =&gt; &quot;smtp.host.com&quot;,&lt;br&gt;
  :port  =&gt; 587,&lt;br&gt;
  :user_name  =&gt; &quot;email host&quot;,&lt;br&gt;
  :password  =&gt; &quot;email password hot&quot;,&lt;br&gt;
  :authentication  =&gt; :plain,&lt;br&gt;
  :enable_starttls_auto =&gt; &quot;true&quot;&lt;br&gt;
}
&lt;br&gt;&lt;br&gt;
ActionMailer::Base.raise_delivery_errors = true
&lt;br&gt;&lt;br&gt;
2. Create /app/mailers/appnamemailers.rb with the following content&lt;br&gt;
class Appnamemailers &lt; ActionMailer::Base&lt;br&gt;
  default :from =&gt; &quot;email@hostemail.comd&quot;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
  def welcome_email()&lt;br&gt;
    @url  = &quot;http://www.example.com&quot;&lt;br&gt;
    mail(:to =&gt; &quot;test@gmail.com&quot;, :subject =&gt; &quot;Welcome to rails app&quot;)&lt;br&gt;
  end&lt;br&gt;
end&lt;br&gt;
2. To test run rails console&lt;br&gt;
3. Execute the command Appnamemailers.welcome_email().deliver&lt;br&gt;


</content><link rel='replies' type='application/atom+xml' href='http://qatechnotes.blogspot.com/feeds/7524140464169449934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qatechnotes.blogspot.com/2012/11/rails-smtp-email-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7524140464169449934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7531788851905887292/posts/default/7524140464169449934'/><link rel='alternate' type='text/html' href='http://qatechnotes.blogspot.com/2012/11/rails-smtp-email-setup.html' title='Rails SMTP email setup'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>