<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Max Ivak Personal Site - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-79e8a74c" type="application/json"/><link>http://maxivak.disqus.com/</link><description></description><atom:link href="http://maxivak.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 11 May 2012 02:12:35 -0000</lastBuildDate><item><title>Re: REST vs XML-RPC vs SOAP &amp;#8211; pros and cons</title><link>http://maxivak.com/rest-vs-xml-rpc-vs-soap/#comment-526082581</link><description>&lt;p&gt;Nice article, keep posting !&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vikram</dc:creator><pubDate>Fri, 11 May 2012 02:12:35 -0000</pubDate></item><item><title>Re: Memcached with Windows</title><link>http://maxivak.com/memcached-with-windows/#comment-501873834</link><description>&lt;p&gt;there is no latest win32 binaries of memcached in the above links&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Thu, 19 Apr 2012 03:35:33 -0000</pubDate></item><item><title>Re: Dynamic URL Rewriting on ASP.NET MVC</title><link>http://maxivak.com/dynamic-url-rewriting-on-asp-net-mvc/#comment-479158273</link><description>&lt;p&gt;very helpful! Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohanjerry1</dc:creator><pubDate>Thu, 29 Mar 2012 02:46:21 -0000</pubDate></item><item><title>Re: Installing mysql2 gem on Ruby 1.9.2 and Rails 3.0.5 on Windows</title><link>http://maxivak.com/installing-mysql2-gem-on-ruby-1-9-2-and-rails-3-0-5-on-windows/#comment-466761581</link><description>&lt;p&gt;thanks this was helpfull !&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ernests Dreimanis</dc:creator><pubDate>Fri, 16 Mar 2012 04:49:57 -0000</pubDate></item><item><title>Re: Ruby metaprogramming and own custom attr_accessor</title><link>http://maxivak.com/ruby-metaprogramming-and-own-attr_accessor/#comment-462790746</link><description>&lt;p&gt;paste your code somewhere to see it.&lt;br&gt;For example, use &lt;a href="http://pastebin.com/" rel="nofollow"&gt;http://pastebin.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Try to use it without an initializer:&lt;/p&gt;

&lt;p&gt;class Foo&lt;br&gt;attr_accessor_with_history :bar&lt;br&gt;end&lt;/p&gt;

&lt;p&gt;f = Foo.new&lt;br&gt;f.bar = 3&lt;br&gt;f.bar = :wowzo&lt;br&gt;f.bar = 'boo!'&lt;br&gt;puts f.bar_history # =&amp;gt; [nil, 3, :wowzo, 'boo!']&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">maxivak</dc:creator><pubDate>Sun, 11 Mar 2012 13:47:33 -0000</pubDate></item><item><title>Re: Ruby metaprogramming and own custom attr_accessor</title><link>http://maxivak.com/ruby-metaprogramming-and-own-attr_accessor/#comment-461957140</link><description>&lt;p&gt;I'm struggling to get this code to work for me. I tried to integrate the ideas into my code but couldn't get it to work. Finally I just copied everything you have and put it into my .rb file but I keep getting the Invalid number of arguments for the initialize method. Any ideas? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sarah H</dc:creator><pubDate>Sun, 11 Mar 2012 00:54:26 -0000</pubDate></item><item><title>Re: Ruby metaprogramming and own custom attr_accessor</title><link>http://maxivak.com/ruby-metaprogramming-and-own-attr_accessor/#comment-460827482</link><description>&lt;p&gt;@#{attr_hist_name} ||= [nil] - that's more Ruby way for initializing a variable. thank you.&lt;/p&gt;

&lt;p&gt;I can't think of any reason for initializating the history with [nil] instead of just empty array []. I was asking the same question. Why?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">maxivak</dc:creator><pubDate>Fri, 09 Mar 2012 14:34:03 -0000</pubDate></item><item><title>Re: Ruby metaprogramming and own custom attr_accessor</title><link>http://maxivak.com/ruby-metaprogramming-and-own-attr_accessor/#comment-460628738</link><description>&lt;p&gt;i was doing this homework too.. but i dont see why theres the need to put nil inside the array in&lt;/p&gt;

&lt;p&gt;@#{attr_hist_name} = [nil] if @#{attr_hist_name}.nil?&lt;/p&gt;

&lt;p&gt;i know its a requirement.... but why?&lt;/p&gt;

&lt;p&gt;and in that piece of code you could use something like this&lt;/p&gt;

&lt;p&gt;@#{attr_hist_name} ||= [nil]&lt;/p&gt;

&lt;p&gt;that will set attr_hist_name to [nil] only if attr_hist_name.nil?.. much more like the if you have but a lil more clean..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">orlandodelaguila</dc:creator><pubDate>Fri, 09 Mar 2012 10:09:42 -0000</pubDate></item><item><title>Re: Ruby metaprogramming and own custom attr_accessor</title><link>http://maxivak.com/ruby-metaprogramming-and-own-attr_accessor/#comment-456295539</link><description>&lt;p&gt;I see these points&lt;br&gt;- The class which has this instance variable must have the ability to change this variable directly.&lt;br&gt;It must be some way to change the value directly. This way is @varname = value.&lt;br&gt;- In order to do something more while changing the value of variable - that's what methods like getters/setters are about.&lt;/p&gt;

