Category: SW Dev

Bye bye Sun and Solaris :-(

So sad… but it’s inevitable, Oracle killing Solaris and Sun. Oracle Finally Killed Sun

continue reading
No Comments

Fair use of web content

This news was buried among many other news, but I felt that it deserves more people knowing about it. It is about “fair use” of publicly available web content. What is “fair use” and when can content be restricted. The original article is here. A small company called hiQ is locked in a high-stakes battle…

continue reading
1 Comment

Using ldap and kerberos with ajaxplorer

12/18/12 Update: not all is peachy keen. Login and autocreate account works, but logout can be an issue. I need to clear the session cookie when someone logout. Have not gotten around to coding that yet. After a bit of fiddling around, I finally got ajaxplorer working with (ldap) kerberos5 as the backend authentication/access. We…

continue reading
2 Comments

dynamic robots.txt file in Rails 3.x

We have a need for dynamic handling of robots.txt file as we have different requirements for production, staging, dev, test, etc. Google-fu shows various way to do this, some for Rails 2.x, some for Rails 3.x. Here is my version. First is to edit config/routes.rb and add this line: match ‘/robots.txt’ => RobotsGenerator Then add…

continue reading
No Comments

ActionMailer SSLError hostname was not match with the server certificate

So I am setting up a Continous Integration server using CruiseControl.rb and was getting these errors. I am on a RoR 3.1.x env and pointing to my local (same server) postfix for SMTP. I don’t need SSL. OpenSSL::SSL::SSLError (hostname was not match with the server certificate): /usr/lib/ruby/1.8/openssl/ssl.rb:123:in `post_connection_check’ /usr/lib/ruby/1.8/net/smtp.rb:582:in `tlsconnect’ /usr/lib/ruby/1.8/net/smtp.rb:562:in `do_start’ /usr/lib/ruby/1.8/net/smtp.rb:525:in `start’ http://scottiestech.info/2009/12/21/fixing-the-actionmailer-hostname-not-match-server-certificate-error/…

continue reading
1 Comment

google-spreadsheet-ruby and (Nokogiri::XML::XPath::SyntaxError)

I have a Ruby script that update our Google Doc spreadsheet as part of releases. The script has been working for years, then suddenly started failing with errors like this one: /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.2/lib/nokogiri/xml/node.rb:159:in `evaluate’: Invalid expression: .//xmlns:link[@xmlns:@rel = ‘http://schemas.google.com/spreadsheets/2006#cellsfeed’] (Nokogiri::XML::XPath::SyntaxError) from /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.2/lib/nokogiri/xml/node.rb:159:in `block in xpath’ from /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.2/lib/nokogiri/xml/node.rb:150:in `map’ from /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.2/lib/nokogiri/xml/node.rb:150:in `xpath’ from /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.2/lib/nokogiri/xml/node.rb:214:in `css’ from /usr/local/lib/ruby/gems/1.9.1/gems/google-spreadsheet-ruby-0.1.6/lib/google_spreadsheet.rb:648:in…

continue reading
No Comments

Summary of Overcoming RoR Performance Challenges Meetup on Wed 2/29/12

Overcoming RoR Performance Challenges Meetup The talk was on best practices and some tips on looking for problems and how the panelists worked around them. There are no “magic” bullet like Ruby or RoR has 🙂 Essentials: Watch out when using ActiveRecord. It make it too easy to use DB. It make it too easy…

continue reading
No Comments
%d bloggers like this: