<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Byte Friendly - Latest Comments</title><link>http://software-and-computers.disqus.com/</link><description>Thoughts on programming, scalability and other stuff.</description><atom:link href="https://software-and-computers.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 22 Feb 2018 04:15:04 -0000</lastBuildDate><item><title>Re: How To Work with large YAML files and not go crazy - Byte Friendly</title><link>http://tech.tulentsev.com/2014/04/work-with-large-yaml-files-and-not-go-crazy/#comment-3770513372</link><description>&lt;p&gt;And finally I improved that code snippet :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergio Tulentsev</dc:creator><pubDate>Thu, 22 Feb 2018 04:15:04 -0000</pubDate></item><item><title>Re: Limitations of MongoDB - Byte Friendly</title><link>http://tech.tulentsev.com/2014/02/limitations-of-mongodb/#comment-3624361527</link><description>&lt;p&gt;Can we perform $lookup for a shared collection. If yes, can you suggest me with  a example. And i don't want to change the schema of the database.&lt;/p&gt;&lt;p&gt;Eg:&lt;/p&gt;&lt;p&gt;db.unshared_collection.aggregate([&lt;br&gt;		{&lt;br&gt;                '$lookup' : {&lt;br&gt;                    'from' : 'shared_collection',&lt;br&gt;                    'localField' : 'localField',&lt;br&gt;                    'foreignField' : "foreignField",&lt;br&gt;                    'as' : "abc"&lt;br&gt;                }&lt;/p&gt;&lt;p&gt;])&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Siddhu Shankar</dc:creator><pubDate>Mon, 20 Nov 2017 01:00:21 -0000</pubDate></item><item><title>Re: Dash - now with cheatsheets - Byte Friendly</title><link>http://tech.tulentsev.com/2014/03/dash-now-with-cheatsheets/#comment-3544426831</link><description>&lt;p&gt;How do I search information of cheat sheet which I have already installed for example HTTP Code cheat sheet. I can not search it in Search box. I just can search Docsets information.&lt;/p&gt;&lt;p&gt;Thank you so much for your blog post.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tung Dang</dc:creator><pubDate>Sat, 30 Sep 2017 19:26:09 -0000</pubDate></item><item><title>Re: How to dump your MongoDB database partially (only selected tables) - Electrobroom</title><link>http://tech.tulentsev.com/2012/03/how-to-dump-your-mongodb-database-partially-only-selected-tables/#comment-2957822084</link><description>&lt;p&gt;thanks i was looking for this only&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ARIF MUJAWAR</dc:creator><pubDate>Wed, 19 Oct 2016 01:00:00 -0000</pubDate></item><item><title>Re: Hide/exclude directories in TextMate 2 - Byte Friendly</title><link>http://tech.tulentsev.com/2013/10/hide-slash-exclude-directories-in-textmate-2/#comment-2872373843</link><description>&lt;p&gt;&amp;gt; Hope this post saved you some time&lt;/p&gt;&lt;p&gt;Yes, thank you.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">silverdr</dc:creator><pubDate>Fri, 02 Sep 2016 06:06:01 -0000</pubDate></item><item><title>Re: Hide/exclude directories in TextMate 2 - Byte Friendly</title><link>http://tech.tulentsev.com/2013/10/hide-slash-exclude-directories-in-textmate-2/#comment-2541504030</link><description>&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aldrin Martoq</dc:creator><pubDate>Sun, 28 Feb 2016 10:05:44 -0000</pubDate></item><item><title>Re: Write data to Google API on example of UrlShortener API - Byte Friendly</title><link>http://tech.tulentsev.com/2015/01/write-data-to-google-api-on-example-of-urlshortener-api/#comment-2252467888</link><description>&lt;p&gt;thanks for this!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sdfsdf</dc:creator><pubDate>Mon, 14 Sep 2015 04:40:17 -0000</pubDate></item><item><title>Re: Limitations of MongoDB - Byte Friendly</title><link>http://tech.tulentsev.com/2014/02/limitations-of-mongodb/#comment-1890482313</link><description>&lt;p&gt;FYI, the MongoDB manual has a similar list of hard &amp;amp; soft limits: &lt;a href="http://docs.mongodb.org/manual/reference/limits/" rel="nofollow noopener" target="_blank" title="http://docs.mongodb.org/manual/reference/limits/"&gt;http://docs.mongodb.org/man...&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;The manual is versioned by release and notes limit/behaviour changes from previous releases.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stennie</dc:creator><pubDate>Thu, 05 Mar 2015 17:49:11 -0000</pubDate></item><item><title>Re: Limitations of MongoDB - Byte Friendly</title><link>http://tech.tulentsev.com/2014/02/limitations-of-mongodb/#comment-1728655042</link><description>&lt;p&gt;Actually that's very useful .. does this apply to the latest release 2.6.5 .. and how those change in the next release candidate&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">disqus_D9gbnpFg6V</dc:creator><pubDate>Sat, 06 Dec 2014 09:09:23 -0000</pubDate></item><item><title>Re: Hide/exclude directories in TextMate 2 - Byte Friendly</title><link>http://tech.tulentsev.com/2013/10/hide-slash-exclude-directories-in-textmate-2/#comment-1685519380</link><description>&lt;p&gt;Thanks, helpful post! Here are some more properties that can be used in Textmate 2: &lt;a href="https://gist.github.com/dvessel/1478685" rel="nofollow noopener" target="_blank" title="https://gist.github.com/dvessel/1478685"&gt;https://gist.github.com/dve...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">a3020</dc:creator><pubDate>Mon, 10 Nov 2014 04:36:14 -0000</pubDate></item><item><title>Re: Hide/exclude directories in TextMate 2 - Byte Friendly</title><link>http://tech.tulentsev.com/2013/10/hide-slash-exclude-directories-in-textmate-2/#comment-1390351927</link><description>&lt;p&gt;This was very helpful. I am using it now to ignore my node_modules directory in my node/express app. I would also note that it makes searching the entire project for particular text a lot easier as well (I want to be able to search "TODO" and "console.log" and not find 1000 of them in node_modules).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aaron</dc:creator><pubDate>Sat, 17 May 2014 02:03:07 -0000</pubDate></item><item><title>Re: Using Sidekiq with redis_failover gem - Byte Friendly</title><link>http://tech.tulentsev.com/2012/12/using-sidekiq-with-redis-failover-gem/#comment-1359298525</link><description>&lt;p&gt;I know it's a late answer, but no, I haven't had this problem with sidekiq processes. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergio Tulentsev</dc:creator><pubDate>Mon, 28 Apr 2014 13:40:18 -0000</pubDate></item><item><title>Re: How To Work with large YAML files and not go crazy - Byte Friendly</title><link>http://tech.tulentsev.com/2014/04/work-with-large-yaml-files-and-not-go-crazy/#comment-1319967338</link><description>&lt;p&gt;Yeah, this looks better.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergio Tulentsev</dc:creator><pubDate>Sat, 05 Apr 2014 07:15:02 -0000</pubDate></item><item><title>Re: How To Work with large YAML files and not go crazy - Byte Friendly</title><link>http://tech.tulentsev.com/2014/04/work-with-large-yaml-files-and-not-go-crazy/#comment-1319118373</link><description>&lt;p&gt;Occasionally,&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;if obj.is_a?(String) &lt;br&gt;…&lt;br&gt;elsif obj.is_a?(Hash)&lt;br&gt;…&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;looks a bit weird and spits on e. g. `Integer` hash keys. I would do smth more general:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;if (Hash === obj) &lt;br&gt;…&lt;br&gt;elsif (obj.respond_to? :to_s)&lt;br&gt;obj = obj.to_s&lt;br&gt;…&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;P. S. Sorry for a bundle of edits.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mudasobwa</dc:creator><pubDate>Fri, 04 Apr 2014 18:17:01 -0000</pubDate></item><item><title>Re: Kata: Convert numbers to Roman numerals - Byte Friendly</title><link>http://tech.tulentsev.com/2014/02/kata-convert-numbers-to-roman-numerals/#comment-1236802555</link><description>&lt;p&gt;Have you noticed ‘curiosity’ word there in the lead? BTW, this code requires new items in &lt;code&gt;DECS&lt;/code&gt; to be still working in, say, 28512 year.&lt;/p&gt;&lt;p&gt;This kind of code requires a bundle of tests and a comment “just left intouch, woodoo magic follows” on it’s top. Nobody will want to modify it until forth Rome :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mudasobwa</dc:creator><pubDate>Sun, 09 Feb 2014 08:49:55 -0000</pubDate></item><item><title>Re: Kata: Convert numbers to Roman numerals - Byte Friendly</title><link>http://tech.tulentsev.com/2014/02/kata-convert-numbers-to-roman-numerals/#comment-1236791993</link><description>&lt;p&gt;Nice job there! The code is terse and full of magic. However, can you look me in the eye and say that it is easy to understand? :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergio Tulentsev</dc:creator><pubDate>Sun, 09 Feb 2014 08:36:17 -0000</pubDate></item><item><title>Re: Kata: Convert numbers to Roman numerals - Byte Friendly</title><link>http://tech.tulentsev.com/2014/02/kata-convert-numbers-to-roman-numerals/#comment-1236543374</link><description>&lt;p&gt;Just out of curiosity:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;DECS = ['I','V','X','L','C','D','M']&lt;br&gt;def digit i, order&lt;br&gt;  i%5 == 4 ? &lt;br&gt;    "#{DECS[order*2]}#{DECS[order*2+1+i/5]}" :&lt;br&gt;    "#{DECS[order*2+1] if (5..8).include?(i)}#{DECS[order*2]*(i%5)}"&lt;br&gt;end&lt;br&gt;def romanize number&lt;br&gt;  number.to_s.reverse.split(//).each_with_index.map { |i, idx|&lt;br&gt;    digit(i.to_i, idx)&lt;br&gt;  }.reverse.join&lt;br&gt;end&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mudasobwa</dc:creator><pubDate>Sat, 08 Feb 2014 23:34:41 -0000</pubDate></item><item><title>Re: Deploying with Sinatra + Capistrano + Unicorn - Rock, Paper, Software</title><link>http://tech.tulentsev.com/2012/03/deploying-with-sinatra-capistrano-unicorn/#comment-1203968771</link><description>&lt;p&gt;&lt;a href="http://unicorn.bogomips.org/SIGNALS.html" rel="nofollow noopener" target="_blank" title="http://unicorn.bogomips.org/SIGNALS.html"&gt;http://unicorn.bogomips.org...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergio Tulentsev</dc:creator><pubDate>Thu, 16 Jan 2014 06:32:09 -0000</pubDate></item><item><title>Re: Deploying with Sinatra + Capistrano + Unicorn - Rock, Paper, Software</title><link>http://tech.tulentsev.com/2012/03/deploying-with-sinatra-capistrano-unicorn/#comment-1203964647</link><description>&lt;p&gt;What exactly does "kill -USR2 " do? I cannot find anything about that in the manpage.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">berkes</dc:creator><pubDate>Thu, 16 Jan 2014 06:25:22 -0000</pubDate></item><item><title>Re: Ruby: how to override class method with a module - Rock, Paper, Software</title><link>http://tech.tulentsev.com/2012/02/ruby-how-to-override-class-method-with-a-module/#comment-1097206763</link><description>&lt;p&gt;You'd have to back up the original implementation. Otherwise it gets lost.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;class Array&lt;br&gt;  alias_method :old_to_s, :to_s&lt;br&gt;  def to_s&lt;br&gt;    "an array: #{old_to_s}"&lt;br&gt;  end&lt;br&gt;end&lt;br&gt;&lt;br&gt;[1, 2, 3].to_s # =&amp;gt; "an array: [1, 2, 3]"&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergio Tulentsev</dc:creator><pubDate>Sat, 26 Oct 2013 00:35:39 -0000</pubDate></item><item><title>Re: Ruby: how to override class method with a module - Rock, Paper, Software</title><link>http://tech.tulentsev.com/2012/02/ruby-how-to-override-class-method-with-a-module/#comment-1097203189</link><description>&lt;p&gt;Is there any way to extend a method instead of overwriting it? In the example above where 'to_s' was overwritten, could you define the new 'to_s' to just print "an array: " and then call the prior (super?) 'to_s'?&lt;br&gt;If you are extending a complicated method you don't want to have to duplicate all the functionality of the original method.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Wilson</dc:creator><pubDate>Sat, 26 Oct 2013 00:27:44 -0000</pubDate></item><item><title>Re: Ruby: how to override class method with a module - Rock, Paper, Software</title><link>http://tech.tulentsev.com/2012/02/ruby-how-to-override-class-method-with-a-module/#comment-1066733647</link><description>&lt;p&gt;Oh I see, you're speaking in terms of the entire class definition (which I see when it's pulled out of context that you say precisely that) -- I meant that it "overwrites" the contained method. We're both saying the same thing, I just realize there are two very different ways of reading the sentence :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ches</dc:creator><pubDate>Tue, 01 Oct 2013 20:28:56 -0000</pubDate></item><item><title>Re: Ruby: how to override class method with a module - Rock, Paper, Software</title><link>http://tech.tulentsev.com/2012/02/ruby-how-to-override-class-method-with-a-module/#comment-1061910365</link><description>&lt;p&gt;If it were, indeed, overwriting the definition, then all existing methods would be gone, right? Else it is not an overwrite, but rather an alteration.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sergio Tulentsev</dc:creator><pubDate>Fri, 27 Sep 2013 19:10:33 -0000</pubDate></item><item><title>Re: Ruby: how to override class method with a module - Rock, Paper, Software</title><link>http://tech.tulentsev.com/2012/02/ruby-how-to-override-class-method-with-a-module/#comment-1061793793</link><description>&lt;blockquote&gt;The second class definition does not overwrite previous one, it opens and alters it.&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I believe you mean "override" in this sentence rather than "overwrite" -- overwriting is pretty much precisely what it &lt;em&gt;does&lt;/em&gt; do!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ches</dc:creator><pubDate>Fri, 27 Sep 2013 17:00:22 -0000</pubDate></item><item><title>Re: Pretty log in Git - Byte Friendly</title><link>http://tech.tulentsev.com/2012/11/pretty-log-in-git/#comment-1017637884</link><description>&lt;p&gt;That's nice thanks :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Panagiotis Atmatzidis</dc:creator><pubDate>Mon, 26 Aug 2013 05:48:18 -0000</pubDate></item></channel></rss>