[systemsettings] [Bug 482573] Left handed mode doesn't work

2024-03-09 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=482573 --- Comment #2 from valerio pachera --- (In reply to Nate Graham from comment #1) > Make sure you've got the right mouse selected in the combobox on top. > Sometimes it has multiple devices in it, depending on your hardware > configuration. T

[kde] [Bug 482573] Left handed mode doesn't work

2024-03-06 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=482573 valerio pachera changed: What|Removed |Added Platform|Other |Neon -- You are receiving this mail because

[kde] [Bug 482573] New: Left handed mode doesn't work

2024-03-06 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=482573 Bug ID: 482573 Summary: Left handed mode doesn't work Classification: I don't know Product: kde Version: unspecified Platform: Other OS: Linux Status: REPORTED

[Python] [PYTHON] Verificare se una stringa contiene dei caratteri

2023-11-30 Thread Valerio Pachera
Ciao a tutti, devo fare una cosa relativamente, verificare se in una stringa (*in qualsiasi punto*) ci sono certi caratteri. Questo restituisce null perché la x è alla fine della stringa e non all'inizio. >>> p = re.compile('[xyz]') >>> re.match(p, 'ciaox') Questo invece fa match perché la

[kmail2] [Bug 474356] Cross Folder Thread

2023-09-12 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474356 valerio pachera changed: What|Removed |Added CC||siri...@gmail.com -- You are receiving

[kmail2] [Bug 474356] Cross Folder Thread

2023-09-12 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474356 valerio pachera changed: What|Removed |Added CC||siri...@gmail.com -- You are receiving

[kmail2] [Bug 474313] KMAIL ignores existing TAGS and doesn't apply them server side

2023-09-12 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474313 valerio pachera changed: What|Removed |Added CC||siri...@gmail.com -- You are receiving

[kmail2] [Bug 474313] KMAIL ignores existing TAGS and doesn't apply them server side

2023-09-12 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474313 valerio pachera changed: What|Removed |Added CC||siri...@gmail.com -- You are receiving

[kmail2] [Bug 474313] KMAIL ignores existing TAGS and doesn't apply them server side

2023-09-12 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474313 valerio pachera changed: What|Removed |Added Summary|KMAIL ignores existing TAGS |KMAIL ignores existing TAGS

[kmail2] [Bug 474313] KMAIL ignores existing TAGS and doesn't apply them server side

2023-09-12 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474313 valerio pachera changed: What|Removed |Added Summary|KMAIL ignores existing TAGS |KMAIL ignores existing TAGS

[kmail2] [Bug 474397] New: Kmail crashed removing more SMTP server at once

2023-09-11 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474397 Bug ID: 474397 Summary: Kmail crashed removing more SMTP server at once Classification: Applications Product: kmail2 Version: unspecified Platform: Netrunner OS: Linux

[kmail2] [Bug 474397] New: Kmail crashed removing more SMTP server at once

2023-09-11 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474397 Bug ID: 474397 Summary: Kmail crashed removing more SMTP server at once Classification: Applications Product: kmail2 Version: unspecified Platform: Netrunner OS: Linux

[kmail2] [Bug 474356] New: Cross Folder Thread

2023-09-10 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474356 Bug ID: 474356 Summary: Cross Folder Thread Classification: Applications Product: kmail2 Version: 5.24.0 Platform: Neon OS: Linux Status: REPORTED Severity:

[kmail2] [Bug 474356] New: Cross Folder Thread

2023-09-10 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474356 Bug ID: 474356 Summary: Cross Folder Thread Classification: Applications Product: kmail2 Version: 5.24.0 Platform: Neon OS: Linux Status: REPORTED Severity:

[kmail2] [Bug 474313] New: KMAIL ignores existing TAGS and doesn't apply new ones

2023-09-08 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474313 Bug ID: 474313 Summary: KMAIL ignores existing TAGS and doesn't apply new ones Classification: Applications Product: kmail2 Version: 5.24.0 Platform: Neon OS: Linux

[kmail2] [Bug 474313] New: KMAIL ignores existing TAGS and doesn't apply new ones

2023-09-08 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=474313 Bug ID: 474313 Summary: KMAIL ignores existing TAGS and doesn't apply new ones Classification: Applications Product: kmail2 Version: 5.24.0 Platform: Neon OS: Linux

Re: [Python] [PYTHON] Suggerimento framework

2023-07-24 Thread Valerio Pachera
Il giorno mer 19 lug 2023 alle ore 13:04 Marco Giusti < marco.giu...@posteo.de> ha scritto: > Io userei Flask, e' semplice da usare e completo > Grazie della risposta. Sto studiando questo framework. ___ Python mailing list Python@lists.python.it

