Canestro nel campetto di basket del parco Dora a Torino finalmente ripristinato … ma in che modo???!!!!

Finalmente, dopo almeno 3 anni, hanno rimesso il secondo canestro nel campetto di basket del parco Dora a Torino.

Tuttavia il lavoro è stato fatto malamente da persone che non hanno attivato i principi fondamentali della logica.
Infatti l’asta obliqua l’hanno agganciata con dei morsetti al preesistente palo (anziché avvitarla alla sua estremità in alto come era originariamente e quindi com’era logico fare) e, per giustamente mantenere pressappoco uguale l’altezza dei due canestri, l’hanno dovuta fare più lunga: risultato, il canestro si trova dentro al campo da gioco molto più di quanto era originariamente (e quindi anche di più di quanto sia il canestro dall’altra parte del campo)!!! Inoltre non hanno messo le due aste di rinforzo dietro il pannello, che esistono nel preesistente canestro e che lo rendono sicuramente più robusto.

Esempio di piantina di campo regolamentare

Esempio di piantina di campo regolamentare

Se uno guarda le piantine di campi regolamentari, si nota che il palo che sostiene il canestro dovrebbe essere collocato a 2m dal campo, mentre attualmente si trova molto più vicino … quindi sarebbe stato originariamente più opportuno collocare il campo da basket non in corrispondenza di uno dei pilastri in metallo delle Ferriere della FIAT, bensì tra due di questi in modo da avere più spazio e potendo così piazzare più esternamente i due pali, che sorreggono i canestri …
… anche la posizione del canestro rispetto al campo forse è più regolamentare quella del nuovo canestro …

… ma comunque è pur vero che si tratta di un campo in un parco pubblico e non deve necessariamente essere regolamentare (anche se non sarebbe guastato!) ma la minima regola da rispettare in qualsiasi campo da gioco (regolamentare o meno che sia) è che il medesimo risulti simmetrico in modo che non sia favorita una delle due squadre.

SAREBBE COSTATO LO STESSO (forse anche meno essendo la sbarra più corta) fare il medesimo lavoro come uno si aspetterebbe, ripristinando il canestro così com’era originariamente (con un lavoro fatto un 5-6 anni fa e quindi si presuppone a norma)!!!  

Spero vivamente che qualche addetto a verificare le opere pubbliche imponga alla ditta che ha effettuato i lavori, di provvedere opportunamente, rendendo simmetrico il campo (modificando il nuovo lavoro o adeguando anche il vecchio canestro dall’altro lato)!!

Nuovo canestro ripristinato utilizzando impropriamente la preesistente asta verticale, e collocando il canestro assai all'interno del campo di gioco

Nuovo canestro ripristinato utilizzando impropriamente la preesistente asta verticale, in tal modo collocando il canestro assai più all’interno del campo di gioco rispetto al preesistente

Vecchio canestro in cui, oltre a collocarlo opportunamente rispetto al campo, presenta due aste di rinforzo che rendono il pannello più robusto e stabile.

Vecchio canestro che presenta due aste di rinforzo che rendono il pannello più robusto e stabile.

Dettaglio dei morsetti utilizzati per attaccare l'asta che regge il pannello, anziché utilizzare i preesistenti fori presenti all'estremità dell'asta

Dettaglio dei morsetti utilizzati per attaccare l’asta che regge il pannello del nuovo canestro (anziché utilizzare i fori presenti all’estremità dell’asta verticale preesistente, come era originariamente)

 

Annunci
Pubblicato in Giustizia, burocrazia e malcostume | Lascia un commento

How to connect a Microsoft Framework Bot to a third party channel (i.e. Facebook Messenger)

In Bot Framework Portal left menu  (How-To guides -> Connect to channels), there is a specific section related to the connection of a bot to a channel and, after Microsoft ones (e.g. Bing, Cortana, Skype for Business, Direct Line, Microsoft Teams, Skype, We Chat, Email, GroupMe) there are even third party channels (e.g. Facebook, Kik, Slack, Telegram, Twilio).

In the following I will give some details on the my experience in connecting an example bot of mine (i.e. testEnzoA) to the Facebook Messenger channel. The Connect a bot to Facebook Messenger page, available in the Bot Framework portal, explains the main steps how to do most of the work but in the following I’ll add some screenshots and personal considerations that could be useful when following those instructions!

