<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><description>Email: barushev@gmail.com</description><title>Denis Barushev</title><generator>Tumblr (3.0; @denis)</generator><link>http://denis.tumblr.com/</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/DenisBarushev" type="application/rss+xml" /><item><title>Terminal.app Tab Namer v0.1 Alpha</title><description>&lt;a href="http://ericanderson.us/2008/03/02/terminalapp-tab-namer-v01-alpha/"&gt;Terminal.app Tab Namer v0.1 Alpha&lt;/a&gt;: is a SIMBL plugin for Terminal.app on Leopard that lets you name your tabs.&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/JfkyUf78qoc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/JfkyUf78qoc/121102236</link><guid isPermaLink="false">http://denis.tumblr.com/post/121102236</guid><pubDate>Wed, 10 Jun 2009 13:53:12 +0300</pubDate><category>Mac OS X</category><category>Terminal.app</category><feedburner:origLink>http://denis.tumblr.com/post/121102236</feedburner:origLink></item><item><title>irb readline support on Leopard</title><description>&lt;a href="http://henrik.nyh.se/2008/03/irb-readline"&gt;irb readline support on Leopard&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/DB3x42DFLrU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/DB3x42DFLrU/101392773</link><guid isPermaLink="false">http://denis.tumblr.com/post/101392773</guid><pubDate>Wed, 29 Apr 2009 11:57:30 +0300</pubDate><category>Mac OS X</category><category>MacPorts</category><category>Ruby</category><feedburner:origLink>http://denis.tumblr.com/post/101392773</feedburner:origLink></item><item><title>Feedzirra</title><description>&lt;a href="http://www.rubyinside.com/feedzirra-a-new-ruby-feed-library-built-for-speed-1485.html"&gt;Feedzirra&lt;/a&gt;: is a new ruby feed library “built for speed”.&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/Jg27bUn0vMU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/Jg27bUn0vMU/84976284</link><guid isPermaLink="false">http://denis.tumblr.com/post/84976284</guid><pubDate>Mon, 09 Mar 2009 22:20:00 +0200</pubDate><category>Ruby</category><feedburner:origLink>http://denis.tumblr.com/post/84976284</feedburner:origLink></item><item><title>Location of the MySQL Socket File in Different Systems</title><description>&lt;p&gt;From &lt;a href="http://github.com/rails/rails/blob/73cc5f270a5c2a2eab76c6c02615fec608822494/railties/lib/rails_generator/generators/applications/app/app_generator.rb#L247-255"&gt;&lt;code&gt;#mysql_socket_location&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;"/tmp/mysql.sock", # default
"/var/run/mysqld/mysqld.sock", # debian/gentoo
"/var/tmp/mysql.sock", # freebsd
"/var/lib/mysql/mysql.sock", # fedora
"/opt/local/lib/mysql/mysql.sock", # fedora
"/opt/local/var/run/mysqld/mysqld.sock", # mac + darwinports + mysql
"/opt/local/var/run/mysql4/mysqld.sock", # mac + darwinports + mysql4
"/opt/local/var/run/mysql5/mysqld.sock", # mac + darwinports + mysql5
"/opt/lampp/var/mysql/mysql.sock" # xampp for linux
&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/NqIaOP5ktj4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/NqIaOP5ktj4/73234786</link><guid isPermaLink="false">http://denis.tumblr.com/post/73234786</guid><pubDate>Mon, 26 Jan 2009 16:42:14 +0200</pubDate><category>Linux</category><category>MySQL</category><category>Mac OS X</category><feedburner:origLink>http://denis.tumblr.com/post/73234786</feedburner:origLink></item><item><title>Install MySQL and mysql gem on Mac OS X Leopard</title><description>&lt;p&gt;Install MySQL server via MacPorts:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo port install mysql5 +server
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Setup the database:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo -u mysql mysql_install_db5
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Configure MySQL to start up automatically when OS X boots:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Install mysql gem:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo gem install mysql -- --with-mysql-config=/opt/local/bin/mysql_config5
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://blog.openrain.com/2008/08/20/setup-ruby-and-rails-on-osx/"&gt;Source&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Socket location: &lt;code&gt;/opt/local/var/run/mysql5/mysqld.sock&lt;/code&gt;.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/UV9wQqO4u00" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/UV9wQqO4u00/71638761</link><guid isPermaLink="false">http://denis.tumblr.com/post/71638761</guid><pubDate>Tue, 20 Jan 2009 00:19:00 +0200</pubDate><category>MacPorts</category><category>MySQL</category><category>Ruby</category><category>Mac OS X</category><feedburner:origLink>http://denis.tumblr.com/post/71638761</feedburner:origLink></item><item><title>Adding Bash Completion for Git on Mac OS X Leopard </title><description>&lt;script src="http://gist.github.com/48774.js"&gt;&lt;/script&gt;&lt;p&gt;Copy this code and paste it into Terminal.&lt;/p&gt;