[Python] [PYTHON] Suggerimento framework

2023-07-19 Thread Valerio Pachera
Buongiorno a tutti, vi chiedo un consiglio: vorrei realizzare una pagina web che NON richiede autenticazione, dove posso fare upload di un file deve esserci un controllo sulla dimensione del file una volta caricato il file lato server deve essere eseguito con comando che lo leggere e ritorna del

Re: [Python] [python] escludere righe vuote o commentate

2023-02-05 Thread Valerio Pachera
Il giorno mer 1 feb 2023 alle ore 12:43 Marco Giusti ha scritto: > for line in open(filename): > if line.strip() and not line.startswith("#"): > clean.append(line) > > Credo vada modificato così, altrimenti le righe che iniziano con degli spazi e seguire da un cancelletto vengono

Re: [Python] [python] escludere righe vuote o commentate

2023-02-01 Thread Valerio Pachera
Il giorno mer 1 feb 2023 alle ore 10:25 Valerio Pachera ha scritto: > Ciao a tutti, vorrei ottenere lo stesso risultato di > > grep -Ev '(^[[:blank:]]*$|^#)' > Per ora ho usato questo approccio: with open('file.txt') as f: p = re.compile('^\s*$|^#.*') clean = [l

[Python] [python] escludere righe vuote o commentate

2023-02-01 Thread Valerio Pachera
Ciao a tutti, vorrei ottenere lo stesso risultato di grep -Ev '(^[[:blank:]]*$|^#)' Ho pensato a questo: p = re.compile('^\s*$|^#.*', re.MULTILINE) \s Matches any whitespace character; this is equivalent to the class [ \t\n\r\f\v]. Se provo però a sostituire le righe che

Re: [Python] Parsing di un file ldif invalido

2022-09-15 Thread Valerio Pachera
Il giorno mer 14 set 2022 alle ore 15:36 Marco Giusti < marco.giu...@posteo.de> ha scritto: > > > #!/usr/bin/env python3 > > import sys > from ldif3 import LDIFParser > > ldif_path = sys.argv[1] > > with open(ldif_path, 'rb') as ldif_file: > parser = LDIFParser(ldif_file) > > for dn,

[Python] Parsing di un file ldif invalido

2022-09-14 Thread Valerio Pachera
Buongiorno a tutti, ho la seguente esigenza: parsare un file ldif prodotto dall'esportazione di una rubrica di Thunderbird. Prendiamo questo ldif come esempio: --- dn: cn=Mario Rossi,mail=mario.ro...@domain.com objectclass: top objectclass: person objectclass: organizationalPerson objectclass:

Run virt-manager 4.0.0 on ubuntu 20.04

2022-06-27 Thread Valerio Pachera
Hi, I wish to run the latest virt-manager version on my ubunut 20.04. I checked all the requirements in INSTALL.md and they are all met. I remove virt-manager 2.2.1 by apt remove virt-manager. I run then setup.py install and got no error. which virt-manager /usr/bin/virt-manager virt-manager

Clone a vm sharing disk

2022-06-27 Thread Valerio Pachera
Hi, I have a vm with a qcow2 disk hosted on a btrfs file system. Looking at the documentation it seems always possibile to create a clone and share the source disk:

Understand how bridge works

2022-06-27 Thread Valerio Pachera
Hi, I'm running virt-manager 2.2.1 on a ubuntu 20.04 (kde neon). In stalled a ubuntu 22.04 as guest. The vm nic is configured using bridge I cloned the vm (with a differe mac address). When I run the first vm I notice it gets and IP from DHCP and this is my

[neon] [Bug 454169] New: KDE Neon installer doesn't create Volume Groups

2022-05-21 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=454169 Bug ID: 454169 Summary: KDE Neon installer doesn't create Volume Groups Product: neon Version: unspecified Platform: Ubuntu Packages OS: Linux Status: REPORTED

Re: Fwd: Set environment variables

2022-05-17 Thread Valerio Pachera
Il giorno ven 13 mag 2022 alle ore 16:10 Willy Tarreau ha scritto: > Hi Valerio, > > On Mon, May 09, 2022 at 10:14:09AM +0200, Valerio Pachera wrote: > > Unfortunately I'm not a developer so it will take too much time form me > to > > contribute to the code. > > I

Re: Fwd: Set environment variables

2022-05-09 Thread Valerio Pachera
Il giorno dom 8 mag 2022 alle ore 11:07 Willy Tarreau ha scritto: > > With that said, I admit that it could be useful to have another variable > such as HAPROXY_SERVER_SSL to indicate if SSL is being used, and possibly > another one such as HAPROXY_SERVER_PROTO to indicate when a protocol is >

Fwd: Set environment variables

2022-05-06 Thread Valerio Pachera
Hi, I have several backend configuration that make use of a custom script: external-check command 'custom-script.sh' The script read uses the environment variables such as $HAPROXY_PROXY_NAME. I would like to be able to set and environment variable in the backend declaration, before running the

Set environment variables

2022-04-26 Thread Valerio Pachera
Hi, I have several backend configuration that make use of a custom script: external-check command 'custom-script.sh' The script read uses the environment variables such as $HAPROXY_PROXY_NAME. I would like to be able to set and environment variable in the backend declaration, before running the

Re: [Python] Suggerimento per creazione classe

2022-01-01 Thread Valerio Pachera
Il giorno ven 31 dic 2021 alle ore 14:25 Massimo Masson ha scritto: > ... > Rapidamente, potresti "staticizzare" i due path nella classe, ad esempio: > > class Account(object): > src = 'sorgente_' > dst = 'destinazione_' > > ... > > poi magari cerca sui decoratori @staticmethod ed

[Python] Suggerimento per creazione classe

2021-12-31 Thread Valerio Pachera
Buongiorno a tutti, scusatemi in anticipo se non saro' chiaro. Devo capire se si puo' fare una cosa e come. Sto cercando di improntare struttura di questa classe: class Account(): def __init__(self, name): self.name = name def self.export(self): src_path =

[Python] [PYTHON] Leggere certificato x509

2021-11-05 Thread Valerio Pachera
Ciao a tutti, il mio obiettivo è ottenere la lista dei Subject Alternative Name di un certificato. X509v3 Subject Alternative Name: DNS:nome1.domain.tld , DNS:nome2.domain.tld, DNS:nome3.domain.tld Ho ottenuto un risultato parziale tramite: --- #!/usr/bin/env python3 from pprint import pprint

Re: [Python] Chiarimento sugli iteratori

2021-09-17 Thread Valerio Pachera
ritorna nulla. Il giorno ven 17 set 2021 alle ore 16:57 Valerio Pachera ha scritto: > > Buongiorno a tutti, ho notato questa cosa: > > #!/usr/bin/env python3 > > def test(): > for x in range(0, 10): > yield x > > iterator = test() > > print(test)

[Python] Chiarimento sugli iteratori

2021-09-17 Thread Valerio Pachera
Buongiorno a tutti, ho notato questa cosa: #!/usr/bin/env python3 def test(): for x in range(0, 10): yield x iterator = test() print(test) for x in iterator: print(x) for x in iterator: print(x) - Restituisce 0 1 2 3 4 5 6 7 8 9 --- Mentre se

Re: [Python] aiuto espressione regolare

2021-08-23 Thread Valerio Pachera
Il giorno lun 23 ago 2021 alle ore 11:20 Pietro Brunetti ha scritto: > > Io farei il tamarro. > > Rimuoverei tutte le virgole (a priori) e poi cambierei "mail=" con ",mail=". Avevo pensato la stessa cosa ma bisogna farlo solo sulle righe che iniziano con "dn: cn=".

[Python] aiuto espressione regolare

2021-08-23 Thread Valerio Pachera
Buongiorno a tutti, mi ritrovo a fare il parse di un file ldif. Ottengo però errore su alcune entry "scritte male", es: ValueError: No valid string-representation of distinguished name cn=descrizione con, delle, virgole,mail=john.doe.domain.com. La presenza di virgole nel cn: manda in crisi il

Re: [FFmpeg-user] Concatenate files

2021-08-02 Thread Valerio Pachera
Il giorno dom 1 ago 2021 alle ore 14:46 Reino Wijnsma ha scritto: > You probably didn't prepend "file " as the wiki-url shows you. Damn, You are right! I checked size and length of the merged file and they are correct. > Who is kate? Kde Advanced Text Edito :-) https://kate-editor.org/it/

[FFmpeg-user] Concatenate files

2021-07-30 Thread Valerio Pachera
Hi all, I'm trying to concatenate 3 files recorded by OBS studio on a kubuntu 20.04. They all share the same settings/codec and container: 30fps, h264, aac (44.100Hz 32bit), 1920x1080, mkv First of all I tried using this syntax: https://trac.ffmpeg.org/wiki/Concatenate ffmpeg -f concat -safe 0

[Python] SOAP request tramite Zeep a Zimbra

2021-06-04 Thread Valerio Pachera
Buongiorno a tutti, esiste questa libreria per generare delle richieste SOAP verso zimbra: https://github.com/Zimbra-Community/python-zimbra tuttavia ero curioso di provare la libreria zeep https://docs.python-zeep.org per avere un paragone e capire se può essere una valida alternativa. Sarò

Re: [Python] [Python3] virtualenv aggiornato su vecchia distro

2021-06-04 Thread Valerio Pachera
Il giorno lun 31 mag 2021 alle ore 14:34 Strap Lab ha scritto: > ... > Quindi, se vuoi differenti versioni di python senza aggiornare il sistema > operativo ti suggerirei l'utilizzo di pyenv https://github.com/pyenv/pyenv > che ti aiuterà a scaricare e compilare la versione di Python che

Re: [Python] [Python3] virtualenv aggiornato su vecchia distro

2021-05-31 Thread Valerio Pachera
Il giorno lun 31 mag 2021 alle ore 14:34 Strap Lab ha scritto: > > > Sì, devi compliarti le versioni di Python che ti servono. > Quindi, se vuoi differenti versioni di python senza aggiornare il sistema > operativo ti suggerirei l'utilizzo di pyenv https://github.com/pyenv/pyenv > che ti aiuterà

Re: [Python] [Python3] virtualenv aggiornato su vecchia distro

2021-05-31 Thread Valerio Pachera
Grazie per le risposte. Avevo valutato (velocemente) se usare virtualenv o venv e la mia scelta era ricaduta sul primo perché ha alcune funzionalità in più, in particolare, paragonato a virtualenv https://virtualenv.pypa.io/en/latest/ "cannot create virtual environments for arbitrarily installed

[Python] [Python3] virtualenv aggiornato su vecchia distro

2021-05-31 Thread Valerio Pachera
Buongiorno a tutti, mi trovo nella seguente situazione: ho una ubuntu 16.04 con python 3.5 e devo far girare una script che richiede vari moduli aggiornati (tra cui Jinja2). Sul mio portatile ho creato, tramite virtualenv, un ambiente comprensivo di tali moduli e python3.8 (opzione --always-copy)

Re: [Python] Ordinare lista di dizionari

2021-05-19 Thread Valerio Pachera
Ho trovato la risposta :-) https://stackoverflow.com/questions/72899/how-do-i-sort-a-list-of-dictionaries-by-a-value-of-the-dictionary Il giorno mer 19 mag 2021 alle ore 16:50 Valerio Pachera ha scritto: > > Ciao, avendo questa lista: > > [ > {'name': 'mario', 'age': 50