In particular, the example bot that I will connect to Facebook Messenger, is called testEnzoA and simply reply to any message with “Hai detto: the same phrase”:

Testing the example testEnzoA bot from the Bot Framework Portal: it simply replies “Hai detto: the same phrase”:

In the following there are the main steps to make the things work … 😉

Create a new Page in your Facebook and get that Page ID from its About section. Possibly it is the first time (as it was for me) that you create a new Page attached to your Facebook account, so in the following you can find some screenshots I took for your convenience 😉

New Facebook Page creation (1)

New Facebook Page creation (2) - Community one

New Facebook Page creation (2) – e.g. Cause or Community one

New Facebook Page creation (3)

New Facebook Page creation (3)

Copy  the Page ID of the new created Facebook Page, available in the About section of that Page

After you create your new Facebook Page, you can always easily navigate to it from the left menu that have a specific Pages section (e.g. where the new just created Test1 page can be found).

Pages section of your Facebook account

All the Pages created in your Facebook account

Create a new Facebook App on that Page and generate an App ID and App Secret for it. To create a Facebook App you must navigate into the Facebook developer site: you can click on the Skip and Create App ID button (in the upper right of that page) and set the proper Display Name and Contact Email.

New App ID creation

Snippet code provided with the appId: however this code is not relevant for us.

Snippet code provided with the appId: however this code is not relevant for us.

Also in the See your app page, it is shown the App ID, but only clicking on the proper app icon you can access the Dashboard, related to that app, where you can manage it and set further options.

See your app page

See your app page

Clicking on the newly created Facebook app (i.e. Test1App), you can get not only its App ID but also its App Secret (visible only clicking on the Show button and providing your Facebook password).

Copy the App ID and App Secret

Going into the Settings -> Advanced section, set the “Allow API Access to App Settings” to Yes.

set the "Allow API Access to App Settings" to Yes.

Set the “Allow API Access to App Settings” to Yes

Then enable Facebook Messenger in the new Facebook App going into the Products section and then clicking the Set Up button related to the Messenger product.

Enable Facebook Messenger in the new Facebook App going into the Products section and then clicking the Set Up button related to the Messenger product

Generate a Page Access Token for the Facebook Page previously generated (i.e. Test1 Page)

Page Access Token generation (1)

Page Access Token generation (1)

Page Access Token generation (2)

Page Access Token generation (3)

Page Access Token generation (3)

Copy the generated Page Access Token

Copy the generated Page Access Token

Note that, as written in the Token Generation box:”Page token is required to start using the APIs. This page token will have all messenger permissions even if your app is not approved to use them yet, though in this case you will be able to message only app admins. You can also generate page tokens for the pages you don’t own using Facebook Login“.

I found quite strange that after the token generation you have to suddenly copy it to paste in the bot framework page related to the bot you want to connect with Facebook Messenger, because this token value will then not be available any more once you exit that Facebook page … and if you select again the same page, a new token is generated with a different value (???) …

Click on the Setup Webhooks button to forward messaging events from Facebook Messenger to the bot. Note that after that setup , that  Setup Webhooks button (available in the Webhooks section) will change to Edit Event and it will allow you only to change the Page Subscription Fields.

Setup Webhooks button to forward messaging events from Facebook Messenger to the bot

Setup Webhooks to forward messaging events from Facebook Messenger to the bot

Going to the Bot Framework Portal, in the section related to the bot you want to connect (e.g. testEnzoA), click on the CHANNELS section (top right menu) to connect that bot  to the Facebook Messenger channel.

Connect the selected bot (e.g. testEnzoA) to the Facebook Messenger channel

Connect the selected bot (e.g. testEnzoA) to the Facebook Messenger channel

Copy the Callback URL and Verify Token values from the Bot Framework portal to set them in the Facebook Messenger

Copy the Callback URL and Verify Token values from the Bot Framework portal to set them into the Facebook Messenger

Now, going to the Facebook developer site, set those Callback URL and Verify Token values from the Bot Framework portal (always available in the CHANNELS section of that bot): note that after clicking the Verify and Save button you will be allowed only to change the Subscription Fields and it are not available anymore the Callback URL and Verify Token sections (???).

