<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><description>Email: barushev@gmail.com</description><title>Denis Barushev</title><generator>Tumblr (3.0; @denis)</generator><link>https://denis.tumblr.com/</link><item><title>Reduce PDF File Size</title><description>&lt;p&gt;Use the following ghostscript command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/screen -dNOPAUSE -dQUIET \
-dBATCH -sOutputFile=output.pdf input.pdf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://askubuntu.com/a/256449"&gt;Source&lt;/a&gt;&lt;/p&gt;</description><link>https://denis.tumblr.com/post/65722688459</link><guid>https://denis.tumblr.com/post/65722688459</guid><pubDate>Fri, 01 Nov 2013 23:21:16 +0200</pubDate><category>PDF</category><category>Ghostscript</category></item><item><title>docopt</title><description>&lt;a href="http://docopt.org"&gt;docopt&lt;/a&gt;: &lt;p&gt;Command-line interface description language&lt;/p&gt;</description><link>https://denis.tumblr.com/post/55810846608</link><guid>https://denis.tumblr.com/post/55810846608</guid><pubDate>Fri, 19 Jul 2013 00:31:49 +0300</pubDate><category>CLI</category></item><item><title>ImageMagick Mirror Virtual Pixels</title><description>&lt;p&gt;It&amp;rsquo;s very useful for generating image edges that are mirrored around the boundaries of the image:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;convert tree.gif -set option:distort:viewport 70x70-19-19 \
  -virtual-pixel Mirror -filter point -distort SRT 0 \
  +repage virtual_mirror.gif
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;img src="http://www.imagemagick.org/Usage/misc/tree.gif"/&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="http://www.imagemagick.org/Usage/misc/virtual_mirror.gif"/&gt;&lt;/p&gt;

