<?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 rvdh</title><link>http://disqus.com/by/rvdh/</link><description></description><atom:link href="http://disqus.com/rvdh/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 05 May 2025 12:14:14 -0000</lastBuildDate><item><title>Re: UNION with Active Record - The Pug Automatic</title><link>http://thepugautomatic.com/2014/08/union-with-active-record/#comment-6700187076</link><description>&lt;p&gt;Just a warning to everyone wanting to implement this: If you run batch commands on a scope like this, e.g. &lt;code&gt;touch_all&lt;/code&gt;, &lt;code&gt;destroy_all&lt;/code&gt; etc. you will touch, destroy… your whole table.&lt;/p&gt;&lt;p&gt;&lt;b&gt;So never do this:&lt;/b&gt;&lt;br&gt;&lt;code&gt;Item.from(sql).touch_all # Will touch your whole table&lt;br&gt;Item.from(sql).destroy_all # Will &lt;/code&gt;&lt;code&gt;&lt;b&gt;destroy&lt;/b&gt;&lt;/code&gt;&lt;code&gt; your whole table&lt;br&gt;&lt;br&gt;&lt;/code&gt;Maybe there are better ways, but apparently this is working:&lt;/p&gt;&lt;p&gt;&lt;code&gt;Item.where(id: Item.from(sql)).touch_all # Will only touch records in your union&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Mon, 05 May 2025 12:14:14 -0000</pubDate></item><item><title>Re: Time based triggers in Ember.JS</title><link>https://www.rvdh.de/2014/11/14/time-based-triggers-in-ember-js/#comment-3943856787</link><description>&lt;p&gt;Hi Amol, I haven't really worked with Ember for a long time now, so I don't really know. ¯\_(ツ)_/¯&lt;br&gt;Sorry! 😬&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Thu, 14 Jun 2018 04:46:44 -0000</pubDate></item><item><title>Re: Animated PNG format: How does it compare to Animated WebP and GIF?</title><link>https://www.androidpolice.com/2017/05/01/animated-png-format-compare-animated-webp-gif/#comment-3284933846</link><description>&lt;p&gt;Exactly. It's hard to evaluate or validate the author's results without knowing which settings he used. In general, aPNGs have the potential to be smaller than animated GIFs. My first guess is the author did not choose 8bit when appropriate, or the frames were not compressed properly with compressors like zopfli, pngout, optipng…&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Tue, 02 May 2017 10:29:33 -0000</pubDate></item><item><title>Re: Time based triggers in Ember.JS</title><link>https://www.rvdh.de/2014/11/14/time-based-triggers-in-ember-js/#comment-2179178063</link><description>&lt;p&gt;Hey Gaurav, thank you for your comment. Unfortunately, I cannot help you without a jsfiddle, jsbin or other kind of demo code. Maybe you can create one? Also, you may be able to reach a larger audience by posting this to &lt;a href="http://discuss.emberjs.com/" rel="nofollow noopener" target="_blank" title="http://discuss.emberjs.com/"&gt;http://discuss.emberjs.com/&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Regards, Ralph :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Fri, 07 Aug 2015 06:04:34 -0000</pubDate></item><item><title>Re: Reads for Rubyists</title><link>https://www.rvdh.de/2012/01/12/why-i-roll-my-own-authentication/#comment-2159888831</link><description>&lt;p&gt;Hey John, thank you for your comment. Creating your own gem is something that probably makes sense if you are starting new apps often, which is something I rarely do. This is why *not* using a gem generally pays off quickly for me, because I don't have to make sure the external code works well with my custom code. Still, if you find yourself creating new apps regularly, this may well be a time saver! :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Mon, 27 Jul 2015 15:38:45 -0000</pubDate></item><item><title>Re: Time based triggers in Ember.JS</title><link>https://www.rvdh.de/2014/11/14/time-based-triggers-in-ember-js/#comment-1699932845</link><description>&lt;p&gt;Thank you Mike! :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Tue, 18 Nov 2014 14:05:06 -0000</pubDate></item><item><title>Re: Time based triggers in Ember.JS</title><link>https://www.rvdh.de/2014/11/14/time-based-triggers-in-ember-js/#comment-1693041496</link><description>&lt;p&gt;Thank you very much for the hint, I updated the post! :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Fri, 14 Nov 2014 10:25:27 -0000</pubDate></item><item><title>Re: PhraseApp - Blog about software localization — Manage localization for your Play Framework projects with PhraseApp</title><link>http://blog.phraseapp.com/post/99398987122#comment-1623604969</link><description>&lt;p&gt;w00t! \o/&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Tue, 07 Oct 2014 11:25:45 -0000</pubDate></item><item><title>Re: AngularJS vs. Backbone.js vs. Ember.js</title><link>http://www.airpair.com/js/javascript-framework-comparison#comment-1558408062</link><description>&lt;p&gt;Same experience here. My app never broke in any way after the 1.0 release. Also, I recently just dropped in the 1.8.beta.1, so no more noisy script tags, and still no breakages, problems or whatsoever. EmberJS, once learned, is a pleasure to work with.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Mon, 25 Aug 2014 12:47:18 -0000</pubDate></item><item><title>Re: Introducing Ember CLI Addons</title><link>http://reefpoints.dockyard.com/2014/06/24/introducing_ember_cli_addons.html#comment-1453337276</link><description>&lt;p&gt;Great work Robert, Stefan and the rest of the Ember CLI team! :) &amp;lt;3&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Wed, 25 Jun 2014 05:04:38 -0000</pubDate></item><item><title>Re: wrapping localstorage and other pojos with ember.object</title><link>https://www.rvdh.de/2014/05/08/wrapping-localstorage-and-other-pojos-with-ember-object/#comment-1382845328</link><description>&lt;p&gt;Hey bmac, glad you found this interesting. No, I haven't played with the window's "storage" event, I didn't even know it exists :D&lt;/p&gt;&lt;p&gt;So thanks for sharing, I will definitely give this a try and see how it goes! :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Tue, 13 May 2014 10:14:11 -0000</pubDate></item><item><title>Re: reptyr: resume running processes in screen or tmux</title><link>https://www.rvdh.de/2014/03/26/reptyr-resume-running-processes-in-screen-or-tmux/#comment-1317147449</link><description>&lt;p&gt;Hi Kaushal,&lt;/p&gt;&lt;p&gt;sorry, unfortunately I have no tcsh experience. I also found this, which does not leave much hope:&lt;/p&gt;&lt;p&gt;"Not all shells support disown, unfortunately. disown is supported in bash and zsh, but shells like csh, tcsh,dash do not support it. Besides disown, you can also use nohup to detach a Linux process from shell, but in this case, at the time of process launch."&lt;/p&gt;&lt;p&gt;Source: &lt;a href="http://xmodulo.com/2013/04/how-to-detach-linux-process-from-shell.html" rel="nofollow noopener" target="_blank" title="http://xmodulo.com/2013/04/how-to-detach-linux-process-from-shell.html"&gt;http://xmodulo.com/2013/04/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;So it seems like you cannot make this work for an already running process in tcsh. :(&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Thu, 03 Apr 2014 14:25:11 -0000</pubDate></item><item><title>Re: Reads for Rubyists</title><link>https://www.rvdh.de/2012/01/12/why-i-roll-my-own-authentication/#comment-1258355782</link><description>&lt;p&gt;Thanks, that's interesting to hear. I admit it's not DRY, but at least there are some reusable parts, like has_secure_password from Rails.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Mon, 24 Feb 2014 10:10:26 -0000</pubDate></item><item><title>Re: The horrifying state of eGovernment in Germany - Hamann Distributed</title><link>http://distributed.hamann.se/blog/2013/08/31/the-horrifying-state-of-egovernment-in-germany/#comment-1025131049</link><description>&lt;p&gt;"Who does things like this to humanity? How much do they get paid?"&lt;/p&gt;&lt;p&gt;I once tried to find out myself. And to my horror, these companies get paid a lot. The problem is, commissions for software projects are assigned by calls for bids. And of course, the companies say "I'll do it for X" and then, a few months into the development, they say "Oh, we found we need 6 more months, because the requirements changed (which will inevitably happen anytime). And a lot more money". The government reacts to this by specifying even more requirements up front next time (an expense factor in itself), plus requiring the companies to have CERTIFICATES, in order to filter out the bad ones (yeah, best way to rule out information asymmetries, sure). So if you want to apply in a call for bids for a government web app, having a shitty Microsoft Something certificate might be a plus!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Sun, 01 Sep 2013 06:48:04 -0000</pubDate></item><item><title>Re: Write client-side HTML5 apps like a pro</title><link>https://blog.engineyard.com/2013/write-client-side-html5-apps-like-a-pro#comment-1015737035</link><description>&lt;p&gt;I think you are doing Ember wrong here. Having used both Angular and Ember, I'd say that Ember makes more use of convention over configuration to wire things together than Angular does. For an example, see this screenshot I shamelessly copied from the Peepcode screencast (very recommended, btw): &lt;a href="http://cl.ly/image/0K3u2d1G0Q0l" rel="nofollow noopener" target="_blank" title="http://cl.ly/image/0K3u2d1G0Q0l"&gt;http://cl.ly/image/0K3u2d1G...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Also, in Ember you distinguish between views and templates. Templates are just Handlebars, so they look very much like the double curly brackets stuff you wrote above, and are easily graspable by anyone who knows HTML. Views, on the other side, like the one you linked in your comment, are mostly used for event handling (see &lt;a href="http://emberjs.com/guides/views/)" rel="nofollow noopener" target="_blank" title="http://emberjs.com/guides/views/)"&gt;http://emberjs.com/guides/v...&lt;/a&gt;. This means, in 90% of the cases, you just create templates, without any views. Unfortunately, in the app you linked the templates are hidden in the index.html, a not so good practice as your app grows: &lt;a href="https://github.com/tastejs/todomvc/blob/gh-pages/architecture-examples/emberjs/index.html" rel="nofollow noopener" target="_blank" title="https://github.com/tastejs/todomvc/blob/gh-pages/architecture-examples/emberjs/index.html"&gt;https://github.com/tastejs/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;If you want to take a look at a well designed, large scale Ember app, take a look at Discourse:&lt;/p&gt;&lt;p&gt;&lt;a href="https://github.com/discourse/discourse/tree/master/app/assets/javascripts/discourse" rel="nofollow noopener" target="_blank" title="https://github.com/discourse/discourse/tree/master/app/assets/javascripts/discourse"&gt;https://github.com/discours...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Also, try Discourse in your Browser here: &lt;a href="http://try.discourse.org/" rel="nofollow noopener" target="_blank" title="http://try.discourse.org/"&gt;http://try.discourse.org/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Or here: &lt;a href="http://discuss.emberjs.com/" rel="nofollow noopener" target="_blank" title="http://discuss.emberjs.com/"&gt;http://discuss.emberjs.com/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;If you are looking for a simpler example app, this might be a good choice: &lt;a href="https://github.com/dgeb/ember_data_example" rel="nofollow noopener" target="_blank" title="https://github.com/dgeb/ember_data_example"&gt;https://github.com/dgeb/emb...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Sat, 24 Aug 2013 02:22:06 -0000</pubDate></item><item><title>Re: Javascript Styleguides - jan.krutisch.de</title><link>http://jan.krutisch.de/en/2013/01/19/javascript-styleguides.html#comment-775595150</link><description>&lt;p&gt;Interesting post! Coming from the rather "strict" Ruby world, I find the competing styleguides present in the JS world rather confusing. For me, it's one more reason to write coffeescript. The coffeescript output is good enough for me to debug stuff in the browser, and the syntax is so much easier to write and parse for my eyes.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Wed, 23 Jan 2013 08:07:48 -0000</pubDate></item><item><title>Re: Custom EC2 Security Groups</title><link>http://www.scalarium.com/blog/2011-08-21-custom-security-groups/index.html#comment-541697596</link><description>&lt;p&gt;Exactly what I needed today, thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Wed, 30 May 2012 05:17:45 -0000</pubDate></item><item><title>Re: Reads for Rubyists</title><link>https://www.rvdh.de/2011/12/01/splitting-your-rails-classes-into-modules-how-does-it-work/#comment-476549714</link><description>&lt;p&gt;You're welcome :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Mon, 26 Mar 2012 13:13:28 -0000</pubDate></item><item><title>Re: Reads for Rubyists</title><link>https://www.rvdh.de/2011/12/01/splitting-your-rails-classes-into-modules-how-does-it-work/#comment-476468597</link><description>&lt;p&gt;Hi Brian,&lt;br&gt;Your first question: Both ways won't load differently. In the 2nd version, a class or module User has to exist for the code to work, but this should be the case anyway as you are extending your existing User model.&lt;/p&gt;&lt;p&gt;Your second question: User::Authentication lives in the User namespace, so including Authentication inside User will include User::Authentication, not the Authentication module from app/models/concerns. If you include both Authentication and ::Authentication (top level namespace) inside User, both modules will be included.&lt;/p&gt;&lt;p&gt;The method lookup works along the ancestor chain. Just fire up a Rails console and run &lt;a href="http://User.ancestors.map" rel="nofollow noopener" target="_blank" title="User.ancestors.map"&gt;User.ancestors.map&lt;/a&gt;(&amp;amp;:name). Whichever module comes first and provides the method you call overrides the following modules. Modules loaded last will come first in the ancestor chain.&lt;/p&gt;&lt;p&gt;Hope to have helped&lt;br&gt;Ralph&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Mon, 26 Mar 2012 11:25:37 -0000</pubDate></item><item><title>Re: Seeds for different environments</title><link>http://dennisreimann.de/blog/seeds-for-different-environments#comment-420863889</link><description>&lt;p&gt;I like! If you want to be compatible with Windows n00bs, you'd have to do that:&lt;br&gt;Rails.root.join('db', 'seeds', "#{seed}.rb")&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Wed, 25 Jan 2012 16:14:30 -0000</pubDate></item><item><title>Re: New Railslove product for the EURO 2012</title><link>http://michaelbumann.com/post/14641134714#comment-392915705</link><description>&lt;p&gt;I think it looks awesome, but maybe I'm a bit biased :D&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Fri, 23 Dec 2011 05:08:37 -0000</pubDate></item><item><title>Re: Reads for Rubyists</title><link>https://www.rvdh.de/2011/12/01/splitting-your-rails-classes-into-modules-how-does-it-work/#comment-376565621</link><description>&lt;p&gt;Wheeeee thank you, will do!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Thu, 01 Dec 2011 04:58:14 -0000</pubDate></item><item><title>Re: Scalarium: Deployment favicons</title><link>http://www.scalarium.com/blog/2011-05-23-deployment-favicons#comment-209957080</link><description>&lt;p&gt; Nice! Has helped a lot already :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Mon, 23 May 2011 12:38:15 -0000</pubDate></item><item><title>Re: http://codebeaker.tumblr.com/post/5048268728</title><link>http://codebeaker.tumblr.com/post/5048268728#comment-195065106</link><description>&lt;p&gt;Cool! Love to see what you're coming up with!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Sun, 01 May 2011 05:41:47 -0000</pubDate></item><item><title>Re: Using Scalarium CLI</title><link>http://railslove.com/blog/2011/01/13/using-scalarium-cli#comment-493674482</link><description>&lt;p&gt;Awesome, Mathias, looking forward to it!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph von der Heyden</dc:creator><pubDate>Thu, 13 Jan 2011 11:06:23 -0000</pubDate></item></channel></rss>