Valutazione attuale: 5 / 5

Stella attivaStella attivaStella attivaStella attivaStella attiva

Di recente ho dovuto affrontare un problema inaspettato, un errore nella mia stampante Epson ET-2850: "The Ink Pad needs service. Contact Epson".

In italiano dovrebbe essere qualcosa del genere: "Il tampone d'inchiostro necessita di assistenza. Contattare Epson".

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

Il risparmio energetico del mio PC è programmato per spegnere il monitor dopo 10 minuti e sospendere dopo 20.

Da qualche tempo a questa parte dopo andare regolarmente in sospensione ho notato che lo trovavo al login come se il nostro gatto avesse toccato il mouse o la tastiera. Mi è capitato di stare vicino al PC e di vederlo ripartire senza nessuno lo avesse toccato.

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva
I found on internet a lot of suggestions on how upgrade Windows 11 21H2 to 22H2. I tried some but I always got the message "... trouble determinating if your PC can run Windows Server...".
My PC has Windows 11 21H2 and not the Windows Server!
Here my experience about the update to unsupported hardware with 22H2.
 

Valutazione attuale: 5 / 5

Stella attivaStella attivaStella attivaStella attivaStella attiva

Nativamente Excel è in grado di alternare i colori delle righe ad ogni riga (pari-dispari). Purtroppo Excel nativamente non ha un modo di alternare i colori delle righe quando il valore di un gruppo cambia.

Tempo fa ho trovato una soluzione su internet ma sfortunamente non ho memorizzato l'indirizzo ma per fortuna avevo creato un esempio che di recente ho ritrovato.

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

Visual Studio Code has so many extensions that it takes a long time to choose which one to use. Let me share with my favorites. Just a list with a brief descriptions.

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

Recently I found a solution to run a javascript to temporary apply changes on a web site.

I had 2 cases where I changed some stuff in 3rd party webpage. Of course it's a temporary change until the page is reloaded.

In one case I need to remove the class "hidden-print" because the print invoice do not print some info. I need that but the supplier never fix it.

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

I was playing with the linux history command and after some tries I was searching on internet and I found a good feature on Visual Studio Code for the integrated terminal.

VS Code has 2 features for:

  • Commands for Current session
  • Commands for Previous sessions
  • Visited Directories for Current session
  • Visited Directories for Previous sessions

 Finally a good, easy and pratics way to manage your comand history plus the new history for directory visited.

I binding my keys, I choosen CTRL + ALT + UP arrow for history commands and CTRL - ALT + LEFT arrow for directories.

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

Here how you can customize the key bindings in order to switch focus between editor and integrated terminal.

I have done it editing the file "data\user-data\User\keybindings.json" and adding the settings there. Just save and test it.

My binds in my italian keyboards:

CTRL + \ 

Switch focus between Editor and Terminal
The key backslash "\" in my keyboard is under the ESC key.

ALT + \ 

Open the Terminal if it's closed

Valutazione attuale: 5 / 5

Stella attivaStella attivaStella attivaStella attivaStella attiva

Let me start saying "Finally Fixed!"...Ok, it's just a work around but you can be sure to find all differences. 

Who use the "directory comparison" feature noted for sure green folders but files are the same. This just because foler modified timestamp in folders are different.

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

This article contains how to customize the foreground, background and cursor color on VS Code Terminal.

Use different colors schema for each ssh remote helps to recognize them. Or maybe you want to change your local terminal colors.

We need to add/change the workbench setting inside the file settings.json.

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

In Excel ci posizioniamo nella colonna ed inseriamo una nuova colonna
a) Incollare la seguente formula nella cella A2:
=RESTO(SE(RIF.RIGA()=2;0;SE(C2=C1;A1; A1+1)); 2)
nota: adeguare C2 e C1 con la vostra colonna con valori che si alternano
b) Copiare A2 in tutte le righe della vostra tabella
c) Selezionare la tabella
d) Formattazione condizionale e quindi Gestisci Regole
e) Nuova regola e quindi scegliere formula come tipo di formattazione ed inserire =$A2=1 e quindi colorare lo sfondo

 

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

When you use Visual Studio Code with SSH extension you can run from your linux command line the command "code" to edit your files. let me say it's fantastic, real useful. If you still using classic Terminal session with Putty or others, you will need a classic linux editor like nano. Well I often fall in a mitstake and write code in putty and viceversa.

Solution is to create a function () and name it "nano" and stored it in the .bashrc file.

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

Recently I installed DUPLICATI to make my personal backups. I created around 7 tasks, I mean Jobs Configurations.

Duplicati has a GUI (Graphical User Interface) web based and in the home it reports the task list.

There is no option to sort the task list. I googled for a solution but I didnt find any simple way.

The official task list is orded by created.

Here my solution to make the task list draggable.

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

One of my latest experience has been to show the correct date time to russian guys.

In order to manage the right local date for each country I have done the following 3 simple steps:

  1. Store the date in GMT format (Greenwich Mean Time)
  2. Declare the momentJS in my webpage
  3. Use the momentJS function to convert the date

Browser will do a right conversion

 

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva

 

If you have to import an excel file into a database table you have different ways. Recently I faced with an excel file with inside cells with single quote inside the text and some amount cells with zero value.

Sottocategorie

MiscellaneousMiscellaneous
ajaxAsynchronous JavaScript
Lotus NotesArticoli su IBM Lotus Notes e Domino
VariArticoli Vari
GraphicsSome particulars tricks
JoomlaIl CMS Joomla!
developingDeveloping
vb.netVB.Net
php logo mediumPHP Scripts
sqlDatabases sql scripts and more
javascriptJavascript scripts
vscodePHP Scripts