&lt;p&gt;See: &lt;a href="http://www.imagemagick.org/Usage/misc/#mirror"&gt;http://www.imagemagick.org/Usage/misc/#mirror&lt;/a&gt;&lt;/p&gt;</description><link>https://denis.tumblr.com/post/53533770340</link><guid>https://denis.tumblr.com/post/53533770340</guid><pubDate>Fri, 21 Jun 2013 22:02:49 +0300</pubDate><category>ImageMagick</category></item><item><title>-bash: __git_ps1: command not found</title><description>&lt;p&gt;If you use &lt;code&gt;homebrew&lt;/code&gt; and have updated your &lt;code&gt;git&lt;/code&gt; to &lt;code&gt;1.7.12&lt;/code&gt; you should see this annoying message instead of your beautiful prompt:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;-bash: __git_ps1: command not found
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To solve the problem just add this line to your &lt;code&gt;~/.profile&lt;/code&gt; ( &lt;code&gt;~/.bash_profile&lt;/code&gt;,  &lt;code&gt;~/.bashrc&lt;/code&gt;) before setting &lt;code&gt;PS1&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;source /usr/local/share/git-core/contrib/completion/git-prompt.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; The issue was fixed in the latest version of the git homebrew formula:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;brew update
brew uninstall git
brew install git
&lt;/code&gt;&lt;/pre&gt;</description><link>https://denis.tumblr.com/post/29827145298</link><guid>https://denis.tumblr.com/post/29827145298</guid><pubDate>Mon, 20 Aug 2012 16:52:00 +0300</pubDate><category>git</category><category>bash</category><category>homebrew</category></item><item><title>MySQL's GROUP_CONCAT Function</title><description>&lt;a href="http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat"&gt;MySQL's GROUP_CONCAT Function&lt;/a&gt;: &lt;p&gt;This function returns a string result with the concatenated non-NULL values from a group.&lt;/p&gt;</description><link>https://denis.tumblr.com/post/26848128070</link><guid>https://denis.tumblr.com/post/26848128070</guid><pubDate>Mon, 09 Jul 2012 22:28:04 +0300</pubDate><category>MySQL</category></item><item><title>RSpec Rails be_a_new matcher</title><description>&lt;p&gt;Passes if the object is a &lt;code&gt;Widget&lt;/code&gt; and returns true for &lt;code&gt;new_record?&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;object.should be_a_new(Widget)
&lt;/code&gt;&lt;/pre&gt;</description><link>https://denis.tumblr.com/post/15027437011</link><guid>https://denis.tumblr.com/post/15027437011</guid><pubDate>Fri, 30 Dec 2011 17:08:23 +0200</pubDate><category>RSpec</category><category>Rails</category><category>Ruby</category></item><item><title>Reset Heroku Database and Reload Seeds</title><description>&lt;p&gt;Since &lt;code&gt;heroku rake db:migrate:reset&lt;/code&gt; doesn&amp;rsquo;t work you should run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;heroku pg:reset SHARED_DATABASE --confirm &amp;lt;APP_NAME&amp;gt;
heroku rake db:migrate
&lt;/code&gt;&lt;/pre&gt;</description><link>https://denis.tumblr.com/post/3926548852</link><guid>https://denis.tumblr.com/post/3926548852</guid><pubDate>Thu, 17 Mar 2011 23:01:00 +0200</pubDate><category>Heroku</category></item><item><title>Bottom Bars in Cocoa</title><description>&lt;img src="https://64.media.tumblr.com/tumblr_l1n01sfLvO1qz4rino1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://iloveco.de/bottom-bars-in-cocoa/"&gt;Bottom Bars in Cocoa&lt;/a&gt;&lt;/p&gt;</description><link>https://denis.tumblr.com/post/558263587</link><guid>https://denis.tumblr.com/post/558263587</guid><pubDate>Wed, 28 Apr 2010 00:00:00 +0300</pubDate><category>Mac OS X</category><category>Cocoa</category><category>Objective-C</category></item><item><title>Adding a Titlebar Accessory View to a Window</title><description>&lt;img src="https://64.media.tumblr.com/tumblr_l1mzxdD0wA1qz4rino1_250.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://iloveco.de/adding-a-titlebar-accessory-view-to-a-window/"&gt;Adding a Titlebar Accessory View to a Window&lt;/a&gt;&lt;/p&gt;</description><link>https://denis.tumblr.com/post/558259962</link><guid>https://denis.tumblr.com/post/558259962</guid><pubDate>Wed, 28 Apr 2010 00:00:00 +0300</pubDate><category>Mac OS X</category><category>Cocoa</category><category>Objective-C</category></item><item><title>Variable argument lists in Cocoa</title><description>&lt;a href="http://cocoawithlove.com/2009/05/variable-argument-lists-in-cocoa.html"&gt;Variable argument lists in Cocoa&lt;/a&gt;</description><link>https://denis.tumblr.com/post/415997952</link><guid>https://denis.tumblr.com/post/415997952</guid><pubDate>Sat, 27 Feb 2010 22:46:00 +0200</pubDate><category>Cocoa</category><category>Mac OS X</category><category>Objective-C</category></item><item><title>Cocoa Application Startup</title><description>&lt;a href="http://cocoawithlove.com/2008/03/cocoa-application-startup.html"&gt;Cocoa Application Startup&lt;/a&gt;</description><link>https://denis.tumblr.com/post/366706274</link><guid>https://denis.tumblr.com/post/366706274</guid><pubDate>Tue, 02 Feb 2010 11:36:01 +0200</pubDate><category>Cocoa</category><category>Mac OS X</category><category>Objective-C</category><category>awakeFromNib</category></item><item><title>rake console: a custom irb instance for your ruby gem</title><description>&lt;a href="http://www.simonecarletti.com/blog/2009/09/rake-console/"&gt;rake console: a custom irb instance for your ruby gem&lt;/a&gt;</description><link>https://denis.tumblr.com/post/292133055</link><guid>https://denis.tumblr.com/post/292133055</guid><pubDate>Sun, 20 Dec 2009 22:01:06 +0200</pubDate><category>Ruby</category><category>Rake</category><category>RubyGems</category><category>IRB</category></item><item><title>We could not complete your iTunes Store request. An unknown error occured (-50).</title><description>&lt;a href="http://www.insanelymac.com/forum/index.php?s=&amp;showtopic=81737&amp;view=findpost&amp;p=1249395"&gt;We could not complete your iTunes Store request. An unknown error occured (-50).&lt;/a&gt;</description><link>https://denis.tumblr.com/post/291722033</link><guid>https://denis.tumblr.com/post/291722033</guid><pubDate>Sun, 20 Dec 2009 15:18:02 +0200</pubDate><category>Mac OS X</category><category>iTunes</category></item><item><title>How to Unpack a Debian Source Package</title><description>&lt;a href="http://ftp.debian.org/debian/doc/source-unpack.txt"&gt;How to Unpack a Debian Source Package&lt;/a&gt;</description><link>https://denis.tumblr.com/post/284651679</link><guid>https://denis.tumblr.com/post/284651679</guid><pubDate>Tue, 15 Dec 2009 15:30:30 +0200</pubDate><category>Linux</category><category>Debian</category></item><item><title>Versioning HTTP APIs</title><description>&lt;a href="http://www.jbarnette.com/2009/04/07/http-apis.html"&gt;Versioning HTTP APIs&lt;/a&gt;</description><link>https://denis.tumblr.com/post/235899126</link><guid>https://denis.tumblr.com/post/235899126</guid><pubDate>Sat, 07 Nov 2009 13:57:25 +0200</pubDate><category>REST</category><category>API</category></item><item><title>Visor for OSX</title><description>&lt;a href="http://visor.binaryage.com/"&gt;Visor for OSX&lt;/a&gt;: &lt;p&gt;a system-wide terminal accessible via a hot-key&lt;/p&gt;</description><link>https://denis.tumblr.com/post/171305890</link><guid>https://denis.tumblr.com/post/171305890</guid><pubDate>Tue, 25 Aug 2009 17:05:00 +0300</pubDate><category>Terminal.app</category><category>Mac OS X</category></item><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;: &lt;p&gt;is a SIMBL plugin for Terminal.app on Leopard that lets you name your tabs.&lt;/p&gt;</description><link>https://denis.tumblr.com/post/121102236</link><guid>https://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></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;</description><link>https://denis.tumblr.com/post/101392773</link><guid>https://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></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;: &lt;p&gt;is a new ruby feed library “built for speed”.&lt;/p&gt;</description><link>https://denis.tumblr.com/post/84976284</link><guid>https://denis.tumblr.com/post/84976284</guid><pubDate>Mon, 09 Mar 2009 22:20:00 +0200</pubDate><category>Ruby</category></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;</description><link>https://denis.tumblr.com/post/73234786</link><guid>https://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></item></channel></rss>
