tag:blogger.com,1999:blog-63360970314076107092009-05-06T10:54:27.383+03:00Webmaster's NotesNotes to self about tricky solutions to common problems in web development, django/python, ruby on rails, ajax, life, and so on.kibitzerhttp://www.blogger.com/profile/02481263853203895939noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-6336097031407610709.post-9685455127795424652009-05-05T23:07:00.008+03:002009-05-06T10:54:20.998+03:00Windows 7 RCSorry for another rant, but I must. I've been using Windows 7, Microsoft's successor to the failure that was Vista, since build 7000 (which was one of the first public betas). Yesterday Release Candidate version was released, available to TechNet/MSDN subscribers ( and everybody else). Keys for this version are freely available everywhere, both for 32 an 64 bit versions.So what are my experienceskibitzerhttp://www.blogger.com/profile/02481263853203895939noreply@blogger.com0tag:blogger.com,1999:blog-6336097031407610709.post-66788775676305888522008-12-18T13:28:00.010+02:002009-03-05T01:03:02.079+02:00Multiple Computer Sync - DropBox and alternativesLife has become mobile. Even office workers have at least two locations - work and home - that they need to keep in sync if they want to be productive and have control over all their electronic appliances. More so if you also have notebook(s), smartphones, summer house computers, media station computers and so on. Each of these often requires access to your personal data like work projects, kibitzerhttp://www.blogger.com/profile/02481263853203895939noreply@blogger.com0tag:blogger.com,1999:blog-6336097031407610709.post-43182559393907777242008-05-25T11:03:00.007+03:002008-05-25T11:55:34.160+03:00music: iPhone sync, iTunes alternativeA post unrelated to coding - about a problem that was occupying my hobby time ever since I got the iPhone - it's called iTunes, one of the most offending pieces of commercial software I have seen, right after RealPlayer and Quicktime. Apple is notorious for unusable software (while having the best hardware design), as if they outsource their coding to some African tribe, receiving the kibitzerhttp://www.blogger.com/profile/02481263853203895939noreply@blogger.com0tag:blogger.com,1999:blog-6336097031407610709.post-4805529497771892082008-03-25T23:16:00.010+02:002008-03-26T00:12:14.828+02:00RoR: Caching Dynamic Association ConditionsThe problem which is verbosely described in a previous post on dynamic associations still does not have a clean solution - I've been researching possible workarounds, and there is no definite answer. One feasible workaround is specifying :conditions => 'send(:method)' in single quotes, this way Rails will only eval the conditions when forming the SQL string. This, and what was suggested in my kibitzerhttp://www.blogger.com/profile/02481263853203895939noreply@blogger.com0tag:blogger.com,1999:blog-6336097031407610709.post-22669398747726650912008-02-27T12:39:00.003+02:002008-02-27T12:44:45.700+02:00PHP: XCache InstallationA quick note to self: IBM site has a very nice writeup on installing XCache, a php opcode and variable caching which seems popular lately. Other sources of information are missing all the important details which leads to wasted time. Visit the linked page for details (http://www.ibm.com/developerworks/library/os-php-fastapps1/).It does not have a walkthrough on configuring xcache options in the kibitzerhttp://www.blogger.com/profile/02481263853203895939noreply@blogger.com0tag:blogger.com,1999:blog-6336097031407610709.post-70043960699683599922008-02-10T00:34:00.003+02:002008-03-01T23:50:32.192+02:00RoR: Overriding Comparison Operators in Your ModelRuby allows you to override everything. Ruby allows you to override everything using two lines of code. You just got to love ruby! This small entry is about overriding comparison operators (or, to be correct, it is about bulk-defining comparison operators for user class).Common use case from Ruby on Rails is to define a simple model which is associating a Fixnum with some additional properties (kibitzerhttp://www.blogger.com/profile/02481263853203895939noreply@blogger.com0tag:blogger.com,1999:blog-6336097031407610709.post-67052394133919978272008-01-25T14:13:00.001+02:002008-03-25T18:45:18.905+02:00Ruby on Rails: Dynamic Association Conditions Using ReflectionAssociations between models are part of what makes Ruby on Rails framework so elegant, define Class Magazine belongs_to :publisher and Class Publisher has_many :magazines and you can simply use magazine.publisher or publisher.magazines without worrying about underlying database and object construction details. Basic associations do work for most cases, but sometimes you would need to go kibitzerhttp://www.blogger.com/profile/02481263853203895939noreply@blogger.com0