About Xavier

7 years+ .net consulting

Libnfc and nfc utils binaries on Windows 10


I’ve recently cross compiled libnfc and nfc utils , following this post : https://github.com/peacepenguin/libnfc-unofficialbuilds

I had a driver issue with my ACR122U, but using LibUsbK instead of libusb0, – btw i’ve also installed libusb in C:\Program Files\LibUSB-Win32 –

solved the problem

Here are the working  binaries and the acr 122U LibusbK driver installer :

Link to binaries (rar archive)

I’ve also translated Mifare – one tool to english and updated libnfc dll and some exe utils to x64 –> https://github.com/xavave/MifareOneTool-English/

proxy socks via tunnel SSH avec Synology, Putty et C# .NET

Following this nice tutorial (quite old but good anyways ) : http://www.geeknewz.fr/tuto-proxy-socks-via-ssh-sur-synology-15567

Here is the same thing, but aotumatised in C#: don’t forget to replace YOUR_SYNOLOGY_DNS_OR_IP_HERE  with your synology address or DNS name

and also your syno admin password instead of  YOUR_SYNOLOGY_PASSWORD_HERE

you can’t slightly change code to not have to type your password every new connection (Console.ReadLine()…and remove:

Sony NWZ-E430, NWZ-E350, NWZ-E460 Service Menu

If anything goes wrong during the process, press the reset button on the back of the device in order to reset it.  Unfortunately there is no guarantee that the reset will work.  So please use this at your own discretion. 

1. Make sure you are on the main menu.
2. Put the player on Hold
3. Press the following keys in order:


4. If done right the machine will turn off and back on and load a colour bar, press any button to get off the colour bar and into the service menu.

1. Go to the main menu of the player
2. turn Hold ON
3. now press these keys in order


The player should restart and go into the service menu, turn Hold OFF and then find the Audio settings menu.

To exit the Test mode, go the main selection screen then press
up –> down and select EXITTEST then press right and select SURE, finally press the play/pause button, turn the power off and release the test mode

I am not responsible if your player stops working or if you encounter any errors.



SummerTime Cover (Ella Fitzgerald)

(Isabelle singing, xav à la gratte)

upgrading the synology DS 107 firmware to 4.2 or more

synology DS107 latest official firmware is (and should officially remain) 3.1 ( DSM_DS107_1613.pat )

you can upgrade it to 4.2 firmware!

how to ?
1) connect to your diskstation web interface: (typically : http://diskstation:5000/webman/index.cgi)

2) activate TELNET/SSH in Control Panel/Network Services/Terminal

3) if you don’t have Putty (free Telnet Client), download it to access diskstation with telnet : http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

4) run putty.exe , and for host, write : diskstation, select telnet and click “Open”


then a console window should open:

type ‘root’ and then your diskstation usual password (the same as to connect on the web interface) then press ‘enter’ key


note: the password will not show when you type

5) type

cd ..
cd etc.defaults

(press ‘enter’ key at the end of each line)

6)Edit the file synoinfo.conf. This can be done using the built in editor vi. Simply type:
vi synoinfo.conf

to start the editor.
Now… vi is not exactly the most typical editor so you might end up with some troubles here. A quick guide is:

  • The vi editor has a command mode, and and input mode.
  • You switch to input mode by pressing the i key.
  • When you are in input mode everything you type is inserted as normal into the document.
  • You go back into the command mode by pressing escape.
  • The cursor keys navigate the document.
  • The x key will delete characters under the cursor when you are in command mode.

You need to change the first line from:


Now, to save the file, make sure you are in command mode (Press escape if in doubt.) and type:


This tells vi to write and quit. If you messed something up just type:

and the editor will quit without saving. Then start over by typing vi synoinfo.conf again. (Usually you can just press the cursor up key, and then enter, to reissue the command.)If you need more help with vi it might be helpful to read the Mastering the vi editor guide.

7) Now you can exit the telnet session again if you want. Just type exit and the connection will close.

8) DON’T REBOOT YOUR SYNOLOGY NOW! (or you will have to reinstall the old DS-107 firmware with this assistant)
Now your Synology device will think its a DS109J model. This enables you to download the firmware for the DS-109j and apply it using the web interface just as usual. The firmware can be downloaded from Synology download site

update DSM 4.2 : install directly DSM 4.2 from synology web interface ; Download link :

You will first have to install firwmare 3.2 ; the updgrade file is called DSM_DS109j_1955.pat (link : http://ukdl.synology.com/download/DiskStation/DSM3.2/1955/DSM_DS109j_1955.pat)
then you will have to install firmware 4.0 ; the updgrade file is called DSM_DS109j_2228.pat (link : http://ukdl.synology.com/download/DiskStation/DSM4.0/2228/DSM_DS109j_2228.pat)
then you can install 4.2 : link : http://ukdl.synology.com/download/DiskStation/DSM4.2/3211/DSM_DS109j_3211.pat

To install these firmwares, don’t use synology assistant, but use synology web interface (in Control Panel /DSM update) with Manual update

If you install latest DSM version (4.2 beta) : don’t forget to update audio,download station, itunes server and other packages packages in web interface (beta channel update) after installation:


———— DONE 🙂
note : you synology is now like a DS109j

this trick may work with few modification on other x-07 – and maybe other – synology diskstation but you’ll have to check which processor you have inside your syno:

other useful links:



umbrella (mandy moore cover)

Master Data Services Excel Add-in Query updater


This small tool allows you to Load, Edit, and save MDS queries with operators that are not available in current mds add-in
you can download the source code (.Net C# 4.0 Client Profile, VS2010) of my tool here (FREE) HERE



binary only: HERE

very easy to use:

Load your already generated query

then choose a new Operator and edit the criteria

and then save the updated query

you can use all these operators:
[Description(“”)] NotSpecified,
[Description(“=”)] IsEqual,
[Description(“<>”)] IsNotEqual,
[Description(“LIKE”)] Like,
[Description(“NOT LIKE”)] NotLike,
[Description(“>”)] GreaterThan,
[Description(“< “)] LessThan, [Description(“>=”)] GreaterThanOrEqual,
[Description(“< =”)] LessThanOrEqual,
[Description(“MATCH”)] Matches,
[Description(“NOT MATCH”)] NotMatches,
[Description(“REGEX”)] ContainsPattern,
[Description(“NOT REGEX”)] NotContainsPattern,
[Description(“IS NULL”)] IsNull,
[Description(“IS NOT NULL”)] IsNotNull,
[Description(“IN”)] In,
[Description(“NOT IN”)] NotIn,
[Description(“DIRECT DECENDANTS”)] DirectDecendants,
[Description(“ALL DECENDANTS”)] AllDecendants,

More info on sql mds 2012 MSDN blog