<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for tracefunc</title><link>http://disqus.com/by/tracefunc/</link><description></description><atom:link href="http://disqus.com/tracefunc/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 11 Jan 2016 16:41:10 -0000</lastBuildDate><item><title>Re: Custom dialog for data-confirm in Rails</title><link>http://thelazylog.com/custom-dialog-for-data-confirm-in-rails/#comment-2452409770</link><description>&lt;p&gt;Instead of overriding the whole thing, why not just use the existing hooks provided by allowAction? This is using a custom Modal library, but the principle is the same...&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;&lt;br&gt;$(document).on('confirm', function (event) {&lt;br&gt;  var element = event.target;&lt;br&gt;  var message = element.data("confirm");&lt;br&gt;  &lt;br&gt;  // Display prompt&lt;br&gt;  Modal.confirm(message, function() {&lt;br&gt;    // User hits OK&lt;br&gt;    // Remove data-confirm&lt;br&gt;    element.data("confirm", null);&lt;br&gt;    // Re-click link&lt;br&gt;    element.trigger("click.rails");&lt;br&gt;    // Replace data-confirm (in case of AJAX update, still want prompt next time)&lt;br&gt;    element.data("confirm", message);&lt;br&gt;  });&lt;br&gt;  // Prevent rails from popping up a browser box, we've already done the work&lt;br&gt;  return false;&lt;br&gt;});&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Mon, 11 Jan 2016 16:41:10 -0000</pubDate></item><item><title>Re: The Node Way - Testing Essentials</title><link>http://thenodeway.io/posts/testing-essentials/#comment-2341100125</link><description>&lt;p&gt;According to &lt;a href="http://fredkschott.com/post/2014/05/nodejs-testing-essentials/" rel="nofollow noopener" target="_blank" title="http://fredkschott.com/post/2014/05/nodejs-testing-essentials/"&gt;http://fredkschott.com/post...&lt;/a&gt; (by the author), this post was published Dec 2014.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Tue, 03 Nov 2015 14:45:40 -0000</pubDate></item><item><title>Re: Another refactoring story - Black Matter</title><link>http://cored.github.io/blog/2014/02/24/another-refactoring-story/#comment-1258890666</link><description>&lt;p&gt;I'm suggesting &lt;a href="https://gist.github.com/jamie/9197650" rel="nofollow noopener" target="_blank" title="https://gist.github.com/jamie/9197650"&gt;https://gist.github.com/jam...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Separate out concerns, SurveyManager is probably going to be used elsewhere.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Mon, 24 Feb 2014 16:36:26 -0000</pubDate></item><item><title>Re: Another refactoring story - Black Matter</title><link>http://cored.github.io/blog/2014/02/24/another-refactoring-story/#comment-1258860075</link><description>&lt;p&gt;Yeah, that one depends on the rest of the system. Invitation definitely suffers from some envy, but if SurveyManager is used in other contexts then it probably should stay in the inviter. Sticking with your "one dot" rule though, you cold extract the params hash from there into a local method that asks SurveyManager for a params hash, and then merge the relevant email and static fields.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Mon, 24 Feb 2014 16:13:21 -0000</pubDate></item><item><title>Re: Another refactoring story - Black Matter</title><link>http://cored.github.io/blog/2014/02/24/another-refactoring-story/#comment-1258838178</link><description>&lt;p&gt;I'll propose a new rule: Any method that calls 0 local-object methods, and 1 or more methods on other objects, should belong on that object.&lt;/p&gt;&lt;p&gt;SurveyInviter#invitation probably belongs on the SurveyManager (not totally sure, but probably). SurveyInviter#valid? should definitely be proxying to MessageManager#valid? as well.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Mon, 24 Feb 2014 15:57:49 -0000</pubDate></item><item><title>Re: What to refactor? - Black Matter</title><link>http://cored.github.io/blog/2014/02/17/what-to-refactor/#comment-1248714584</link><description>&lt;p&gt;You mean Sandi Metz, not Sam. &lt;a href="http://www.amazon.com/gp/product/0321721330/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;amp;tag=chamaxwoo-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0321721330" rel="nofollow noopener" target="_blank" title="http://www.amazon.com/gp/product/0321721330/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;amp;tag=chamaxwoo-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0321721330"&gt;http://www.amazon.com/gp/pr...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Mon, 17 Feb 2014 17:24:25 -0000</pubDate></item><item><title>Re: set_trace_func - Spec Timing</title><link>http://blog.tracefunc.com/2008/04/03/spec-timing/#comment-711316452</link><description>&lt;p&gt;Update: RSpec has this built in now, you just need to call it with the --profile flag to get a list of the ten slowest specs.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Thu, 15 Nov 2012 18:09:59 -0000</pubDate></item><item><title>Re: minitest mock -- which is more important? |  polishing ruby by ryan davis</title><link>http://blog.zenspider.com/blog/2012/04/minitest-mock-which-is-more-important-.html#comment-512393262</link><description>&lt;p&gt;Do it! Asserting a series of calls is absolutely what I want to see the rare time I need it.&lt;/p&gt;&lt;p&gt;For stubs (as opposed to mocks), the former is Just Fine.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Fri, 27 Apr 2012 20:24:11 -0000</pubDate></item><item><title>Re: Guides Development Commands - Padrino Ruby Web Framework</title><link>http://padrinorb.com/guides/development-commands#comment-506458669</link><description>&lt;p&gt;Bundler now has support for --path, which you can use to install to a specific directory. It even works now (unlike the few times they tried pre-1.0).&lt;/p&gt;&lt;p&gt;Don't include .bundle or the path you use in your git repo (as it may be different when deploying to production) but running bundle install --path ./vendor/bundle means the only gems I have installed systemwide are rake and bundler.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Sun, 22 Apr 2012 20:16:33 -0000</pubDate></item><item><title>Re: set_trace_func - Installing Wifi without Internet</title><link>http://blog.tracefunc.com/2009/06/21/installing-wifi-without-internet/#comment-199895835</link><description>&lt;p&gt;As an update, I just went through the install process on Ubuntu 11.04 Natty, and it works as advertised.&lt;/p&gt;&lt;p&gt;Install b43-fwcutter via apt-get or some other means, download the two mentioned files (linked as 'other' and 'files') and run the three lines of code in the box. Even better, I didn't need to reboot at all - the networking applet in the menu bar just picked up wifi networking right away.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Sun, 08 May 2011 18:52:44 -0000</pubDate></item><item><title>Re: The Hippy Hacker</title><link>http://evan.tiggerpalace.com/articles/2010/12/18/ruby-test-unit-sucks-and-why-i-still-use-it/#comment-114917688</link><description>&lt;p&gt;As well, it's pretty trivial to write assert_has for t::u.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Sun, 19 Dec 2010 18:04:11 -0000</pubDate></item><item><title>Re: set_trace_func - Jekyll: Custom Liquid Tags</title><link>http://blog.tracefunc.com/2009/12/04/jekyll-custom-liquid-tags/#comment-28434183</link><description>&lt;p&gt;You're totally right, it should just be post|last_of_year. I'll fix the post later today.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Tue, 05 Jan 2010 13:50:53 -0000</pubDate></item><item><title>Re: set_trace_func - Jekyll: Custom Liquid Tags</title><link>http://blog.tracefunc.com/2009/12/04/jekyll-custom-liquid-tags/#comment-28407351</link><description>&lt;p&gt;Good to hear. My archive helper is:&lt;/p&gt;&lt;p&gt;    def last_of_year(post)&lt;br&gt;      post['next'].nil? or post['next'].date.year != post['date'].year&lt;br&gt;    end&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Tue, 05 Jan 2010 12:29:54 -0000</pubDate></item><item><title>Re: set_trace_func - Jekyll: Custom Liquid Tags</title><link>http://blog.tracefunc.com/2009/12/04/jekyll-custom-liquid-tags/#comment-27492798</link><description>&lt;p&gt;To build your own jekyll gem, just check out a copy from git. Make sure you uninstall any old version of jekyll from your gems. Then:&lt;/p&gt;&lt;p&gt;  gem build jekyll.gemspec&lt;br&gt;  gem install jekyll-0.5.4.gem # or whichever version built clean&lt;/p&gt;&lt;p&gt;That should get you a jekyll binary running whatever version of the code you had checked out.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Tue, 29 Dec 2009 15:39:00 -0000</pubDate></item><item><title>Re: Magnus Holm - Temple</title><link>http://oldblog.judofyr.net/posts/temple.html#comment-26738697</link><description>&lt;p&gt;Nil comparisons remind me of what MySQL does with NULL. The null object (as a concept) is not comparable at all with numbers, so you cannot say that it is equal to, less than, or greater than any numeric value.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Sun, 20 Dec 2009 14:06:21 -0000</pubDate></item><item><title>Re: set_trace_func ~ geoip_city on Leopard</title><link>http://blog.tracefunc.com/2009/02/20/geoip-city-on-leopard/#comment-20480416</link><description>&lt;p&gt;Followup: In OSX 10.6 Snow Leopard, ruby is built in 64 bit so you need to specify "-arch x86_64" instead.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Mon, 19 Oct 2009 09:05:37 -0000</pubDate></item><item><title>Re: litany against fear &amp;curren; by nick quaranto &amp;curren; On Gem Forking</title><link>http://quaran.to/blog/2009/10/09/on-gem-forking/#comment-19704464</link><description>&lt;p&gt;Jeremy,&lt;/p&gt;&lt;p&gt;Would it be convenient enough if you were to set up your own subdomain, check out the forked gem from github or wherever, and then just build the gem and push it into your subdomain? That saves you from adding tons of subdomains to your gem env, and also is a bit of a prod to keep you on the ball about what code you're putting into your apps.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Fri, 09 Oct 2009 18:52:11 -0000</pubDate></item><item><title>Re: James on Software | How to Watch Hulu From Canada (or Anywhere Else)</title><link>http://jamesgolick.com/2009/5/24/how-to-watch-hulu-from-canada-or-anywhere-else.html#comment-10240407</link><description>&lt;p&gt;Linode/Ubuntu 8.10 here, got installed by changing default.rb line 32 to group "root" (my ubuntu installed user root with group root) and line 87 to action :nothing. The openvpn config that gets set up won't boot config, and without specifying which to boot it tries all of them - setting action to :nothing lets the script finish.&lt;/p&gt;&lt;p&gt;After that, manually doing `sudo /etc/init.d/openvpn start server` on the server boots up just fine from server.conf.&lt;/p&gt;&lt;p&gt;Finally, to get Tunnelblick to connect, I had to point it at explicit paths for the ca, cert, and key, in client.conf:88-90.&lt;/p&gt;&lt;p&gt;Unfortunately, now that it's connected, I seem to have the same problem as massive - logs on both sides say the connection was established, `route get &lt;a href="http://google.com" rel="nofollow noopener" target="_blank" title="google.com"&gt;google.com&lt;/a&gt;` on my mac comes up with interface tun0 and the correct gateway IP, but firefox just sits and hangs, as does `traceroute &lt;a href="http://google.com" rel="nofollow noopener" target="_blank" title="google.com"&gt;google.com&lt;/a&gt;` :/&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Thu, 28 May 2009 21:16:39 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://blog.rubybestpractices.com/posts/gregory/rails_modularity_1.html#comment-8293233</link><description>&lt;p&gt;Ah, cool. You guys are using Textile though, right? I'm a markdown guy and it's harder for me to add a class for which highlight to use, which is why I went with prettify - just throw it at the code and it's an improvement over plain text.&lt;/p&gt;&lt;p&gt;Regardless, happy to see the code will make it into the feeds now.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Fri, 17 Apr 2009 09:26:25 -0000</pubDate></item><item><title>Re: Ruby Best Practices - Blog</title><link>http://blog.rubybestpractices.com/posts/gregory/rails_modularity_1.html#comment-8262512</link><description>&lt;p&gt;Greg, I'm running my blog off webby, and I've had success using prettify.js (&lt;a href="http://code.google.com/p/google-code-prettify/)" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/google-code-prettify/)"&gt;http://code.google.com/p/go...&lt;/a&gt; to style plain markdown indented pre/code blocks - it keeps all the content in the article, so the feed readers get it, but those viewing it live still get decent highlighting.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Thu, 16 Apr 2009 11:36:31 -0000</pubDate></item><item><title>Re: set_trace_func ~ Snippet: col</title><link>http://blog.tracefunc.com/2008/04/20/snippet-col/#comment-4308187</link><description>&lt;p&gt;Downside, cut works on individual characters, and I much prefer not counting how many spaces are between the columns, or trying to determine if it actually *is* a tab.  Heck, git status gives me #, \t, status:, three spaces, then filename.  And if I recall correctly, the number of spaces depends on what the status is, so cut can't reliably give me a list of all the files pending for a commit, even if an egrep for '#\t.*:' correctly pulls the right lines.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jamie Macey</dc:creator><pubDate>Wed, 10 Dec 2008 08:55:45 -0000</pubDate></item></channel></rss>