My Projects

Wiki Loves Monuments România

Posted by Strainu on August 18, 2011
My Projects, Wikipedia / 1 Comment

In the last months I, together with Nicu, have prepared an interesting project aimed to support the development of the Romanian Wikipedia. Now I can finally reveal the result: Wiki Loves Monuments România.

We are part of a European contest that takes place in September in 17 European countries. People are invited to take pictures of heritage sites in Romania and then upload them to Wikimedia Commons or Flickr under the CC-BY-SA-RO license. The 10 winners from Romania will get some prizes, then will go on to fight for the European jackpot (which is still to be unveiled).

So, whether you’re a Wikipedia contributor, a photographer or a monument aficionado, take the picture (or make a movie!) about a monument and upload it!

Update: I also made a presentation about this at the August RLUG meeting. Here are the slides: odp | pdf.

Share and Enjoy:
  • Facebook
  • Twitter
  • Identi.ca
  • LinkedIn
  • Reddit
  • Add to favorites

Tags: , , , ,

Strainu.eu

Posted by Strainu on March 04, 2010
My Projects / No Comments

Thanks to an offer from my hosting company, for the next year, the strainu.eu domain will lead you to this site. Yey!

Share and Enjoy:
  • Facebook
  • Twitter
  • Identi.ca
  • LinkedIn
  • Reddit
  • Add to favorites

Tags: , , ,

Romanian Funds prices in GNUCash

Posted by Strainu on November 21, 2009
My Projects, Perl, Software / No Comments
The "Add security" Window
Fig. 1: The Add Security window in GNUCash

After the Bucharest Stock Exchage Module for Finance::Quote, I made another module, to retrieve the values of the Romanian Mutual Funds. The data is extracted from the Kmarket website which prooved to be a useful resource.

Here is how you can add this package to your own system:

  1. Install Perl. If you’re using Linux, you probably already have it. Write perl -v to find out the version you have. If you’re using Windows, ActivePerl or Strawberry Perl should do the trick.
  2. Install Finance::Quote. GNUCash offers an automated program to do that.
    1. Make sure GNUCash is not running.
    2. In Linux, open a root shell and write update-finance-quote. In Windows, go to the start menu and you will find a shortcut to a BAT file called “Install Online Price Retreival”.
  3. For now, the script is not yet included in Finance::Quote and must be installed separately.
    1. Download the provided archive and extract it along with the rest of the Perl scripts for Finance::Quote (you will see the download path during the installation). Make sure the Finance folder overwrites the current folder.
    2. In the Finance folder you will find 2 files named Quotes.pm and Quotes.pm.patch. You can apply the patch by using the command
      patch Quotes.pm Quotes.pm.patch

      On Windows, just open the Quotes.pm file in Notepad, search for a line that begins with @modules = and add ROFunds to the list of modules.

  4. Start GNUCash and go the the Tools->Security Editor menu. You will see a window similar to the one on the left side of Fig. 1.
  5. Click on the Add button. A new window, just like the one on the right side of Fig. 1 will appear. Let’s say that you want to get the stock price for BT Index (a fund from Banca Transilvania Asset Management). You add the following information in that window:
    1. Full Name: BT Index
    2. Symbol: BT Index (this is very important, as this is the search criteria – you need to put the full name of the fund, without diacritics, as there are no symbols)
    3. Type: Funds (or whatever you want)
    4. Check the Get Online Quotes checkbox. Three new options will be activated.
    5. Automatic price retreival
      Fig.2: Automatic price retreival

      Choose Type of quote source: Unknown

    6. From the drop-down choose rofunds.
    7. Click OK twice and you’re ready to test it.
  6. Go to the Tools->Price Editor menu. You will see the dialog in Fig. 2. Click the Get Quotes button and you should see a new price appearing. You can notice the source is “Finance::Quote” and the price is the correct one for that date. If you wish, you can check it on the K-market website.
Share and Enjoy:
  • Facebook
  • Twitter
  • Identi.ca
  • LinkedIn
  • Reddit
  • Add to favorites

Tags: , , , , , ,

MediaWiki Contributor

Posted by Strainu on June 03, 2009
PHP, Programming, Wikipedia / No Comments

A while ago I submitted a patch to the New User Message extension of MediaWiki. The code was submitted in r51297, so I guess you could say I’m now a MediaWiki Contributor 😛

Hopefully, pretty soon this extension will be activated on the Romanian Wikipedia.

Share and Enjoy:
  • Facebook
  • Twitter
  • Identi.ca
  • LinkedIn
  • Reddit
  • Add to favorites

Tags: , , , , ,

Wikipedia Română cu diacritice corecte

Posted by Strainu on February 12, 2009
JavaScript, Romana, Wikipedia / No Comments

Începând de astăzi, utilizatorii Wikipediei în limba română care utilizează Linux, Windows Vista sau au ultimele actualizări de fonturi de la Microsoft pot vizualiza articolele folosind diacriticele corecte (cu virgulă, nu cu sedilă).

Pentru a realiza acest lucru, mergeți în pagina de preferinţe, tabul Gadgeturi și bifați opțiunea numită “Diacritice corecte”. Trebuie să aveți activat și Javascript.

Scriptul are și unele limitări, cauzate de performanța sistemului. Pentru a reduce durata de încărcare a paginii, nu sunt transformate decât diacriticele din articol, nu și din interfață. De asemenea, sunt ignorate literele din formulare (formularul de editare a paginilor, inclusiv legăturile de sub el şi formularul de căutare), paginile conținând javascript și paginile speciale.

Pentru cuvintele în turcă, care TREBUIE să conţină litera Ş (S cu sedilă), am pus la punct un mecanism de ignorare a acestor cuvinte. Pentru amănunte, vizitați pagina aceasta.

Sursa programului este disponibilă la diacritice.js.

Share and Enjoy:
  • Facebook
  • Twitter
  • Identi.ca
  • LinkedIn
  • Reddit
  • Add to favorites

Tags: , , , ,

Biblioteca metropolitană map

Posted by Strainu on October 17, 2008
My Projects, Society / No Comments

A while ago, I discovered the Bucharest City’s Library unofficial blog (now dead). It was written by two guys who wanted to promote reading and borrowing books from the Biblioteca Metropolitană. I wanted to help them, so I made a google map with all the public libraries in Bucharest. The link was in their sidebar for a long time, and I almost forgot about it until a few days ago, when I saw the blog was no more.

I think it would be a shame to just abandon this map, so here is the link to it: the map of all the public libraries in Bucharest / harta sucursalelor bibliotecii metropolitane Bucureşti.

Share and Enjoy:
  • Facebook
  • Twitter
  • Identi.ca
  • LinkedIn
  • Reddit
  • Add to favorites

Tags: , , , , ,