&lt;p&gt;- To be 100% sure you don't change the value of variable without changing the history then I would think of this OOP technique:&lt;br&gt;1. define a super (parent) class whose job is&lt;br&gt;define an instance variable as private, define getter/setter to track the history&lt;br&gt;2. in a derived class:&lt;br&gt;access the variable only by getters/setters.&lt;/p&gt;

&lt;p&gt;BUT! It is Ruby.. &lt;br&gt;Ruby doesn't provide visibility control over variable. Ruby allows too much to do with classes like reopening classes.. So it is your responsibility how you use Ruby's cool stuff.&lt;/p&gt;

&lt;p&gt;We can think what we want to see new to Ruby. &lt;br&gt;But I don't think it would be a good way for Ruby to add some metaprogramming feature to modify the behaviour of this assignment operator: @var = value. I feel that Ruby introduced @-sign intentionally and specially for accessing the variable directly.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">maxivak</dc:creator><pubDate>Sun, 04 Mar 2012 17:41:28 -0000</pubDate></item><item><title>Re: Ruby metaprogramming and own custom attr_accessor</title><link>http://maxivak.com/ruby-metaprogramming-and-own-attr_accessor/#comment-456081403</link><description>&lt;p&gt;Yes, thanks very much.  That seems like a nice strategy, but I was looking for a way to leave the standard ruby  initialize syntax in place, but still track values.  I just haven't been able to think of a way that works.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Josephquigley</dc:creator><pubDate>Sun, 04 Mar 2012 13:14:19 -0000</pubDate></item><item><title>Re: Ruby metaprogramming and own custom attr_accessor</title><link>http://maxivak.com/ruby-metaprogramming-and-own-attr_accessor/#comment-455800462</link><description>&lt;p&gt;anytime you want to change @bar's value you need to use its setter, but do not modify @bar directly. Otherwise it breaks the logic.&lt;/p&gt;

&lt;p&gt;So instead of this&lt;/p&gt;

&lt;p&gt;def initialize(value)&lt;br&gt;@bar = value&lt;br&gt;end&lt;/p&gt;

&lt;p&gt;write this:&lt;/p&gt;

&lt;p&gt;def initialize(value)&lt;br&gt;    self.bar= value&lt;br&gt;end&lt;/p&gt;

&lt;p&gt;it will call the setter that tracks a history.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">maxivak</dc:creator><pubDate>Sun, 04 Mar 2012 03:37:54 -0000</pubDate></item><item><title>Re: Ruby metaprogramming and own custom attr_accessor</title><link>http://maxivak.com/ruby-metaprogramming-and-own-attr_accessor/#comment-455758778</link><description>&lt;p&gt;Thanks very much for these examples. Regarding attr_accessor_with_history.  What if the class were set up like this?&lt;/p&gt;

&lt;p&gt;class Foo&lt;br&gt;  attr_accessor_with_history :bar&lt;br&gt;  &lt;br&gt;  def initialize(value)&lt;br&gt;    @bar = value&lt;br&gt;   end&lt;/p&gt;

&lt;p&gt;end&lt;br&gt;f = Foo.new(4)&lt;br&gt;f.bar = 3 # =&amp;gt; 3&lt;br&gt;f.bar = :wowzo &lt;br&gt;p f.bar_history&lt;/p&gt;

&lt;p&gt;#we lose the initial value of bar which was set to 4&lt;br&gt;#Thoughts?  I would think we would want to capture the initial value of bar =&amp;gt; '4'&lt;/p&gt;

&lt;p&gt;#Thanks!&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Josephquigley</dc:creator><pubDate>Sun, 04 Mar 2012 01:02:17 -0000</pubDate></item><item><title>Re: Difference between bounce rate &amp;#038; exit rate (Google Analytics)</title><link>http://maxivak.com/difference-between-bounce-rate-exit-rate-google-analytics/#comment-448330189</link><description>&lt;p&gt;Excellent explanation and example. Thanks for that a lot!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serge</dc:creator><pubDate>Fri, 24 Feb 2012 19:35:12 -0000</pubDate></item><item><title>Re: Entity Framework vs LINQ to SQL</title><link>http://maxivak.com/entity-framework-vs-linq-to-sql/#comment-440719520</link><description>&lt;p&gt;Thanks, God bless you&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chennoufialwalid</dc:creator><pubDate>Thu, 16 Feb 2012 06:32:24 -0000</pubDate></item><item><title>Re: Bootstrap toolkit from Twitter : Overview</title><link>http://maxivak.com/bootstrap-toolkit-from-twitter-overview/#comment-403545773</link><description>&lt;p&gt;You are right. Bootstrap from Twitter has only a few examples for layout.&lt;/p&gt;