Set into the Facebook Messenger the Callback URL and Verify Token values taken from the Bot Framework portal

Set into the Facebook Messenger the Callback URL and Verify Token values taken from the Bot Framework portal

After the Save and Verify, the green Complete is displayed if everything is set properly.

After the Save and Verify, the green Complete icon is displayed if everything is set properly.

Get the Page ID, App ID / App Secret and Page Access Token values copied from Facebook sites previously and past them in the Bot Framework Portal page for configuring Facebook Messenger.

Recover that Page ID in Facebook (1)

Recover the Page ID of that page in your Facebook (1)

Recover the Page ID of that page in your Facebook (2)

 

Recover the App ID and App Secret from the Facebook site for developers

The Configure Facebook Messenger page can be reached from the CHANNELS section of the bot, clicking on the Edit link in the line related to the Facebook Messenger channel.

Configure the Facebook Messenger channel for the bot (1)

Configure the Facebook Messenger channel for the bot (2)

Configure the Facebook Messenger channel for the bot (2)

In the Facebook App you can also set the more appropriate category (i.e. App for Messenger).

Set of the more appropriate category (i.e. App for Messenger) for the Facebook App

Set of the more appropriate category (i.e. App for Messenger) for the Facebook App

Note that Facebook requires a Privacy Policy URL and Terms of Service URL on its basic app settings page: the Code of Conduct page contains third party resource links to help create a privacy policy. The Terms of Use page contains sample terms to help create an appropriate Terms of Service document. After the bot is finished, Facebook has its own review process for apps that are published to Messenger. The bot will be tested to ensure it is compliant with Facebook’s Platform Policies.

App submission for approval from Facebook.

App submission for approval from Facebook.

After the review is successful, in the App Dashboard under App Review, set the app to Public.

After the review is successful, in the App Dashboard under App Review, set the app to Public.

After the review is successful, in the App Dashboard under App Review, set the app to Public.

It is written that, until an app is published, it is in Development Mode and Plugin and API functionality will only work for admins, developers, and testers.

I did not start the review process, also because Facebook requires a Privacy Policy URL and Terms of Service URL on its basic Facebook App settings page, … However I succeeded to do the test because, from the Dashboard of each App, it is possible to add Administrators and Testers of each Facebook App in order to test it even before it becomes public: in particular the owner of the Page is automatically inserted with Administrator rights!! 😉

The owner of a Facebook App is automatically set with the <em>Administrator</em> rights so I he can try the App even though it is not reviewed

The owner of a Facebook App is automatically set with the Administrator rights so I he can try the App even though it is not reviewed

As you can see in the following screenshot, writing to Test1 (that is the name of the Facebook Page I created for the test) from the Messenger site, the bot testEnzoA automatically answers “Hai detto: same string” as expected 😉

Writing to Test1 from the Messenger site: the bot testEnzoA automatically answers ""Hai detto: same string"

Writing to Test1 from the Messenger site: the bot testEnzoA automatically answers “Hai detto: same string”

Obviously the bot works even using the Messenger app, even from your smartphone:

Messenger app on Windows 10 Mobile

 

 

 

 

 

 

 

 

Messenger app on Windows 10

Messenger app on Windows 10

Before doing this review, I supposed that when I should write a post in my Test1 Facebook Page I should have had an automatic answer from the bot … but it is not what it happens … Only writing with the Messenger chat to a virtual user called as that Facebook Page (i.e. Test1) you have the bot give the proper answer following it proper logic.
Therefore, the bot is attached only to Messenger and it answers only when someone writes to a virtual contact, that has the same name of the Facebook Page, using the Messenger chat available from the Messenger web site or an app on PC/smartphone (Microsoft Store; Google Store; Apple Store).

No answer from the bot when I write something (e.g. ciao) as a post in my Facebook Page

_______________________________________________

More or less the procedure is the same for the other third party possible Channels (e.g. Slack) even though you have to register a “page” in a different environment and set the proper tokens and URL on the appropriate site (i.e. third party developer site and Bot Framework site configure the proper channel for that bot).

Bot connected to the Slack channel

The same Bot connected to the Slack channel