[Python] Ordinare lista di dizionari

2021-05-19 Thread Valerio Pachera
Ciao, avendo questa lista: [ {'name': 'mario', 'age': 50}, {'name': 'luigi', 'age':25}, {'name': 'sonic', 'age':63} ] come posso ordinare per età? ___ Python mailing list Python@lists.python.it

Re: [Python] atlassian api

2021-02-18 Thread Valerio Pachera
': 'Epic crea via API' E ha funzioanto. Il giorno lun 15 feb 2021 alle ore 18:01 Valerio Pachera ha scritto: >... > ricevo un errore che non mi fa capire cosa sto sbagliando > > Creating issue "test rest" > Traceback (most recent call last): > File "./ss

Re: [Python] atlassian api

2021-02-15 Thread Valerio Pachera
Buon giorno a tutti, sto provando a creare dei Task e delle Epic con la libreria https://atlassian-python-api.readthedocs.io/ Ho trovato molto utile l'esempio di creazione di un task riportato su questo repository: https://github.com/atlassian-api/atlassian-python-api/tree/master/examples/jira

Re: [Python] atlassian api

2021-02-12 Thread Valerio Pachera
basic authentication with Jira Cloud applications or Confluence Cloud. You must use an API token if the Atlassian account you authenticate with has had two-step verification enabled. You should treat API tokens as securely as any other password." Saluti! Il giorno gio 11 feb 2021 alle ore 17:05 Valerio P

