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:

 

Others

How to generate image_src for Facebook links in Wordpress theme

Generate Wordpress article to be attached when using Facebook links: image_src tagSharing your article for free advertisement on Facebook is a fact. While using different Social Networks sharing tools I had a problem when sharing my articles on Facebook: sometimes the image that I intended to use to represent the article wouldn’t show in the list of the images who can be chosen. Why is that?

It bothered me some while I got the some free time to actually look into this, between exams, work and master research. After some wandering on the internet, I found here the correct directions. What I learnt: Always search for the API!

 

In order to make sure that the preview is always correctly populated, you should add the tags shown below to the <head> element in your HTML code. If you don’t tag your page, Facebook Share will grab the title of your page as specified in the <title> tag, and will create a summary description from the first text that appears in the body of your page. A list of thumbnails will all be selected from available images on your page.

You can control the exact title, description, and thumbnail that Facebook Share uses by adding the following meta tags to the <head> element in your page:

<meta name="title" content="title" /> <meta name="description" content="description " /> <link rel="image_src" href="thumbnail_image" / >

Read the rest of this entry »

Technorati checks my blog

So I applied for Technorati enrollment and they gave me the KNQ3S98TZ58S token for verification. I have to just create a new blog entry and publish in it to verify my domain claim. That’s the price to get into their area.

Enjoy!

How to add a nice jQuery slider

Wordpress- How to add a nice jQuery slider 

This weekend fun was adding to my website the cool sliding control from Jérémie Tisseau website. That pretty it was, I immediately started thinking it as a container to my BNR exchange rate page. The coded worked perfectly, with few modifications.

Firstly, Wordpress uses the $ operator for Prototype library, so if you want to add your jQuery library the invocation to Wordpress Firebug will report the error “$ is not a function”. So here’s the fix: you’ll have to change any occurrence of the $ sign to jQuery. Just like in the following example:

 

 

$(document).ready(function() {

	// Expand Panel
	$("#open").click(function(){
		$("div#panel").slideDown("slow");

	});	

	// Collapse Panel
	$("#close").click(function(){
		$("div#panel").slideUp("slow");
	});		

	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggle a").click(function () {
		$("#toggle a").toggle();
	});		

});

TO:

jQuery(document).ready(function() {

	// Expand Panel
	jQuery("#open").click(function(){
		jQuery("div#panel").slideDown("slow");

	});	

	// Collapse Panel
	jQuery("#close").click(function(){
		jQuery("div#panel").slideUp("slow");
	});		

	// Switch buttons from "Log In | Register" to "Close Panel" on click
	jQuery("#toggle a").click(function () {
		jQuery("#toggle a").toggle();
	});		

});

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 »

Wordpress – Database backup and restore

Wordpress- MySQL Database backup and restore

From time to time, you’ll need to get a backup of your MySQL database and install it on a different machine – as I needed when reinstalling my Windows 7. I wanted to do something simple, as the last time. But now the database sql file is 11 Mb as opposed to merely 2 MB last time.

But I thought that this would be a breeze for the MySQL interface that I use and enjoy – HeidiSQL. It’s free, easy to use and user friendly. I personally don’t like too much the phpMyAdmin interface from the Vertrigo webserver installation that I use for local development.

Read the rest of this entry »

Add Webslice to your website

Webslice - Microsoft technology to enable subscribing to content You might ask: what is a Webslice? It is a chunk of information, allowing you to stay up-to-date with the latest news without actually needing open a website. They are added to special toolbars (special because they usually require a specific version of a browser, like IE 8). But otherwise, the content inside itâ??s just plain old HTML. When a WebSlice is added to the toolbar, it will be represented as a clickable drop-down area, allowing you to click on it and then see a specially designed small-scale version of the website. For example, my website provides a webslice for BNR exchange rates , allowing you to keep up with latest information available.

Usually, while hovering to an area webslice-enabled, the browser will show a specific icon â?? developed by Microsoft and symbolizing this technology. There are few design guidelines that you need to follow, quoted from Microsoft website :

Read the rest of this entry »

Wordpress – How to Delete Existing Post Revisions

Wordpress- managing Post Revisions tracking

This is the second part of managing Wordpress feature of post revisions, for the  users who had disabled or turned off post revisions tracking or versions history feature. As you already know, this feature exists in WordPress (starting with WordPress 2.6). After disable it (of course, if you really need to do that), it also make sense to also delete and remove all existing stored post revisions. By doing so, you’ll remove changes made on pages stored in the database such that you’ll slim down the wp_posts table size´. This is  especially recommended when there is already lots of revisions or changes inside.

Read the rest of this entry »

Wordpress – managing Post Revisions Tracking

Wordpress- managing Post Revisions tracking A very interesting feature added in WordPress blog publishing system since version 2.6 is the post revisions tracking, like in version control systems. It simply adds a Wiki-like style tracking of edits that had been made to the posts or pages. This allows bloggers and authors to view, control and moderate – knowing who and when made what changes to any post or page. It also includes the ability to compare for differences between each saved versions, or revert back to older version.

WordPress Revision Versions Differences Comparison

Read the rest of this entry »

Handle XML with namespaces

I faced an issue while working with an xml file in Flash. I was unable to parse the xml data using the normal E4X syntax such as xml.node1.node2. It would give an error. The only thing different about this particular xml is that it has a lot of namespaces declared in it. After going through the documentation I found out a way to handle this issue. Let’s consider the following code:

var xml:XML = <Workbook xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:x="urn:schemas-microsoft-com:office:excel">
  <ss:Worksheet ss:Name="Sheet1">
  <Table ss:StyleID="ta1">
    <Row ss:AutoFitHeight="0" ss:Height="13.4064">
      <Cell>
        <Data ss:Type="String">Preview</Data>
      </Cell>
      <Cell>
        <Data ss:Type="String">unicode</Data>
      </Cell>
      <Cell>
        <Data ss:Type="String">htmlcode</Data>
      </Cell>
      <Cell>
        <Data ss:Type="String">htmlalt</Data>
      </Cell>
      <Cell>
        <Data ss:Type="String">utfcode</Data>
      </Cell>
      <Cell>
        <Data ss:Type="String">utfalt</Data>
      </Cell>
    </Row>
  </Table>
  </ss:Worksheet>
</Workbook>

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 »

Better Tag Cloud
Page loaded in 0.463 seconds.