Avatar
🏃
achat android animaux anticor apple arnaque association biot bluesky bricolage canoe canyoning ccesoir chateau choisir-velo cinema citation citroen-c8 commission configuration consomacteur course courses courses-dobstacles cuisine cv-pro dawarich debian dell depannage dev docker don dsi désinformation economie facebook fedora firewall football garmin gohugo gravel hebergement home-assistant hugo humhub inondation internets iphone-ipad jeux justice kali linux livre loisirs mac marathon mastodon mecanique misere momes-dazur musee-loisirs nice-matin non-classe oracle padel petition peugeot-206 peugeot-307 peugeot-406 photos php politique postgresql pro proxmox randonnee randonnée raspberry redhat redis republique-numerique reseaux-sociaux sante-internets sante-loisirs securite-internets self-hosted ski ski de randonnée sortir soutien spam sport-biot-2 sports stockage theatre trail twitter/x twitter/x ubuntu velo velo-biot velo-sur-biot via-ferrata ville villes visites voyage vtt windows wordpress wordpress-fr xbox élections municipales 0189xxxxxx 10-km 10-miles 10km 12-km 140 2014 2kv 307 406 406-hdi 920 920xt 930 935 abus acpi actif azur adb adhesion adsl agay age air aix-en-provence alcatel allianz allianz-riviera alpe-dhuez alpes-maritimes alpilles alternateur amap amazon amp anaconda analyse analytics android animaux anote anthea anthea-fr antibes anticor antutu apache2 apn apple applepi-baker april arcep arfi arnaque aroooo aseb-am asics association assurantprotection.fr asterisk asus asus-zenfone atos atsemtex audit auron authentique-fr autoroute avis awesome-note awk awox baignade balade balade-fr barcelonnette barnier base-de-donnee bash basket-ball belt benchmark bento bentomedia betrail biellette bigreen bilan bilan professionnel bilan sportif bilan-fr bio biot biot-fr biot-vernir bitdefender bkl-l09 blacklist blender blockchain-fr blog blogger-com bluesky bonifacio bormes-les-mimosas bot brague braun breil-sur-roya brew bricolage brm brm200 bruxelles bueil bug c cadolive cagnes-sur-mer caille caisse-depargne calanques calencon calendrier camargue cannes cannes-fr canoe cantabrie canyon canyoning cap-dantibes cardio carlit carnaval-de-nice carnaval-de-nice-fr carros carroz casa castellane castellar cat catamaran caussols ccbot ccc cdisplay ceinture cevennes chamonix chateau chaussures cheiron choisir velo cinema circuit cisco citation citrix classement claudebot clignotant cloud cloud-act cloud-personnel cnews codegouv col connecté col de greoliere col-connecte col-de-la-madone col-de-turini colmars competition compression configuration connect consomacteur conspiracy watch convergence-azureenne coreos coronarivus coronavirus corse courmes course course-a-pied course-dobstacle course-dobstacles course-dorientation course-fr coursegoules courses-2 covid covid-19 cozy-cloud cozytouch cpu critique cross cuda cuenod curl cursor dansup dark-web data dataforseo dawarich dawarich.app day-journal debian decathlon decodex deletefacebook dell dello-sciliar-catinaccio delphi demi-yasso derby-de-la-meije developpement developper-tools-access diag diario diaro diaspora digikam digiposte distribution docker docteur-gsm-com dolceacqua dolomites domolites domotique don dourgne dsi duranus débats désinformation ecologie economie education el-capitan elasticsearch elk elm327 email endurain enphase ensol entreprises entretien epidemie escape-game escarene escroquerie espagne estrosi europe eurovelo evasion-fiscale evolution-a-faire exiftool export eze f-f-a facebook facture facture-deau-fr fakenews falicon fan fayence fedora fenix 7 ffa ffmpeg filebeat fillion fillon film-bon film-moyen filtre-a-gazole filtre-pollen fire firewall fittrackee folder foodwatch footing for forerunner forerunner-935 forerunner-945 forerunner-955 forgejo framasoft framasphere france culture france-3 france-soir fraude fraude-fiscale free free-mobile freebox frejus funchal gafams gaillac garageband garmin garmin-connect gavarnie gcc gelas geodes gilette git github glance gmail goaccess gohugo google google-analytic google-analytics google-search-console gopro gorbio gotify goudurix gouffre gourdon gourdon-fr gptbot gpx grafana grasse gravel graxx greoliere greolieres greolieres-les-neiges grub gréolières gtest guillon hadopi haproxy hautpoul hebergement high-trail-vanoise hintertux hipay hipay-com historique-des-dons holdup home-assistant homeassistant hommage honeywell honor hop howto htv huawei hugo huile-direction-assiste humhub ia ibm iconservicesagent ie ign ilonse imagento imageoptim imagneto immich imovie import impots indent injecteur inondation insee insta360 installation internet intimidation ipad ipad-argus iphone iphoto iptables isola-2000 issue italie itra itunes j2s jaime-courir java javascript jeedom jenkins jetpack jeux jeux-de-sophia jeux-de-sophia-antipolis joplin joseph journey jpegoptim juns jupyter justice kali karer-pass kayak kernel kibana kies-app kilometre-vertical kisskissbankbank kiwix klaxon kodi kokopelli korben la-brague la-capelette la-grave-de-peille la-poste la-quadrature-du-net la-vie lac-de-vens langage lantosque lapeyre laquadrature latemar lateral lautrec lcd le-monde leon les-cammazes les-visiteurs-du-soir let's encrypt lets-encrypt levens libreoffice libvirt lightmd linux liste livebox livre logement logiciel logstash loi-numerique lombricomposteur luberon lulu mac mac-os macjournal macos macos-high-sierra madere malade malware mamp mandelieu maps marathon marche mariadb markdown marseille mastodon matomo matomo-analytics matosdon matrix mazamet mcafee mecanique mediapart meduses meije meltdown memo menuiserie mercantour merci-michel mermaid meta metricbeat microsoft-teams migration misere mkdocs module mogrify mojave monsanto montagne-noire montagne-noire-fr montauroux motionpro mougins moulinet mouton msf mud-day mud-day-fr munin mysql mytf1 mytf1-fr mywellness myzone naiad naiad2020 natation natation-libre nature nautipolis neige netamo netatmo nextcloud nginx nice nice-fr nice-matin notes nsinvalidargumentexception ntfs nuxit nvidia objective-see obsolescence-programmee obstacle occ occasion odbii ok-google ollama olvid onedrive oopad open open-data open-sky open-source open-source-experience opencv opendata opensky opensky-a-valbonne opio oracle-linux orange origine-cycles orsiere osm france osmc oss-paris osx osxp osxp2024 osxp2025 outlook owncloud pac paca padel panorama panoramique paradisdiscount-com parc-du-paradou parc-naturel-dello-sciliar-catinaccio paris pascal paul paypal pdf peillon peinture petition peugeot peugeot-307 phare photo photon photos photovoltaique php phpnet phpnet-org pichauris pigeon pinterest pip piscine planning play-store plongee plu plugin pluviometrie pneu politique pollution polylang postfix postgresql ppri prejuges preparation print prix programmation prom-classic prometheus provence proxmox pssh publicite purge pyrenees python python3 qnap quartier qwant raid rameur-dinterieur rancheros randonnee randonnee-2 randonnees randonnée raspberry recette recette-fr redbysfr redhat redis redmi reparartion reparation reseau-sociaux resideo rest-api resultat reunion revue-de-presse rgpd rimplas rock64 root roquebilliere roubion rouret row rsyslog rt-france rubitrack rue89 saint-amancet-fr saint-avit saint-fereol saint-jeannet saint-vallier-de-thiey saintetic salade-nicoise-fr salle-serveur salon samsung san-remo sante sauter scop sd-card securite security.txt sed selection self-hosted semaine-de-la-critique semi semi-marathon semi-marathon-fr sentier seranon server-git serveur service-public siagne sidobre sierra signal sip ski ski de randonnée ski-de-randonnee skred skype slack smart-home smartphone smsc snap sommets sondage sondage-en-ligne sophia-antipolis soreze soreze-fr sortie-en-famille sospel soual spam spartan spartan-race spartan-race-fr spartian spectre sport sql sqlite ssd stable-diffusion stade station-meteo statistique statistiques stockage strava suisse suivi summary surf svn swap swarm syslog systemd tanneron tapform tarif tarn tarn-fr taxes telerama television temp temperature template templier tende tennis tennis-de-table tensorflow test testeur tests textwrangler theatre theoule-sur-mer thorenc thunderbird thunderbirds tignes tor tour-des-sangliers tour-du-sanglier tourisme tourrettes-sur-loup trail trail-de-la-vesubie transposh transvesubienne trashbusters travail travaux trial trifecta turbie tux tuxedo tuxedo-computer tuya twitter tyrol ubaye ubuntu ufc-que-choisir ultra uniq unknown unroot update urbain urban-trail urbanbiker utcam utelle utmb vae valbonne valeo vallee-des-merveilles valloire vallon-des-horts valmasque var vaucluse vaultwarden vauplane vegay velo velotaf vence ventoux veolia verdon vesubie vidange video villeneuve-loubet vim virtual-box virtualbox virus vma vmware vol voyage vpn vps vtc vtt wanderer wannacry webalizer wget whatsapp wifi wikimedia-foundation wikipedia wiko windows wine woocommerce wordfence wordpress x xbmc xbox yahoo-mail yolo zenfone zenpad zigbee
  • C’est pas gagné pour faire la détection du contour du blob (en mv4) :

    [video width=“1060” height=“720” m4v=“https://www.cyber-neurones.org/wp-content/uploads/2022/04/blob2outpytest.m4v"][/video]

    J’ai des problèmes de jaune :(

    import cv2
    import numpy as np 
    import matplotlib.pyplot as plt
    ....
            frame_hsv=cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
    
            low_yellow=np.array([10, 125, 100])
            upper_yellow=np.array([60, 220, 220])
            mask_yellow=cv2.inRange(frame_hsv,low_yellow,upper_yellow)
    
            list_masks=[mask_yellow]
            for i,mask in enumerate(list_masks):
    
                contours, _=cv2.findContours(mask,cv2.RETR_LIST,cv2.CHAIN_APPROX_NONE)

    Sans le polygone (et en mp4):

    [video width=“1280” height=“720” mp4=“https://www.cyber-neurones.org/wp-content/uploads/2022/04/blob2outpytest2.mp4"][/video]

    A suivre.

    opencv python Created Sun, 24 Apr 2022 00:00:00 +0000
  • J’ai eu l’erreur suivante :

    NVIDIA GeForce RTX 3060 Laptop GPU with CUDA capability sm_86 is not compatible with the current PyTorch installation.
    The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70.
    If you want to use the NVIDIA GeForce RTX 3060 Laptop GPU GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

    Pour fixer le problème j’ai fait:

    pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

    Voici mon installation :

    $ nvidia-smi
    Sat Mar 12 13:00:45 2022
    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 470.103.01 Driver Version: 470.103.01 CUDA Version: 11.4 |
    |-------------------------------+----------------------+----------------------+
    | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
    | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
    | | | MIG M. |
    |===============================+======================+======================|
    | 0 NVIDIA GeForce ... Off | 00000000:01:00.0 On | N/A |
    | N/A 42C P0 27W / N/A | 1053MiB / 5946MiB | 0% Default |
    | | | N/A |
    +-------------------------------+----------------------+----------------------+
    +-----------------------------------------------------------------------------+
    | Processes: |
    | GPU GI CI PID Type Process name GPU Memory |
    | ID ID Usage |
    |=============================================================================|
    | 0 N/A N/A 1616 G /usr/lib/xorg/Xorg 608MiB |
    | 0 N/A N/A 3460 G budgie-wm 33MiB |
    | 0 N/A N/A 3959 G ...AAAAAAAA== --shared-files 2MiB |
    | 0 N/A N/A 4006 G ...AAAAAAAAA= --shared-files 60MiB |
    | 0 N/A N/A 4221 G ...AAAAAAAAA= --shared-files 42MiB |
    | 0 N/A N/A 4269 G ...AAAAAAAAA= --shared-files 15MiB |
    | 0 N/A N/A 4584 G ...oud-3.4.2-x86_64.AppImage 2MiB |
    | 0 N/A N/A 97021 G /usr/lib/firefox/firefox 148MiB |
    | 0 N/A N/A 99523 G ...rbird/192/thunderbird-bin 96MiB |
    | 0 N/A N/A 99893 G /usr/lib/firefox/firefox 2MiB |
    | 0 N/A N/A 100617 G ...826642640911437010,131072 33MiB |
    +-----------------------------------------------------------------------------+\
    Created Sat, 12 Mar 2022 00:00:00 +0000
  • Study about the impact of open source software and hardware on technological independence, competitiveness and innovation in the EU economy :

    https://digital-strategy.ec.europa.eu/en/library/study-about-impact-open-source-software-and-hardware-technological-independence-competitiveness-and

    Pour télécharger le fichier de l’étude : https://ec.europa.eu/newsroom/dae/redirection/document/79021 .

    open-source Created Thu, 30 Sep 2021 00:00:00 +0000
  • Je me note la commande :

    gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r300 -sOutputFile=MonPDF_format_ebook.pdf MonPDF.pdf 

    A noter que pour dPDFSETTINGS on peut mettre plus de qualité via :

    • -dPDFSETTINGS=/printer
    • -dPDFSETTINGS=/prepress

    Fin de mon mémo

    memo Created Tue, 25 May 2021 00:00:00 +0000
  • La recherche sous ThunderBird ne fonctionne plus, il faut donc refaire les index.

    # locate global-messages-db.sqlite | xargs du -h
    1,2M	/home/XXXXX/.thunderbird/0ywo1rhk.default-beta/global-messages-db.sqlite
    1,2M	/home/XXXXX/.thunderbird/b15soes8.default-release-1/global-messages-db.sqlite
    1,2M	/home/XXXXX/.thunderbird/dqmb6p3g.default/global-messages-db.sqlite
    1,2M	/home/XXXXX/.thunderbird/ea15798n.default-release/global-messages-db.sqlite
    1,2M	/home/XXXXX/.thunderbird/g5f2xgbj.default-beta-1/global-messages-db.sqlite
    1,2M	/home/XXXXX/.thunderbird/yk1r4599.farias/global-messages-db.sqlite
    1,3G	/home/XXXXX/snap/thunderbird/common/.thunderbird/YYYYY.default/global-messages-db.sqlite

    XXXXX => user. YYYYY => profile.

    Ce qui est pénible c’est que thunderbird fait énormément de profil (à chaque gros update) ensuite pour trouver le bon fichier, je prends celui qui est > 1,2M.

    Je stoppe thunderbird, je supprime le fichier (global-messages-db.sqlite) et je relance thunderbird qui refait le fichier index.

    thunderbird Created Mon, 03 May 2021 00:00:00 +0000
  • J’ai fait un petit script pour envoyer les logs vers Grafana :

    mysql -u root -e "CREATE DATABASE TEAMS;"
    mysql -u root -e "USE TEAMS;DROP TABLE TEAMS_AUDIT;"
    mysql -u root -e "USE TEAMS; CREATE TABLE TEAMS_AUDIT (DATE datetime, duration float, vdiMode int, eventpdclevel int);"
    echo "Version 1.0";
    mysql -u root -e "USE TEAMS; DELETE FROM TEAMS_AUDIT";
    
    grep "desktop_foreground_duration" ~/.config/Microsoft/Microsoft\ Teams/logs.txt ~/.config/Microsoft/Microsoft\ Teams/old_logs_* | sed 's/:/ /g' | awk '{print $6 "-" $4 "-" $5 " " $7 ":" $8 ":" $9 " " $20 " " $24 " " $26}' | sed 's/,/ /g' | sed 's/Jun/06/g' | sed 's/May/05/g' > /tmp/audit_teams.txt
    
    while read line
    do
    DATE=$(echo $line | awk '{print $1 " " $2}');
    DURATION=$(echo $line | awk '{print $3}');
    VDI=$(echo $line | awk '{print $4}');
    LEVEL=$(echo $line | awk '{print $5}');
    SQL="USE TEAMS; INSERT INTO TEAMS_AUDIT (DATE, duration, vdiMode, eventpdclevel) VALUES ('$DATE',$DURATION,$VDI,$LEVEL);"
    #echo $SQL
    mysql -u root -e "$SQL"
    done < /tmp/audit_teams.txt
    
    echo "Done"

    Ensuite sur Grafana il suffit de faire :

    grafana microsoft-teams Created Thu, 25 Jun 2020 00:00:00 +0000
  • J’ai pu voir dans les logs ( .config/Microsoft/Microsoft Teams/logs/teams-startup.log ) l’erreur suivante :

    MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 appInitialized listeners added. Use emitter.setMaxListeners() to increase limit

    Ma version de Node.js :

    $ node -v
    v10.21.0

    La version de Teams : 1.3.00.5153 ( dans le fichier .config/Microsoft/Microsoft\ Teams/settings.json )

    J’ai vu un article sur le sujet : https://www.stefanjudis.com/today-i-learned/nodejs-sends-warnings-when-you-add-too-many-listeners-to-an-event-emitter/ et j’ai donc l’impression que c’est uniquement via le code que l’on fixe le problème.

    A suivre.

    microsoft-teams Created Thu, 25 Jun 2020 00:00:00 +0000
  • Le site officiel : https://gotify.net/ . Les sources du projet : https://github.com/gotify .

    Voici les étapes de l’installation :

    $ cd /opt/
    $ sudo wget https://github.com/gotify/server/releases/download/v2.0.16/gotify-linux-amd64.zip
    $ sudo unzip gotify-linux-amd64.zip
    Archive:  gotify-linux-amd64.zip
      inflating: gotify-linux-amd64      
      inflating: LICENSE                 
       creating: licenses/
    $ sudo chmod +x gotify-linux-amd64
    $ sudo mkdir /etc/gotify
    $ sudo vi /etc/gotify/config.yml
    server:
      listenaddr: "" # the address to bind on, leave empty to bind on all addresses
      port: 7070 # the port for the http server
    $ sudo ./gotify-linux-amd64

    Ensuite on se connecte :

    gotify Created Tue, 23 Jun 2020 00:00:00 +0000
  • Suite à la mise à jours de NextCloud, j’avais l’erreur suivante :

    $ sudo tail -f /var/snap/nextcloud/current/apache/logs/php_errors.log
    
    [01-Feb-2020 18:18:07 UTC] PHP Fatal error:  Declaration of OCA\Bookmarks_FullTextSearch\Provider\BookmarksProvider::getSearchTemplate(): OCP\FullTextSearch\Model\SearchTemplate must be compatible with OCP\FullTextSearch\IFullTextSearchProvider::getSearchTemplate(): OCP\FullTextSearch\Model\ISearchTemplate in /var/snap/nextcloud/18204/nextcloud/extra-apps/bookmarks_fulltextsearch/lib/Provider/BookmarksProvider.php on line 55

    Voici ma version :

    $ snap --version
    snap    2.42.1+18.04
    snapd   2.42.1+18.04
    series  16
    ubuntu  18.04
    kernel  5.0.0-37-generic
    $ snap list | grep nextcloud
    nextcloud                16.0.7snap2                 18204  stable    nextcloud*             -

    J’ai donc supprimé le plugin bookmarks_fulltextsearch, la méthode n’est pas propre mais efficace :

    nextcloud snap Created Sat, 01 Feb 2020 00:00:00 +0000
  • Petit résumé sur CPU Test avec sysbench :

    Result / PC PI 3 PI 4 MacBook Air (11-inch Mid 2011) TUXEDO InfinityBook Pro 14 v5 (2020)
    events (avg/stddev) 10000.0000/0.00 10000.0000/0.00 10000.0000/0.00 6629.0000/0.00
    execution time (avg/stddev) 139.6552/0.00 92.7194/0.00 15.5460/0.00 9.9939/0.00

    File IO Test:

    Result / PC PI 3 PI 4 MacBook Air (11-inch Mid 2011) TUXEDO InfinityBook Pro 14 v5 (2020)
    events (avg/stddev) 62565.0000/0.00 167527.0000/0.00
    execution time (avg/stddev) 7.6081/0.00 9.9148/0.00
    benchmark Created Sat, 01 Feb 2020 00:00:00 +0000