[Python] atlassian api

2021-02-11 Thread Valerio Pachera
Ciao a tutti, questa e' una domanda un po' generica: vorrei usare la libreria https://atlassian-python-api.readthedocs.io/ per creare dei ticket su jira in modo automatizzato. L'istanza jira su cui mi devo autenticare pero' usa okta come identity manager con il 2FA. Come posso fare in questo

Re: [Python] Sostituzione di lettere accentate con html entities

2020-11-27 Thread Valerio Pachera
Credo di aver trovato la risposta: https://pypi.org/project/htmlentities/ import htmlentities htmlentities.encode("perché c'è una città") "perch c' una citt" Il giorno gio 26 nov 2020 alle ore 17:35 Valerio Pachera ha scritto: > Ciao a tutti, ho uno script che usa

[Python] Sostituzione di lettere accentate con html entities

2020-11-26 Thread Valerio Pachera
Ciao a tutti, ho uno script che usa jinja2 come sistema di template. Leggo i dati da una sorgente ldap e con quelli faccio il render del template. Problema: alcuni nomi e cognomi hanno le lettere accentate. Vorrei convertire queste lettere nella rispettiva entity html. Jinja di suo puo' fare

Re: [Python] Argomenti funzione posizionali e opzionali

2020-11-26 Thread Valerio Pachera
Il giorno dom 22 nov 2020 alle ore 18:47 Daniele Zambelli < daniele.zambe...@gmail.com> ha scritto: > > Dato che il contenuto e la signature sono necessari per il > funzionamento della funzione e che i due tipi di signature sono > entrambi stringhe, io avrei fatto così: > > def