For connecting your Bot to Microsoft’s specific channels is even easier because you do not need to create/add specific tokens. For example, to add the Cortana Channel see this following post.

 

Pubblicato in Review e test, Windows | 1 commento

Come aggiornare a Windows 10 Mobile terminali non ufficialmente supportati

Se avete un Lumia non ufficialmente aggiornabile a Windows 10 Mobile,  soprattutto se era di fascia alta (e.g. Lumia 920, Lumia 1020) vi posso riportare la mia esperienza alquanto positiva di aggiornamento a Windows 10 Mobile, seguendo le istruzioni presenti in questo post di WindowsBlogItalia, … seppur sia un port datato è ancora valido!
Personalmente ho aggiornato sia un Lumia 920 (tempo fa) sia un Lumia 1020 (oggi) con successo e con ottimi risultati anche in termini di prestazioni e stabilità: non sarà l’ultima build di Windows 10 Mobile (trattandosi dell’ultima fornita agli Insider dei dispositivi supportati ufficialmente) ma è sicuramente meglio che Windows Phone, anche perché anche con quella versione girano già le nuove app UWP che risultano così scaricabili dal nuovo Store di Windows 10 (e.g. Maps, Office, Facebook).

=================

A supporto delle istruzioni già presenti nel post di WindowsBlogItalia, inserisco alcuni screenshot che potrebbero servire per comprendere meglio la procedura da effettuare, talvolta non particolarmente esplicite, aggiungendo alcune avvertenze.
In particolare si noti che conviene scaricare il file .hex, relativo all’emergency files, dal sito http://www.lumiafirmware.com e non dai link forniti dal post di WindowsBlogItalia in quanto fanno riferimento ad un sito di sharing di file poco affidabile (ha cercato di spillarmi soldi mostrandomi una videata – con sintesi audio inclusa –  che falsamente diceva di telefonare ad un numero di Microsoft +1 844 779 0444 perché il computer era infetto; ho dovuto uccidere il browser Edge con il Task Manager e cancellare i suoi dati di cache (vedi alcuni screenshots al riguardo) altrimenti mi riapriva un tab con quella pagina che lo bloccava!). La pagina fake, facsimile di un sito Microsoft, ha difatti una URL repostshub.today che ovviamente non ha niente a che vedere com MS!!

Altra nota importante è che nella impostazione del registro effettuato con regedit, è necessario impostare proprio esattamente quelle stringhe indicate in quel post che fanno riferimento a dati di un Lumia 635 (uno di quelli aggiornabili ufficialmente)… e questo anche se in realtà il tuo telefono che stai cercando di aggiornare è diverso: diversamente non comparirà nel Windows Update la presenza dell’aggiornamento a Windows 10 Mobile. Infatti la procedura modifica alcuni identificativi del dispositivo in modo che si presenti diversamente al sistema di update di Microsoft per il Fast Ring di Windows Insider … e consenta quindi di effettuare l’update anche se in realtà quel telefono non è uno di quelli ufficialmente supportati (chissà poi perché dal momento che, anche su quelli, Windows 10 Mobile va più che bene!! In questo sicuramente Microsoft ha toppato alla grande, a mio giudizio …).

______________________________________________________________

Fake virus alert when I tried to download the Firmware ROM from the link available in the post of WindowsBlogItalia

To solve the fake warning delete the browser cache end kill the browser with Task Manager

______________________________________________________________

Impostazioni ERRATE che inizialmente avevo fatto: si DEVONO invece inserire quelle indicate sul post di WindowsBlogItalia, che fanno riferimento ad un Lumia 635 anche se il tuo device è differente (vedi screenshot seguente)

 

 

 

 

Pubblicato in Review e test, Windows Phone/Mobile | 1 commento

How to delete a wrong word inserted by mistake in the custom dictionary in Windows 10 Mobile

It may happen that, for mistake, you add (using the suggestion bar available in Windows 10 Mobile while you are writing) a not correctly written word: how can you delete it from the custom dictionary in order it will not be considered as a possible correct word in the future?

In Windows 10 you can manage custom dictionaries directly accessing some files available in your Windows User folder (e.g. C:\Users\myUsername\AppData\Roaming\Microsoft\Spelling\it-IT ) as explained for example in this site .
As a may be better alternative, you can act from Outlook as shown in the following screenshot and as explained searching in the Outlook help “Add or edit words in a spell check dictionary“: after reached the list of the available custom dictionaries, you have to choose each one to manage its specific word list.

