Strainu onLine
Blogul unui automatist
21st
NOV
Romanian Funds prices in GNUCash
Posted by Strainu | Filed under My Projects, Perl, Software
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:
- 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.
- Install Finance::Quote. GNUCash offers an automated program to do that.
- Make sure GNUCash is not running.
- 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”.
- For now, the script is not yet included in Finance::Quote and must be installed separately.
- 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.
- 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.
- 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.
- 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:
- Full Name: BT Index
- 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)
- Type: Funds (or whatever you want)
- Check the Get Online Quotes checkbox. Three new options will be activated.
-
Choose Type of quote source: Unknown
- From the drop-down choose rofunds.
- Click OK twice and you’re ready to test it.
- Full Name: BT Index
- 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.
Tags: Finance::Quote, fonduri de investiţii, Funds, GNUCash, My Projects, Perl, Programming
3rd
OCT
Submit Word – Ajutor pentru dicţionarele româneşti
Posted by Strainu | Filed under JavaScript, Open Source, Romana
Dacă folosiţi Firefox, Flock sau Thunderbird, puteţi acum contribui la dezvoltarea dicţionarelor româneşti de la Firefox sau OpenOffice.org.
Pentru asta, trebuie să descărcaţi extensia Submit Word şi să adăugaţi cuvintele noi în dicţionarul personal (vezi imaginea de mai jos). Submit Word va încărca pe situl i18n.ro toate cuvintele pe care le adăugaţi în dicționarul dvs. personal. Dacă mai multe persoane vor sugera acelaşi cuvânt, el va fi adăugat în dicționarele româneşti.
Tags: dicţionare, extensii Firefox, Firefox, Open Office, Romana
3rd
JUN
MediaWiki Contributor
Posted by Strainu | Filed under PHP, Programming, Wikipedia
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.
Tags: contributor, mediawiki, My Projects, PHP, Software, Wikipedia
6th
APR
BSE stock prices in GNUCash
Posted by Strainu | Filed under My Projects, Perl, Software
GNUCash has a very good automatic price retreival utility, based on the Perl Finance::Quote library. Unfortunately, the sites it is using to get the data from don’t have any quotes from the Romanian markets.
Therefore, I decided to write my own modules, and I started with the Bucharest Stock Exchange, since their data was reliable and available in a accessible format.
Here is how you can add this package to your own system:
- 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.
- Install Finance::Quote. GNUCash offers an automated program to do that.
- Make sure GNUCash is not running.
- 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”.
- For now, the script is not yet included in Finance::Quote and must be installed separately.
- 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.
- 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 BSERO to the list of modules.
- 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.
- 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 Banca Românâ pentru Dezvoltare (symbol: BRD). You add the following information in that window:
- Full Name: Banca Română pentru Dezvoltare
- Symbol: BRD (this is very important, as this is the search criteria)
- Type: BSE (or BVB, or whatever you want)
- Check the Get Online Quotes checkbox. Three new options will be activated.
-
Choose Type of quote source: Unknown
- From the drop-down choose bsero.
- Click OK twice and you’re ready to test it.
- 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 BSE website.
Tags: Bucharest Stock Exchange, BVB, Finance::Quote, GNUCash, Perl, Programming
12th
FEB
Wikipedia Română cu diacritice corecte
Posted by Strainu | Filed under JavaScript, Romana, Wikipedia
Î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.
Tags: diacritice, JavaScript, My Projects, Programming, Wikipedia
24th
FEB
ProMec
Posted by Strainu | Filed under C++, Software

ProMec is a small graphical project I did for the Mecanics course in the first year of faculty at UPB, with prof. A. Craifaleanu. It simulates the movement of a complex system made out of several bars.
(more…)
24th
Talk
Posted by Strainu | Filed under C++, Software, WebBrowse

Talk is a simple chat program. It uses the very simple Cesar code to encrypt the messages. Select the mode (client or server), the IP address and the port, then press “Conectare” ( “Asteapta” for the server), and, if there is another user, the message area will be activated.
(more…)
24th
Query
Posted by Strainu | Filed under C++, Software, WebBrowse

Query is a whois-like program that allows you to find the status of a domain or IP address. He uses Whois servers to obtain informations like the domain owner, expiration data, etc.
The software is distributed under CC-GNU GPL license.
23rd
FEB
Distributed Programming Homeworks
Posted by Strainu | Filed under Java, Software
Distributed Programming Homeworks from the Automatics and Computer Science Faculty, UPB, 5th year, prof. Corina Stratan. Themes: Transactional Distributed Object DataBase Management System, RMI (Remote Method Invocation), Plane ticket reservation web service, SSH access using a web interface with JSP/servlets.
(more…)
23rd
Network Programming Homeworks
Posted by Strainu | Filed under C, Java, Software
Network Programming Homeworks from the Automatics and Computer Science Faculty, UPB, 5th year, prof. Valentin Cristea. The archive contains a homework made in Java. Themes: RPC (Remote Procedure Call), Sorting trees using MPI, Secure chat server in JAVA, Bidding system using CORBA.
(more…)
Recent Posts:
- 11 Jul Wikimania 2010 – zi...
- 10 Jul Wikimania 2010 – zi...
- 10 Jul Wikimania 2010 – zi...
- 09 Jul Wikimania 2010 – zi...
- 09 Jul Wikimania 2010 – da...
- 06 Jul Wikimania 2010 – da...
- 17 Jun Extended Weekend: Băile ...
- 11 Jun Extended Weekend: Prague
- 26 Apr Sondaj despre diacritice
- 03 Apr Cristopher Priest –...









