Flying with new wings

Okey, today it’s time to see how this site keeps up via nginx instead of apache. So far so good, at least almost everything seems to still work as expected. In switchover, getting nginx + passenger + rails to work took some effort, but this was still reasonably easy. However, bigger trouble was getting this…

Read more

Nokogiri + Linux => trouble?

Nokogiri gem version 1.6.x has been a bit problematic in Linux, since by default it just fails to install. And only workaround for it has been to use 1.5.x version instead. Now recently I hit the trouble, since another gem required at least version 1.6 of nokogiri, so I didn’t any longer have option to…

Read more

Praise yourself – test yourself

Finally, after a while I started applying into development projects some automated tests using Travis CI. Thanks to Travic CI documentation integration of projects was rather painless. So far following projects are running in Travis CI: ngannotate-rails capybara-ng In both of these projects I needed to take advantage of Travis features. Namely I needed to…

Read more

Walking in the assets land

Welcome daisy! Setup done earlier for Apache2 + Rails wasn’t yet very optimal. This fact was neatly indicated by google pagepeed index tools. Luckily few fixes are rather easy to apply. Assets not compressed Ups, this is triviality, I had forgotten to copy relevant caching logic config when setting up new virtual host config. /etc/apache2/v.hosts.d/host.kari.dy.fi.conf…

Read more

Tuning up apache2 + passenger

Todays topic to is tuneup a bit more server what was setup earlier. Goal is to, Improve logic for redeploy, thus to avoid breaking running server when doing new deploy Remove dependency into private user account, but use instead account specific to this deploy only To use server instance specific ruby version instead of globally…

Read more

Cameras, action: setup passenger to apache2

Our guidance sources shall be today: Install package OBS:Server:Unstable / rubygem-passenger Phusion Passenger users guide, Apache version How To Setup a Rails 4 App With Apache and Passenger on CentOS 6 Setting up Rails app on Apache with passenger – Rails doesn’t seem to load Now, when having all interesting source material in hand lets…

Read more

Boxing match: traceur vs babel

Evaluating traceur and babel in rails environment to see how well they behave in converting simple Ecmascript 6 file. Our competitors today are traceur-rails sprockets-traceur sprockets-es6 Notes: traceur-rails works for some cases but fails for ”let” statement sprockets-traceur seems to fare better than traceur-rails sprockets-es6 is not production ready yet (depends from beta version of…

Read more

Mantra of over engineering

Look at this: Hibernate is more complex than the problem it tries to solve I’ve to agree with that. There seems to be over engineering mantra embedded in to Java world. If something is not re-factored into ”enterprisy” complexity, then technology is not considered good. In other words this is known also mantra of job…

Read more

Javascript dependency hell

Okey, Scenario is this: There is two competing libraries for ”_” (aka. underscore) global variable. Libraries in question are ”underscore” and ”lodash”. Problem is that due to javascript compatibility dependency hell, it’s quite difficult to have only one of them. For example. in simple test project (either using Jam or Bower) I’m failing to accomplish…

Read more