&lt;p&gt;This also should work for any *NIX.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are the easiest ways to add bash completion for git.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;For Mac OS X&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Install git via MacPorts:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo port install git-core +bash_completion
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then add the following lines at the end of your &lt;code&gt;~/.profile&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if [ -f /opt/local/etc/bash_completion ]; then
    . /opt/local/etc/bash_completion
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;em&gt;For Ubuntu&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo aptitude install git-completion
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;em&gt;For Fedora&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo smart install bash-completion
&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/qj92TqYj9-U" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/qj92TqYj9-U/71390665</link><guid isPermaLink="false">http://denis.tumblr.com/post/71390665</guid><pubDate>Sun, 18 Jan 2009 23:35:00 +0200</pubDate><category>Linux</category><category>bash</category><category>git</category><category>Mac OS X</category><feedburner:origLink>http://denis.tumblr.com/post/71390665</feedburner:origLink></item><item><title>Post for visitors from barushev.net</title><description>&lt;p&gt;New admins form Netlux ISP have deleted my old site barushev.net. I have no backups but I’m not upset because old site was so outdated. This blog is my primary homepage now.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blog.barushev.net"&gt;Welcome&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/q8vvTIcYt4w" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/q8vvTIcYt4w/63567304</link><guid isPermaLink="false">http://denis.tumblr.com/post/63567304</guid><pubDate>Sun, 07 Dec 2008 22:51:00 +0200</pubDate><feedburner:origLink>http://denis.tumblr.com/post/63567304</feedburner:origLink></item><item><title>Passing All Arguments from One JavaScript Function to Another</title><description>&lt;p&gt;&lt;code&gt;Function.prototype.apply&lt;/code&gt; should do the job:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function debug() {
    if (settings.debug) {
        console.log.apply(this, arguments);
    }
}
&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/cpMuIywonSU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/cpMuIywonSU/58130322</link><guid isPermaLink="false">http://denis.tumblr.com/post/58130322</guid><pubDate>Wed, 05 Nov 2008 16:31:24 +0200</pubDate><category>JavaScript</category><feedburner:origLink>http://denis.tumblr.com/post/58130322</feedburner:origLink></item><item><title>Lessons Learned while Building an iPhone Site</title><description>&lt;a href="http://code.flickr.com/blog/2008/10/27/lessons-learned-while-building-an-iphone-site/"&gt;Lessons Learned while Building an iPhone Site&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/1ZAKg4Nme1o" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/1ZAKg4Nme1o/56739538</link><guid isPermaLink="false">http://denis.tumblr.com/post/56739538</guid><pubDate>Tue, 28 Oct 2008 14:43:11 +0200</pubDate><feedburner:origLink>http://denis.tumblr.com/post/56739538</feedburner:origLink></item><item><title>Firebug Console Object and API</title><description>&lt;a href="http://getfirebug.com/console.html"&gt;Firebug Console Object and API&lt;/a&gt;: Firebug adds a global variable named “console” to all web pages loaded in Firefox. This object contains many methods that allow you to write to the Firebug console to expose information that is flowing through your scripts.&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/TtseTVgCE58" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/TtseTVgCE58/54638156</link><guid isPermaLink="false">http://denis.tumblr.com/post/54638156</guid><pubDate>Wed, 15 Oct 2008 10:39:50 +0300</pubDate><category>Firebug</category><category>Firefox</category><category>JavaScript</category><feedburner:origLink>http://denis.tumblr.com/post/54638156</feedburner:origLink></item><item><title>"Calling preventDefault during any stage of event flow cancels the event, meaning that any default..."</title><description>“Calling &lt;code&gt;preventDefault&lt;/code&gt; during any stage of event flow cancels the event, meaning that any default action normally taken by the implementation as a result of the event will not occur.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://developer.mozilla.org/en/DOM/event.preventDefault"&gt;Gecko DOM Reference&lt;/a&gt;&lt;/em&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/9da-OiF1SqU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/9da-OiF1SqU/54635328</link><guid isPermaLink="false">http://denis.tumblr.com/post/54635328</guid><pubDate>Wed, 15 Oct 2008 10:12:02 +0300</pubDate><category>DOM</category><category>JavaScript</category><feedburner:origLink>http://denis.tumblr.com/post/54635328</feedburner:origLink></item><item><title>"If child is a reference to an existing node in the document, appendChild moves it from its current..."</title><description>“If &lt;code&gt;child&lt;/code&gt; is a reference to an existing node in the document, &lt;code&gt;appendChild&lt;/code&gt; moves it from its current position to the new position (i.e. there is no requirement to remove the node from its parent node before appending it to some other node).”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://developer.mozilla.org/en/DOM/element.appendChild"&gt;Gecko DOM Reference&lt;/a&gt;&lt;/em&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/4_QGmUz118M" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/4_QGmUz118M/53796541</link><guid isPermaLink="false">http://denis.tumblr.com/post/53796541</guid><pubDate>Thu, 09 Oct 2008 18:07:00 +0300</pubDate><category>JavaScript</category><category>DOM</category><feedburner:origLink>http://denis.tumblr.com/post/53796541</feedburner:origLink></item><item><title>A Simple jQuery Plugin Skeleton</title><description>&lt;pre&gt;&lt;code&gt;(function ($) {
    $.fn.pluginName = function (settings) {
        settings = $.extend({
            param: 'value'
        }, settings);

        return this.each(
            function () {
                var $this = $(this);
                // plugin code here
            }
        );
    };
})(jQuery);
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;&lt;a href="http://gist.github.com/12656"&gt;http://gist.github.com/12656&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/4GYX5ZnYZow" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/4GYX5ZnYZow/51601242</link><guid isPermaLink="false">http://denis.tumblr.com/post/51601242</guid><pubDate>Wed, 24 Sep 2008 23:24:00 +0300</pubDate><category>JavaScript</category><category>jQuery</category><feedburner:origLink>http://denis.tumblr.com/post/51601242</feedburner:origLink></item><item><title>CSS min-height Fast Hack</title><description>&lt;p&gt;This hack which is a pure CSS solution will get a min-height working for IE6. MSIE 7.0 supports CSS min-height.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;selector {
    min-height: 500px;
    height: auto !important;
    height: 500px;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://www.dustindiaz.com/min-height-fast-hack/"&gt;Min-Height Fast Hack&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/zPmb88cRoE8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/zPmb88cRoE8/50811650</link><guid isPermaLink="false">http://denis.tumblr.com/post/50811650</guid><pubDate>Fri, 19 Sep 2008 09:34:00 +0300</pubDate><category>CSS</category><category>IE6</category><feedburner:origLink>http://denis.tumblr.com/post/50811650</feedburner:origLink></item><item><title>Using Kompare for Git Diffs</title><description>&lt;p&gt;&lt;a href="http://files.barushev.net/tumblr/images/posts/2008-09/git-kompare.png"&gt;&lt;img src="http://files.barushev.net/tumblr/images/posts/2008-09/git-kompare.420.png" alt="git-kompare"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It’s possible to use &lt;code&gt;kompare&lt;/code&gt; as a graphical diff viewer for git. I created file &lt;code&gt;git-kompare&lt;/code&gt; in my &lt;code&gt;/usr/local/bin/&lt;/code&gt; directory with such content:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;git diff $* | kompare -
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I also created alias &lt;code&gt;gk&lt;/code&gt; for this command in my &lt;code&gt;~.bashrc&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;alias gk='git-kompare'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now I can use &lt;code&gt;gk&lt;/code&gt; command instead of &lt;code&gt;git diff&lt;/code&gt; with all its options.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/wASa6MeWQNA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/wASa6MeWQNA/50507027</link><guid isPermaLink="false">http://denis.tumblr.com/post/50507027</guid><pubDate>Thu, 18 Sep 2008 10:24:00 +0300</pubDate><category>bash</category><category>git</category><category>KDE</category><feedburner:origLink>http://denis.tumblr.com/post/50507027</feedburner:origLink></item><item><title>Bash Script That Deletes Itself</title><description>&lt;p&gt;suicide.sh&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#!/bin/rm
&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/qP_jtoB5qB0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/qP_jtoB5qB0/50404228</link><guid isPermaLink="false">http://denis.tumblr.com/post/50404228</guid><pubDate>Tue, 16 Sep 2008 17:55:00 +0300</pubDate><category>bash</category><feedburner:origLink>http://denis.tumblr.com/post/50404228</feedburner:origLink></item><item><title>Truncating a File to Zero Bytes</title><description>&lt;pre&gt;&lt;code&gt;&gt; log/development.log&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/FR0PNGmkrcQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/FR0PNGmkrcQ/50384940</link><guid isPermaLink="false">http://denis.tumblr.com/post/50384940</guid><pubDate>Tue, 16 Sep 2008 15:21:00 +0300</pubDate><category>bash</category><feedburner:origLink>http://denis.tumblr.com/post/50384940</feedburner:origLink></item><item><title>Removing a Remote git Branch</title><description>&lt;pre&gt;&lt;code&gt;git push origin :branch_name&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/s6SQksrYfyU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/s6SQksrYfyU/47434608</link><guid isPermaLink="false">http://denis.tumblr.com/post/47434608</guid><pubDate>Tue, 26 Aug 2008 11:53:00 +0300</pubDate><category>git</category><category>bash</category><feedburner:origLink>http://denis.tumblr.com/post/47434608</feedburner:origLink></item><item><title>Rusugar.com — the best designed websites from Russia.</title><description>&lt;img src="http://1.media.tumblr.com/3OQCKWJ8V1i0519m4ynWuaTd_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href="http://rusugar.com"&gt;Rusugar.com&lt;/a&gt; — the best designed websites from Russia.&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/zHWBn-4wkEs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/zHWBn-4wkEs/18701175</link><guid isPermaLink="false">http://denis.tumblr.com/post/18701175</guid><pubDate>Thu, 08 Nov 2007 00:03:00 +0200</pubDate><feedburner:origLink>http://denis.tumblr.com/post/18701175</feedburner:origLink></item><item><title>Hi</title><description>My name is Denis. I’m a web developer from Donetsk, Ukraine. This is my tlog.&lt;img src="http://feeds.feedburner.com/~r/DenisBarushev/~4/frmJH06oOis" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DenisBarushev/~3/frmJH06oOis/1065</link><guid isPermaLink="false">http://denis.tumblr.com/post/1065</guid><pubDate>Mon, 29 Jan 2007 01:57:00 +0200</pubDate><feedburner:origLink>http://denis.tumblr.com/post/1065</feedburner:origLink></item></channel></rss>
