Friday, April 28, 2017

Refactoring and Unicode

Ruby's implementation of Unicode for Lithuanian, an admittedly complicated language, is not perfect but I have modified a useful script on Gist for identifying the unicode value of a given character.

Now that I can identify the unicode value of tricky diacritics and accents, I can refine my code.

Details of the script here.

Friday, April 7, 2017

Lithuanian gives you good practice with regex

I'm parsing Lithuanian verbs, and in tidying up the raw HTML, I'm compelled to come up with little beauties like this:

<a href="\/[a-z]*\/[a-z]*\W*[a-z]*\W*[a-z]*">

...in order to to clear away the HTML formatting.

The problem lies in the fact that Lithuanian diacritics (č, ž, ė, ę and so on) are not recognised as letters [a-z] but rather as non-word characters \W.


Wednesday, April 5, 2017

Starting To Understand Static Pages in Rails

Just finished Chapter 3 of the Ruby on Rails Tutorial (Rails 5) by Michael Hartl, and after the umpteenth time going through "rails new app" and "rails scaffold this-that-or-the-other", I got on to static pages.  It's a bit to take in, but it's starting to make sense.


Tuesday, April 4, 2017

Rails Web Console

I am running Rails from within an Ubuntu Vagrant box:


Vagrantfile specifies ports to open during "vagrant up".
The HTTP address (localhost) is accessible.
However, I ran into this problem.

This solution worked for me.


1,050 hours

It took me 13 working days to complete my first 100 "work" pomodoros as a Junior Software Tester at Profectus Group.  Much of ...