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:

 

2009 - Fraunhofer FIT

Import CSV file and query it with LINQ

How to easily import CSV file and query it with LINQ Assume that you have an plain text, old Comma Separated Values file filled with your precious export from a legacy system. How can you process it easily now? The first answer that comes to mind is to parse it and load it into a datatable and later process it by using DataTable.Select() method. But this approach has some limitations – like splitting data into several tables and then join them.

One would imagine that parsing CSV files is a straightforward and boring task, given that it is quite a while since CSV is around. Some of them are correct – in the sense that many implementations merely use some splitting method like String.Split(). Some don’t even offer the specification of the values splitting character – so your file wouldn’t be parsed correctly if instead of , you have ; as separator – yet another thing to modify if you’re lucky enough to have the sources. Others will not handle properly field values with commas because the simple split method of the String class. But there are better implementations that take care about escaped quotes, trimming spaces before and after fields and other small and useful details, but very few that I found did it all as I liked it – and at least as importantly, in a fast and efficient manner.

Read the rest of this entry »

How to make a Print Screen on Microsoft Source using WPF

Making a Printscreen with WPF on Microsoft Surface - Programming with C# and using WCF / WPF and Silverlight

After we took a look inside of Microsoft Surface, let’s see how to take a later look on the surface, by creating printscreens of the application.

In some WPF applications you’ll need to take a quick screenshot of the user’s screen, allowing him (or them, in case of Multi User Surface) for later reviewing. Now, on Surface there can be only one full screen and active application. So it use the entire screen of the device.

Here are the steps in order to accomplish that:

First, we need to add to Visual Studio project the references to the libraries that we’ll use:

using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;

Then, we will add create the method that will do the actual saving to a specific file, with the format PNG:

public void MakeScreenshot(String fileName)
{
    Bitmap bmpScreenshot;
    Graphics gfxScreenshot;

    //first, we create&set a bitmap object to the size of the screen
    bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);

    //Using the bitmap, we create a graphics object
    gfxScreenshot = Graphics.FromImage(bmpScreenshot);

    //Copy the rectangle (the screen in our case) - from the upper left corner to the right bottom corner
    gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);

    // Do the saving, outputing a file by supplying the name and format it as PNG
    bmpScreenshot.Save(fileName, ImageFormat.Png);
}

That’s all, folks – Use and enjoy!

Microsoft Surface – What’s inside

 

Microsoft Surface - What's insideAfter starting the task, I started to be very curios about the technology that drives this device.I started looking over the internet and I found this picture. Very interesting, isn’t it? Basically contains a normal computer, linked to a projector and few infrared cameras.

1) Screen, the visual part of the device  – Contains a special diffuser which turns the Surface’s acrylic tabletop into a big horizontal “multitouch” screen, capable of acquiring and processing multiple inputs from multiple users in the same time. The Surface is far more advanced than simple multitouch devices, being capable to be aware of different objects by recognizing their shape or by reading coded “domino” tags when placed on the table.

Read the rest of this entry »

Microsoft Surface – new task and new challenges

Microsoft Surface - new task new challengesNew day, new task, new challenges – Today I started working on a social collaborative tool which will work on Surface, but extended eventually to Flex 3, Silverlight and iPhone.

First impression: Visual Studio is an old friend. Still, bad news: Surface SDK is kept locked in a website, having access only those who bought a license. Shame, Microsoft!

After installing the SDK I started running the examples, I noticed that many events are new, a lot of new interaction techniques appeared ( the device can track up to 50 different fingers) and also the trackers who can be identified and corresponding menus, actions, interactions can be setup.

I’m looking forward to this new style of programming and really hope to learn it as fast as Objective-C.

Better Tag Cloud
Page loaded in 0.181 seconds.