Add or edit words in a spell check dictionary in Windows 10 form Outlook

However in Windows 10 Mobile those capabilities are not available in Office apps and you cannot neither edit proper files: the only options can be reached from Settings > Time & language > Keyboard > Tap on a Keyboard language but they are not worth for our purposes.

As usual, I asked for help in the Microsoft Community forum and, after some time, a good guy told me the solution that he found from an old post (13/10/2016 – What’s new in Build 14946) in the Windows Blog site => “Option to remove a word from user dictionary (Mobile): We learn from your typing on the phone and build up a local user dictionary that adapts the keyboard prediction, autocorrection and shape writing experiences to your language style. Sometimes you may type a misspelled word and send it as is, sometimes you may tap on a red squiggled word and then tap the “+” sign by accident. Both save the unwanted word into your user dictionary, and it may appear when you type something similar in the future. Now you have a way to manually remove bad entries: tap on the word you don’t like in the text box, and you will see a candidate that is the word with a “-“ sign before it. Tapping on that candidate will remove the word completely from your user dictionary and no longer suggest it“.

Unfortunately it does not works from Word or WhatsApp app but only with other apps like Cortana, Messaging (SMS): from so0me app (e.g. Word, WhatsApp) it is possible only to add (+ option) a word in the custom dictionary but there is not the possibility to delete one misspelled word ( option) you may added for mistake! Anyway, after deleting a wrong spelling word (inserted from whatever app) from the custom dictionary from one app that allows it, that word will not be available as right written for all the environment (all the apps).

Add a wrong word using the popup menu available in Word (+Parolasbagliata)

Add a wrong word using the popup menu available in Word app (+Parolasbagliata)

Add a wrong word using the suggestion bar available in the Messaging app (+Provasbagliata)

Add a wrong word using the suggestion bar available in the Messaging app (+Provasbagliata)

Once inserted, from Word app it is not possible to delete a custom word

Once inserted, from Word app it is not possible to delete a custom word

From Messaging is available, in the suggestion bar, the option to delete a custom word from the dictionary (- Parolasbagliasta)

From Messaging is available, in the suggestion bar, the option to delete a custom word from the dictionary ( Parolasbagliasta)

Also in Cortana it is possible not only to add a word in the custom dictionary but also to possible delete it afterwards, as in Messaging app: therefore it is a feature available from the O.S. but, I do not know why, not used from all the apps …

Add a word in the custom diction from Cortana

Add a word in the custom diction from Cortana (+ Parolasbagliata)

Delete a word available in the custom dictionary from Cortana (-Parolasbagliata)

Delete a word available in the custom dictionary from Cortana (Parolasbagliata)

Pubblicato in Windows, Windows Phone/Mobile | Lascia un commento

How to add a certificate in Windows 10 possibly required to use Skype for Business

Sometime to use Skype for Business in an intranet there is the need to install a firm certificate: it may even happens that Skype for Business works when your PC is connected to Internet (if you have required the proper rights) even without installing the certificate but that is required if you are connected to the intranet!

Having the certificate file (.cer) and possibly a command file (.com) that simply install it (certutil -addstore Root NameCa.cer), the installation is very easy as shown in the following screenshots.

  1. First you have to run the command prompt (available in C:\Windows\System32) as an administrator and go to the directory where there is the certificate file and the command file
  2. Run the command file in order to install the certificate (e.g. NameCa.cer)
  3. Possibly you need to restart Skype for business app in order to let it properly connect now using the just installed certificate.
Run the command prompt as an administrato

Run the command prompt as an administrator

Run the command file in order to install the certificate (e.g. NameCa.cer)

Run the command file in order to install the certificate

A possible alternative way, could be possibly to right click on the certificate file and choose Install Certificate.

Alternative way:  right click on the certificate file and choose Install Certificate

Alternative way: right click on the certificate file and choose Install Certificate

Pubblicato in Aziendali, Windows | Lascia un commento

What to do if a the performance of a Windows app starts to decrease

