<?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-3267858281892295063</id><updated>2024-02-08T08:49:34.677-08:00</updated><category term="automator"/><category term="iterm"/><category term="script"/><category term="yii ajax"/><title type='text'>mental issues</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/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>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3267858281892295063.post-4363958911826120036</id><published>2013-03-16T16:02:00.000-07:00</published><updated>2013-03-16T16:02:47.105-07:00</updated><title type='text'>Apache+php+mysql on Mac OS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;brush: php&quot;&gt;All process could be easely found in the web. For example read this http://jason.pureconcepts.net/2012/10/install-apache-php-mysql-mac-os-x/ or this http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;
&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;What else you may need todo:&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;1. edit User and Group in /private/etc/apache2/httpd.conf or you could get some strange permission errors. find in you httpd.conf and change to this:&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;User username&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;Group #-1&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;2. Edit you /private/etc/php.ini ... I just copied my old one :)&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/4363958911826120036/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2013/03/apachephpmysql-on-mac-os.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/4363958911826120036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/4363958911826120036'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2013/03/apachephpmysql-on-mac-os.html' title='Apache+php+mysql on Mac OS'/><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-3267858281892295063.post-5598854764787689751</id><published>2013-01-14T14:39:00.004-08:00</published><updated>2013-01-14T14:39:43.052-08:00</updated><title type='text'>python .isalpha() for utf-8</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;&lt;span style=&quot;font-family: Times;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; s=&#39;ахалаймахалай&#39;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; s.isalpha()&lt;br /&gt;
False&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; unicode(s.decode(&#39;utf-8&#39;)).isalpha()&lt;br /&gt;
True&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/5598854764787689751/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2013/01/python-isalpha-for-utf-8.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/5598854764787689751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/5598854764787689751'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2013/01/python-isalpha-for-utf-8.html' title='python .isalpha() for utf-8'/><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-3267858281892295063.post-1531682377406333653</id><published>2012-10-21T06:52:00.001-07:00</published><updated>2012-10-21T06:54:09.500-07:00</updated><title type='text'>Yii Tips: Add user role to accessRules() in controller</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
By default there is no such thing as &#39;role&#39;.&lt;br /&gt;
&lt;br /&gt;
To add role to accessRules() in controller you could use expressions... smth like this: &#39;expression&#39; =&amp;gt; function(){return Yii::app()-&amp;gt;user-&amp;gt;getState(&quot;role&quot;) == &#39;admin&#39;;}&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;My accessRules():&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
public function accessRules() &lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return array(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; array(&#39;allow&#39;, &amp;nbsp;// allow all users to perform &#39;index&#39; and &#39;view&#39; actions &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;actions&#39;=&amp;gt;array(&#39;index&#39;,&#39;view&#39;),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;users&#39;=&amp;gt;array(&#39;*&#39;), &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ), &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; array(&#39;allow&#39;, // allow authenticated user to perform &#39;create&#39; and &#39;update&#39; actions &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;actions&#39;=&amp;gt;array(&#39;create&#39;,&#39;update&#39;),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;users&#39;=&amp;gt;array(&#39;@&#39;), &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; array(&#39;allow&#39;, // allow admin user to perform &#39;admin&#39; and &#39;delete&#39; actions &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;actions&#39;=&amp;gt;array(&#39;admin&#39;,&#39;delete&#39;),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;//Check if user role is admin &amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;&#39;expression&#39; =&amp;gt; function(){return Yii::app()-&amp;gt;user-&amp;gt;getState(&quot;role&quot;) == &#39;admin&#39;;},&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ), &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; array(&#39;deny&#39;, &amp;nbsp;// deny all users &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;users&#39;=&amp;gt;array(&#39;*&#39;), &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ), &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BTW, you need to set state for user&#39;s role in userIdentity component in&amp;nbsp;authenticate..&amp;nbsp;like this $this-&amp;gt;setState(&#39;role&#39;, $user-&amp;gt;role);&lt;br /&gt;
&lt;u&gt;&lt;b&gt;My authenticate() in userIdentity.php:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
public function authenticate() &lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $user = User::model()-&amp;gt;findByAttributes(array(&#39;email&#39;=&amp;gt;$this-&amp;gt;username));&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($user===null) { // No user found!&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;errorCode=self::ERROR_USERNAME_INVALID;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if ($user-&amp;gt;password !== md5($this-&amp;gt;password) ) { // Invalid password!&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;errorCode=self::ERROR_PASSWORD_INVALID;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else { // Okay! &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;errorCode=self::ERROR_NONE;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;setState(&#39;email&#39;, $user-&amp;gt;email);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;setState(&#39;username&#39;, $user-&amp;gt;username);&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Store the role in a session:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;$this-&amp;gt;setState(&#39;role&#39;, $user-&amp;gt;role);&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;_id = $user-&amp;gt;id; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return !$this-&amp;gt;errorCode; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/1531682377406333653/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/10/yii-tips-add-user-role-to-accessrules.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/1531682377406333653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/1531682377406333653'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/10/yii-tips-add-user-role-to-accessrules.html' title='Yii Tips: Add user role to accessRules() in controller'/><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-3267858281892295063.post-3093764440847613479</id><published>2012-10-20T14:17:00.001-07:00</published><updated>2013-07-28T13:51:54.185-07:00</updated><title type='text'>My Vim Cheat Sheet</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;b&gt;
&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;b&gt;&lt;u&gt;COMMAND mode:&lt;/u&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;:ci( - replace text between brackets&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;:ci&quot; - replace text between quotes&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctrl+g - see where you are&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;g ctrl+g - advanced where you are&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;`. - jum to location of last modification&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;dtx - deletes upto and including the next x&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;dftx - deletes downto the previous x&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;:%s/TEXT//ng - count the number of matches&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;:e - reload current file (similar to :edit)&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;:set ft=html - change filetype (for example, to indent html inside php file)&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;b&gt;&lt;u&gt;Splited views (also helpfull with NERDTree plugin):&lt;/u&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctrl+ww - toogle between splited views &lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctrl+wv - split vertical&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctrl+wh - split horizontal&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;b&gt;&lt;u&gt;INSERT mode:&lt;/u&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctrl+t - insert indent to current line&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctrl+d - delet indent to current line&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctr+y - insert chars frome above line&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctrl+e - insert chars frome below line&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctrl+x xtrl+o - omni autocomplete(ctrl+n, ctrl+p to move next/previos line in omni autocomplete)&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;b&gt;&lt;u&gt;VISUAL mode:&lt;/u&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;ctrl+v - enter VISUAL BLOCK selection mode&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;Adding smth to multipple lines: select VISUAL BLOCK, press &quot;I&quot; (capital i) type smth you want to add (it appears only in first line which were selected), hit &quot;ESC&quot;... tadam chars you&#39;ve entered added to every line which been previously selected. BTW: instead of &quot;I&quot; you could type &quot;c&quot; - it will cut selected blocks and qfter that you could type anything you want (also helpfull to uncomment block of code)&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;...to be continued&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;b&gt;&lt;u&gt;Other stuff:&lt;/u&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 18px; white-space: normal;&quot;&gt;:cd %:p:h &#39; &amp;nbsp;- will change the working directory to the dir for current editing file&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;span style=&quot;font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; white-space: normal;&quot;&gt;J - will join that line and the next line together (shift+j)&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 18px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3267858281892295063#&quot; name=&quot;ToggleMore&quot;&gt;&lt;/a&gt;&lt;span class=&quot;collapse&quot;&gt;

  &lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/3093764440847613479/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/10/my-vim-cheetshit.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3093764440847613479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3093764440847613479'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/10/my-vim-cheetshit.html' title='My Vim Cheat Sheet'/><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-3267858281892295063.post-5441722336821963881</id><published>2012-10-19T14:29:00.004-07:00</published><updated>2012-10-19T14:41:04.015-07:00</updated><title type='text'>Mac OS terminal/iterm tips (autocomplete, ignore case etc.)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;add this to your ~/.inputrc:&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;#Pressing alt+left/right arrow force cursor to jump 1 word left/right&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;&quot;\e[1;9D&quot;: backward-word
&quot;\e[1;9C&quot;: forward-word&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;#this will print all ambiguous variant if you presse TAB&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;set show-all-if-ambiguous ON&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;#ignore case in files/folders names in terminal
set completion-ignore-case on
#tab cycles through completion&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;TAB: menu-complete&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;#shift+TAB to show all ambiguous variant
&quot;\e[Z&quot;: complete &lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/5441722336821963881/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/10/mac-os-terminaliterm-tips-autocomplete.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/5441722336821963881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/5441722336821963881'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/10/mac-os-terminaliterm-tips-autocomplete.html' title='Mac OS terminal/iterm tips (autocomplete, ignore case etc.)'/><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-3267858281892295063.post-7344040850847463751</id><published>2012-10-15T15:52:00.003-07:00</published><updated>2012-10-19T14:36:34.323-07:00</updated><title type='text'>Install rockmongo in MAMP in mac os X</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot; style=&quot;text-align: left;&quot;&gt;&lt;i&gt;You should have mongodb installed and running on standart port. mamp instaled.
Turn off MAMP (if it&#39;s running)
Download sources from https://github.com/mongodb/mongo-php-driver to /Users/your_username/Temp/
Just do like written here in Installation section: https://github.com/mongodb/mongo-php-driver
phpize
./configure
make
sudo make 

after that you will have mongo.so and mongo.la somewhere 
in /Users/your_username/Temp/mongodb-mongo-php-driver-622828c/modules/

Then copy mongo.so and mongo.la to your MAMP (path should be smth like this):
/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/

Edit your php.ini, it will be somwhere here: 
/Applications/MAMP/bin/php/php5.3.6/conf). Add this line to it&#39;s extension section:
extension=mongo.so

Turn on MAMP
Check phpinfo at http://localhost/MAMP/ (search for &#39;mongo&#39;)
Go to rockmongo http://localhost/rockmongo
Thanks to: 
http://www.joyceleong.com/log/mongodb-with-mamp-on-os-x/
https://github.com/mongodb/mongo-php-driver&lt;/i&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/7344040850847463751/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/10/install-rockmongo-in-mamp-in-mac-os-x.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/7344040850847463751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/7344040850847463751'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/10/install-rockmongo-in-mamp-in-mac-os-x.html' title='Install rockmongo in MAMP in mac os X'/><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-3267858281892295063.post-7743019167420905665</id><published>2012-10-14T10:29:00.001-07:00</published><updated>2012-10-19T14:37:13.728-07:00</updated><title type='text'>Writing An Hadoop MapReduce Program In Python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;brush: php&quot;&gt;Great article: &lt;a href=&quot;http://www.michael-noll.com/tutorials/writing-an-hadoop-mapreduce-program-in-python/&quot; target=&quot;_blank&quot;&gt;Writing An Hadoop MapReduce Program In Python&lt;/a&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;brush: javascript&quot;&gt;My bash history (replace &quot;const&quot; with your username):
  543  cd /usr/local/Cellar/hadoop/1.0.3/libexec
  544  hadoop dfs -copyFromLocal /Users/const/Dev/PrjGit/mrpy/tmp/ /user/const/mrpy
  545  hadoop dfs -la
  546  hadoop dfs -ls
  547  hadoop dfs -ls /user/const/mrpy/
  550  jar /usr/local/Cellar/hadoop/1.0.3/libexec/contrib/streaming/hadoop-*streaming*.jar -file /Users/const/Dev/PrjGit/mrpy/mapper.py -mapper /Users/const/Dev/PrjGit/mrpy/mapper.py -file /Users/const/Dev/PrjGit/mrpy/reducer.py -reducer /Users/const/Dev/PrjGit/mrpy/reducer.py -input /user/const/mrpy/* -output /user/const/mrpy-output
  551  hadoop dfs -ls /user/const/mrpy-output
  552  hadoop dfs -cat /user/const/mrpy-output/part-00000&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/7743019167420905665/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/10/writing-hadoop-mapreduce-program-in.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/7743019167420905665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/7743019167420905665'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/10/writing-hadoop-mapreduce-program-in.html' title='Writing An Hadoop MapReduce Program In Python'/><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-3267858281892295063.post-50499690725106209</id><published>2012-10-09T07:31:00.002-07:00</published><updated>2012-10-21T03:18:07.675-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="automator"/><category scheme="http://www.blogger.com/atom/ns#" term="iterm"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><title type='text'>Automator script: open chosen/selected folder in iTerm terminal </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;brush: php&quot;&gt;&lt;pre style=&quot;; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-family: Monaco, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;Here is the AppleScript:
on run {input, parameters}
   tell application &quot;iTerm&quot;
   activate
      repeat with someFilename in input
         make new terminal
         tell the first terminal
            activate current session
            launch session &quot;Default Session&quot;
            tell the last session
               set thePath to (quoted form of POSIX path of ¬
                  (someFilename as string))
               set cdCommand to &quot;if [ -d &quot; &amp;amp; thePath &amp;amp; &quot; ]; then cd &quot; ¬ 
                  &amp;amp; thePath &amp;amp; &quot;; else cd `dirname &quot; &amp;amp; thePath &amp;amp; ¬ 
                  &quot;`; fi; clear&quot;
               write text cdCommand
            end tell
         end tell
      end repeat
   end tell
   return input
end run&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Monaco, Courier, monospace; font-size: 12px;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/50499690725106209/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/10/automator-script-open-chosenselected.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/50499690725106209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/50499690725106209'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/10/automator-script-open-chosenselected.html' title='Automator script: open chosen/selected folder in iTerm terminal '/><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-3267858281892295063.post-5456099740965780168</id><published>2012-10-06T15:01:00.001-07:00</published><updated>2012-10-21T03:19:28.106-07:00</updated><title type='text'>Iterm2 how to setup word jumpig using alt+left alt+right arrow</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
In Preferences-&amp;gt;Profiles-&amp;gt;Keys:&lt;br /&gt;
&lt;br /&gt;
find &quot;option ←&quot; and edit its &quot;action&quot; like this: select &quot;send escape sequence&quot; and in the &quot;escape sequence box&quot; enter &quot;b&quot;&lt;br /&gt;
&lt;br /&gt;
find &quot;option &amp;nbsp;→&quot; and edit its &quot;action&quot; like this: select &quot;send escape sequence&quot; and in the &quot;escape sequence box&quot; enter &quot;f&quot;&lt;br /&gt;
&lt;br /&gt;
Add this to your ~/.inputrc:&lt;br /&gt;
#Pressing alt+left/right arrow force cursor to jump 1 word left/right&lt;br /&gt;
&quot;\e[1;9D&quot;: backward-word&lt;br /&gt;
&quot;\e[1;9C&quot;: forward-word&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/5456099740965780168/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/10/iterm2-how-to-setup-word-jumpig-using.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/5456099740965780168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/5456099740965780168'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/10/iterm2-how-to-setup-word-jumpig-using.html' title='Iterm2 how to setup word jumpig using alt+left alt+right arrow'/><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-3267858281892295063.post-6100355472735207107</id><published>2012-03-16T14:57:00.004-07:00</published><updated>2012-03-16T15:56:08.669-07:00</updated><title type='text'>Python MySQLdb with MAMP</title><content type='html'>U need xCode, mySQL instaled and MySQL-python-1.2.3&lt;br /&gt;
Also you need MAMP instaled.&lt;br /&gt;
&lt;br /&gt;
in MySQL-python-1.2.3 folder in site.cfg file add mysql_config path:&lt;br /&gt;
# The path to mysql_config.&lt;br /&gt;
# Only use this if mysql_config is not on your PATH, or you have some weird&lt;br /&gt;
# setup that requires it.&lt;br /&gt;
mysql_config = /Applications/MAMP/Library/bin/mysql_config&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
in terminal in MySQL-python-1.2.3 folder do this:&lt;br /&gt;
$ sudo python setup.py clean&lt;br /&gt;
$ sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql&lt;br /&gt;
$ sudo python setup.py build&lt;br /&gt;
$ sudo python setup.py install&lt;br /&gt;
&lt;br /&gt;
If you got error &quot;Reason: image not found&quot; try this:&lt;br /&gt;
sudo cp /usr/local/mysql/lib/libmysqlclient_r.18.dylib /usr/local/mysql/lib/mysql/libmysqlclient_r.18.dylib&lt;br /&gt;
&lt;br /&gt;
or this:&lt;br /&gt;
&lt;br /&gt;
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
in your python script use unix_socket = path_to_MAMP_socket:&lt;br /&gt;
#!/usr/bin/python&lt;br /&gt;
import sys&lt;br /&gt;
import MySQLdb&lt;br /&gt;
import MySQLdb.cursors&lt;br /&gt;
db= MySQLdb.connect(unix_socket = &#39;/Applications/MAMP/tmp/mysql/mysql.sock&#39;, host=&quot;localhost&quot;, port=3306 ,user=&quot;username&quot;, passwd=&quot;password&quot;,db=&quot;database&quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
related links:&lt;br /&gt;
http://paikialog.wordpress.com/2011/05/02/mac-install-python-mysqldb-to-mamp/&lt;br /&gt;
http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/6100355472735207107/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/03/u-need-xcode-mysql-and-mysql-python-1.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/6100355472735207107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/6100355472735207107'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/03/u-need-xcode-mysql-and-mysql-python-1.html' title='Python MySQLdb with MAMP'/><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-3267858281892295063.post-549144377941674112</id><published>2012-03-03T08:01:00.002-08:00</published><updated>2012-03-03T08:01:30.624-08:00</updated><title type='text'>Recursively delete .svn directories</title><content type='html'>rm -rf `find . -type d -name .svn`</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/549144377941674112/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/03/recursively-delete-svn-directories.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/549144377941674112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/549144377941674112'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/03/recursively-delete-svn-directories.html' title='Recursively delete .svn directories'/><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-3267858281892295063.post-723644097494116694</id><published>2012-03-03T07:44:00.000-08:00</published><updated>2012-03-03T07:44:41.025-08:00</updated><title type='text'>Fixing the “unix:///var/mysql/mysql.sock” not found error on MAMP</title><content type='html'>If you&#39;ve got this problem on mac (with MAMP):&lt;br /&gt;
PHP Error[2]: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)&lt;br /&gt;
&lt;br /&gt;
Try this:&lt;br /&gt;
sudo mkdir /var/mysql&lt;br /&gt;
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/723644097494116694/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2012/03/fixing-unixvarmysqlmysqlsock-not-found.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/723644097494116694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/723644097494116694'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2012/03/fixing-unixvarmysqlmysqlsock-not-found.html' title='Fixing the “unix:///var/mysql/mysql.sock” not found error on MAMP'/><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-3267858281892295063.post-1304564365205583506</id><published>2011-08-17T16:49:00.000-07:00</published><updated>2011-08-17T16:49:21.403-07:00</updated><title type='text'>PySide in Eclipse generates false errors</title><content type='html'>PyDev starts generating false errors for my code after installing PySide.&lt;br /&gt;
&lt;br /&gt;
To fix this problem follow this steps:&lt;br /&gt;
1. In Eclipse open Window -&gt; Preferences -&gt; Pydev -&gt; Interpreter - Python&lt;br /&gt;
2. Add C:\Python27\Lib\site-packages to SystemPYTHONPATH (if you already have it... remove this line and add it again)</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/1304564365205583506/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/08/pyside-in-eclipse-generates-false.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/1304564365205583506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/1304564365205583506'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/08/pyside-in-eclipse-generates-false.html' title='PySide in Eclipse generates false errors'/><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-3267858281892295063.post-3619774688474325748</id><published>2011-08-17T13:40:00.000-07:00</published><updated>2011-08-28T14:16:43.343-07:00</updated><title type='text'>Installing Eclipse IDE for C++ and QT with MinGW on Windows</title><content type='html'>Follow next steps to install Eclipse IDE for C++ and QT with MinGQ on Windows:&lt;br /&gt;
1. Instal MinGW (with MSYS) http://sourceforge.net/projects/mingw/files/ &lt;br /&gt;
2. Install gdb-6.3-2.exe http://citylan.dl.sourceforge.net/project/mingw/MinGW/BaseSystem/GDB/Release%20Candidate_%20gdb-6.3/gdb-6.3-2.exe&lt;br /&gt;
3. Add path to MinGW and MSYS folder (for me it&#39;s C:\MinGW\bin;C:\MinGW\msys\1.0\bin;) to system variable (PATH)&lt;br /&gt;
4. Install QT (qt-win-opensource-4.6.4-mingw.exe) http://get.qt.nokia.com/qt/source/qt-win-opensource-4.6.4-mingw.exe&lt;br /&gt;
5. Install Eclipse IDE for C/C++ Developers (includes Incubating components),  http://www.eclipse.org/downloads/ - just download and unzip it. &lt;b&gt;INSTALL 32-bit version&lt;/b&gt; (and of course you need JRE 32-bit version ...for example this one jre-6u27-windows-i586.exe from here http://www.oracle.com/technetwork/java/javase/downloads/jre-6u27-download-440425.html&lt;br /&gt;
6. install QT Eclipse integration http://get.qt.nokia.com/qteclipse/qt-eclipse-integration-win32-1.6.1.exe&lt;br /&gt;
7. Reboot and then Run Eclipse&lt;br /&gt;
8. In eclipse Preferense-&gt;Qt press &quot;Add new Qt version&quot;... and add path to your ...\qt\4.4.1\bin folder</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/3619774688474325748/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/08/installing-eclipse-ide-for-c-and-qt.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3619774688474325748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3619774688474325748'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/08/installing-eclipse-ide-for-c-and-qt.html' title='Installing Eclipse IDE for C++ and QT with MinGW 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-3267858281892295063.post-3890702448608374192</id><published>2011-05-26T16:10:00.001-07:00</published><updated>2012-03-03T11:06:50.971-08:00</updated><title type='text'>multiple virtualhost in wampserver2</title><content type='html'>1. add this line to c:\windows\system32\drivers\etc\hosts &lt;br /&gt;
127.0.0.1 mysite.com&lt;br /&gt;
&lt;br /&gt;
2. add this block to httpd.conf file:&lt;br /&gt;
&lt;br /&gt;
NameVirtualHost 127.0.0.1 &lt;br /&gt;
&amp;lt;virtualhost 127.0.0.1&amp;gt;&lt;br /&gt;
ServerName localhost&lt;br /&gt;
DocumentRoot &amp;quot;C:/wamp/www&amp;quot;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;virtualhost 127.0.0.1&amp;gt;&lt;br /&gt;
ServerName mysite.com &lt;br /&gt;
DocumentRoot &amp;quot;C:\wamp\www\share\www&amp;quot; &lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
fo MAMP users, just add this&lt;br /&gt;
&lt;virtualhost 127.0.0.1&gt;&lt;br /&gt;
ServerName devshara&lt;br /&gt;
DocumentRoot &quot;/Users/const/Dev/svn/sharamba/development/www&quot; &lt;br /&gt;
&lt;/VirtualHost&gt;</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/3890702448608374192/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/05/multiple-virtualhost-in-wampserver2.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3890702448608374192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3890702448608374192'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/05/multiple-virtualhost-in-wampserver2.html' title='multiple virtualhost in wampserver2'/><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-3267858281892295063.post-3864853475605474444</id><published>2011-05-21T15:11:00.000-07:00</published><updated>2011-05-21T15:11:35.945-07:00</updated><title type='text'>Light Explorer in Notepad++</title><content type='html'>Light Explorer in Notepad++ &quot;allows documents to be opened from a dockable file explorer, that is very light weight and fast. Author: Javier Sanjose&quot;</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/3864853475605474444/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/05/light-explorer-in-notepad.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3864853475605474444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3864853475605474444'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/05/light-explorer-in-notepad.html' title='Light Explorer in Notepad++'/><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-3267858281892295063.post-5779991739969045302</id><published>2011-05-15T06:35:00.000-07:00</published><updated>2011-05-15T06:35:58.221-07:00</updated><title type='text'>PHP: Netbeans block comment (like  /* comment */)</title><content type='html'>To comment multiple lines in Netbeans (like this /* comment */) you need to create macros&lt;br /&gt;
&lt;br /&gt;
Tools -&gt; Options -&gt; Editor -&gt; Macros -&gt; New&lt;br /&gt;
The code of macros is: &lt;br /&gt;
cut-to-clipboard &quot;/*&quot; paste-from-clipboard &quot;*/&quot; &lt;br /&gt;
&lt;br /&gt;
and Set shortcut to Ctrl+Shift+Q.</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/5779991739969045302/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/05/php-netbeans-block-comment-like-comment.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/5779991739969045302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/5779991739969045302'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/05/php-netbeans-block-comment-like-comment.html' title='PHP: Netbeans block comment (like  /* comment */)'/><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-3267858281892295063.post-3176853975047677068</id><published>2011-04-26T13:40:00.000-07:00</published><updated>2011-04-26T13:40:45.848-07:00</updated><title type='text'>Python: how to remove duplicates from list</title><content type='html'>&lt;pre class=&quot;brush: php&quot;&gt;# -*- coding: utf-8 -*-
qi=[1,1,3,1,6,4,5,1,6] #some elements repeat
qi.sort() #sort urls (just for fun)
qi_normal=set(qi) #this removes duplicate URL&#39;s
print &quot;list wit repeated elemnts:&quot;, qi
print &quot;list without repeted ellemnts:&quot;,qi_normal
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/3176853975047677068/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/04/python-how-to-remove-duplicates-from.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3176853975047677068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/3176853975047677068'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/04/python-how-to-remove-duplicates-from.html' title='Python: how to remove duplicates from list'/><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-3267858281892295063.post-4464897444839490505</id><published>2011-04-26T13:33:00.000-07:00</published><updated>2011-04-26T13:33:58.377-07:00</updated><title type='text'>Python: How to remove \n (end of line) symbol</title><content type='html'>&lt;pre class=&quot;brush: python&quot;&gt;# -*- coding: utf-8 -*-
str = [u&quot;afaaas\n&quot;, &quot;adasf \t&quot;]
print &quot;withouth strip():&quot;, str
print &quot;with strip:\n&quot;, str[0].strip()
print str[1].strip()
&lt;/pre&gt;&lt;br /&gt;
as you can see .strip() also remove \t</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/4464897444839490505/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/04/python-how-to-remove-n-end-of-line.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/4464897444839490505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/4464897444839490505'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/04/python-how-to-remove-n-end-of-line.html' title='Python: How to remove \n (end of line) symbol'/><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-3267858281892295063.post-6009682433240021230</id><published>2011-04-25T16:03:00.000-07:00</published><updated>2011-04-26T13:19:56.699-07:00</updated><title type='text'>Python: read utf-8 file</title><content type='html'>This how I read utf-8 (without BOM) file in python:&lt;br /&gt;
&lt;pre class=&quot;brush: python&quot;&gt;import codecs
txtfile = codecs.open(&quot;bla.txt&quot;, &quot;r&quot;, &quot;utf-8&quot;)
t= txtfile.read()
txtfile.close()
print t
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/6009682433240021230/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/04/python-read-utf-8-from-file.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/6009682433240021230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/6009682433240021230'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/04/python-read-utf-8-from-file.html' title='Python: read utf-8 file'/><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-3267858281892295063.post-8813056707751825728</id><published>2011-04-24T16:11:00.001-07:00</published><updated>2011-04-24T17:26:06.960-07:00</updated><title type='text'>Erlang frameworks comparison</title><content type='html'>http://chicagoboss.org/projects/chicagoboss/wiki/Comparison_of_Erlang_Web_Frameworks&lt;br /&gt;
http://stackoverflow.com/questions/1822518/current-state-of-erlang-web-development-frameworks-template-languages&lt;br /&gt;
&lt;br /&gt;
Interesting info:&lt;br /&gt;
http://brainslugs.blogspot.com/2008/02/yaws-erlang.html&lt;br /&gt;
&lt;br /&gt;
Tut for beginers:&lt;br /&gt;
http://www.giantflyingsaucer.com/blog/?p=251&lt;br /&gt;
http://www.rsdn.ru/article/erlang/GettingStartedWithErlang.xml&lt;br /&gt;
&lt;br /&gt;
mochiweb:&lt;br /&gt;
http://habrahabr.ru/blogs/erlang/111252/</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/8813056707751825728/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/04/erlang-frameworks-comparison.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/8813056707751825728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/8813056707751825728'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/04/erlang-frameworks-comparison.html' title='Erlang frameworks comparison'/><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-3267858281892295063.post-1066787069204581823</id><published>2011-04-17T11:03:00.000-07:00</published><updated>2011-04-17T11:09:00.854-07:00</updated><title type='text'>Pylons error in windows 7: &quot;UnicodeDecodeError: &#39;ascii&#39; codec can&#39;t decode byte 0xe0 in position 0 : ordinal not in range(128)&quot;</title><content type='html'>to solve this issue i delete all cyrillic sections (smth. like this &quot;&lt;b&gt;аудио&lt;/b&gt;/x-gsm&quot;) in the windows registry:&lt;br /&gt;
&lt;br /&gt;
[HKEY_CLASSES_ROOT\CLSID\{4063BE15-3B08-470D-A0D5-B37161CFFD69}\EnableFullPage\MIME]&lt;br /&gt;
and&lt;br /&gt;
[HKEY_CLASSES_ROOT\MIME\Database\Content Type]</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/1066787069204581823/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/04/pylons-error-in-windows-7.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/1066787069204581823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/1066787069204581823'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/04/pylons-error-in-windows-7.html' title='Pylons error in windows 7: &quot;UnicodeDecodeError: &#39;ascii&#39; codec can&#39;t decode byte 0xe0 in position 0 : ordinal not in range(128)&quot;'/><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-3267858281892295063.post-2900262286253334520</id><published>2011-04-17T10:39:00.000-07:00</published><updated>2011-04-17T10:39:39.863-07:00</updated><title type='text'>pylons installation error &quot;ImportError: No module named _weakrefset&quot;</title><content type='html'>in go-pylons.py add after line 43&lt;br /&gt;
&lt;br /&gt;
if sys.version_info[:2] &gt;= (2, 7):&lt;br /&gt;
    REQUIRED_MODULES.extend([&#39;_weakrefset&#39;])</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/2900262286253334520/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/04/pylons-installation-error-importerror.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/2900262286253334520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/2900262286253334520'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/04/pylons-installation-error-importerror.html' title='pylons installation error &quot;ImportError: No module named _weakrefset&quot;'/><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-3267858281892295063.post-6425087477977802363</id><published>2011-04-17T08:08:00.000-07:00</published><updated>2011-04-17T08:08:37.586-07:00</updated><title type='text'>Console 2 for Windows</title><content type='html'>I like it, maybe you like it to, so try it if you can&#39;t stand standart windows console:&lt;br /&gt;
http://sourceforge.net/projects/console/&lt;br /&gt;
&lt;br /&gt;
If you know some other consoles for windows, plz let me know.&lt;br /&gt;
&lt;br /&gt;
Description:&lt;br /&gt;
&quot;Console is a Windows console window enhancement. Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles&quot;</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/6425087477977802363/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/04/console-2-for-windows.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/6425087477977802363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/6425087477977802363'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/04/console-2-for-windows.html' title='Console 2 for 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-3267858281892295063.post-4652827257989267418</id><published>2011-04-13T15:29:00.001-07:00</published><updated>2011-04-17T07:57:28.518-07:00</updated><title type='text'>Django error on windows: &quot;Error loading MySQLdb module: No module named MySQLdb&quot;</title><content type='html'>If you got this error &quot;Error loading MySQLdb module: No module named MySQLdb&quot; in Django on windows... just install this&lt;br /&gt;
http://www.codegood.com/downloads?dl_cat=2</content><link rel='replies' type='application/atom+xml' href='http://mentalissue.blogspot.com/feeds/4652827257989267418/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://mentalissue.blogspot.com/2011/04/httpwwwcodegoodcomdownloadsdlcat2.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/4652827257989267418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3267858281892295063/posts/default/4652827257989267418'/><link rel='alternate' type='text/html' href='http://mentalissue.blogspot.com/2011/04/httpwwwcodegoodcomdownloadsdlcat2.html' title='Django error on windows: &quot;Error loading MySQLdb module: No module named MySQLdb&quot;'/><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>