BNR exchange rates

Please select your desired exchange currency to see its chart and then modify the period range as desired. The default range is from 3 January 2006 until now.

For help you can go visit article »


Curs valutar BNR

Selectati valuta dorita pentru a vedea graficul ei si apoi modificati durata dupa dorinta. Perioada initiala este de la 3 ianuarie 2006 pina acum.

Pentru ajutor puteti vizita articol »

Euro Lira sterlina Dolar SUA Francul elvetian Gramul de aur
Others:

 

Posts tagged Tips

Add SyntaxHighlight to Windows Live Writer in Preview mode

Add SyntaxHiglight to Windows Live Writer in Preview mode Windows Live Writer (shorter: WLW) is one of the most popular blog authoring tool that I also happen to like and use. And I say this because of its features – I especially enjoy the Preview tab. But what it really lacks is previewing the ENTIRE page – it will get only the html and some css. So no Syntax Highlighting of my code? Let me tell you how I solved this issue.

As a blog writer I searched for something that could allow me to write the articles offline and then upload them in Wordpress. I also tried Wordpress built-in editor, but the editing box is so small that I couldn’t use it too much.

The most important feature for me is that it retrieves the blog theme and has a preview function that provide you the same look on editor window. So you will be able to write a post with a preview. But when having a more complex theme, using JQuery or Prototype, you will discover that you don’t get any more the same look and feel as in the blog. This is partially ok for editing, but sometimes it is really bad – especially if you’re a programmer and add a lot of code in your page. On blogs there is a solution to show the code with syntax color, but in the Windows Live Writer I couldn’t find one suitable plug-in that does this.

Read the rest of this entry »

How to add a Webslice

How to add a Webslice - Microsoft technology to enable subscribing to content

It is very nice and user-friendly to have Webslices on your website. It improves the user experience by allowing visitors to be up to date with the latest content that you provide, assuming that it is fitted to this presentation style. Since my BNR exchange rates page was this kind, I pursued in adding a Webslice especially for it.

Adding a webslice to your website is simple. After you read the main specifications or my previous article, you’ll understand the concept behind: first you signal to the browser that you have a special part of your website by setting to a container element the class “hslice”:

<div id="BNRExchange" class="hslice">
  <div style="display: none" class="entry-title">
    <img id="image" alt="Radu Poenaru's weblog gives you BNR Exchange rates" src="http://www.radupoenaru.com/bnr/images/radupoenaru.jpg" width="128" height="128" />
    <p>
       Cursul oficial BNR
    </p>
  </div>
  <p>
    <a style="display: none" href="http://www.radupoenaru.com/bnr/bnr.php" rel="entry-content">
    <a style="display: none" href="http://www.radupoenaru.com/bnr/bnr.php" rel="Bookmark" target="_blank">
    <span style="display: none" class="ttl">5</span>
  </p>
  <div id="updateTrigger" class="entry-content" runat="server" />
........ your content that you want surrounded by the green webslice part ..............
</div>

Read the rest of this entry »

SyntaxHighlighter – how to use it and brushes available

syntaxhighlighter thumb Wordpress  how to implement Syntax Highlighting

The brushes used by SyntaxHighlighter are in separate syntax files named brushes. The following can be used to format the <pre class=”brush: brushname”> that you want to use.

Brushes () in alphabetical order:

Brush name Brush aliases File name
ActionScript3 as3, actionscript3 shBrushAS3.js
Bash/shell bash, shell shBrushBash.js
C# c-sharp, csharp shBrushCSharp.js
C++ cpp, c shBrushCpp.js
CSS css shBrushCss.js

Read the rest of this entry »

Wordpress- how to implement Syntax Highlighting

syntaxhighlighter Some while ago, I started publishing code on this website. On that days I used the free Wordpress webhosting. But I wasn’t content with the representation of it. After some time, I moved my site to a payed hosting, where I could implement any plugin that I liked.

Read the rest of this entry »

Google toolbar – Firefox enhancement

When I use Mozilla Firefox I want to be able to see the content of pages, not to have my screen cluttered with lots and lots of toolbars. But when doing searches with built-in search area in this browser, I lack the highlighting feature of Google Toolbar. Not to mention the word search, handled so easy in it by pressing auto created buttons for each word.

So I tried to replicate the Google toolbar in the browser interface, but without adding the entire toolbar.

