In WPF, it’s pretty common to display differenct properties of an object as if there where one. Typycally, I have a User, which contains a FirstName and a LastName and I want them both to be displayed as one. <TextBlock> <TextBlock.Text> <MultiBinding StringFormat=”{}{0} ({1})” > <Binding Path=”User.FirstName”></Binding> <Binding Path=”User.LastName”></Binding> </MultiBinding> </TextBlock.Text> </TextBlock> Enjoy!
Create a simple REST Web Service: Step 3 – Consume the Service
In my previous post we were talking about how to create a REST web service. But now we want to build a client and consume this service. The address was http://localhost/DbUsersApi.php?action=get_user_list and the result was a JSON file: {“user_list”:[{“userid”:”D3B6F994-1DA5-47FB-8A2A-750A65AAB137″,”firstname”:”Joe”,”lastname”:”Bloggs”},{“userid”:”E19F2EC8-62B9-4C88-84DC-E0D6903177E0″,”firstname”:”John”,”lastname”:”Doe”}]} We will use a simple HTML file with Javascript. Consume the service with Javascript: Create a new file […]
Create a simple REST Web Service: Step 2 – PHP Service
In my previous post I was talking about how to install WAMP and create your DataBase. Here we will create a RESTfull web service with PHP. We created our User table with some users in it. Now we want to get this user list in a “universal” way. It means any kind of code could […]
Create a simple REST Web Service: Step 1 – DataBase
Context: Here we want to create a REST Web Service using PHP on a WAMPServer. The messages will be formatted as JSON entities. A Web Service is simply some online methods you can access from any kind of code (C#, Java, Javascript, Python …). RESTful web services are light weight, highly scalable and maintainable and […]
Remote Desktop Connection on your Pi – Step 3: being awesome
In my previous post I was talking about the how to configure your Pi to be able connect to it with Remote Desktop Connection and how to configure your router for Port Forwarding. The last step is to configure the Dynamic DNS. This will allow you to remote connect to your Raspberry Pi from everywhere, any […]
Remote Desktop Connection on your Pi – Step 2: world wide
In my previous post I was talking about how to configure your Pi to be able connect to it with Remote Desktop Connection. But this was only on a local network. What if you want to be world wide? Open a web browser like Chrome and write 192.168.1.1 or 192.168.0.1 to connect to your router. […]
Remote Desktop Connection on your Pi – Step 1: home sweet home
On a previous post I showed you how to connect to your Raspberry Pi with PuttY. Now it’s time to connect to your Raspberry Pi with the Remote Desktop Protocol (RDP). Indeed, if you’re bored of this terminal and you’d like to be able to see the Desktop environment, all you need is to install the XRDP […]
Connect to your Pi with SSH – PuttY
If you just receive your brand new Raspberry Pi, you probably tried already to connect your keyboard, mouse, screen and network cables. (see my post about how to create your SD card with NOOBS) But what if you want your Pi to run but disconnect all those cables and still be able to connect to […]
Initial config for Raspberry Pi
First of all, you can execute this command to set some default parameters: sudo raspi-config In the Boot menu, my advice will be to disable the automatic launch of the desktop environment and the autologin by selecting: Boot Options / B1 Desktop / CLI / B1 Console But here you have more command lines […]
Install Raspbian OS on Raspberry Pi
Here’s the instructions to install your SD card ready for the Raspberry Pi. 1. Download and install Win32 Disk Imager from this link: http://sourceforge.net/projects/win32diskimager/files/latest/download Unzip it. 2. Download Raspbian here: https://www.raspberrypi.org/downloads/raspbian/ Unzip it (this may take a while as its a large file to match the size of the SD card) 3. Plug the SD […]