Thursday 29 November 2012

How to stop the Forticlient Scheduler

Last Friday I installed Forticlient SSL VPN in order to connect to one of my client's pc remotely. I immediately noticed that Forticlient VPN disconnected automatically all of my other active VPNs, but at the time thought nothing of it.
Today I wanted to connect with my OpenVPN account, but could not do it because the Forticlient VPN and Forticlient Scheduler services were configured to start at Windows boot: I opened the Windows Services utility and tried to set the startup type of both processes to "Manual", but the FortiClient Scheduler kept giving me the error: Parameter is incorrect
After much searching on internet for solutions, I found out that FortiClient Scheduler is used by an active service called FortiShield, and that's why I could neither stop nor disable the process even with administrator rights; so I opened a window console and typed this:


After this I could stop the FortiClient Scheduler and set its startup type to "Manual". I hope this post will help others with the same problem!

Thursday 15 November 2012

Querydsl

Yesterday I attended a Spring Data Webinar, talking about the latest updates about JPA, JDBC and REST support.
In particular, Spring JPA added support for Querydsl predicates and type-safe JPA queries. Being a JPA user (but not a Spring JPA) I didn't know about this framework, but I find it particularly useful :)

More on: http://www.querydsl.com/

Wednesday 14 November 2012

I hate you, Javascript

But not as much as the people who's got the great idea to insert special characters in some Oracle tables! It took me half a day to correctly decode the parameters I got from the url and to make Oracle read them.
What I learned today:

  1. The javascript "unescape" function is super,super great... alone it resolves the majority of the issues of url encoding :)
  2. On the other side, accented characters are a bitch... you never know what you're going to come up with (for example, 'à' becomes 'Ã '... and don't forget the space!!!)
  3. Last but not the least: be sure to replace your special characters in the correct way. If you have to pass a query string to a db, be sure to use the html number, NOT the html name! This link is great to have on hand: http://www.ascii.cl/htmlcodes.htm
A lot of effort and time later, I finally got the point I wanted on my map:


Tuesday 13 November 2012

Look at that... it's been nearly a year since my last post.
Unfortunately, I have been very busy with work and, I admit, I kinda forgot about this blog :)
To remedy that, here's a photo of me during the last Lucca Comics and Games last week!