<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Jul's Blog - Latest Comments</title><link>http://juls-blog.disqus.com/</link><description></description><atom:link href="https://juls-blog.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 09 Dec 2012 03:24:12 -0000</lastBuildDate><item><title>Re: Make rails3 deployment more robust with inploy</title><link>http://blog.js.hu/2010/07/14/make-rails3-deployment-more-robust-with-inploy/#comment-731548686</link><description>&lt;p&gt;I have switched yet again :) Now I'm using mina (&lt;a href="http://nadarei.co/mina/)" rel="nofollow noopener" target="_blank" title="http://nadarei.co/mina/)"&gt;http://nadarei.co/mina/)&lt;/a&gt; for deployment. It builds a full shell script, and sends it through a single ssh connection.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">julian7</dc:creator><pubDate>Sun, 09 Dec 2012 03:24:12 -0000</pubDate></item><item><title>Re: Make rails3 deployment more robust with inploy</title><link>http://blog.js.hu/2010/07/14/make-rails3-deployment-more-robust-with-inploy/#comment-731368997</link><description>&lt;p&gt;sounds like this would be useful for deployment, I will give it a try and let you know if i was successful. great share&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Elaine Li</dc:creator><pubDate>Sat, 08 Dec 2012 20:55:08 -0000</pubDate></item><item><title>Re: Electronic invoicing in Hungary &amp;#8212; in Hungarian</title><link>http://blog.js.hu/2011/04/17/electronic-invoicing-in-hungary-in-hungarian/#comment-319182583</link><description>&lt;p&gt;Hear that Hungary has decided for a deadline for paper or e-mail to public sector - like most countries have/will do soon. Is this so - pls mail to harald@sypbh.pp.fiKind regardsBo Harald&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bo Harald</dc:creator><pubDate>Sat, 24 Sep 2011 15:46:30 -0000</pubDate></item><item><title>Re: Electronic invoicing in Hungary &amp;#8212; in Hungarian</title><link>http://blog.js.hu/2011/04/17/electronic-invoicing-in-hungary-in-hungarian/#comment-319182283</link><description>&lt;p&gt;Hear that Hungary has decided for a deadline for paper or e-mail to public sector - like most countries have/will do soon. Is this so - pls mail to harald@sypbh.pp.fi &lt;br&gt;Kid regards&lt;br&gt;Bo Harald&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bo Harald</dc:creator><pubDate>Sat, 24 Sep 2011 15:45:43 -0000</pubDate></item><item><title>Re: Vendoring gems with style</title><link>http://blog.js.hu/2011/05/18/vendoring-gems-with-style/#comment-211539778</link><description>&lt;p&gt;I'm thinking about the weakness of adding ./bin to PATH for  a while now, and I think I found a solution: start a dev console (bundle exec $SHELL). It sets the whole environment for your needs (eg. $GEM_* variables, $PATH, $BUNDLER_* and such), without start using $PWD/bin especially if it's in a world-writable area.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">julian7</dc:creator><pubDate>Wed, 25 May 2011 11:55:01 -0000</pubDate></item><item><title>Re: Vendoring gems with style</title><link>http://blog.js.hu/2011/05/18/vendoring-gems-with-style/#comment-209413377</link><description>&lt;p&gt; RVM gemsets are not unnecessary, but using them may cause configuration issues. You can have three fellow developers. Maybe all of them use rvm, but maybe not. Maybe they like your naming conventions, maybe not. You can't please them equally.&lt;br&gt;You can have multiple deployments on the same server. You can't use too specific .rvmrc, because it would mess up your deployments, especially if you serve production too.This is why people tend to leave out .rvmrc from version control.Our point in these blog posts are to encourage everyone to add .rvmrc to source control, even it means tradeoffs.&lt;/p&gt;&lt;p&gt;By default, bundler installs gems to $GEM_HOME, which means your bundled items can be managed by gem command too.&lt;/p&gt;&lt;p&gt;It might be convenient, but after a while, your gem list will be overcrowded with old versions, gathering dust. Therefore, you start cleaning it up. You can do it on your own machine, but you definitely should not do such a thing on a production server.&lt;/p&gt;&lt;p&gt;Of course, you can separate bundled environments with gemsets, but if you start using multiple places (more developers, more deployment targets), this start being a burden. Now I don't even want to mention gems which have .rvmrc in them.&lt;/p&gt;&lt;p&gt;This means we have two issues to fight against: the resistance of putting .rvmrc to source control, and being too specific.&lt;/p&gt;&lt;p&gt;Anyways, bundler does a good job in vendoring: it puts everything in $GEM_HOME, therefore it maintains the same directory structure as rubygems do. It also adds a `bundler` dir to add gems referenced with git URLs.&lt;/p&gt;&lt;p&gt;While I understand the weaknesses of putting ./bin into a PATH, but in a systems administrator's perspective, putting executables into a world-writable area is dangerous, and therefore executing them should be restricted in OS level.&lt;/p&gt;&lt;p&gt;I tried the same with adding PATH settings into .rvmrc, but it's not a robust solution.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">julian7</dc:creator><pubDate>Sun, 22 May 2011 11:42:43 -0000</pubDate></item><item><title>Re: Vendoring gems with style</title><link>http://blog.js.hu/2011/05/18/vendoring-gems-with-style/#comment-208887900</link><description>&lt;p&gt;I'm not sure I follow your reasoning.  The article you linked to says rvm gemsets are unnecessary, but doesn't say why.  They then say to vendor everything inside your application saying "disk space is cheap".  I'm not sure why they don't just go ahead and use an rvm gemset for that.&lt;/p&gt;&lt;p&gt;In your example, you vendor everything in your application, but then symlink the directory to a shared directory.  This seems like the worst of all worlds.  If I do a regular `bundle install` bundler will look for the correct version in system gems and use that, or otherwise install it alongside whatever version I have.  I haven't looked through how bundler does vendoring, but in your situation if you have two apps with different dependencies both symlinked to the same directory I think the apps will end up overwriting each other's gems.&lt;/p&gt;&lt;p&gt;If you don't have the space to vendor things in your app, why not just use regular `bundle install`+ binstubs and let bundler meet dependencies?&lt;/p&gt;&lt;p&gt;Lastly, it's fairly minor, but be aware that adding "./bin" to your path has security implications.  If I'm a lower privileged user I could add my malicious binary to /tmp/bin/ls and then when you cd into tmp and `ls` you'll end up running my command.  The bigger concern is just general confusion with your PATH randomly picking up things in bin directories.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michaelnutt</dc:creator><pubDate>Sat, 21 May 2011 09:46:55 -0000</pubDate></item><item><title>Re: Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic</title><link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/#comment-134461003</link><description>&lt;p&gt;Ok, nice!&lt;/p&gt;&lt;p&gt;&amp;gt;&amp;gt; With this script is it possible to search across relations? Example &lt;a href="http://user.residence.name" rel="nofollow noopener" target="_blank" title="user.residence.name"&gt;user.residence.name&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Do I have to make joins?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Phlegx</dc:creator><pubDate>Tue, 25 Jan 2011 15:36:50 -0000</pubDate></item><item><title>Re: Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic</title><link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/#comment-134441267</link><description>&lt;p&gt;Memoizable just caches the result of your method, it's more like def method() @_method ||= ... end. You can put these methods to another controller (may I suggest using another class which inherits ActiveController, just to be able to exclude these methods if they're not needed), however you won't be able to use @@index_columns, because it would be propagated to all other objects. You'll have to use class methods to do so:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;    class SortableController &amp;lt; ApplicationController&lt;br&gt;      protected&lt;br&gt;      def order_by ... end&lt;br&gt;      def sort_index&lt;br&gt;        self.class.index_columns.include?(params[:sidx]) ? params[:sidx] : nil&lt;br&gt;      end&lt;br&gt;      def sort_order&lt;br&gt;        params[:sord] == 'desc' ? 'desc' : 'asc'&lt;br&gt;      end&lt;br&gt;    end&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;and in your controller:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;    class WhateverController &amp;lt; SortableController&lt;br&gt;      def self.index_columns&lt;br&gt;        @@index_columns ||= [:act, :id, :firstname, :lastname, :"region.name", :"residence.name"]&lt;br&gt;      end&lt;br&gt;      ...&lt;br&gt;    end&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;The catch is @@index_columns will be native only for WhateverController, and it won't be propagated to SortableController.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">julian7</dc:creator><pubDate>Tue, 25 Jan 2011 15:01:26 -0000</pubDate></item><item><title>Re: Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic</title><link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/#comment-134288791</link><description>&lt;p&gt;Ohh nice! I test it today. If it works then you are THE BEST!&lt;br&gt;The code looks simple and clear but what is ActiveSupport::Memoizable?!&lt;br&gt;How can i do to put the :order_by, :sort_index, :sort_order methods to the application controller? Because I have the jqgrid on all index views and so I have to add all this methods to every controller.&lt;/p&gt;&lt;p&gt;Whit this script is it possible to search across model attributes in relations with e.g. the model user that shows the jqgrid on index:&lt;/p&gt;&lt;p&gt;@@index_columns ||= [:act, :id, :firstname, :lastname, :'&lt;a href="http://region.name" rel="nofollow noopener" target="_blank" title="region.name"&gt;region.name&lt;/a&gt;', :'&lt;a href="http://residence.name" rel="nofollow noopener" target="_blank" title="residence.name"&gt;residence.name&lt;/a&gt;']&lt;/p&gt;&lt;p&gt;So, :'&lt;a href="http://region.name" rel="nofollow noopener" target="_blank" title="region.name"&gt;region.name&lt;/a&gt;' and :'&lt;a href="http://residence.name" rel="nofollow noopener" target="_blank" title="residence.name"&gt;residence.name&lt;/a&gt;' are two models in relation with the model user.&lt;/p&gt;&lt;p&gt;What jqgrid plugin are you using for Rails3? Can you deploy a example app to github please?&lt;/p&gt;&lt;p&gt;bye&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Phlegx</dc:creator><pubDate>Tue, 25 Jan 2011 08:44:29 -0000</pubDate></item><item><title>Re: Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic</title><link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/#comment-134239046</link><description>&lt;p&gt;Yep, searchlogic is not in my current stack. This is how a recent users#index looks like:&lt;br&gt;&lt;a href="https://gist.github.com/794700" rel="nofollow noopener" target="_blank" title="https://gist.github.com/794700"&gt;https://gist.github.com/794700&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">julian7</dc:creator><pubDate>Tue, 25 Jan 2011 04:21:05 -0000</pubDate></item><item><title>Re: Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic</title><link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/#comment-134029434</link><description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;How looks the code for rails3? So, you have uninstalled searchlogic?&lt;/p&gt;&lt;p&gt;bye&lt;br&gt;phlegx&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Phlegx</dc:creator><pubDate>Mon, 24 Jan 2011 16:11:05 -0000</pubDate></item><item><title>Re: Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic</title><link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/#comment-80300403</link><description>&lt;p&gt;I already switched to Rails3, and it doesn't check params[:sidx] (it should be one of the columns). Anyways, in rails3, arel does a very nice job, and searchlogic is not needed anymore.&lt;/p&gt;&lt;p&gt;Search and order by should work in the same time, however it could depend on your database backend. Which one you use?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">julian7</dc:creator><pubDate>Thu, 23 Sep 2010 10:09:51 -0000</pubDate></item><item><title>Re: Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic</title><link>http://blog.js.hu/2010/01/07/unobtrusive-jqgrid-on-rails-a-la-2dconcept-but-with-searchlogic/#comment-79728475</link><description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;Nice work. Some suggestions:&lt;/p&gt;&lt;p&gt;- What is your used Rails Version?&lt;br&gt;I use 2.3.8 and i have to change the method public_send to send to get it to work.&lt;/p&gt;&lt;p&gt;- If i search on a column (e.g. username) AND i order the the username column, i get an error. I cannot search AND order a column at the same time. Can you help me please? I'm very newbie in Rails.&lt;/p&gt;&lt;p&gt;Cheers&lt;br&gt;phlegx&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Phlegx</dc:creator><pubDate>Tue, 21 Sep 2010 10:53:03 -0000</pubDate></item><item><title>Re: iPhone</title><link>http://blog.js.hu/2008/08/23/iphone/#comment-34559392</link><description>&lt;p&gt;Én nem MSN-ezek a buszon, lehet, hogy ez a gond.  Azonban arra már rájöttem, hogy autóvezetés közben felhívni valakit lényegesen veszélyesebb, mint a régi, hard-keyboard-os nokia-val.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">js</dc:creator><pubDate>Sat, 22 Nov 2008 03:58:30 -0000</pubDate></item><item><title>Re: iPhone</title><link>http://blog.js.hu/2008/08/23/iphone/#comment-34559390</link><description>&lt;p&gt;igazabol engem elgondolkodtat az, hogy megeri-e a penzet az elso generacioshoz kepest, illetve a jol megszokott qwerty gombsoros motorola utan tudnek-e msn-ezni lotyogo buszon.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lymmz</dc:creator><pubDate>Wed, 29 Oct 2008 20:33:08 -0000</pubDate></item><item><title>Re: Bodum Santos</title><link>http://blog.js.hu/2008/02/24/bodum-santos/#comment-34559295</link><description>&lt;p&gt;Persze most mondhatnám, hogy nem fogjátok elhinni, de tényleg megjött a cuccos.  Majd erről is fogok valamit írni.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">js</dc:creator><pubDate>Mon, 21 Jul 2008 14:47:03 -0000</pubDate></item><item><title>Re: Bodum Santos</title><link>http://blog.js.hu/2008/02/24/bodum-santos/#comment-34559290</link><description>&lt;p&gt;akkor még nem lesz homokóra alakú kávécsinálómasinád!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lymmz</dc:creator><pubDate>Fri, 02 May 2008 15:24:08 -0000</pubDate></item><item><title>Re: Bodum Santos</title><link>http://blog.js.hu/2008/02/24/bodum-santos/#comment-34559288</link><description>&lt;p&gt;Ötödik hete nem szóltak vissza, bár két hete érdeklődni kezdtem.  Akkor az volt a helyzet, hogy már leadták a rendelést, de a cég még nem szólt vissza.  News at 11.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">js</dc:creator><pubDate>Sat, 29 Mar 2008 12:07:03 -0000</pubDate></item><item><title>Re: Bodum Santos #2</title><link>http://blog.js.hu/2008/02/25/bodum-santos-2/#comment-34559304</link><description>&lt;p&gt;hehe, akkor kéne odamenned, amikor még jól látod, hogy az egy Rumcájz-puska végén bogyóval!  Rajtam is fennt van gyakran a Kwak-buff, de hát én már csak a madarasteszkóból szerzem.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">js</dc:creator><pubDate>Mon, 17 Mar 2008 13:40:51 -0000</pubDate></item><item><title>Re: Bodum Santos #2</title><link>http://blog.js.hu/2008/02/25/bodum-santos-2/#comment-34559302</link><description>&lt;p&gt;pedig már azt hittem, hogy jobb kocsmákban ilyenbe mérik a barna sört. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lymmz</dc:creator><pubDate>Mon, 17 Mar 2008 07:13:44 -0000</pubDate></item><item><title>Re: Új év, új blogmotor</title><link>http://blog.js.hu/2008/02/14/uj-ev-uj-blogmotor/#comment-34559253</link><description>&lt;p&gt;Háhá, mistype, cégé!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">js</dc:creator><pubDate>Tue, 04 Mar 2008 18:43:32 -0000</pubDate></item><item><title>Re: Új év, új blogmotor</title><link>http://blog.js.hu/2008/02/14/uj-ev-uj-blogmotor/#comment-34559249</link><description>&lt;p&gt;Nagyon szep es jo :) De draga baratom az nem &lt;b&gt;inport&lt;/b&gt; hanem &lt;b&gt;import&lt;/b&gt; :) :) amugy cg a bloghoz, nagyon szep :P&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fpoison</dc:creator><pubDate>Tue, 04 Mar 2008 18:26:18 -0000</pubDate></item><item><title>Re: Új év, új blogmotor</title><link>http://blog.js.hu/2008/02/14/uj-ev-uj-blogmotor/#comment-34559242</link><description>&lt;p&gt;Good catch... egyébként teljesen ide vág, azért nem volt meg az adatbázis, mert azt nem mozgattam át a &lt;a href="http://js.hu" rel="nofollow noopener" target="_blank" title="js.hu"&gt;js.hu&lt;/a&gt;-val együtt, miközben az aldomain-eket csináltam :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">js</dc:creator><pubDate>Mon, 18 Feb 2008 17:40:46 -0000</pubDate></item><item><title>Re: Új év, új blogmotor</title><link>http://blog.js.hu/2008/02/14/uj-ev-uj-blogmotor/#comment-34559237</link><description>&lt;p&gt;A &lt;a href="http://js.hu/jos/" rel="nofollow noopener" target="_blank" title="http://js.hu/jos/"&gt;http://js.hu/jos/&lt;/a&gt; oldaladon nem működnek a linkek (pl. &lt;a href="http://js.hu/jos/spec-1" rel="nofollow noopener" target="_blank" title="http://js.hu/jos/spec-1"&gt;http://js.hu/jos/spec-1&lt;/a&gt; ).&lt;/p&gt;&lt;p&gt;Bocs, hogy itt szólok, de nem találtam sehol kontakt lehetőséget.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bpelhos</dc:creator><pubDate>Mon, 18 Feb 2008 06:41:44 -0000</pubDate></item></channel></rss>