&lt;p&gt;I do CSS in my sites as follows:&lt;/p&gt;

&lt;p&gt;1. Layout&lt;br&gt;Get CSS for layout from here:&lt;br&gt;&lt;a href="http://blog.html.it/layoutgala/" rel="nofollow"&gt;http://blog.html.it/layoutgala...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, if you need fluid 3-column layout with fixed secondary columns then try this demo:&lt;br&gt;&lt;a href="http://blog.html.it/layoutgala/LayoutGala13.html" rel="nofollow"&gt;http://blog.html.it/layoutgala...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but be careful to test that layout in different browsers.&lt;br&gt;Also they have some little problems. For example, when you make the width of the page in browser very small - it breaks the second column and makes its width too small. The solution to this problem - add "min-width: XXpx;" to the style.&lt;br&gt;So I had to fix it a little in my sites.&lt;/p&gt;

&lt;p&gt;Also, for layouts take a look at YAML framework.&lt;br&gt;&lt;a href="http://www.yaml.de/fileadmin/examples/index.html" rel="nofollow"&gt;http://www.yaml.de/fileadmin/e...&lt;/a&gt;&lt;br&gt;But most of their examples, have a fixed width of the page and I didn't use YAML much in my sites.&lt;/p&gt;

&lt;p&gt;2. CSS for page elements&lt;br&gt;Then use CSS for all elements from Twitter Boostrap.&lt;br&gt;They have good structure in CSS code so you can just copy what you need.&lt;br&gt;Usually, I copy CSS for forms, buttons, pagination, alerts/messages.&lt;/p&gt;

&lt;p&gt;3. Typography&lt;br&gt;For a good typography for a text on page I use Blueprint Framework:&lt;br&gt;&lt;a href="http://www.blueprintcss.org/" rel="nofollow"&gt;http://www.blueprintcss.org/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the demo:&lt;br&gt;&lt;a href="http://www.blueprintcss.org/tests/parts/elements.html" rel="nofollow"&gt;http://www.blueprintcss.org/te...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But I choose forms from Bootstrap in preference to forms from Blueprint.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">maxivak</dc:creator><pubDate>Sat, 07 Jan 2012 03:47:00 -0000</pubDate></item><item><title>Re: Bootstrap toolkit from Twitter : Overview</title><link>http://maxivak.com/bootstrap-toolkit-from-twitter-overview/#comment-402676838</link><description>&lt;p&gt;Hi Max,&lt;br&gt;  I am looking for a good framework and thought I had settled on Bootstrap but it seems to be lacking a lot.  Like fluid three column layouts. Have you found another framework that you like better than Bootstrap?&lt;/p&gt;

&lt;p&gt;Anne&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anne</dc:creator><pubDate>Fri, 06 Jan 2012 14:00:11 -0000</pubDate></item><item><title>Re: Entity Framework vs LINQ to SQL</title><link>http://maxivak.com/entity-framework-vs-linq-to-sql/#comment-384674425</link><description>&lt;p&gt;Nice read.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sharma Navin24</dc:creator><pubDate>Mon, 12 Dec 2011 07:26:46 -0000</pubDate></item><item><title>Re: Difference between bounce rate &amp;#038; exit rate (Google Analytics)</title><link>http://maxivak.com/difference-between-bounce-rate-exit-rate-google-analytics/#comment-382726335</link><description>&lt;p&gt;Still need to get my head around this a bit more, but thanks, this helped me out a lot:)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shayne Cuffy</dc:creator><pubDate>Fri, 09 Dec 2011 05:01:21 -0000</pubDate></item><item><title>Re: Entity Framework vs LINQ to SQL</title><link>http://maxivak.com/entity-framework-vs-linq-to-sql/#comment-376403271</link><description>&lt;p&gt;Great post. "Entity Framework is more robust and is the way Microsoft is going"...I'll go for this one.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bonakkid</dc:creator><pubDate>Wed, 30 Nov 2011 20:52:43 -0000</pubDate></item><item><title>Re: Entity Framework vs LINQ to SQL</title><link>http://maxivak.com/entity-framework-vs-linq-to-sql/#comment-376397607</link><description>&lt;p&gt;пасибос!!! помоглос в работе-с!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">буркин ваня</dc:creator><pubDate>Wed, 30 Nov 2011 20:42:58 -0000</pubDate></item><item><title>Re: Entity Framework vs LINQ to SQL</title><link>http://maxivak.com/entity-framework-vs-linq-to-sql/#comment-369229822</link><description>&lt;p&gt;Great Article.. I was looking this content only from last 5 days.. Thanks a ton..&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jquerybyexample</dc:creator><pubDate>Mon, 21 Nov 2011 04:37:29 -0000</pubDate></item></channel></rss>