Re: [Python] Argomenti funzione posizionali e opzionali

2020-11-20 Thread Valerio Pachera
Il giorno ven 20 nov 2020 alle ore 15:53 Alessandro Dentella < sandro.dente...@gmail.com> ha scritto: > > > non mi è chiaro perché non metti content al primo posto:: > > Inizialmente l'avevo messo per ultimo e questo ha generato errore facendomi rivalutare anche gli altri due argomenti. Ora lo

[Python] Argomenti funzione posizionali e opzionali

2020-11-20 Thread Valerio Pachera
Ciao a tutti, sto definendo una funziona a cui devo passare un valore per id o per nome. Il mio approccio è stato questo def modify_firma(signature_id='', signature_name='', content): if signatrue_id: pass elif signature_name: pass Ci sono due problemi: il parametro content

Re: [Python] Espressione reoglare

2020-09-02 Thread Valerio Pachera
Il giorno mer 2 set 2020 alle ore 18:02 Marco Beri ha scritto: > > Mi piace il tuo senso di sorpresa  > Avendo poco tempo per studiare le RE e usandole poche volte, per me tendono all'alchimia :-) ___ Python mailing list Python@lists.python.it

Re: [Python] Espressione reoglare

2020-09-02 Thread Valerio Pachera
Il giorno sab 29 ago 2020 alle ore 00:03 Marco Beri ha scritto: > ... > Ops, mi correggo: > > \w+\b(? > Sembra funzionare alla grande! Mo me la studio per bene. Grazie. ___ Python mailing list Python@lists.python.it

[Python] Espressione reoglare

2020-08-28 Thread Valerio Pachera
Ciao a tutti, consideriamo la seguente stringa: 'uno due intruso due tre uno' voglio matchare 'intruso'. A dire il vero, voglio trovare qualsiasi cosa non sia 'uno', 'due', 'tre', 'quattro'. 'quattro' non è presente nella stringa ma potrebbe esserci. Anche la presenza delle altre parole "buone"

Re: [Python] Dubbio su name space / variabili globali

2020-08-22 Thread Valerio Pachera
Il giorno ven 21 ago 2020 alle ore 21:33 Pietro Brunetti < gunzap...@gmail.com> ha scritto: > Non sto a sindacare, ogni linguaggio fa delle scelte. Ma se ci pensi anche > la scelta di Python ha una sua logica. Ti impedisce di avere delle funzioni > con side effect difficili da debuggare. > >

Re: [Python] Dubbio su name space / variabili globali

2020-08-20 Thread Valerio Pachera
errore anche nel primo caso. Il giorno gio 20 ago 2020 alle ore 10:14 Valerio Pachera ha scritto: > >>> def f(): > ... print(n) > ... > non ho ancora dichiarato n. > La dichiaro esternamente alla funzione, quindi (correggetemi se sbaglio) n > sarà una variab

[Python] Dubbio su name space / variabili globali

2020-08-20 Thread Valerio Pachera
>>> def f(): ... print(n) ... non ho ancora dichiarato n. La dichiaro esternamente alla funzione, quindi (correggetemi se sbaglio) n sarà una variabile globale. >>> n = 10 >>> f() 10 A conferma di quanto scritto sopra, n viene stampata. Ora faccio la stessa cosa ma faccio incrementare di 1

[Python] Libreria per controllare validità record SPF

2020-07-06 Thread Valerio Pachera
Ciao a tutti, sapete se esiste già una libreria che esegue un controllo della sintassi e validità di un record SPF? Quello che vorrei ottenere è passare un nome dominio ad una funzion / classe. Questa si dovrebbe occupare di fare una query DNS per cercare un eventuale record SPF. Se lo trova, ne

[kate] [Bug 415671] New: Add Syntax Highlighting for NFT (nftable)

2019-12-29 Thread valerio pachera
https://bugs.kde.org/show_bug.cgi?id=415671 Bug ID: 415671 Summary: Add Syntax Highlighting for NFT (nftable) Product: kate Version: unspecified Platform: unspecified OS: Linux Status: REPORTED Severity:

Debian firmaware bug in graphical installer

2019-09-22 Thread Valerio Pachera
Hi, I installed Debian 10 on my old laptop (BIOS mode) using the unsupported firmware iso. I noticed that using the Graphical installer it fails connecting to the wifi. Using the classic ncurses installer, it connects successfully. I checked also with the latest firmware-10.1.0-amd64-netinst.iso

[Tutor] Merge a dictionary into a string

2019-03-16 Thread Valerio Pachera
Consider this: import collections d = OrderedDict(a='hallo', b='world') I wish to get a single string like this: 'a "hallo" b "world"' Notice I wish the double quote to be part of the string. In other words I want to wrap the value of a and b. I was thinking to use such function I created:

Re: [Tutor] Remove soft line break

2019-03-16 Thread Valerio Pachera
- Messaggio originale - > Da: "Valerio Pachera" > A: "Tutor Python" > Inviato: Giovedì, 28 febbraio 2019 13:05:27 > Oggetto: Re: [Tutor] Remove soft line break > ... > I noticed that the end of file doesn't get preserve if I create a

Re: [Tutor] Remove soft line break

2019-02-28 Thread Valerio Pachera
, 4 febbraio 2019 20:23:59 Oggetto: Re: [Tutor] Remove soft line break Valerio Pachera wrote: > > I have a file with row that split at the 80th character. > The next row start with a blank space, meaning that i part of the previous > row. > > Example: > > Lorem ipsum dolor si

Re: [Tutor] Remove soft line break

2019-02-28 Thread Valerio Pachera
- Messaggio originale - > Da: "Valerio Pachera" > A: "Tutor Python" > Inviato: Giovedì, 28 febbraio 2019 13:05:27 > Oggetto: Re: [Tutor] Remove soft line break >... > It works as expected but there's a thing I've to understand about the end o

[Tutor] Remove soft line break

2019-02-04 Thread Valerio Pachera
I have a file with row that split at the 80th character. The next row start with a blank space, meaning that i part of the previous row. Example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam non justo enim. Viv amus dapibus quis neque vitae ornare. Pellentesque at pharetra

[Tutor] Dictionary viceversa

2018-07-30 Thread Valerio Pachera
Hi all, consider this dictionary users = {'user1':['office-a', 'office-b'], 'user2':['office-b'], 'user3':['office-a','office-c']} It's a list of users. For each user there's a list of room it can access to. Generalizing, a dictionary with a list for each element. d = {k:list} I

Re: [Tutor] Do something on list elements

2018-07-30 Thread Valerio Pachera
- Messaggio originale - > Da: "Tutor Python" > A: "Tutor Python" > Inviato: Sabato, 28 luglio 2018 0:06:55 > Oggetto: Re: [Tutor] Do something on list elements > But better still is a list comprehension: > > l = [s.replace('X','') for s in l) > print(l) Thank you all for the answers.

[Tutor] Do something on list elements

2018-07-27 Thread Valerio Pachera
Hi all, I started studying python and I hope you may help me getting better. Let's start with the first question. Consider this example --- #!/usr/bin/python3 l = ['unoX', 'dueX'] c = 0 for n in l: l[c] = l[c].replace('X','') c = c + 1 print (l) --- it works but I wonder if

[users@httpd] CORS (Cross Origin Resource Sharing) server side configuration

2018-04-20 Thread Valerio Pachera
Good Morning, I'm looking for documentation about setting CORS headers in apache. The problem is that I need to handle a cors request and be sure I set all the necessasary header in apache. Right now I het error 401. *Most of all, I can't find good server side documentation on how to handle CORS

Re: Fwd: Used space discrepancy

2018-03-13 Thread Valerio Pachera
2018-03-13 14:31 GMT+01:00 Austin S. Hemmelgarn : > In your case, start by just calling `du` on the _whole_ volume. There's > probably some space you're missing that isn't in snapshots and isn't used > under the folder/folders you told it to look at. du -sh /mnt/dati/ 1,8T

Re: Used space discrepancy

2018-03-13 Thread Valerio Pachera
Today I've been updating the kernel and btrfs-progs to jessie backports and rebooted the server. There seems to not be usefull info in dmesg dmesg | grep -i btrfs [4.702295] Btrfs loaded, crc32c=crc32c-generic [8.371792] BTRFS: device fsid f0a8ff89-608e-4ca2-bde9-8dc09b91accf devid 1

Fwd: Used space discrepancy

2018-03-13 Thread Valerio Pachera
Short version: 656G used (df -h) 450G used (du -sh) 10G used by snapshots 196G discrepancy <- I don't undertand what is using 196G. df -h /mnt/dati/ File systemDim. Usati Dispon. Uso% Montato su /dev/mapper/vg00-dati 919G 656G262G 72% /mnt/dati du -sh

Telepathy VS Kopete

2018-02-24 Thread Valerio Pachera
Hi all, I noticed on my debian stretch koped is installed. I was expecting to see telepathy. Kde plasma 5.8.6 and kde framework 5.28.0. Is telepathy the default IM program on kde 5?

Clarification about debian maintainer list

2018-02-23 Thread Valerio Pachera
https://www.debian.org/devel/index.en.html Debian is made collaboratively by many people spread around the world. *Packaging work* is usually contributed by both Debian Developers (DD) (which are full members of the Debian project) and by Debian

Bug#891143: www.debian.org: Outdated information in "donation" web page

2018-02-22 Thread Valerio Pachera
Package: www.debian.org Severity: normal Dear Maintainer, On the italian translated page https://www.debian.org/donations you find "Italia: Associazione Software Libero" as donation options. Opening the link (http://www.softwarelibero.it/donazioni-debian) it's clear they stopped to collecting

Bug#891143: www.debian.org: Outdated information in "donation" web page

2018-02-22 Thread Valerio Pachera
Package: www.debian.org Severity: normal Dear Maintainer, On the italian translated page https://www.debian.org/donations you find "Italia: Associazione Software Libero" as donation options. Opening the link (http://www.softwarelibero.it/donazioni-debian) it's clear they stopped to collecting

[Python] Gestione delle date tra python e mysql

2017-01-16 Thread Valerio Pachera
Ciao a tutti, sto decidendo come salvare le date in un database mysql: - come INT, ovvero in posixtimestamp - come TIMESTAMP di mysql, che salva in formato leggibile e salva la data in formato UTC (GMT+0) ma la restituisce secondo la timezone del server.

[kdeconnect] [Bug 371209] New: Android keyboard doesn't type on kde

2016-10-19 Thread valerio pachera via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=371209 Bug ID: 371209 Summary: Android keyboard doesn't type on kde Product: kdeconnect Version: 0.7.2 Platform: Debian stable OS: Linux Status: UNCONFIRMED Severity:

[Qemu-devel] Documentation about qemu config file

2016-04-04 Thread Valerio Pachera
Hi, I'm interested about the option -writeconfig/-readconfig. I'm looking for some documentation about the format of the file, the syntax of all possible options and if there's a library that helps to read and write this file from external applications. I've been writing a sort of a cli to manage

Re: Should kwalletd be automatically started

2016-03-24 Thread Valerio Pachera
2016-03-24 9:53 GMT+01:00 Harald Sitter : > kwalletd is started on-demand through dbus activation [1] when one > tries to use the org.kde.kwalletd(5) bus name. If it is not started > dbus is not set up correctly or the service files are missing or > qtkeychain manages to somehow

[FreeRDP-devel] Printer problem

2016-03-22 Thread Valerio Pachera
Hi all, please tell me if I have to write somewhere else for asking help. I run xfreerdp with /printer option. I'm running debian 8 with 'FreeRDP version 2.0.0-dev (git n/a)'. I see the printer on windows remote desktop but it doesn't print. The printing queue says "error - printing", no more

Re: [FreeRDP-devel] Stable release

2016-01-11 Thread Valerio Pachera
2015-12-18 16:50 GMT+01:00 Bernhard Miklautz : > For users and for testing we do have nightly pre-builds for some time: > > https://github.com/FreeRDP/FreeRDP/wiki/PreBuilds > apt-get update Err http://pub.freerdp.com freerdp-nightly/main i386 Packages 404

Re: [FreeRDP-devel] Stable release

2016-01-11 Thread Valerio Pachera
2016-01-11 8:55 GMT+01:00 Valerio Pachera <siri...@gmail.com>: > > > apt-get update > > Err http://pub.freerdp.com freerdp-nightly/main i386 Packages > 404 Not Found [IP: 212.232.26.215 80] > > The repository > I was writing that the repository is not worki

[FreeRDP-devel] Fwd: Stable release

2015-12-18 Thread Valerio Pachera
2015-12-18 16:50 GMT+01:00 Bernhard Miklautz : > ...even if we didn't draft an official release (yet), really stable and > I suggest using it. > Thank you very much for your answer. I've been running a linux client with rdesktop for long time but it's freezing

[FreeRDP-devel] Stable release

2015-12-18 Thread Valerio Pachera
Hi, I opned a bug report to point out that the last stable release is more than 2 years old and that many commit has been pushed since then. https://github.com/FreeRDP/FreeRDP/issues/3008 I hope this is the right place to talk about it. Could you tell me why you dind't relase 1.2 release after

Re: Openstack images default password

2015-08-19 Thread Valerio Pachera
2015-08-19 11:44 GMT+02:00, Darac Marjal mailingl...@darac.org.uk: As a last resort, can you boot with init=/bin/bash? If so, you can issue mount -o remount,rw / to remount the root filesystem as read-write, then issue passwd to set root's password to whatever you like. sync and mount -o

Re: Openstack images default password

2015-08-19 Thread Valerio Pachera
Riesebieter riese...@lxtec.de wrote: * Valerio Pachera siri...@gmail.com [2015-08-07 14:57 +0200]: Hi all, I downloaded debian image from http://cdimage.debian.org/cdimage/openstack/current/ What is the root default password? AFAIK, you have to access to his image using your SSH key

Openstack images default password

2015-08-07 Thread Valerio Pachera
Hi all, I downloaded debian image from http://cdimage.debian.org/cdimage/openstack/current/ What is the root default password?

Re: [sheepdog] filesystem errors when using sheepdog

2015-07-09 Thread Valerio Pachera
2015-07-09 12:01 GMT+02:00 Vasiliy Tolstov v.tols...@selfip.ru: Do you enable discard inside vm ? As i see i have vps with discard enabled. I don't think so. May you explain me how to enable discard? -- sheepdog mailing list sheepdog@lists.wpkg.org

Re: [sheepdog] filesystem errors when using sheepdog

2015-07-09 Thread Valerio Pachera
2015-07-08 14:57 GMT+02:00 Vasiliy Tolstov v.tols...@selfip.ru: Any news? I wasn't able to reproduce the problem but it might depend on the hardware. I'm testing on slow pc and i don't write faster than 30M/s with --copies 2. -- sheepdog mailing list sheepdog@lists.wpkg.org

Re: [sheepdog] filesystem errors when using sheepdog

2015-07-09 Thread Valerio Pachera
2015-07-09 13:08 GMT+02:00 Vasiliy Tolstov v.tols...@selfip.ru: inside vm you need to mount -o remount,discard / after that fstrim -v / (that create massive write for sheepdog) after that each delete inside vm create discard request to sheepdog. I get 'the discard operation is not

Re: [sheepdog] filesystem errors when using sheepdog

2015-07-06 Thread Valerio Pachera
2015-07-06 12:44 GMT+02:00 Vasiliy Tolstov v.tols...@selfip.ru: I'm debug this isse and qemu message correct: wheepdog returns SD_RES_NO_OBJ when try to write object and qemu displays No object found to stderr, but why this happening when i'm try to write object? I don't read it i'm simple

[sheepdog] Close fixed bugs

2015-06-29 Thread Valerio Pachera
Hi all, I've been checking these bugs: 1406404 1389125 and they seems fixed to me. May close them? Please, check also if there are other already fixed bugs to close. Thank you. -- sheepdog mailing list sheepdog@lists.wpkg.org https://lists.wpkg.org/mailman/listinfo/sheepdog

[sheepdog] [SHEEPDOG-UTILS][PATCH v2] Set different list of packages for debian 8

2015-05-25 Thread Valerio Pachera
This patch add the package yasm to be installed in both debian 7 and debian 8. liburcu2 will be insalled instead of liburcu1 in debian 8. It also fixed an error message that didn't get printed and add libtool as required package. Signed-off-by: Valerio Pachera siri...@gmail.com --- install.sh

Re: [sheepdog] A radical rethinking on struct vdi_state

2015-05-14 Thread Valerio Pachera
IMHO, per volume redundancy, is something I never felt the need for. -- sheepdog mailing list sheepdog@lists.wpkg.org https://lists.wpkg.org/mailman/listinfo/sheepdog

  1   2   3   4   5   >