search_companies('Mepha')
---
medreg gem should skip adress lines consisting of a single '.'. e.g. medregom displays for 7601000264015 and address. Fixed this problem with commit Skip almost empty address lines
When having several addresses, we should generate several lines with the same GTIN.
Just found out that they made changes on the medregom page to make our search impossible, eg. shortcuts like http://www.medregom.admin.ch/de/Suche/Detail/?gln=7601000186874&vorname=Luca&name=a+Marca do not work anymore. But it does not seem to affect our results.
Pushed commits:
Must now generate CSV files for the companies, too.
Pushed commits:
Started medreg import.
Must add an method for getting the google-analytics token to LookandfeelBase. Added test. Corrected URL of evidentia. Things look now better, but the google_analytics is not active when looking at http://evidentia.oddb-ci2.dyndns.org/. Fixed this problem. Waiting for the external css.
Pushed commits:
The relevant part of the apache config looks like this
<VirtualHost *:80> DocumentRoot /var/www/oddb.org/doc ServerName evidentia.oddb-ci2.dyndns.org DirectoryIndex index.rbx RubyAddPath /var/www/oddb.org/src RubyRequire 'sbsm/trans_handler' SetHandler ruby-object RubyTransHandler SBSM::FlavoredTransHandler.instance ErrorLog "|/usr/sbin/cronolog -l /var/www/oddb.org/log/evidentia/error_log /var/www/oddb.org/log/evidentia/%Y/%m/%d/error_log" CustomLog "|/usr/sbin/cronolog -l /var/www/oddb.org/log/evidentia/access_log /var/www/oddb.org/log/evidentia/%Y/%m/%d/access_log" combined SetEnv DEFAULT_FLAVOR evidentia AddDefaultCharset UTF-8 Alias /robots.txt /var/www/oddb.org/doc/robots.txt RewriteEngine On RewriteRule ^/(..)/?$ /$1/ [PT] RewriteRule ^/(..)/(evidentia)(.*) /$1/evidentia$3 [PT] RewriteRule ^/(..)/([^/]*)/?(.*) http://$2.oddb.org/$1/$2/$3 [R,L] </VirtualHost>
http://lwn.net had a pointer to an intersting blog about NixOS. I read it, saw that NixOS and ruby are not the best friends, as ruby has its own dependency hell, which cannot be solved easily with Nixos.
Tried to get the spreadsheet gem working. Tried
nix-env -i ruby-bundler git clone https://github.com/zdavatz/spreadsheet.git cd spreadsheet bundle install bundle exec rake install_gem # fails with <..> cd pkg/spreadsheet-1.0.0 rake aborted! "[![Build Status](https://secure.travis-ci.org/zdavatz/spreadsheet.png)](http://travis-ci.org/zdavatz/spreadsheet)" is not a URI /nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/specification.rb:2099:in `validate' /nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/builder.rb:37:in `build' /nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/package_task.rb:116:in `block (3 levels) in define' /nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/package_task.rb:115:in `block (2 levels) in define' /nix/store/nyv367y4dksxwz6w91pd56bpaw2vrqr1-rubygems-1.8.25/lib/rubygems/package_task.rb:114:in `block in define' Tasks: TOP => install_gem => package => gem => pkg/spreadsheet-1.0.0.gem (See full trace by running task with --trace)
Wondering why sometime package names have different names than usual. nix-env -i eclipse-sdk-4.4
works, but add eclipse-sdk-4.4 to /etc/nixos/configuration.nix fails.