Sometime it happens that the performance of an app decreases (or it starts to work not properly): this may happens with some resources consuming apps like the Facebook one. Every app has a reserved memory where it can store locally data and may be after some time the stored data became too big and/or may be those data are not handled in the better way.

A possible solution could be to uninstall that app and install it again … but there is another easier and quicker way in every Windows 10 device, so both on PC/tablet and on a smartphone 😉

You must go to Settings -> App & features, select the proper app, then click on its Advanced options link: in that page are shown all the details of that app and, among them, its storage usage. Clicking the Reset button all the local stored data of that app will be deleted and it is like it was just installed. Probably you will have to insert again your credential to access that app if this requires authentication, but then surely you may notice that its performances will return as they were at the beginning!! 😉

All Settings -> App & features (PC/tablet)

Reset for that app (PC/tablet)

The following screenshots were taken from my Windows 10 mobile device: you can notice that before the usage storage is 428 MB and after the reset it is 161 MB, mainly the size of the app (only 16KB of local data against the initial 266 MB!!)

App & functionalitiesAdvanced options of the selected app

Reset button

Popup alert that all the app local data will be deleted with the requested reset

 

 

Pubblicato in Uncategorized | Lascia un commento

Why your iCloud email, configured in your email client, do not work anymore since 15/6/2017

Some months ago (exactly since 15/6/2017) all my email clients I configured in my Windows PCs and smartphones started to have problems in accessing only an iCloud email … while the same account continued to work properly only on an Apple device I have (iPad 2).

Useless trying to recreate the email account with the email client (e.g. Microsoft Mail app or Outlook) even configuring that account not only automatically (choosing iCloud as account type) but also manually from the Advanced setup (last choice that becomes visible only scrolling down the list) and setting properly by hand the IMAP4 account (Incoming email server: imap.mail.me.com:993:1  ;   Outgoing (SMTP) email server: smtp.mail.me.com:587:1 )!!

Useless trying to recreate the account also with the Advanced setup

Useless trying to recreate the account also with the Advanced setup

Sometime happened that the client couldn’t find the new created account, even though the username and password were correct, some others the account was created successfully BUT, then, no synchronization succeeded!

The client couldn't find the new created account

The client couldn’t find the new created account

Account created successfully but ...

Account created successfully but …

 ... no synchronization succeeded

… no synchronization succeeded

Searching in some forums I found the reason: on 15/6/2017, Apple introduced new security measures for using 3rd party apps or devices that access an iCloud account, as explained in that Apple support page.
From this post in the Apple forum you can read the following further details: “In order to get those apps or devices signed back in so that they can access iCloud, you need to use an App-specific password to sign them in. The only way to get an App-specific password is to set up either Two-Factor Authentication or Two-Step Verification on your Apple account. If you have an iOS device running iOS 9 or later, or a Mac running Yosemite or later, you can set up Two-Factor Authentication. If you do not have either of those, then you can set up Two-Step Verification. Here is the Two-Factor Verification link, and within that link is a separate link if you need to set up Two-Step Verification: Two-factor authentication for Apple ID – Apple Support. Once you get either 2FA or Two-Step set up for your Apple account, you can then generate an App-specific password that you would then use to sign in with instead of your regular Apple ID password: Using app-specific passwords – Apple Support“.

Therefore, if you want to continue to use a third party email client, you have to set in your Apple account a two-factor authentication or a two-step verification and only after  that, you can request for a specific password for each specific third party client!!
… that procedure, I thing, it is really useless in most cases from the security point of view and it was probably introduced mainly to let the user chooses an Apple client instead of a third party one! In fact an Apple client does not necessarily require those security measures … I wonder why!

================================

P.S. From another post you can read another information that can be useful to you, related to the username you have to use accessing to your iCloud email: “You need to authenticate with your Apple ID email address and password (NOT necessarily your iCloud email address and password!  Many people’s APPLE IDs are NOT their iCloud email address because when someone got his new Apple device, he probably already had another email address that he wanted to use when Apple had you create an Apple ID.  So THAT is what you are going to use because iCloud uses your Apple ID (which is NOT necessarily your iCloud email address) as a centralized way of authenticating“.

Pubblicato in Review e test, Windows, Windows Phone/Mobile | Lascia un commento