This can be done very easy, by following the next steps:

1. Install Google toolbar if you don’t have it already  from http://www.google.com/tools/firefox/toolbar/ . The installation is very well explained, so I will not do it again.

2. In Firefox, with Google Toolbar visible, insert some words into its search area then click the Search button.

FF with words

3. Right-click on the browser top area and choosing Customize, like in the following picture:

RightClick

4. Grab the words area from toolbar, like in the pictures below, and move it up, near the Firefox default search area. Do the same with highlighting tool.

Words Words 2

Hili

5. Now right click like in point 3 and make your Google Toolbar invisible.

And VOILA! You have an uncluttered, clean and neat search area that uses Google’s main interesting features.

uncluttered

Windows Vista Updates Download

In Windows Vista you are constrained to use the default tool,Windows Updates, which is set to download only the files which need to be updated, by example if  xxx.dll exists in Microsoft’s database as a bigger version and needs to be updated, then only this file will be downloaded from the Microsoft servers.
What if you need to reinstall your computer and you don’t have Internet connection available? Sometimes when you don’t know where your work will ask you to be, is better to have all updates archived safely and closely to you, on your harddrive. Read the rest of this entry »

Customize your Gmail web interface

Google has been the most improving mailing web interface that I know. Having a whooping 2 GB storage space when launched, he slapped over the face all his competitors, whom at that time had 4- 5 MB of storage space. Now is 7.5 GB and increasing.

The interface is very clean and intuitive, but not lacking the good looking ( example of bad looking is Squirrel Mail who looks obsolete, due to the right angle corners, opposed to the round corners approach in Gmail). Also the code completion for emails, the spell checker and other goodies makes this interface the most interesting in my opinion.

Recently, I learn about something that is quite hidden in Gmail interface: the plugins.

These can be activated by going into Settings in your Gmail mail account, click on Labs tab and search the desired plugin. In order to add it’s functions on the interface, you must activate first by checking the Enable option. It will be applied as soon as you click ‘Save Changes’ button on the bottom of the page.

Google Labs - the place where you can find lots and lots of gmail plugins

I have activated the following plugins:

  1. Right-side chat
  2. Right-side labels
  3. Navbar drag and drop
  4. Google Calendar gadget
  5. Google Docs gadget
  6. Add any gadget by URL

Give it a try!

svn: Your file or directory is probably out-of-date

How to solve SVN issue: "The version resource does not correspond to the resource within the transaction." One of the most tedious bugs in Subversion, ever, is this one. If you want to commit changes to your working copy, and the response of svn is :

 

svn: The version resource does not correspond to the resource within the transaction. Either the requested version resource is out of date (needs to be updated), or the requested version resource is newer than the transaction root (restart the commit).

If you stick with standard advice, trying to update your working copy you’ll find out something interesting: Nothing is out of date! You just can’t commit!!!

One solution that I found, but I don’t know all the consequences of doing this so DON’T BLAME ME if you lose important local properties in your repository is the following :
1) Go to the directory in your working copy that contains the problem file.
2) Delete .svn/all-wcprops from there.

That’s it. Commit and be happy. PS: All I can say is that this has not crashed any of my working copies yet.

ASP .Net Page.Header with custom meta tags

One of this days a friend of mine shared with me some SEO techniques and one of them was to change the meta tags associated with a product page. So after a little research I found out a way to accomplish this : modify the Header property of ASP .Net page and add several HtmlMeta tags who can hold the data needed to be changed.

Each ASP .Net page has a property called Header who is the “hidden” header code of each HTML page. It is available starting with .Net version 2.0 and exposes also the meta tags object collection. Actually, all elements in the header are available in Header.Controls

// Render:  HtmlMeta meta1 = new HtmlMeta(); meta1.Name = "keywords"; meta1.Content = "pharmacy, online pharmacy, home delivery";   // Render:  HtmlMeta meta2 = new HtmlMeta();meta.Name = "verify-v1";meta.Content = "DmMArCJQq9KV45wvKMwrWASh3R8UWTd7NfBD"; 

// Render:  HtmlMeta meta3 = new HtmlMeta();meta.Name = "revisit-after";meta.Content = "2 days";

Header.Controls.Add(meta1);Header.Controls.Add(meta2);Header.Controls.Add(meta3);
Better Tag Cloud
Page loaded in 0.316 seconds.